Mariner

667 Reputation

9 Badges

19 years, 258 days

MaplePrimes Activity


These are answers submitted by Mariner

You could do something like this: restart; eq := x+y+z=n; isolve(eq,{x,y,z}) assuming nonnegative; Please see ?isolve. Hope this helps. J. Tarr
You show a system of three ODEs, but no initial conditions or any information about the alphas, betas or gamma. (Incidentally, it is bad practice to use gamma, which Maple reserves for Euler's constant, and can lead to unexpected results.) Could you upload your worksheet, or give more details of your problem please. J. Tarr
Please see the help page at ?plots[interactive]. Follow the examples and then try using Tools> Assistants> Plot Builder. This will produce something like this: plots[animate](plot3d, [5.000000000*x^2+b*x+c, x = -5 .. 5, b = -5 .. 5], c = 0 .. 10); Click on the plot that appears and you will see something like a recorder's buttons appear in the Toolbar. Use these to play the animation. If you want to change the parameters, you can do this in Plot Builder, or in the command above. Hope this helps. J. Tarr
If you are using Maple 10, these help pages ?BVP and ?dsolve/numeric/BVP might be useful. Good luck, J. Tarr
The mean and sd commands in the Statistics module do not take an expression as an argument. Please see ?Mean[StandardDeviation] and ?Statistics[StandardDeviation]. If you want to obtain the sd and mean of the function f, you might do something like this: restart; with(Statistics): X := RandomVariable(Uniform(-Pi, Pi)); data := [seq(1-Re(exp(-I*X)/2),X=0..10)]; StandardDeviation(data); Mean(data); Hope this helps, J. Tarr
Given that the only variable is t, you don't need to plot spherical polars. Try this: restart; theta := (1/2)*Pi * (1+ (1/4)*cos(4*omega*t)); omega := 1; plot(theta,t=0..2,labels=["t","theta"]); Hope this helps, J. Tarr
Chris, I have just copied the code from my post above and pasted it into a new standard Maple worksheet (not a 2D document) and it works fine. That's with Maple 10.06. Changing the coords around alters the shape of the plot, but doesn't stop it appearing. If "b" is a constant, then give it a numerical value, say 1, vary omega and plot like this: restart; with(plots): phi := (omega*t); theta := (1/2)*Pi * (1+ (1/4)*cos(4*omega*t)); r := b; b := 1; plot3d([r,phi,theta],omega=0..10,t=0..2, coords=spherical,axes =boxed); Hope this helps a bit, J. Tarr
Chris, Unfortunately, there are differing conventions for spherical coordinates, so you should check which convention is used for the problem in hand. Maple uses two different conventions - mostly it uses the one described in the Maple 10.06 help page plot3d[coords]. (This is a left-handed set of coordinates). In the VectorCalculus package it uses a different convention described in the Maple 10.06 help page sphericalcoordinates,Definition. (This is a right-handed set of coordinates). Assuming that your problem uses the same convention as described in Maple's help for plot3d[coords], this should do what you want: restart; with(plots): phi := (omega*t); theta := (1/2)*Pi * (1+ (1/4)*cos(4*omega*t)); r := b; omega := 1; plot3d([r,phi,theta],b=0..2,t=0..2,coords=spherical,axes =boxed); Change the values of omega, b and t to suit your problem. If your problem uses the other (right-handed) convention, swap the positions of phi and theta in the plot3d arguments. Hope this helps, J. Tarr
A simple for loop prints statements executed within the loop if the loop terminates with a semi-colon. With more complicated loops, it is necessary to include a "print" command within the loop. Please see ?print. Hope this helps, J. Tarr
AFAIK it is not possible to do what you ask, but a work around would be to plot f(x)/12 and g(x), using the plot legend to make it clear which function had been scaled down. Please see ?plot,options. Hope this helps, J. Tarr
I suspect that your problems exporting a worksheet as text are caused by the presence of Maple output in the worksheet and use of 2D Maple input. Remove the output (Edit>Remove Output), then Select all the input, Right click and choose Convert to 1D Math Input. Another area of difficulty is discussed in TomM's blog here You asked about splitting up a big module. I have tried this and it worked for me. The penalty is that you need to load all your modules into a worksheet when you want to use them. Good luck, J. Tarr
Are you looking for something like this? restart; f := g(x,y,z); # define f as a function of (x,y,z) eq1 := diff(f,x); # differentiate f wrt x eq2 := f = 2*x^3 + 4*y + 5*z^4; # equate f to a specific function eval(eq1,eq2); # obtain differential wrt x of specified function eq3 := diff(diff(f,z),z); # differentiate f twice wrt z eval(eq3,eq2); # obtain double differential of specified function wrt z J. Tarr
Please see ?pdsolve and look for the example about quarter of the way down the page. Hope this helps, J. Tarr
The problem seems to be that because abs(x) is not evaluating to an expression, discont cannot evaluate 1/sin(abs(x)). These examples may be help to clarify the matter: restart; # example 1 discont(1/sin(y),y); restart; #example 2 y := abs(a*x+b*I); discont(1/sin(y),x) assuming real; Please also see ?_Z. Hope this helps a bit. J. Tarr
There are infinitely many solutions to the inequality, so Maple cannot solve it. J. Tarr
First 15 16 17 18 19 20 21 Page 17 of 23