MaplePrimes Questions

What is the proper method for converting an extended numeric with a zero imaginary component to a real? It should leave the complex part alone if it is not zero. That is, somefunc(1.0 + 0.*I); 1.0 somefunc(1.0 + 1.*I); 1.0 + 1.*I I can write my own procedure, but there must be standard way (somefunc) to do this. Searching the help browser didn't help. Thanks.
I want to know how to send mails to multiple email addresses using PHP code. Thanks.
what's the command to find if 2 is an element of {1,2,3,4,5,6,7} to return true?
How can one set math as the default input mode for a worksheet when using Maple Input notation? I find that creating a new execution group always puts me back in text mode. Of course, I fail to notice this and enter math expressions with annoying results. 2-D Input Notation will remain in math mode. I am using OS X (10.3.9).
Hi, I am trying to solve a maximization problem using the following Lagrangean: L:=v*K*a^gamma*k^(1-gamma)-1/2*a^2-1/2*k^2 -1/2*r1*v^2*sigma^2-1/2*r2*(1-v)^2*sigma^2 -mu*(v*K*gamma*a^gamma*k^(1-gamma)/a-a) -lambda*((1-v)*K*(1-gamma)*a^gamma*k^(1-gamma)/k-k) I first computed the partial derivatives for a, k, v, mu and lambda (La:=diff(L,a)=0, Lk:=diff(L,k)=0, ...). (K, gamma, r1, r2 and sigma are constants) Then I applied solve ({La,Lk,...},{a,k,v,lambda,mu}) and did not get any result (or message) back. I already tried to solve this problem by step-by-step calculations, but was not successful in getting solutions for a, k and v (stated in terms of gamma, r and sigma). When I make the problem simpler (by setting r1:=0 and r2:=0) I get a solution.
Can Maple be used to create solids of revolution by rotating intersecting plane curves or a single curve bounded by certain intervals about lines or the cartesian axes ? If yes can someone help with the steps to accomplish this ?
hi how i get all the roots? > fsolve('P2(x)=0',x=0..1); 0.7653758275 > fsolve('P2(x)=0',x=0..0.6); 0.1740920943 > fsolve(P2); 4.274188187 i need the smallest root and P2(x) is numerical solved it's not continius
pls check the attached worksheet ... any reason for that behaviour?

PS: not attached due to some oddity of the forum software,
"Error attaching file 102_strangeRoot.mws: exceeds maximum file size"

so take it from
(or *.zip if perfered, it is below 4 kB anyway ...)
I'm trying to figure out how to fit the data below to a curve of the form: a+b*sin[(pi*x)/6-c] How do can I do this in Maple 10? 1,43.2 2,47.2 3,53.7 4,60.9 5,70.5 6,82.1 7,88.0 8,86.0 9,77.4 10,66.0 11,51.5 12,44.1
Is it possible with Maple 10 to change a document so that in the middle, there are two columns? One might imagine having some text describing how data was gathered where the text is spread over the usual six inches or so. Reading on down the document, the style might change to two columns: a graph of the data in the right column and comments on the data in the left. After this, the document could revert to the normal six inch, full line text. Did I not see something such as this in a demo at the Maple Summer Conference?
I want to display a 3dplot of a current

iL_RMS_3dplot_Ue_const:=plot3d(iL_RMS_func_Ue_const, 0..2, 0..1, axes=normal, title="RMS current through the inductor with Ue constant and Ua variable", labels=["Ia_IaLGmax", "Ua_Ue", "iL_RMS_Ue_const"]);

together with an output curve. The output curve (which is two dimensional) should have as the z value in a 3d plot the value of iL_RMS_3dplot_Ue_const at that place. I have uploaded an example to (the blue curve is the output curve). Is it possible, without recalculating the z value with a function to call, to extract it from the iL_RMS_3dplot_Ue_const plot data structure with an op command or something similar. The 3dplot command for the output curve should look somehow like this:
I don't understand, why maple has problems with the following command:


It seems that Maple doesn't call the funciton iL_RMS_func_Ue_const with the function variables Iatest and Utest. Instead it just uses the variable names Iatest and Utest. I get the error message:

Error, (in iL_RMS_AVG) cannot determine if this expression is true or false: 46.87500000*Iatest <= .1250000000*(1500-1500*U_test)*U_test

How do I get Maple to use the actual Values of Iatest und U_test? Below are the functions which are related to the problem.
Hi, All, Please look at this example. I am using Newton's method to solve for the equation x^2-a=0. > restart: > Digits := 30: > f :=x-> x^2-a: > df :=x-> 2*x: > for a from 1 to 6 do > x0 := trunc(sqrt(a)): > for j from 1 to 5 do > x1 := x0 - f(x0)/df(x0); > x0 := x1; > rsd := f(x0); > end: > printf(`%3.10f\t %3.10e\n`, x0,rsd): > end: Now, I want to plot the solution x and the residue rsd against a in 2 separate figures, how to write the code? David
Hello everyone, I was wondering what is the syntax to put a boundary condition like in the dsolve command? I can do simple ones like v(0) = 0, but I don't know how to input boundary conditions involving a derivative ... Onto my second question: Is it possible to include a delta function within a Maple differential equation? I'm interested in the differential equation of EI v'''' + P v'' = Q
I've been exploring the link between Maple and Matlab, and there seems to be no documentation on how to use Maple to call commands (or .m files) in Matlab. On the other hand, it doesn't state that this is not possible. Has anyone else looked into this?
First 2321 2322 2323 2324 2325 2326 2327 Page 2323 of 2329