530 Reputation

11 Badges

8 years, 182 days

MaplePrimes Activity

These are questions asked by sand15


I have written a module M which contains some procedures P1, P2, ...
This module contains the statement option package.

In a separate worksheet I type the command L := with(M) to load this module and stack in the list L the names of all the procedures M contains.
I would like now to use showstat to display the content of all these procedures..

I thus typed:
for p in L do  showstat(p) end do;

I got an error saying that showstat expects a name as argument.
In the command above p is not a name but a symbol.

Is there a possibility to "showstat" all the procedures M contains ?

Motivation:I'd like to count the number of command lines in module M (showstat removes the lines of comments) ... maybe there exist an other way than using showstat ?

Thanks in advance

I had written some help pages in Maple 18 that I just migrate in Maple 2018.
This seems correct except one single point: when I try ot access them from the help menu, their names are preceeded by a  "WS" label and, when I click on it, the help page appears in a new window of my Maple's session, not in the help window.
I guess "WS" means "WorkSheet" ?
How can I force the halp page of "my" function to appear in the main help page window?

(hope I was clear enough)

Thanks in advance


I'm surprised by the result of the procedure VectorCalculus:-Curvature which is always a positive scalar quantity:
For instance
c := VectorCalculus:-Curvature(<x, sin(x)>, x):
plot(c, x=0..2*Pi) 
# c >=0 for all x in [0, 2*Pi]

In the help pages it's written that the (signed) curvature for a function y(x) is y''/(1+y' 2)(3/2).

y := sin(x):
c := diff(y, x$2) / (1+diff(y,x)^2)^(3/2):
plot(c,  x=0..2*Pi) 
# c < 0 if x in (0, Pi)  and  c > 0 if x in (Pi, 2*Pi)

Could you please help me to understand this?

Thank in advance


Does anyone know how the command PLOT(POLYGONS(...)) fills  polygons?
I'm interested in polygons that are not simple, that is polygons for which 2 different sides without common vertex do not intersect.

Thanks in advance


Is it possible to change programmatically the permissions of a file without using ssystem?
Such as in ssystem("chmod +x MyFile") for instance


2 3 4 5 6 7 8 Last Page 4 of 20