acer

32313 Reputation

29 Badges

19 years, 313 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

Perhaps you mean that you are executing the whole worksheet by pressing the GUI's menubar icon labelled "!!!" (or the menubar's Evaluate-->Execute Worksheet menu item, which has Ctrl-Shift-Enter as keyboard shortcut).

I am not aware of a programmatic mechanism that stops that GUI mechanism from continuing on in its execution of all Document-Blocks and Execution-Groups.

Since procedures, loops, if-then, and related Maple language constructs cannot be split across Execution-Group's/Document-Block's code then I don't see how it could be done without having a check for each such code block.

note: Maple's GUI and the underlying kernel engine (which interprets code, and with which the GUI communicates) are mostly separate processes. Bringing the GUI's full-worksheet-execution to a complete stop would (I suspect) require use of a GUI related mechanism and not just a piece of "usual" kernel interpreted Maple language code.

@segfault You keep writing readln (or Readln), but there is no such command, and nobody suggested using such.

You also didn't describe what exactly you're trying to accomplish, in any concrete manner. Saying, "read just doesnt even work in this case." is pointless in the absence of a concrete description of what "this" might be like. If you are not trying to simply execute a file of Maple commands (in which case read could serve) then you have not explained the goal adequately.

@C_R That major release has not yet been publicly released.

Some users have access to the Beta version of the upcoming releases, as part of the Maplesoft Beta program.

note: It's possible that Edgardo intended his attachment to work in Maple 2022.2 if some suitable version of the Physics package. But I don't know about that.

@C_R That popup message appeared not because the Physics package used wasn't latest.

It happened because the attached worksheet was last saved in a early (here, Beta) version of the upcoming Maple 2023.0 release.

It's the stock GUI popup that occurs when it detects that the major release of the .mw file is more recent than itself.

Please put your close followup queries for this example here, instead of starting a wholly new and separate Question thread.

@rlopez A Question posted by this member within the past 24 hours has an attachment that was last saved using Maple 2022.1.

I have not seen the cited problem, using Maple 2022.2 for 64bit Linux.

Perhaps the OP could try with the 2022.2 upgrade.

@Rouben Rostamian  The D operator does not necessarily need to invoke the procedure at arguments -- an act which obtains an intermediate expression, if it does not throw an error.

In contrast, your extension invokes e(params) at arguments which are mere names.

The D procedure can perform some kinds of automatic differentiation (aka algorithmic differentiation), without actually invoking the procedure.

But in the non-scalar case your extension generates an expression using symbolic names as arguments in an acutal call. That approach is restricted to the smaller class of examples for which a Vector of functionally equivalent expressions gets returned by that call. That is weaker than algorithmic differentiation, despite its later use of D following unapply.

This reduction in functionilty seems significant enough to make a stricture against using diff (followed by conversion to D, say) look misplaced.

[edit] Some aspects of general requirements are missing in the Question:
- The given example has only function calls to unknowns a and b. What functionality is wanted when the elements in the Vector call (within the procedure) involve calls to concrete, defined procedures (a and b, say)? What kinds of procedures might be used, i.e must be supported? What -- if any -- algorithmic differentiation might be needed?
- And what if the Vector elements are formed by compound expressions  (possibly involving function calls which may or may not be resolved to concrete procedure calls); here too it's unclear why diff might be discouraged.

@Rouben Rostamian  It does not seem entirely reasonable to impose a stricture against using `diff` if your solution is going to make the call z(u,v).

@Rouben Rostamian  I'm ok with your wording, for the purpose of the discussion. Sorry if it sounded like I was objecting. I mostly wanted to clarify.

I don't prefer the wording in the emitted error message, however.

What don't you upload and attach your actual worksheet, so that we can examine it and see what is going on?

You wrote, "inline plot component", but it's unclear what you mean since there is nothing that fits that description exactly.
  - There is such a thing as a PlotComponent, which are a kind of embedded component.
  - There are inline plots, which are usual output and not part of any embedded component.

If you copy & paste an embedded Plot Component then it necessarily gets renamed upon pasting (since the original was not removed). If you cut & paste then something else might happen. We cannot yet tell for sure what you might have done, or "cut".

@Agha You can import all the subimages using Maple's ImageTools package. You can add them into a single image using Maple's ImageTools package. You can then use that with the background option of the appropriate 2D plotting command.

Duplicate Question threads of this will be flagged as such, and may be deleted.

I respectfully suggest nobody respond to duplicate postings.

I suggest that the questioner put additional details and attempted corrections here, not in wholly separate threads.

The things you've described so far (partially) are possible.

But you (not us) should provide the full and explicit example of plot(s), text, images, etc, along with placement locations and any other relevant detail.

I have done before what you've described so far in two separate ways: once all with images, once all with "plot" structures. But I'll wait for an adequate specification by you.

Which version of Maple are you using, that does not produce 1/x^(1/2) ?

@mmcdara Your example has the function call actually return something different. That is not what was being asked.

The whole point of using the print extension mechanism was to have an unevaluated function call, say f(x,y,z), be pretty-printed as something else, eg.
    f[w](x,y)

What you did in the latter part of your worksheet is actually define a procedure such as f so that the call f(x,y,z) actually returned something else. That's not the goal here. This is about the way that output is pretty-printed, not what values are output.

Note how the `print/f` procedure below does nothing to the returned value of a call to f itself.

restart;

`print/f` := proc(a,b,c) f[c](a,b); end proc:

 

f(x,y,z);

f(x, y, z)

 

lprint(%);  # the call remains unchanged!

f(x, y, z)

 

Download print_extension_example.mw

First 85 86 87 88 89 90 91 Last Page 87 of 591