acer

32333 Reputation

29 Badges

19 years, 322 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

I suppose that means that you are using Maple 2022.2

@justauser I already know of several ways to accomplish that substitution in the plaintext file.

I suggest that it would be even easier if the OP found a way to have the files be created in the first place with the period instead of the comma.

You could tell us which version of Maple you're using.

You could upload and attach a .mw file that reproduces the problem.

@Sauberschrauber I edited my response to allow the comma to be converted to a period, for the parsing of the float data.

I suspect that either method could be made faster if you were able to have the original data text files be written out with periods instead of commas, eg. 1.26E+00 instead of 1,26E+00 etc.

@PaulNewton You wrote, "In all the languages...". And indeed the Maple language has a rich functionality for programmatic flow control.

Yet you have asked about the Java GUI (Graphical User  Interface), which is not part of the Maple language in the traditional sense.

I see few merits to using RunWorksheet over the benefits of encapsulating Maple programs using procedures and modules, and of using their programmatic control flow features. Using RunWorksheet can also cede many benefits of the usual model (eg. efficiency, debugging, revision control).

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".

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