MaplePrimes Questions

Does anyone know how to extend CodeGeneration[C], using AddFunction, so that the new function's signature matches a specific type of Matrix/Vector/Array?

By specific type I mean a match for a specific combination of indexing function, hardware datatype, order, and storage.

I haven't even had success using the 'anything' type in the signature, for (C) array arguments, for examples with the new function used within a proc and not just as an inlined example.

First the new function's "definition",

Hi,

eq1:=(3+Pi)*x^2*sin(x^2)

Is there a way to select then remove the x^2 alone but not in the sin( )

 

Mario

Ok, i am trying to plot the function abs(H)^(1/2) * sign(H). This function should be negative when H is negative, but for some reason the " * sign(H) " is having no effect on the plot, the plot is an even positive function rather than an odd function as it should be.

When I manually evaluate this function with a negative H using maple, a negative value is given back to me, however not in the plot... why is this.

Hello,

I'm new to Maple and am having some difficulty with solving a system of non-linear equations. Here are the equations:

Mt=M+K1*M*I+K2*M*I^2+K3*M*Z

It=I+K1*M*I+K2*M*I^2

Zt=Z+K3*M*Z

The values of Mt, It, K1, and K2 are known. I have a set of experimental values for Zt, and I can put in an initial guess of K3.

I need to determine a value of K3 that will satisfy the follwing: Acalc-Aobs=0, where Acalc=650*I+36800*K1*M*I+51000*K2*M*I^2.

Hi,

I'm using the solve commando to solve the next equation :

_EnvAllSolutions:=true:

solutions:=solve({2*x+3*lambda*x^2, 2*y+3*lambda*y^2, 2*z+3*lambda*z^2,g},[x,y,z,lambda]);

It's giving me a lot of solutions, but only a few are Real, most are complex and are not of use for the subject. I'd like to filter so it only gives the Real solutions. Already tried the package with(RealDomain)...but then it doesn't return any solutions.Also tried some assumptions yet, but didn't change anything.

Any hints whether this is possible or not?

Thanks.

Is there a quick way to remove a value corresponding to a given row and column position from within a table?

 

For example, say I wanted the result written out for the 4th column, 3rd row, and all I'd have to do would be enter say row:=3;  column:= 4; and have the data written out.  I've done something before like this in Excel with an IF command, but I can't get it working in Maple.

How can I export data that recieved from plot to external file

Both Mathematica and Maple have no procedure for stopping an out-of-control, non-terminating computation, except for pulling the plug on the comptuer. Whenever I give Maple a computation which is too big for it to handle, it not only does not return an answer, but it crashes my entire computer. It makes dragging up any other windows nearly impossible. There is no "stop" or "escape" key.

I'm dealing with an equation of the form shown below:

E-I*(Pi-5)^.5*r*(cos(2*phi)-sin(2*phi))

Basically, I am trying to solve for E in polar co-ordinates, across a radius of r, in a given range of phi = 2*Pi - so, for a given value of r, there would be several values of E around a circle. I was toying with the idea of using the fsolve command to solve for the range of r first, then create a data matrix, then continue solving for phi, but I have no idea how to bridge the gap between the two. Thanks.

Hi, I have to solve several linear equations containing vectors and matrices symbolically. For example, I want to isolate for one variable in such an equation. Unfortunately, maple does not know that the variables are vectors/matrices and divides by them instead of multiplying with the inverse from the left, or matlab exchanges the order of the variables because it "thinks" they are scalars. Does anybody know what I can do to prevent this? Is there a special Toolbox for those calculations? Can I assign the variables a type like scalar/vector/matrix? Thanks, Zebro

i was able to solve this equation before, am i doing smth wrong

> infolevel[pdesolve]:=5:
> pdesolve(-a*u(t,x)+diff(u(t,x),t)+b*diff(u(t,x),x,x)=0,u(t,x));
pdesolve/analyze:   equation order   2
pdesolve/analyze:   derivatives in equation:   {x, t}
pdesolve/analyze:   linear equation
pdesolve/exact/2:   Do not know how to handle equation

 

 

 

Using the geometry intersection command in a loop, each time there is no intersection found, the message "intersection: there is no point of intersection" is printed. Using printlevel:=0, does not suppress printing of this message. Is there another solution?

how do i convert a image into a matrix in maple ....as we did in matlab ......if maple has such a capability ?

I am a beginner in maple.
I encountered a difficulty in solving the below equations:
I have four equations :

192.5 = 6.8889*10^8*(X1/(exp(1199.562077/Y1)-1)+X2/(exp(1199.562077/Y2)-1));
977.9 = 1.755442918*10^7*(X1/(exp(575.7897971/Y1)-1)+X2/(exp(575.7897971/Y2)-1));
4642.7 = 2.20449676*10^5*(X1/(exp(239.9124155/Y1)-1)+X2/(exp(239.9124155/Y2)-1));
6139.8 = 17143.12466*(X1/(exp(143.9474493/Y1)-1)+X2/(exp(143.9474493/Y2)-1));

I would like to calculate X1,X2,Y1,Y2 from the above equations.

Hello, How do I calculate summations represented on paper in the sigma format? Example, part (c) here: http://www.mathhelpforum.com/math-help/151784-post2.html Would appreciate assistance. Best, wirefree
First 2226 2227 2228 2229 2230 2231 2232 Last Page 2228 of 2426