Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I keep getting this error,

 

not matter what command. 

 

How can I solve this please?

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)}

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?

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

 

 

 

 

 



Hi, I have been given a question that involves plotting the sloutions to an equation over the range 0<><>

Dear Maple users

Often I use Maple for solving problems in Physics. Maple does indeed a nice job when calculating expressions containing units. However when I want to plot functions containing units it sometimes work and sometimes not. Look at the following example: 

Using the Open Maple application program interface (API), the ExternalCalling module, a C compiler, and some basic understanding of the Maple data structure format, you can create Maple utilities that run nearly as fast as Maple builtin procedures.

To show how this is done, I will start with a simple example and then proceed to a slightly more complex procedure that improves ?ListTools[SearchAll]

I'm using the commands:

RungeKutta(d/dt(y(t))=-y(t),y(0)=1,t=1,submethod=rk4,output=plot,numsteps=10);

Euler(d/dt(y(t))=-y(t),y(0)=1,t=1,output=plot,numsteps=10);

Each of these commands yields its own serperate graph.  How can I plot both on graph to see how the approximations vary?

 

Thanks!

Hi,

I am presented with a list of known roots to a polynomial. How can I reconstruct the original polynomial with a variable "x"  from the given roots?

The list of roots is: [-1/2,2/3,7/3,4+3I,4-3I]

Hi,

I have the following function:

y(t) = _C1*exp(-2*t)*sin(6*t)+_C2*exp(-2*t)*cos(6*t)

My start parameters are y(0)=1, and y'(0)=2

How do I isolate _C1 when y(0)=1?

 

Thanks in advance

My code works fine when not part of a procedure it is only until I turn it into a procedure when I have problems. After running the proc once I get:

"Error, (in opt) cannot determine if this expression is true or false: min(`.`(Transpose(Vector(1, {(1) = 7})), ..."

Strangely if I execute the proc() code a second time and try again I get an answer out. Any suggestions as to how I can solve this problem?

I have (which I believe is where the problem lies),

Hi 

 

Hi have made my first package in maple, and need some help. I've got a funktion, and need maple to put something into this function.. 

 

Dams := proc (a, b, c)

local A, f;

 f(x) := a;

printf("\nDin funktion er %a", f(x));

 A := diff(a, b);

printf("\nDen differentierede funktion er %a", A);

use x = c in f(x);

 printf("\n%a i ligningen ", f(x));  ...

First 1745 1746 1747 1748 1749 1750 1751 Last Page 1747 of 2224