Rouben Rostamian

MaplePrimes Activity


These are replies submitted by Rouben Rostamian

@aroche Thank you for prompt action on this matter!

@acer Thanks for the extra work.  Regarding the automatic coloring of different curves by display(), yes, I did see the redraw=false option noted in the help page.  I am not quite sure of its purpose, since setting the color option overrides the default colors.

Here is yet another curiousity.

My original example noted that the command

plots:-display(pic1, pic2, scaling=constrained);

plotted the diagram over an incorrect range.  Interestingly, specifying a color option fixes the issue and the curves are plotted over the correct range!

plots:-display(pic1, pic2, scaling=constrained, color=[red,green]);

So that's yet another workaround.

@acer Thanks for your comments and your offer of submitting a bug report.  Please do.

@nm Thanks for digging up that information.  In effect, the AI is providing a workaround.  It would be better if no such workaround were necessary.

@acer Also note that the right-hand side of initial condition y(Pi/2)=0 is not used anywhere.  There is no solution if the right-hand side is anything other than zero.

I cannot make sense of what you are attempting to do in your two worksheets.

In your statement you write "I define c by a 3 segment piecewise nonlinear function of H".  Perhaps that's what you intend to do, but your worksheets define c as a function of t, not H.  That's where things go wrong.

Here is a suggestion:

restart;
c := H -> piecewise(...expressions in H...);
H := t -> sin(2*Pi*t);  

Edit the above as needed, and then use c(H(t)) as the coefficient in your PDE.  Write again if problems still persist.

By the way, you have H and Ho in your worksheets.  It's not clear why there are two of them.  Need to explain that.

I can't tell what it is that is being plotted.  The code that you have supplied does not help.  To get useful help, state the objective in words.

@Andiguys As far as I know, the save(names, filename) command writes to and reads from filename in the current folder, unless you specify filename as a path to some other folder.  At least that's how it works in Linux.

Perhaps in Windows, filename needs to be given with an "m" extension, as in
save(p1, "p1.m");

I don't have Windows, so that may or may not help.  Try it.

Someone else who may have access to Windows may give more useful information.

 

@acer Oh, I see.  Your previous comment did not quite register with me, but now I see what you mean.  Thanks again for the explanation.

@acer Thanks for pointing out the overrideoption option.  I didn't know about it and I see that it can be useful.

On a related topic, do you know whether it's possible to set linestyle=dash in plottools:-contourplot?  I get solid lines only, no matter what I try, as in:

p1 := contourplot(x^2-y^2, x=-1..1, y=-1..1, linestyle=dash);
display(p1, overrideoption, linestyle=dash);

I don't quite know how to do dashed lines in a contour plot.  Here is how to do with solid lines.

At the end of your file case1.mw, add the two commands:

p1 := plots:-contourplot(func(x,y), x=0.03..0.15, y=0.02..0.1,
    colorbar=false, contours=conts,color="Red");
save(p1, "p1");

This will produce the contour plots and save the result in a file named p1.

Do the same in case2.mw, but replace the two occurrances of p1 with p2, and change "Red" to "Green".

Do the same in case3.mw with p3 and "Blue".

Then start up a fresh Maple worksheet and enter:

read("p1");
read("p2");
read("p3");
plots:-display(p1,p2,p3);
 

@nm Download the file Maple2025.2LinuxX64Upgrade.run from Maplesoft's website, and then in a terminal execute the two commands:

    chmod +x Maple2025.2LinuxX64Upgrade.run
    ./Maple2025.2LinuxX64Upgrade.run

The first command makes the file executable.  The second command executes its instructions.

@Earl Sure, just add a little bump near the center of the top face of the moving block.

@acer That's a nice construction.  The hemisphere may be plotted more efficiently in spherical coordinates.  Then there won't be a need to for an excessively fine grid.

As to your question "is the base circle/edge of his hemisphere ragged" regarding the answer posted by janhardo, the answer is no, it's not jagged in his third version, since the hemisphere is plotted in spherical coordinates.

@janhardo That's a very good, regardless of whether it's done by you or by an AI :-)

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