Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Greetings to all.

A recent post at math.stackexchange.com asked for good approximations to pi using the nine nonzero digits, the four arithmetic operations and exponentiation. The problem definition definitely suggests a computational solution, which is actually non-trivial because the search space of all legal mathematical expressions over the nine digits and with the aforementioned operations is so huge that it cannot possibly be searched exhaustively.

Hi,

I have the following code which solves a system od ode (3 ode) with constraint parameter. actually, this algorithm is time consuming and is not effective as I see that some people solve this odes with matlab in an efficient (qucik) way. So, I ask you if it is possible help me to improve the efficiency of the following code

thanks

restart:
eq1 := diff(u(eta), eta, eta)+diff(u(eta), eta)/ (eta+zet)+Gr*Pr*T(eta)-Nr*phi(eta)+sigma1;
eq2 := diff(T(eta), eta, eta)+diff(T(eta), eta)/(eta+zet)+Nb*diff(T(eta), eta)*diff(phi(eta), eta)+Nt*diff(T(eta), eta)^2-u(eta);
eq3 := diff(phi(eta), eta,eta)+diff(phi(eta), eta,eta)/(eta+zet)+ Nt/Nb*(diff(T(eta), eta, eta)+diff(T(eta), eta)/(eta+zet))-Le*u(eta);
zet:=0.1:
Nt:=0.05;
Nb:=0.05;
Le:=10;
Pr:=1;
Gr:=5;
Nr:=0.1;
Ree:=5;
#sigma:=2;



p:=proc(pp2) option remember; global res,F0,F1,F2;
if not type([pp2],list(numeric)) then return 'procname(_passed)' end if:
res := dsolve({subs(sigma1=pp2,eq1)=0,eq2=0,eq3=0,u(0)=0,u(1-zet)=0,phi(0)=0,phi(1-zet)=0,T(0)=0,T(1-zet)=0}, numeric,output=listprocedure);
F0,F1,F2:=op(subs(res,[u(eta),phi(eta),T(eta)]));
evalf((2/(1-zet^2))*Int(F0(eta)*(eta+zet),eta=0..1-zet))-Ree*Pr;
end proc;

fsolve(p(pp2)=0,pp2=(-80)..(80));   # I dont know what exactly this parameter has
#res := dsolve({eq1=0,eq2=0,eq3=0,u(0)=0,u(1-zet)=0,phi(0)=0,phi(1-zet)=0,T(0)=0,T(1-zet)=0}, numeric);
 

sigma1:=%;
                             
res := dsolve({eq1=0,eq2=0,eq3=0,u(0)=0,u(1-zet)=0,phi(0)=0,phi(1-zet)=0,T(0)=0,T(1-zet)=0}, numeric);
with(plots):
odeplot(res,[[eta,u(eta)],[eta,phi(eta)],[eta,T(eta)]],0..1-zet);

 

I have saved array calculated with Digits:=5000. Now I want to save it with Digits:=2500. I tried this


read "C:\\math\\lambda5000.mpl";

Digits := 2500;

LArr2500 := LArr5000;

save LArr2500, "C:\\math\\lambda2500.mpl"

But this don't work...

Hi,

I have a problem solving two equations with trigonometric functions. They are as follows:

eq1:= 9180pi - 16295.070arccos(-1.0 + 0.001356852103xu) + 22.1100sin(-1.0pi + 1.0arccos(-1.0 + 0.001356852103xu))(737.0-xu)+7115.0700arccos(-1.513347022 + 0.002053388090xu) - 14.6100sin(-1.0pi + 1.0arccos(-1.513347022 + 0.002053388090xu))(737.0-xu) + (0.1050As(xu-125)/(1349-xu)) - 0.1050As = 1688

eq2:= 9180pi- 16295.070arccos(-1.0 + 0.001356852103xu) + 22.1100sin...

t0 := arccosh(lambda/(s*(1-lambda)))

f := int(sqrt(lambda-s*cosh(t)/(1+s*cosh(t))), t = -t0 .. t0)

s := 1/10

with(Student[Calculus1])

g := f-Pi*(0+1/2)

Roots(g, lambda = 0 .. 1, numeric)

Why does maple say:

Error, (in mod/Expand) too many levels of recursion?

r(t) = RootOf(Int(_a/sqrt(-4*_a^4+5*_a^2-1), _a = 1 .. _Z)+t), r(t) = RootOf(Int(_a/sqrt(-4*_a^4+5*_a^2-1), _a = _Z .. 1)+t), r(t) = RootOf(Int(_a/sqrt(-4*_a^4+13*_a^2-9), _a = 1 .. _Z)+t), r(t) = RootOf(Int(_a/sqrt(-4*_a^4+13*_a^2-9), _a = _Z .. 1)+t)

ist my result of an ODE

g := dsolve([oder, r(0) = 1, (D(r))(0) = 0])

oder := diff(r(t), t, t) = 4*sqrt(1-(diff(r(t), t))^2)+(1-(diff(r(t), t))^2)/r(t)

Now usually maple gives me one solution, so I can just plot with

Hi all,

This might be more a mathematical problem than a Maple problem, but still maybe somebody could help me out.

I am trying to solve the differential equation of an Euler-Bernoulli beam with an distributed load (q1) and a varying axial force (N(x)). The following equation applies:

 

 

I have a rather large number of combinations to search and would like to use Task in order to take advantage of my multicore machine. The easiest way it seems to me to use Task to break up the total number of combinations into say, four pieces. Any one familiar with Task have any suggestions?

Hello Folks:

I'm trying to generate a plot of a procedure that uses fsolve and I get the following error message:

> implicitplot(IC(2, x, y, 1, 1), .1 .. .9, -1 .. 1, filled = true, numpoints = 10);
Error, (in fsolve) x is in the equation, and is not solved for

It seems that Maple is passing x to the procedure IC and not the numerical value of x.

I tried, without success,  to delay the evaluation as suggested here

I have some automatically generated maple code. The code is in fact entirely within a single MAPLE object module. The auto generated code is ugly; fixing it is not feasible. Dealing with it by hand is not feasible.

 

If you have an ugly MAPLE proc, and just want to get a standard format for the code in the proc, you can print the proc in a maple command window and copy-past it back into the source file. *poof* it looks better. You loose the comments but who needs those anyway :...

Hi,

I'm trying to generate all the possible combinations of each M[i] according to the possible values for c,d and e. The code I have here generates some of them but not all - it misses out the combinations when the two or three elements in the square brackets are different ie. 

it generates
[{1}, [{1}, {1}], [{1}, {1}, {1}]]               
[{1}, [{2}, {2}], [{2}, {2}, {2}]]             

Hello guys,
I'm newb with Maple and trying to solve the following nonlinear recurrence system:

rsolve ({L(0)=1,L(n)=1.025*L(n-1),h(n)=L(n)/(1.1*L(n)-0.1*v(n-1)),v(0)=0.5,v(n)=(1+h(n))*v(n-1)},{L,h,v});

But Maple returns me nothing, no error. What's might be the problem?

Thanks in advance.

In the following task procedure, when i>1, it works well,but if i=1, the task(M,1,5) returns error

restart

Hello,

I've just asked maple to plot a(s) from s=0 ..10 where a(s) is the absaolute value of a complex piecewise function. When I enter the command to plot:

> plot(a(s), s = 0 .. 10, discont = true);

maple just shows 'Evaluating' and fails to produce anything. I've left it for up to 20 minutes without any result. Maple has successfully plotted very similar things before in a matter of seconds so I don't think time is an issue here. The full script is as follows:

I couldn't find a command for this. Is it possible that does not exist for this every day problem?

First 1486 1487 1488 1489 1490 1491 1492 Last Page 1488 of 2264