MaplePrimes Questions

How do i make a curved arrow in maple 9.5 to show a rotaton arround an axis in a plot?
I have a maple worksheet (attached) that calculates a 2-D convolution. Should be easy, I would guess. The convolution of a gaussian and a gaussian is very fast-- this has a simple analytical result anyway. A gaussian and a sinc function can take a couple of minutes... and a gaussian and a bessel function takes longer than I can allow! I think I must be missing something here. I've tried various things, interchanging "int" and "Int" for the integration, and also seting digits to something low, by using evalf[4]. Sometimes it just maxes out all available memory before grinding to a halt, in other trials it will allocate about 300 MB and churn for hours. The worksheet is attached. I'd appreciate the advice.
Do any of you have any graphics software suggestions for adding lines, text, etc. in EPS plots generated by Maple? I have have mainly only used Photoshop for editing plots while working with LaTex, but I have increasely become dissatisfied with the results. Any suggestions? Thanks, Phil
> procA :=
proc ()
print ("Hello");
2;
end proc:
> procB :=
proc ()
local i;
i := procA();
end proc:
> procA ();
"Hello"
2
> procB();
"Hello"
2

The main that I want to get is:
if it was executed procA, it should show "Hello" text and the 2 number, but if it was executed procB, it should show only the 2 number, it shouldn`t show "Hello" text.
What can I do to get this special result in procB?
Hi,

I am trying to ease my c coding work with the "CodeGeneration" tool in maple. The Idea to generate ready to use functions is quite thrilling.
In my attempts to generate code I entontert two problems.
First it seems to be impossible to assign local vectors to vectors passed in the argument list:

> MapX := proc (X\_out::Vector(2), X\_in::Vector(2), PRO2RO::Vector(2))
> local X\_t :: Vector(2,0), i;
> X\_t[1] := PRO2RO[1];
> X\_t[2] := PRO2RO[2]*10;
> X\_out := X\_in + X\_t;
> return;
> end proc;

here the assignment X\_out := X\_in + X\_t; is not recognized.
Hi, is it possible to define a variable for example "x" upon which it depends whether an execution group in a worksheet will be excecuted when clicking on !!! (Execute whole worksheet) or not? Illustration of the idea: x:=1; if x=1 then execute execution group else do nothing end if; I am thankful about any ideas!
I have an expression, lets say x^2+ y*z^2+y^3 and I want to divide it with x*y and I want the output to be x/y+z^2/x+y^2/z How do I do this?
Can anyone tell me why "type" answers "false" and why do I get an error message, from the following simple code sequence (Maple 10)?

Thanks

restart;
> testp:=proc(m);
> if (m=0) then 0;
> elif (m>0) then 1;
> elif (m<0) then -1;
> end if;
> end proc;
> assume(n,posint);
> about(n);
> type(n,posint);
> is(n,posint);
> testp(n);
> testp(-1);

testp := proc(m)
if m = 0 then 0
elif 0 < m then 1
elif m < 0 then -1
end if
end proc

Originally n, renamed n~:
is assumed to be: AndProp(integer,RealRange(1,infinity))


false
Hello, I'm a complete Newbie. The first thing I did was to take the "10 Minute Tour" which is accessed through the help file. One of the things this tour has you do is to create an animated plot, which I did. However, the doc says "Clicking on the plot enables the animation toolbar.". Well, I click on the plot and my cursor turns into a curvey arrow, which let's me twist the plot around, but I don't get any animation toolbar. Could someone tell me exactly where and how to click to bring up the animation toolbar. The doc also mention an "animation slider". How do I get that? -Thank
#1 Typically, on plots, removable discontinuities are represented by a small cicle at the discontinuity. How can such an object (i.e. the circle) be generated, preferrably automatically, by Maple at these points. #2 Also, if, for example, the signum function is plotted (i.e. a step discontinuity at x=0). How is an open circle plotted at (0,-1) and a closed circle plotted at (0,1)? Thanks in advance.
Hello everyone, I asked yesterday a question in the newbies section. I have found a partial answer which I detail further down but still have some questions and errors. I hope someone can give me a hand. Thanks. The question is more or less the following: Given the parameter k. One declares a nested list like the following: L[n[1],n[2],...n[k],m[1],m[2],.... m[k] ], where all 'n' and 'm' indexes run in the interval: n[i] =0,1,.. ,d-1 m[i] =0,1,.. ,d-1 QUESTION: How can we translate this list into a square matrix of dimension d^k that has the indexes:
Hi I need to find out the index of a dae, is there a maple command that does this for me?
Hello everyone, I am trying to create a procedure to translate a matrix into a nested list. (in Maple 10) I actually want to transform the matrix A[i,j] whose indexes are in the interval i,j=1,2,... d^k in a list: L[n1,n2,...,n2k] whose indexes are in the intarval n1,n2,...n2k = 0,1,2...,d. For instance, a transformation of indexes could be: for i from 0 to d do for j from 0 to d do for k from 0 to d do for l from 0 to d do L[i, j, k, l] := DM*([1+(sum(d^(i-1)*n[i], i = 1 .. k)), 1+(sum(d^(i-1-k)*n[i], i = k .. 2*k))]) od: od: od: od: But I would actually like to indtroduce k and d as parameters of the procedure. My problem is then how to say:
#1 Typically, on plots, removable discontinuities are represented by a small cicle at the discontinuity. How can such an object (i.e. the circle) be generated, preferrably automatically, by Maple at these points. #2 Also, if, for example, the signum function is plotted (i.e. a step discontinuity at x=0). How is an open circle plotted at (0,-1) and a closed circle plotted at (0,1)? Thanks in advance.
Hello, In a Maple graded question (mode=Maple@) the type (formula, or maple synthax) allows us to choose one of two possible ways of parsing student answers. I would like to write questions where i can choose, or provide, a parser to parse student answers into Maple expressions. Given a Maple parsing procedure myParser(ans::string), i can set mode=Maple@ maple=evalb(myParser($RESPONSE));@ and then ask students to write their answers inside quotes, so that their answers get parsed as strings. Besides being ugly, i'm afraid this aproach will lead to many wrong answers of students who forget to quote their input.
First 1728 1729 1730 1731 1732 1733 1734 Last Page 1730 of 1775