Rouben Rostamian

MaplePrimes Activity

These are replies submitted by Rouben Rostamian

@nm What is the utility/software shown in your screen capture, and it is in what operating system?

@Axel Vogt The ultimate goal to to insert the saved graphics in LaTeX articles which the students write.  Saving in raster formats, such as gif or jpeg produces poor results.  EPS or PDF are the right choices there.  We chose PDF for various secondary reasons.

@Markiyan Hirnyk Yes, I know about the problem that you have shown in plot1.pdf.  I get a similar result when I attempt to export a graphic interactively.  I think this is a bug in Mathematica implementation on Linux.

The Export[] command, however, works just fine, as in Export["plot2.pdf", %].   See: plot2.pdf

@Alejandro Jakubi thanks for your input.  I suspect that Maple is not capable of doing this.  This is unfortunate, since I see that as a factor that drives my student away from Maple and toward that other competing CAS which does handle PDF exports properly.

This is not a big problem for myself personally—I work exclusively in Linux where I export Maple's graphics as EPS, then from the command-line I apply epstopdf to convert to PDF.  However, my undergraduate students who work on platforms other than Linux don't like command-line tools, so they are turned off by Maple for this reason.

This is a serious issue for Maple's marketability, and I hope that it will be addressed soon.



The choice of alpha < Pi/2 versus alpha <=Pi/2 is not at issue here. The range 0 <= alpha < Pi/2 corresponds to the entire sheet of the hyperboloid which has infinite extent, and therefore it won't fit in your computer screen.  You will have to cut alpha off at a finite distance away from Pi/2 to produce a finite sheet.  I chose to cut it off at Pi/3.

As to:

> limiting alpha to the positive domain gives one of two sheets

Extending alpha to the negative region will not produce the other sheet.  Your formula is that of a single sheet of a hyperboloid.  To get the other sheet replace the vector v by -v.

As to:

> Assuming v to be an elementary unit vector is too limited.

The choice v = <1,0,0> was only for illustration.  You may take v to be any unit vector that you wish.  If it is not a unit vector, e.g., v = <1,2,3>, then divide it by its own length, that is change it to v = <1,2,3>/sqrt(14).  That normalizes it to a unit vector.


@spm71 In your original question you wrote that you want to type the commands into a file and then execute the file.  But now you write "when I type ... in the command prompt...".  So, do you want to write commands to a file, or type them at the command prompt?

Anyway, when you type at the command prompt, pressing "Enter" tells Maple to go ahead and execute what you have typed.  However, "for i from 1 to 5 do" is not a complete command, so understandably Maple refuses to execute it.  To break a line rather than execute it, hold down then Shift key and then press Enter.

As to your question regarding executing a file, I have already written that you do it in Maple with the command:

    read "thefilename";


@Carl Love That's interesting.  Following your line of investigation, I produced the following minimal example which demonstrates the problem:

> eq := Pi*x = piecewise(t<1, 2 , 3);

> solve(eq, x);

> plot(%, t=0..4);

Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct

As you have pointed out, the problem is that the pieces of the solution are expressed as lists rathen than simple expressions.  I will report this to Maple Support for a possible fix.


@H-R I know nothing about Word so I cannot be of help here.  I think writing mathematics in Word is quite uncommon.  Most mathematics is written in LaTeX, and the EPS format integrates quite nicely with LaTeX.

@Carl Love Thank you very much for your very thorough explanation of the issue.  I should have looked at the case x$0 more closely.

@sazroberson I have had no problems with exporting images in the EPS format and including them in books and journal articles.  Perhaps erik10's needs go beyond the basic usage which I have dealt with.

That said, I do realize that a major shortcoming of the EPS format is its inability to handle transparency, but that is not a fault of Maple; it is a limitation of EPS.  In a few cases where I have had to deal with transparency, I have exported the image as PNG and then wrapped the result in EPS.


@nm This one is simpler:


f := x -> x + 3;

seq(f(x), x=50..70, 5);


@Carl Love If so, then how do we explain this:

P := 5*a*b;


                    5, a, b

subs(a*b=4, P);


@Kitonum I think the following is a cleaner way for checking for correctness:

sol := solve({seq((pii.P)[i]=pii[i], i=1..6)});

eval(pii.P - pii, sol);

                    [ 0.    0.    0.    0.    0.   0. ]

@Kitonum You wrote pii.P[i] while you meant (pii.P)[i].  After that correction we get


Thank you all for your replies and interesting discussion.  It appears that Kitonum's solution, that is,

collect(algsubs(1/(T[1]*V[2])=U, B), U);

is the most effective in this case.  Carl Love's sentiment regarding algsubs()'s quirks is duly noted.

First 88 89 90 91 Page 90 of 91