MaplePrimes Questions

GCD := proc (a, b) local sol, x, y, eqs, vars; vars := [x, y]; eqs := [Typesetting:-delayDotProduct(cos(x), sin(y)) = 0, y+sin(x) = b]; sol := solve(eqs, vars); sol end proc

I tried to convert this code into C, using C(GCD) and got an error message that target language may not recognize commands like solve etc., which is obvious. Please let me know if there is any way to convert procedures involving such commands into C code.

I am using CodeGeneration[Fortran] to generate a Fortran subroutine.  The subroutine simply takes a vector state as input and generates a large matrix as output.  However, upon calling "Fortran" I have been getting the following warning that I have not been able to figure out:

"Warning, character limit for Fortran77 statements exceeded; please filter input through codegen[split] first."

If anyone can provide some tips, I would appreciate it.

I have got an equation of Sum.i want to split the eqution three parts of Sum,how can do?

ans:=sum(I*`ℏ`*(diff(c[n](t), t))*phi(r)*exp(-I*omega[n]*t)-(1/2)*E[0](e_.r_)*e*c[n](t)*phi(r)*omega[n]*exp(-I*omega[n]*t+I*Omega*t)-(1/2)*E[0](e_.r_)*e*c[n](t)*phi(r)*omega[n]*exp(-I*omega[n]*t-I*Omega*t), n = l .. k)

i want to  result like this

ans1:=sum(I*'ℏ'*(diff(c[n](t), t))*phi(r)*exp(-I*omega[n]*t), n = l .. k) = sum((1/2)*E[0...

Hi, I have recently started working with Maple. I need some help with solve command.

 

VectorCalculus[`*`](cos(x), sin(y)) = 0

y = VectorCalculus[`*`](2, sin(x))

Now if I run solve on above two equations for values...

Not sure why pdsolve is choking on my input.  The file is attached below.  It works fine for my first expression if the term without the square root sign is not included.  When I include that term as you will see at the end it simply does nothing?

 

Any advice??



I keep getting this error,

 

not matter what command. 

 

How can I solve this please?

Please help,

how can i create hierarchical tree whith maple 10.

Forexample i have data and i want to make hierarchical tree

thanks

We have been asked to write a general code for the revised simplex method in Maple.  We have been trying for several days but haven't got anywhere.  We think we have written (a very basic) code for the first iteration but we don't know how to do a loop so that it keeps going until the solution has been found. 

PS its a maximisation problem.

Using SVD to underst.mw

Hola ev1;
In the procedure PLOTSVD, I get the error
"Error, (in SVDPLOT) invalid input: linearalgebra" SingularValues Expects output value for keyword parameter to Be of type {list (identical (U, S, Vt, list)), identical (U, S, Vt, list)}

Hello

I would like to construct 2 statements of the form

plot1=odeplot(...)

plot2=odeplot(...)

and then write one command that plots both plot1 and plot2, something like

unknown_command([plot1,plot2])

Is this possible?

Thank you!

 

Hey folks, I'll give you the actual problem I'm trying to solve before I show you my code in case anyone can think of a better idea...

Long read but you can ignore the examples and additional info if you don't need it.

 

Take the doubling map,

f(x) = 2x if 0 <= x <= 1/2

f(x) = 2x - 1 if 1/2 < x <= 1.

 

Or in maple code, f := x -> piecewise(x<=1/2, 2*x, 2*x - 1):

 

This looks...

Hi!

I've got two Sums vith variable arbitrary boundaries:

a:=Sum(x(i),i=n..m);
b:=Sum(x(i),i=n-1..m+1);

I would like to substract theese sums and I want Maple to simplify the result to

x(n-1)+x(m+1)

Is that possible?

Hi,

Is there some way to turn off the hypertext error messages Maple generates? It can be very cumbersome getting rid of them and they usually don't give me any sort of valuable info.

Thanx for any ideas...

Hello,

 

When I multiplify some terms like

 

(x+k-n+5)*(x-3k+n^2+2)

 

I get a long expression. Nevertheses, I would like to rearrange first according to the power of k (in other cases, according to n). Is there some command to rearrange my polynomials?

 

Thanks for you attention,

 

Jean-Jacques

 

 

 

 

 

How would I write a procedure that extracts what is under a squareroot sign? For example given the expression 1+2*\sqrt(x+1) the procedure should return x+1.

 

Best regards,

henriqo

First 1921 1922 1923 1924 1925 1926 1927 Last Page 1923 of 2431