20073 Reputation

29 Badges

14 years, 355 days

Social Networks and Content at

MaplePrimes Activity

These are replies submitted by acer

@AHSAN Here are a few ways. Adjust options to taste.

@Preben Alsholm Yes, while I mentioned the setting itself I omitted that documented detail. I don't see why students and users new to Maple should be reasonably expected to understand its subtlety, even though they may comprise a significant portion of those include to use the syntax. Perhaps other readers disagree(?).

@Rouben Rostamian  Performing a Help query on the word gamma leads to the Help page for Topic gamma (because that name has various meanings in different contexts).

And that page contains a cross-reference link to the Help page with Topic initialconstants, which mentions that the constant gamma is equivalent to the call gamma(0) (aka Euler's constant, or the Euler-Mascheroni constant) and that gamma(n) is a placeholder for the Stieltjes constants.

Why did you not provide your actual, underlying, motivating question up front?

If you want to feel better about asking for answers to your coursework you could show us (explicitly) what you've been able to accomplish on your own.

@itsme I submit reports on issues I raise myself. But thanks for your interest!

I did not mention the ifactor command because I guessed that he was wanting to use the result (programmatically) for some futher purpose. I might have guessed wrong.


As can be seen, the structure returned by the ifactor command is far more awkward to query and manipulate than is that of the ifactors command. The former is fashioned purely for its display effect, when printed. But perhaps that's all he's aiming for here.


              [5, 2, 29, 1]

               [3, 2, 5, 3]

                 [2, 11]

In modern Maple versions you can save a few keystrokes in the definition of that procedure H by applying op elementwise, rather than using map.

H := n->op~(ifactors(n)[2]):

@greatpet You can set the include path when you start up the Maple interface (GUI or commandline), using the -I option.

Or you can query or set the include path within a Maple session using the kernelopts command (see the item for includepath).

I make the strings in my $include directives be a reference relative to the location of the current file. And I ensure that the include path contains that (parent) location, when I read that file.

Hope that makes sense.

@greatpet Perhaps some of the following might help with organization.

If you're open to using plaintext files, then you can keep each module local procedure's definition in its own text file. You can then use the $include directive to source those from a (now shorter) module definition.

You can even use a directory structure to mimic the code layout, if your modules have submodules, etc.

(If your projects are advanced you can even get busy with the $define and related directives, for source aliasing and conditional source loading and so on. If you're used to such things in C then you might find it convenient.)

It sounds as if this might suited for contacting Maplesoft's Technical Support.

They'll likely want to know your Operating System details, and whether you have a Language setting (other that English), using a Maple language pack, etc.

@anthonyfl Sorry, but I am not sure that I understand why planes are better than lines, for a 3D contour plot to look like a 2D contour plot.

If you have some other orientation or detail in mind then please be specific.

(If desired, the x-axis tickmarks could be specified to lie at exactly the same values for the 2D plots and the 3D plots.)

P1 := plots:-contourplot(sin(x)*y^2, x=-Pi..Pi, y=-1..1,
                         labels=[``,``], axes=boxed, size=[300,300]):
P2 := plot3d(sin(x)*y^2, x=-Pi..Pi, y=-1..1,
             labels=[``,``,``], axes=boxed):
P3 := plots:-contourplot3d(sin(x)*y^2, x=-Pi..Pi, y=-1..1,
                           labels=[``,``,``], axes=boxed):

P1; P2; P3;

P4 := plots:-contourplot(sin(x)*y^2, x=-Pi..Pi, y=-1..1,
                         thickness=1, filled,
                         labels=[``,``], axes=boxed, size=[300,300]):
P5 := plot3d(sin(x)*y^2, x=-Pi..Pi, y=-1..1,
             thickness=3, lightmodel=none,
             labels=[``,``,``], axes=boxed):

P4; P5;

@anthonyfl If you plot a 3D surface then the surface can have contour lines. Are you asking how to get level sufaces (planes) instead of (or as well as) contour lines?

You should ask that in a separate Question, I think.

Do you want a re-usable procedure for it?

I can think of a few reasonably straightforward ways to accomplish that (and I'm sure that others can too). I expect you'd get a reasonable answer quickly.

Be sure to specify how much functionality you need. Do you need to be able to specify the degree of transparency, gray/color shading, and style easily for the planes? Does it need to support specifying those separately for each level surface, or can they be all the same? Etc.

@anthonyfl I did not notice earlier for which version your Question might have been tagged.

The support for contourvalue in the legend option is new for Maple 2020. That functionality was not present in Maple 2019.

Here is a link to the "What's New" pages for Maple 2020 which mentions this functionality.

Note that there are no examples such as you showed in the Maple 2019 Help page for Topic contourplot.

Here is that example, working in Maple 2020.1, with the spelling of typeset corrected (which is necessary). I changed from default coloring to make the contours more visually distinguishable to me.


contourplot(4*x^2+9*y^2, x = -10 .. 10, y = -10 .. 10, coloring = ["Orange", "Blue"], legend = typeset("the circle", 4*x^2+9*y^2, "=", contourvalue))




If you really need this kind of functionality in Maple 2019 then you could try the rough code I put in this old Post.

@rlopez That works if the focus was already on an Execution Group.

But simply typing the Enter or Return key is not enough for my Maple 18 or Maple 2020.1, Linux, if the pointer focus is inside a Text paragraph within the Section, or on its title as Text, or within a Document Block (paragraph) of a Document. In those cases I can still use the main menubar's item. For example, following selection of the whole Section, in Maple 18 I can still use Edit->Execute-Selection from the menubar.

It seems that the pointer focus has to be within an Execution Group, for Enter or Return to cause execution of all the whole selected Section.

In modern Maple versions (eg. Maple 2020.1) Ctl-= works for me in all cases I've tried (following selection of the whole Section, naturally). Unfortunately, there is no such keystroke acceleration in my Maple 18.

1 2 3 4 5 6 7 Last Page 1 of 434