MaplePrimes Questions

Hi

I want to show an animation in Plot component on Button press.

Action when clicked for the button :

use DocumentTools in

Do(%Plot0 = dis);
SetProperty(Plot0, play, true, refresh=true);

end use;


Variable dis was calculated earlier:

...
B := animate(plot, [u(t, x), x = xmin .. xmax], t = tmin .. tmax, frames = n):
dis:=display(B, insequence = true):
...

However, the first press on the button gives static first frame. Only second press starts the animation.
What's the problem with my code?

Hey 

I'm trying to fit a spacecurve onto some points I have. 

I know, I can use Spline to do this in 2D, but it doesn't work in 3D.

What command(s) can I use to fit a spacecurve onto my points? 

Thanks in advance

I have to plot 4 vectors in one graph. I have the following structure:

plot(Vector([12, 12.5, 13, 13.5, 14, 14.5, 15]), Vector([1.622712644, 1.265443137, 1.028604736, .8605013333, .7352916667, .6386248233, .5618945274]), style = line, symbol = asterisk, color = blue)

and 

plot(Vector([12, 12.5, 13, 13.5, 14, 14.5, 15]), Vector([5.483608580, 4.289400489, 3.496793877, 2.933480578, 2.513320599, 2.188469637, 1.930230220]), style = line, symbol = asterisk, color = blue)

Could you help me to plot these two curves in one graph.

 

please help me to find a solution for this issue...

I would like to thank you in advance

Best regards,

D.L.

Hi, I have encountered a difficult question.

 

My answer is A=151,B = 47.

Could anyone tell me whether this answer is correct?

 

The question is as follow:

Pi=∑((120n2+An+B)/(16n((512n4 + 1024n3 + 712n2 + 194n + 15))  (n starts from 0 to infinity)

 

Thanks in advance.

Hi,

I need to solve following problem, but i m facing memory allocation problem in code. I dont know where memory is consuming.

Download nonlinearx.mw

Thanx in advance.

Regards

Sunit

Hi,

I'm trying to stop integration if the numeric procedure takes more than ~2 seconds and set the value to zero. As an example consider

restart;
st:=time():
answer:= evalf( Int(SphericalY(161,5,x,5)*SphericalY(262,5,x,x), x=0..10));
t:= time()-st;

This takes 0.63 seconds on my computer, but I wish to stop it after 0.1 seconds as an example. Is there anyway to access the inside of evalf(Int...)) and kill it after 0.1 seconds?

thanks,

The question is to solve

x^2*(diff(y(x), x, x))+x^3*(diff(y(x), x))+(x^2-2)*y(x) = 0

and evaluate it where y(1) = 1 and y(2) = 2 to find y(3).

 

When I do the equation,

 

ODE := x^2*(diff(y(x), x, x))+x^3*(diff(y(x), x))+(x^2-2)*y(x) = 0

dsolve(ODE) y(x) = _C1/x+_C2*(-sqrt(Pi)*sqrt(2)*erf((1/2)*sqrt(2)*x)+2*x*exp(-(1/2)*x^2))/x

 

I have gotten an erf. Is this correct?

Hi everyone,

I need to write a program to save some files in both Windows or Unix System.

The structure of the path files is different from windows to Unix, so i want to something like this

if (WindowsOS) then

        pathFILE := "\\MyDirectory\\blabla.txt";

elif (UnixOS) then

       pathFILE := "\/MyDirectory\/blabla.txt";

end if;

 

Thanks for help.

Hello, 

I am trying to plot an equation with mape,

I give the foloowing comand but I receive a warning which I do not know how to deal with it, I wil be thankful if you can help me.

these are the command and wanring:

plot(eval ((6), {n=10, m=1},k=0.1..0.2)

warning, expecting only range variable k in expression.....

 

I am trying to use Maple17 to create practice integration problems in which the integrands contain square roots.  I want the students to practice converting square roots, perhaps with fractions, to fractional and/or negative powers.  Hopefully Maple can typeset the integrals if I use the inert form "Int", and also do the integrals for me so I can find the answers quicker than doing it by hand, and not have to worry about making a careless mistake.  The trouble is, Maple is converting the square roots to fractional exponents:

Download DisplaySquareRoot.

Download DisplaySquareRoot.mw

I hope at least one of these works.  To make a long story short, when I display an integral using "Int", how do I prevent Maple from converting square roots to fractional exponents?

 

GS

 

 

how do you find the surface area of an ellipsoid (for instance 'x^2/20+y^2/13+z^2/20=1'?) which is formed by rotating completely about the y axis? 

May I know how to use maple to solve

d^3y/dx^3+(1/x)(dy/dx)-(1/x^2)y=0, where y(1)=1, dy/dx=0 at x=1, d^2y/dx^2 =1 at x=1. find y(3).

 

Thx!

Hello!

If I wirite in an algorithm in MapleTA 9.5 the number 0, and later use it (for export to latex), it becomes negative, but not if I pass through Maple:

 

$null=0;
$zero=maple("0");
$nullstring="$null";
$zerostring="$zero";

results in:

null 0
zero 0
nullstring -0
zerostring 0

 

Why, and what can be done without passing through Maple?

 

Best,

Jan

Hi everyone,

I am a new user of maple and i want to know the procedures to follow when solving 4 differential equations simultaneously.

e.g

ds/dt=Λ0-βcSI/N-μS

dL/dt=Λ1+βcSI/N-μ1L+ΑcIT/N

dI/dt=kL-μ2I

dT/dt=r1L+r2I-ΑcIT/N-μT

Any help will be highly appreciated. Regards

> restart; with(plots); with(LinearAlgebra); with(IntegrationTools); pde := rho(x)*(Diff(u(t, x), t, t))+lambda(x)*(Diff(u(t, x), t))-(Diff(P(x)*(Diff(u(t, x), x)), x))-Q(x)*u(t, x)+R(x);

> eq1 := int(pde*phi[i](x), x = -1 .. 1);

eq2 := expand(eq1);

> eq3 := applyop(u -> Parts(u, phi[i](x)) end proc, 3, eq2);

i get an error

Error, (in applyop) improper op or subscript selector

how to correct it??

First 1501 1502 1503 1504 1505 1506 1507 Last Page 1503 of 2427