MaplePrimes Questions

Heat equation

I have a rather complicated procedure to solve. All the individual parts of the program are working fine, but when I try to put them together the simulation takes too long to solve. To my knowledge what I'm trying to do is not complicated in it of itself; each system is rather simple. But the whole does not seem to be working or is simply taking way longer than expected or is impractical for the task.

I'm supposed to be doing an integration over a range of 48 (48 hours if units are of interest...

For example, i have the field x*ex+y*ey. Is there a command for transforming it into the same field with polar coordinates and polar unit vectors?


Hi,

My E01, E02 and E03 are 3x3 matrix

a:=1:  ##how many times matrix E01

b:=3:  ##how many times matrix E02

c:=2:  ##how many times matrix E03

I would like to write EM:=[E01,E02,E02,E02,E03,E03].

If i change the values of a,b and c, i would like it to change on EM too.

For example, when i change a=2,b=2,c=1 would give me EM:=[E01,E01,E02,E02,E03]

How could i do that please? Please advice.

Hi, i'm trying to write the following, it works and is giving me the answer i want. But is there a way where i can write it in a simple manner? Please advice. Thanks.

Need help doing this asap please :).

 

http://imgur.com/kIvax

Hey Guys,

I'm trying to solve a system of 5 linear equations to get 5 unknowns:

> seconddegree:= proc(a,b,c) 
 if a=0 then if b=0 and c=0 then print ('infinite solutions')  
elif b=0 and c<>0 then print ('impossible')  
elif b<>0 and c<>0 then print (' one solution',x=-(c)/(b))fi;   
delta:=b^(2)-4 *a*c;    
elif if delta=0 then print('double solution',x=-b/(2 a))  
elif delta >0 then print ('exist two  solutions',x1=((-b+sqrt(delta...

I can not solve the system of equations

restart;

eq1:= x^4+2*(3*y+1)*x^2+(5*y^2+4*y+11)*x -y^2+10*y +2=0;

eq2:=y^3+(x-2)*y+x^2+x+2=0;

solve([eq1=0,eq2=0],[x,y]);

Please help me. Thank you.

Hi, i'm interested about parallel programming in maple but i cant find a good tutorial. is there anyone know a good refrence for this topic?

Hi,

I want to parallel the following code.it is good that part1 solved by one thread and part2 solved by other thread.

please help me.it must be noted that part1 and part 2 are independent "at each" iteration.

 

dtheta[m](x):= theta[m-1](x)+phi[m-1](x);
dphi[m](x):= theta[m-1](x)-2*phi[m-1](x);

for i from 2 by 1 to 10 do;

# part1

theta[i](x):=subs(m=i,dtheta[m](x)):
theta[i](x):=value(%):
eval(-theta[i](x),x=0);

Question :

Write a procedure that determines the solutions of a quadratic equation from inputs ,  and  by using the discriminant and the quadratic formula.

The quadratic equation procedure should be able to solve all cases: invalid input, linear case, real and complex roots. The procedure should also plot the given equation.

I dont understand how to do this can someone please please do it this for me urgently required.

today, i stuty a differential equation,  firsy, i conver the equation from cartesian to polar as  follow:

restart: 

sys := diff(x(t), t) = -y(t)+x(t)*(1-2*x(t)^2-3*y(t)^2), diff(y(t), t) = x(t)+y(t)*(1-2*x(t)^2-3*y(t)^2):

then  using transformation x=r*cos(theta),y=r*sin(theta) convert it to polar coordinate,and get:

sys1:=diff(r(t), t) = r(t)*(1-2*r(t)^2-r(t)^2*sin(theta(t))^2), diff(theta(t), t) = 1

then  plot the phase portrait, i use to method ,but all of them failed:

first ,use DEplot

  with(DEtools): 

 DEplot(sys1, [theta(t), r(t)], t = 0 .. 10, [[theta(0) = 2, r(0) = 2]], coords = polar);

and get error:
Error, (in DEtools/DEplot) can only plot in cartesian co-ordinates, got invalid option coords = polar

second,use odeplot

   with(plots):

> q1 := dsolve([diff(r(t), t) = r(t)*(1-2*r(t)^2-r(t)^2*sin(theta(t))^2), diff(theta(t), t) = 1, theta(0) = Pi, r(0) = 2], numeric, [theta(t), r(t)]);

> with(plots);

> odeplot(q1, [r(t), theta(t)], t = 0 .. 1, numpoints = 500, axiscoordinates = polar, coords = polar);

and also get a wrong result, so how to plot the phase portrait in polar coordinate using DEplot or odeplot

 

How implementing in Maple this MATLAB's sequence?

timing_data = 0:0.01:5;
X = timing_data; %(s)
delta_t = mean(diff(X))

delta_t =

    0.0100

Gracias

i want to write a program to simulate a walk of a drunken sailor who walks out of a bar at the centre of a city. the city has a regular pattern of 24\24 square blocks. the sailor doesnt know where he is going and how to exist teh city. the question is how many blocks will he have to walk to exit the city?

let him start at the centre of the city and assume that he exists the city when he reaches either north, east, south or western borders. it can happen that he wlks...

First 1727 1728 1729 1730 1731 1732 1733 Last Page 1729 of 2428