acer

32460 Reputation

29 Badges

20 years, 1 days
Ontario, Canada

Social Networks and Content at Maplesoft.com

MaplePrimes Activity


These are replies submitted by acer

@Thomas Dean It works on (ubuntu) Linux, for me, using either Maple 2021.2 or 2022.2.

ps. You tagged your Question as Maple 2021.  Your latest Reply mentions Maple 2022.2. Which is it?

@Thomas Dean You mention having explicit multiplication symbols in the output. It sounds as if that is your primary motivation here.

In the following attachments I first set the GUI menubar item:
   Tools->Option->Display->Maple Notation

Then I executed the whole worksheet. That gave me line-printed expression output (with explicit multiplication symbols) and properly rendered plots.

That worked for me in either Maple 2021.2 or Maple 2022.2, both for Linux.

plot-problem_ac_M2021.2.mw
plot-problem_ac_M2022.2.mw

I left other items as their defaults, ie:
 -- Maple 2021.2  interface(typesetting) returns standard
                            interface(prettyprint) returns 3
 -- Maple 2022.2  interface(typesetting) returns extended
                            interface(prettyprint) returns 3

@Thomas Dean It's not clear to me whether you want 1D output or 2D (typeset) output.

@sursumCorda For your first example plots:-inequal is generating many small (thin, say) POLYGONS substructures that when rendered together give the appearance of a filled region with curved boundary.

The transformation of those looks almost useful, something somewhat like what was desired. The scrappy end result is of mixed usefulness.

But in the second example plots:-inequal produces the POLYGONS substructure required only to render the triangular domain. That gets its (few) vertices transformed to something which lacks the information about how the triangle's boundary curve and interior region would (ideally) get transformed.

In contrast, the plot3d command that I used generates a surface whose interior points are represented explicitly in a MESH substructre. That gets transformed to another 2-D MESH substructure that retains information about the interior point's transformation, and which gets rendered quite nicely as a 2-D region. It's transformed edges are a little ragged, so I added spacecurves (which also contain many explicit data of points) along the boundary lines, so that after transformation the final result's boundary consists of smoother boundaries.

@Thomas Dean I did not notice that detail before. But good to know, thanks.

Do the Examples on the Help page VolumeOfRevolution show properly? I mean, when you open the Help page but without re-executing the examples?

note. Your posted code runs fine for me, showing a plot, using Maple 2021.2 on a similar ubuntu system.

@Thomas Dean Perhaps it's happening because you are using a version of an Operating System which is not officially supported for your Maple version? (See here, for a list for Maple 2021.) Or perhaps some Java adjustment is needed, for some kind of inline 3d plotting of the Java GUI on your system.

@mmcdara I converted it from a Question to a Post, because it didn't contain a question.

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.

First 87 88 89 90 91 92 93 Last Page 89 of 594