Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hello every one,

I am facing problem with for loop. Please have a look.

My code is

restart;with(PDEtools):

Eq1:=diff(u(eta,t),t)=C*diff(u(eta,t),eta$2):

BCs := {u(0,t)=sin(t), u(L,t)=0}:

ICs := {u(eta,0)=0}:

L:=600:

sol:= pdsolve(Eq1,ICs union BCs,numeric,time=t,range=0..L);

for i from 0 to 600 do 

for t from 0 to 3 by 1 do

for C from 0 to 1 by 0.1 do

p0[C,t]:=sol:-value (C,t):

sol[2] := [[2, 1], [3, 4]];

for i from 1 to nops(sol[2]) do

sol[2][i] := [seq(op(k,sol[2][i]), k=nops(sol[2][i])..1, -1)];

T := T + table([seq(op(k,sol[2][i])=op(k-1,sol[2][i]), k=2..nops(sol[2][i])),op(1,sol[2][i])=op(nops(sol[2][i]),sol[2][i])]);

od;

final result should be

1 2 3 4

2 1 4 3

I'm fairly sure I discovered a bug with the Maple 17 Calculus Integration tutor.

I was working on int((x^2+2*x)*cos(x), x);.

The first step that the tutor wants you to do is to rewrite the integral by factoring out an x from the first term, and changing cos(x) to -sin(x).

The next step is to rewrite it again, this time changing sin to cos, making the intergal  -x(x+2)cos(x)

Next, the tutor distributes the X again, making the integral -(x^2+2*x...

Hello, Is there a way to assign mutiple variables at once using the 'if-then' statement?For example: if A:=3, then B:=434 and C:=52 and H:=2039So that I fill in these variables B, C and H one time and then when A is chosen to be a value, all other values are assigned automatically. Like filling in a table actually.In a simple 'if-then' statement I assign one variable, which works well.a:=10if a:=10 then b:=4elif a:=20 then b:=3end if:b ends up being 4I don't know how to add variable C and H, without getting an error.It should be very simple in my opinion, but I just don't see it.Greetings,Frank


EXCERPT  WITH  ISOLATE  QUESTION  -

 

Voting is open for the first individual prize to be awarded as part of the Möbius App Challenge.  The winner will receive a MacBook Air! 

Here are the finalist Apps:

Do maple have hashtable ?

i would like to use for premutation group

a := f(x,y) = f(y,x)

how to get x and y from left side f(x,y)

and get y and x from right side f(y,x)?

Hello, everyone. I would like to know how to use fsolve results in future commands.

I have the resulting values for the variables a,b,c,d and e and would like to use them to calculate all the X's.

Any help would be appreciated. I also uploaded the file.




Equações_H,_S_e_G_(r.mw

How would one plot the intersection of the surface z=3.5 and the surface described by a matrixplot

Here is an arbitrary matrixplot surface for an example.

matrixplot([[3, 4, 5, 1, 1, 1, 2, 3, 2, 1, 7, 8], [2, 3, 4, 1, 2, 1, 2, 1, 2, 1, 2, 5], [7, 8, 7, 6, 7, 8, 4, 5, 3, 2, 1, 2], [2, 1, 2, 4, 5, 6, 5, 6, 7, 6, 5, 6], [2, 3, 2, 4, 5, 4, 5, 6, 7, 6, 5, 4], [9, 8, 7, 8, 9, 8, 9, 8, 7, 8, 9, 8], [9, 8, 7, 8, 8, 8, 7, 8, 6, 8, 7, 6]]);

Technology is changing the face of education. An obvious statement, of course. Everybody from students to instructors to parents will agree. Over 40 years ago, the introduction of the pocket calculator allowed us to change the focus from menial calculations to applying our knowledge to solve problems and discover the power of mathematics. 

Since then we have seen leaps from innovation to innovation. The personal computer. Computer Algebra systems. Tablet computing....

In the following code, why is B returned unevaluated?

restart:
A:= a:  B:= 2:
F:= _a-> eval(`if`(A,B,C), a= _a):
F(true);
                               B
eval(B);
                   ...
Hello,When I plot graphs I can simply add colors, gridlines, labels, etc., but when I want to do this with the command 'Explore' it doesn't work.The commad 'Explore' sees the words 'color', 'labeldirections' and other commands as extra variables.For exmaple is does recognize 'labels' and 'title', which I can fill in, but it doesn't some of the other commands I would like to insert.I have a formula for deriving the eigenfrequency of a concrete beam, where I want to add some things to (like the things mentioned above).Somebody knows what the difference is between 'normal' plotting and plotting with 'Explore'?Explore_-_Adding_Col.mwGreetingsFrank

1 1 2

1 2 2

for example, above

is there a function to represent it as a group

Dear sir,

 I am unable to evaluate the mean pressure drop graph for different values of k , i will be thankful to you if any one solve my problem

here is my codes and mean pressure drop equation

restart:

with(DETools):

with(IntegrationTools):

eta:=1+k*x+epsilon*sin(2*Pi*x):

epsilon:=0.1:

R:=1.0:

A:=0.0628:

delta:=0.1:

k1:=k*delta:

alpha:=1.0:

A1:=(-exp(-alpha*x))/(2*eta^3):

A11:=diff(A1,x):

A2:=(3*exp(-alpha*x))/(2*eta):

A22:=diff(A2,x):

A3:=12*R*A1*diff(A1,x):

A4:=6*R*(A2*A11-A1*A22):

A5:=(1/2)*((k1+A*cos(2*Pi*x)))*((diff(A1,x)*eta+diff(A2,x)*(1/eta)))-(A3*eta^4/280)-(A4*eta^2/60):

A6:=(A3*eta^6/420)+(A4*eta^4/120)-(1/2)*((k1+A*cos(2*Pi*x)))*((diff(A1,x)*eta^3)+diff(A2,x)*eta):

psi0:= A1*y^3+A2*y:

psi1:= A3*y^7/840+A4*y^5/120+A5*y^3+A6*y:

psi:=psi0+delta*psi1:


V:=-diff(psi,x):

U:=diff(psi,y):

Ux:=diff(U,x):

Uy:=diff(U,y):

U2y:=diff(Uy,y):

g1:=delta*Ux:

g2:=int(U2y,x):

g22:=(1/delta)*g2:

g3:=U*Ux:

g33:=int(g3,x):

g4:=V*Uy:

g44:=int(g4,x):

P:=g1+g22-R*(g33+g44):

P1:=(1/eta)*int(P,y=0..eta):

Po:=subs(x=0,P1):

d1:=(Po-P1):

a0:=subs(k=0.0,d1):

a1:=subs(k=0.1,d1):

a2:=subs(k=0.5,d1):

plot([a0,a1, a2], x=0..1, title = "Mean Pressure Drop, alpha=1.0", legend = [k = 0, k= 0.1,k= 0.5], titlefont = ["ROMAN", 15], labels = ["x ", "Pd"], labeldirections = ["horizontal", "vertical"], labelfont = ["HELVETICA", 10], style = [POINT],symbol = [BOX,CROSS,CIRCLE],color = [black, black,black], axesfont = ["HELVETICA", "ROMAN", 8], legendstyle = [font = ["HELVETICA", 9], location = bottom],axes=boxed);

First 1453 1454 1455 1456 1457 1458 1459 Last Page 1455 of 2229