MaplePrimes Questions

Is this documented somewhere?  Why Maple do not return 0 from odetest after expanding the solution?

update: added additional tries to simplify it to zero as suggested but they do not give zero.

ode:=2*x^(1/2)*diff(y(x),x) = (1-y(x)^2)^(1/2);
sol:=dsolve(ode);

2*x^(1/2)*(diff(y(x), x)) = (1-y(x)^2)^(1/2)

y(x) = sin(x^(1/2)+(1/2)*_C1)

odetest(sol,ode);

0

res:=odetest(expand(sol),ode);

cos(x^(1/2)+(1/2)*_C1)-(1/2)*(2*cos(2*x^(1/2)+_C1)+2)^(1/2)

simplify(res)

cos(x^(1/2)+(1/2)*_C1)-(1/2)*(2*cos(2*x^(1/2)+_C1)+2)^(1/2)

simplify(res,symbolic)

cos(x^(1/2)+(1/2)*_C1)-(1/2)*(2*cos(2*x^(1/2)+_C1)+2)^(1/2)

simplify(res,trig)

cos(x^(1/2)+(1/2)*_C1)-(1/2)*(2*cos(2*x^(1/2)+_C1)+2)^(1/2)

combine(res)

cos(x^(1/2)+(1/2)*_C1)-(1/2)*(2*cos(2*x^(1/2)+_C1)+2)^(1/2)

combine(res,trig)

cos(x^(1/2)+(1/2)*_C1)-(1/2)*(2*cos(2*x^(1/2)+_C1)+2)^(1/2)

expand(res)

cos(x^(1/2))*cos((1/2)*_C1)-sin(x^(1/2))*sin((1/2)*_C1)-(1/2)*(4*cos(_C1)*cos(x^(1/2))^2-2*cos(_C1)-4*sin(_C1)*sin(x^(1/2))*cos(x^(1/2))+2)^(1/2)

simplify(expand(res))

cos(x^(1/2))*cos((1/2)*_C1)-sin(x^(1/2))*sin((1/2)*_C1)-(1/2)*(4*cos(_C1)*cos(x^(1/2))^2-2*cos(_C1)-4*sin(_C1)*sin(x^(1/2))*cos(x^(1/2))+2)^(1/2)

simplify(expand(res),symbolic)

cos(x^(1/2))*cos((1/2)*_C1)-sin(x^(1/2))*sin((1/2)*_C1)-(1/2)*(4*cos(_C1)*cos(x^(1/2))^2-2*cos(_C1)-4*sin(_C1)*sin(x^(1/2))*cos(x^(1/2))+2)^(1/2)

simplify(expand(res),trig)

cos(x^(1/2))*cos((1/2)*_C1)-sin(x^(1/2))*sin((1/2)*_C1)-(1/2)*(4*cos(_C1)*cos(x^(1/2))^2-2*cos(_C1)-4*sin(_C1)*sin(x^(1/2))*cos(x^(1/2))+2)^(1/2)

simplify(expand(res),size)

cos(x^(1/2))*cos((1/2)*_C1)-sin(x^(1/2))*sin((1/2)*_C1)-(1/2)*(4*cos(_C1)*cos(x^(1/2))^2-2*cos(_C1)-4*sin(_C1)*sin(x^(1/2))*cos(x^(1/2))+2)^(1/2)

 

 

Download odetest_q.mw

I want to plot the graph of the function as seen below but I have the error. Please help me.


restart;

a := 5;
b := 2;
u := 3;
v := 4;
A := 1;
B := 2;

In := (n, delta) -> Pi*a*((delta + a)^(2 - 2*n) + (delta - a)^(2 - 2*n))/(delta*(1 - n));

Jn := (n, delta) -> 1/2*(((delta + a)^2 - b^2)^(1 - n) - ((a - delta)^2 - b^2)^(1 - n))/(a*delta);

E1 := delta -> -u*A*In(3, delta) + u*B*In(6, delta);

E2 := delta -> -8*Pi^2*a^2*b^2*u*v*A*(Jn(3, delta) + 2*b^2*Jn(4, delta)) + 8/5*Pi^2*a^2*b^2*u*v*B*(5*Jn(6, delta) + 80*b^2*Jn(7, delta) + 336*b^4*Jn(8, delta) + 512*b^6*Jn(9, delta) + 256*b^8*Jn(10, delta));

Et(delta):= delta -> E1(delta) + E2(delta);
 
plot(Et(delta), delta = 16 .. 28);
 

 

Hi, I ran the following command: 

int(x^2 * sqrt(1-x^2), x)

and I got a solution. Then I try IntTutor: 

IntTutor(x^2 * sqrt(1-x^2), x)

And a UI window popus, does nothing. When I click "All Steps" it says "Unable to solve this problem". How so, if int() just gave me an answer? Or am I using the commands wrong?

I'm trying to see the steps by step solution of the integral, so I can compare it with my attempts. Kinda like what http://integral-calculator.com/ does. Thanks in advance. 

Hi,

How to generate random prime numbers ?

For example, prime number between 3 and 30 ?

Thanks

 

Ask_maple.pdf

Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/Ask_maple.mw .
 

Download Ask_maple.mw

 

I know that you can open the command prompt from within the maple interface, but how do i append instructions for it to execute a .ps1 script please thank you in advance 

F := proc(f,x)

    f(x); # invalid.

end proc;

 

f := (a,b,c)->a*b*c;

 

F(f,3);

    = 3*b*c;

 

How can I just apply 3 to one of the parameters in F without knowing how man(I really want to apply it to the first parameter but it doesn't matter all that much).

 

I really need to sorty of curry and uncurry a function. I might want to pass an function of arbitrary dimension but only apply a value to one parameter(usually the first).

 

while I could do somethign like

 

F(x->f(x,b,c))

 

this is kinda verbose and requires me to know the parameters of f at the call site, I don't think that is necessary.

Is there any way to extend maple by adding constants, functions, etc that are automatically loaded without having to add a with statement?

 

While I can use a template there are two issues, I don't really wanna see all the additions and I the template opens as the file and so the filename does not change. If one modifies the template and saves then it ruins the template. (it should open the template but not use the filename)

Anyone with the idea of seq such help please. I am tryong to collect all the series into one case but its only calling the last one.

The link is attached below. Thank you in advance

 

 seq.mw

Hello

 

As title says, when I enter equation in math mode and switch to text mode and hit "enter" to go to the next line then it gets executed, usually in former versions it didnt execute and was much faster for me to use the program this way.

How do I fix this? I don't want to use shift-F5 all the time to make the text unexecutable, I would like it to be like in the old version prior to 2019.

Now it does this which is really annoying, I dont want it to execute when changing line!

Best regards

Jonas

Hi guys

I want to solve the following differential equation but I can not. please help me in this way

diff(phi((8*R^(3/2)-W)*sqrt(2)/(24*sqrt(M))), W$2)=lambda*phi((8*R^(3/2)-W)*sqrt(2)/(24*sqrt(M)))

 

with the best regard

How would I make a subset in a set.

 

For example,

What if I had the sample space {1,2,3,4,5,6,7,8,9,10}.

A = {1,2,3,4}

B={4,5,6,7}

C={8,9,10}

How would I be able to ask C complementary and it would give me the elements that don't belong to C.

 

Thank you!

William

Hello,

How to calculate the derivative of modified Bessel fucntion of the first kind and order \alpha, such that \alpha>-1/2?

I need to calculate de general term of the derivative of modified Bessel function of the first kind and order \alpha.

 

Best regards 

I don't understand why Maple does not like my code:

restart;

with(plots):

dsol := dsolve({diff(y(t),t) = -y(t), y(0)=1}, numeric):

frame := proc(s)
  odeplot(dsol, [t,y(t)], t=0..s);
end proc:

animate(frame, [t], t=0..3);

Error, (in plots/animate) invalid range


I know how to get around it (as shown in the attached worksheet) but I am curious to know why the above approach does not work.

Download worksheet: mw.mw

 

First 644 645 646 647 648 649 650 Last Page 646 of 2425