Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

So I have the following:

restart;
with(Physics):
Setup(mathematicalnotation=true,coordinatesystems=cartesian);
Define(A[mu](X));

First of all X ist defined in terms of (x,y,z,t). Is is also possible to define it in terms of (t,x,y,z) with t being mu=0.

When I do

alias(X=(t,x,y,z))

this applies only to this one vector and

d_[4] is still the time differentiation, right?

 

Then I wanted to construct the divergence

d_[`~mu`] A[mu](X);
TensorArray(%,performsumoverrepeatedindices=true);

 

This should give me sth like d1 A1 + ... + d4 A4, but it stays with d_mu A_mu ?!?

Why?

Is there also a "function" which does the contraction?

So if I have

f[mu,nu]=d_[mu] A[nu](X)

eval(f[mu,nu],nu=mu)

contract(%)

??

evalf(Int(x*(1-2*x^(3/10))^(10./3),x=0..1));  # Crashes Maple

Note that:

int(x*(1-2*x^(3/10))^(10./3),x=0..1);
int(x*(1-2*x^(3/10))^(10/3),x=0..1);

are OK.

(Windows 7, Maple 2017.3, 64 bit)

lambda:=unapply(5*Pi*sqrt((m^2)/16+(n^2)/4),m,n):'lambda[m,n]'=lambda(m,n);
                     
 u:=(x,y,t)->0.426050*sum(sum((1/(m^3*n^3))*cos(lambda*t)*sin(m*Pi*x/4)*sin(n*Pi*y/2),m=1..infinity),n=1...infinity);
 
lambda value depends on m and n. m and n are odd numbers. We write 2 * m-1 and 2 * n-1 instead of m and n. x = 0: 0.01: 4 and y = 0: 0.01: 2 and t = 0.01.
How can I draw a 3D plot?
Where do we  write 0.01 in increments of amount?   in the Grid command?Or how do we plot for the direct x = 0 ... 4 and y = 0 .... 2 and t = 0.01?
 

Hi everyone,

I'm looking for some way to simplify the following procedure:

 

scm := proc(X, x) global xx;

if 1 <= X and X < 10 then xx := cat(x)

elif 10 <= X and X < 100 then if 1 <= x and x < 10 then xx := cat(0, x) else xx := cat(x) end if

elif 100 <= X and X < 1000 then if 1 <= x and x < 10 then xx := cat(0, 0, x) elif 10 <= x and x < 100 then xx := cat(0, x) else xx := cat(x) end if

elif 1000 <= X and X < 10000 then if 1 <= x and x < 10 then xx := cat(0, 0, 0, x) elif 10 <= x and x < 100 then xx := cat(0, 0, x) elif 100 <= x and x < 1000 then xx := cat(0, x) else xx := cat(x) end if

elif 10000 <= X and X < 100000 then if 1 <= x and x < 10 then xx := cat(0, 0, 0, 0, x) elif 10 <= x and x < 100 then xx := cat(0, 0, 0, x) elif 100 <= x and x < 1000 then xx := cat(0, 0, x) elif 1000 <= x and x < 10000 then xx := cat(0, x) else xx := cat(x) end if

end if

end proc

 

Any tips? Thank you in advance.

Hi 

I want to solve these equations in MAPLE, but something goes wrong. 


 

``

restart

``

NULL

NULL

NULL

phi[j] := sin(j*Pi*x)

sin(j*Pi*x)

(1)

phi[i] := sin(i*Pi*x)

sin(i*Pi*x)

(2)

phi[k] := sin(k*Pi*x)

sin(k*Pi*x)

(3)

phi[l] := sin(l*Pi*x)

sin(l*Pi*x)

(4)

phi[1] := sin(Pi*x)

sin(Pi*x)

(5)

NULL

pp1 := sum((int(phi[i]*phi[j], x = 0 .. 1, numeric))*(diff(p(t), t, t))[j], j = 1 .. 8)-beta^2*(sum((int(phi[i]*(diff(phi[j], x, x)), x = 0 .. 1, numeric))*p(t)[j], j = 1 .. 8)+sum((int(AA0*(diff(phi[1], x, x))*phi[i]*(diff(phi[j], x)), x = 0 .. 1, numeric))*q[j], j = 1 .. 7)+sum((int(AA0*(diff(phi[1], x))*phi[i]*(diff(phi[j], x, x)), x = 0 .. 1, numeric))*q[j], j = 1 .. 7)+sum(sum((int(phi[i]*(diff(phi[j], x))*(diff(phi[k], x, x)), x = 0 .. 1, numeric))*q[j]*q[k], k = 1 .. 7), j = 1 .. 7))+Cd*(sum((int(phi[i]*phi[j], x = 0 .. 1, numeric))*(diff(p(t), t))[j], j = 1 .. 8)):

NULL

NULL

NULL

for z to 8 do limit(pp1, i = z) end do

limit(.1591549431*(sin(3.141592654*i-3.141592654)*i-1.*sin(3.141592654*i+3.141592654)*i+sin(3.141592654*i-3.141592654)+sin(3.141592654*i+3.141592654))*(diff(diff(p(t), t), t))[1]/((i-1.)*(i+1.))+.1591549431*(sin(3.141592654*i-6.283185308)*i-1.*sin(3.141592654*i+6.283185308)*i+2.*sin(3.141592654*i-6.283185308)+2.*sin(3.141592654*i+6.283185308))*(diff(diff(p(t), t), t))[2]/((i-2.)*(i+2.))+.1591549431*(sin(3.141592654*i-9.424777962)*i-1.*sin(3.141592654*i+9.424777962)*i+3.*sin(3.141592654*i-9.424777962)+3.*sin(3.141592654*i+9.424777962))*(diff(diff(p(t), t), t))[3]/((i-3.)*(i+3.))+.1591549431*(sin(3.141592654*i-12.56637062)*i-1.*sin(3.141592654*i+12.56637062)*i+4.*sin(3.141592654*i-12.56637062)+4.*sin(3.141592654*i+12.56637062))*(diff(diff(p(t), t), t))[4]/((i-4.)*(i+4.))+.1591549431*(sin(3.141592654*i-15.70796327)*i-1.*sin(3.141592654*i+15.70796327)*i+5.*sin(3.141592654*i-15.70796327)+5.*sin(3.141592654*i+15.70796327))*(diff(diff(p(t), t), t))[5]/((i-5.)*(i+5.))+.1591549431*(sin(3.141592654*i-18.84955592)*i-1.*sin(3.141592654*i+18.84955592)*i+6.*sin(3.141592654*i-18.84955592)+6.*sin(3.141592654*i+18.84955592))*(diff(diff(p(t), t), t))[6]/((i-6.)*(i+6.))+.1591549431*(sin(3.141592654*i-21.99114858)*i-1.*sin(3.141592654*i+21.99114858)*i+7.*sin(3.141592654*i-21.99114858)+7.*sin(3.141592654*i+21.99114858))*(diff(diff(p(t), t), t))[7]/((i-7.)*(i+7.))+.1591549431*(sin(3.141592654*i-25.13274123)*i-1.*sin(3.141592654*i+25.13274123)*i+8.*sin(3.141592654*i-25.13274123)+8.*sin(3.141592654*i+25.13274123))*(diff(diff(p(t), t), t))[8]/((i-8.)*(i+8.))-beta^2*(-1.570796327*(sin(3.141592654*i-3.141592654)*i-1.*sin(3.141592654*i+3.141592654)*i+sin(3.141592654*i-3.141592654)+sin(3.141592654*i+3.141592654))*p(t)[1]/((i-1.)*(i+1.))-6.283185308*(sin(3.141592654*i-6.283185308)*i-1.*sin(3.141592654*i+6.283185308)*i+2.*sin(3.141592654*i-6.283185308)+2.*sin(3.141592654*i+6.283185308))*p(t)[2]/((i-2.)*(i+2.))-14.13716694*(sin(3.141592654*i-9.424777962)*i-1.*sin(3.141592654*i+9.424777962)*i+3.*sin(3.141592654*i-9.424777962)+3.*sin(3.141592654*i+9.424777962))*p(t)[3]/((i-3.)*(i+3.))-25.13274123*(sin(3.141592654*i-12.56637062)*i-1.*sin(3.141592654*i+12.56637062)*i+4.*sin(3.141592654*i-12.56637062)+4.*sin(3.141592654*i+12.56637062))*p(t)[4]/((i-4.)*(i+4.))-39.26990818*(sin(3.141592654*i-15.70796327)*i-1.*sin(3.141592654*i+15.70796327)*i+5.*sin(3.141592654*i-15.70796327)+5.*sin(3.141592654*i+15.70796327))*p(t)[5]/((i-5.)*(i+5.))-56.54866777*(sin(3.141592654*i-18.84955592)*i-1.*sin(3.141592654*i+18.84955592)*i+6.*sin(3.141592654*i-18.84955592)+6.*sin(3.141592654*i+18.84955592))*p(t)[6]/((i-6.)*(i+6.))-76.96902003*(sin(3.141592654*i-21.99114858)*i-1.*sin(3.141592654*i+21.99114858)*i+7.*sin(3.141592654*i-21.99114858)+7.*sin(3.141592654*i+21.99114858))*p(t)[7]/((i-7.)*(i+7.))-100.5309649*(sin(3.141592654*i-25.13274123)*i-1.*sin(3.141592654*i+25.13274123)*i+8.*sin(3.141592654*i-25.13274123)+8.*sin(3.141592654*i+25.13274123))*p(t)[8]/((i-8.)*(i+8.))-66.61982973*(sin(3.141592654*i-18.84955592)*i^3-1.*sin(3.141592654*i+18.84955592)*i^3+6.*sin(3.141592654*i-18.84955592)*i^2+6.*sin(3.141592654*i+18.84955592)*i^2)*q[3]^2/(i^2*(i+6.)*(i-6.))-157.9136704*(-64.*sin(-0.4000000000e-8+3.141592654*i)*i+64.*sin(0.4000000000e-8+3.141592654*i)*i+sin(-0.4000000000e-8+3.141592654*i)*i^3-1.*sin(25.13274124+3.141592654*i)*i^3+sin(-25.13274124+3.141592654*i)*i^3-1.*sin(0.4000000000e-8+3.141592654*i)*i^3+8.*sin(25.13274124+3.141592654*i)*i^2+8.*sin(-25.13274124+3.141592654*i)*i^2)*q[4]^2/(i^2*(i+8.)*(i-8.))+308.4251376*(-10.*sin(31.41592654+3.141592654*i)*i^2-10.*sin(-31.41592654+3.141592654*i)*i^2+sin(31.41592654+3.141592654*i)*i^3-1.*sin(-31.41592654+3.141592654*i)*i^3)*q[5]^2/(i^2*(10.+i)*(-10.+i))-532.9586378*(144.*sin(-0.4000000000e-8+3.141592654*i)*i-144.*sin(0.4000000000e-8+3.141592654*i)*i-1.*sin(-0.4000000000e-8+3.141592654*i)*i^3+sin(0.4000000000e-8+3.141592654*i)*i^3-1.*sin(37.69911184+3.141592654*i)*i^3+sin(-37.69911184+3.141592654*i)*i^3+12.*sin(37.69911184+3.141592654*i)*i^2+12.*sin(-37.69911184+3.141592654*i)*i^2)*q[6]^2/(i^2*(12.+i)*(-12.+i))-846.3185773*(sin(-43.98229716+3.141592654*i)*i^3-1.*sin(0.2000000000e-8+3.141592654*i)*i^3+14.*sin(43.98229716+3.141592654*i)*i^2+14.*sin(-43.98229716+3.141592654*i)*i^2-196.*sin(-0.2000000000e-8+3.141592654*i)*i+196.*sin(0.2000000000e-8+3.141592654*i)*i+sin(-0.2000000000e-8+3.141592654*i)*i^3-1.*sin(43.98229716+3.141592654*i)*i^3)*q[7]^2/(i^2*(14.+i)*(-14.+i))-19.73920881*(sin(3.141592654*i-12.56637062)*i^3-1.*sin(3.141592654*i+12.56637062)*i^3+4.*sin(3.141592654*i-12.56637062)*i^2+4.*sin(3.141592654*i+12.56637062)*i^2)*q[2]^2/(i^2*(i+4.)*(i-4.))-4.934802202*AA0*(sin(3.141592654*i-6.283185308)*i-1.*sin(3.141592654*i+6.283185308)*i+2.*sin(3.141592654*i-6.283185308)+2.*sin(3.141592654*i+6.283185308))*q[1]/((i-2.)*(i+2.))-2.467401101*(sin(3.141592654*i-6.283185308)*i^3-1.*sin(3.141592654*i+6.283185308)*i^3+2.*sin(3.141592654*i-6.283185308)*i^2+2.*sin(3.141592654*i+6.283185308)*i^2)*q[1]^2/(i^2*(i+2.)*(i-2.))-9.869604403*(sin(3.141592654*i-9.424777962)*i^3-1.*sin(3.141592654*i+3.141592654)*i^3+sin(3.141592654*i-3.141592654)*i^3-1.*sin(3.141592654*i+9.424777962)*i^3+3.*sin(3.141592654*i-9.424777962)*i^2+sin(3.141592654*i+3.141592654)*i^2+sin(3.141592654*i-3.141592654)*i^2+3.*sin(3.141592654*i+9.424777962)*i^2-1.*sin(3.141592654*i-9.424777962)*i+9.*sin(3.141592654*i+3.141592654)*i-9.*sin(3.141592654*i-3.141592654)*i+sin(3.141592654*i+9.424777962)*i-3.*sin(3.141592654*i-9.424777962)-9.*sin(3.141592654*i+3.141592654)-9.*sin(3.141592654*i-3.141592654)-3.*sin(3.141592654*i+9.424777962))*q[1]*q[2]/((i-1.)*(i+3.)*(i-3.)*(i+1.))-22.20660991*(sin(3.141592654*i-12.56637062)*i^3-1.*sin(3.141592654*i+12.56637062)*i^3+sin(3.141592654*i-6.283185308)*i^3-1.*sin(3.141592654*i+6.283185308)*i^3+4.*sin(3.141592654*i-12.56637062)*i^2+4.*sin(3.141592654*i+12.56637062)*i^2+2.*sin(3.141592654*i-6.283185308)*i^2+2.*sin(3.141592654*i+6.283185308)*i^2-4.*sin(3.141592654*i-12.56637062)*i+4.*sin(3.141592654*i+12.56637062)*i-16.*sin(3.141592654*i-6.283185308)*i+16.*sin(3.141592654*i+6.283185308)*i-16.*sin(3.141592654*i-12.56637062)-16.*sin(3.141592654*i+12.56637062)-32.*sin(3.141592654*i-6.283185308)-32.*sin(3.141592654*i+6.283185308))*q[1]*q[3]/((i-2.)*(i+4.)*(i-4.)*(i+2.))-39.47841761*(-25.*sin(-9.424777966+3.141592654*i)*i+9.*sin(3.141592654*i+15.70796327)*i-9.*sin(3.141592654*i-15.70796327)*i+25.*sin(9.424777966+3.141592654*i)*i+sin(-9.424777966+3.141592654*i)*i^3-1.*sin(3.141592654*i+15.70796327)*i^3+sin(3.141592654*i-15.70796327)*i^3-1.*sin(9.424777966+3.141592654*i)*i^3+3.*sin(-9.424777966+3.141592654*i)*i^2+5.*sin(3.141592654*i+15.70796327)*i^2+5.*sin(3.141592654*i-15.70796327)*i^2+3.*sin(9.424777966+3.141592654*i)*i^2-45.*sin(3.141592654*i+15.70796327)-45.*sin(3.141592654*i-15.70796327)-75.*sin(9.424777966+3.141592654*i)-75.*sin(-9.424777966+3.141592654*i))*q[1]*q[4]/((i-3.)*(i+5.)*(i-5.)*(i+3.))+61.68502752*(-1.*sin(3.141592654*i-18.84955592)*i^3+sin(3.141592654*i+18.84955592)*i^3-6.*sin(3.141592654*i-18.84955592)*i^2-6.*sin(3.141592654*i+18.84955592)*i^2+96.*sin(3.141592654*i-18.84955592)+96.*sin(3.141592654*i+18.84955592)+16.*sin(3.141592654*i-18.84955592)*i-16.*sin(3.141592654*i+18.84955592)*i-1.*sin(3.141592654*i-12.56637062)*i^3+sin(3.141592654*i+12.56637062)*i^3-4.*sin(3.141592654*i-12.56637062)*i^2-4.*sin(3.141592654*i+12.56637062)*i^2+144.*sin(3.141592654*i+12.56637062)+144.*sin(3.141592654*i-12.56637062)+36.*sin(3.141592654*i-12.56637062)*i-36.*sin(3.141592654*i+12.56637062)*i)*q[1]*q[5]/((i-4.)*(i+6.)*(i-6.)*(i+4.))-88.82643963*(-49.*sin(3.141592654*i-15.70796327)*i+25.*sin(21.99114857+3.141592654*i)*i-25.*sin(-21.99114857+3.141592654*i)*i+49.*sin(3.141592654*i+15.70796327)*i+sin(3.141592654*i-15.70796327)*i^3-1.*sin(21.99114857+3.141592654*i)*i^3+sin(-21.99114857+3.141592654*i)*i^3-1.*sin(3.141592654*i+15.70796327)*i^3+5.*sin(3.141592654*i-15.70796327)*i^2+7.*sin(21.99114857+3.141592654*i)*i^2+7.*sin(-21.99114857+3.141592654*i)*i^2+5.*sin(3.141592654*i+15.70796327)*i^2-245.*sin(3.141592654*i-15.70796327)-175.*sin(21.99114857+3.141592654*i)-175.*sin(-21.99114857+3.141592654*i)-245.*sin(3.141592654*i+15.70796327))*q[1]*q[6]/((i-5.)*(i+7.)*(i-7.)*(i+5.))-120.9026539*(sin(3.141592654*i-25.13274123)*i^3-1.*sin(18.84955593+3.141592654*i)*i^3+6.*sin(-18.84955593+3.141592654*i)*i^2+8.*sin(3.141592654*i+25.13274123)*i^2+8.*sin(3.141592654*i-25.13274123)*i^2+6.*sin(18.84955593+3.141592654*i)*i^2-64.*sin(-18.84955593+3.141592654*i)*i+36.*sin(3.141592654*i+25.13274123)*i-36.*sin(3.141592654*i-25.13274123)*i+64.*sin(18.84955593+3.141592654*i)*i+sin(-18.84955593+3.141592654*i)*i^3-1.*sin(3.141592654*i+25.13274123)*i^3-384.*sin(18.84955593+3.141592654*i)-384.*sin(-18.84955593+3.141592654*i)-288.*sin(3.141592654*i+25.13274123)-288.*sin(3.141592654*i-25.13274123))*q[1]*q[7]/((i-6.)*(i+8.)*(i-8.)*(i+6.))-69.08723082*(-1.*sin(3.141592654*i-15.70796327)*i^3+sin(3.141592654*i+15.70796327)*i^3-5.*sin(3.141592654*i-15.70796327)*i^2-5.*sin(3.141592654*i+15.70796327)*i^2+405.*sin(3.141592654*i+15.70796327)+405.*sin(3.141592654*i-15.70796327)+81.*sin(3.141592654*i-15.70796327)*i-81.*sin(3.141592654*i+15.70796327)*i+9.*sin(28.27433389+3.141592654*i)*i^2+9.*sin(-28.27433389+3.141592654*i)*i^2+25.*sin(28.27433389+3.141592654*i)*i-25.*sin(-28.27433389+3.141592654*i)*i-1.*sin(28.27433389+3.141592654*i)*i^3+sin(-28.27433389+3.141592654*i)*i^3-225.*sin(-28.27433389+3.141592654*i)-225.*sin(28.27433389+3.141592654*i))*q[7]*q[2]/((i+5.)*(9.+i)*(-9.+i)*(i-5.))-155.4462694*(-1.*sin(3.141592654*i-12.56637062)*i^3+sin(3.141592654*i+12.56637062)*i^3-4.*sin(3.141592654*i-12.56637062)*i^2-4.*sin(3.141592654*i+12.56637062)*i^2+400.*sin(3.141592654*i+12.56637062)+400.*sin(3.141592654*i-12.56637062)+100.*sin(3.141592654*i-12.56637062)*i-100.*sin(3.141592654*i+12.56637062)*i+10.*sin(31.41592654+3.141592654*i)*i^2+10.*sin(-31.41592654+3.141592654*i)*i^2+16.*sin(31.41592654+3.141592654*i)*i-16.*sin(-31.41592654+3.141592654*i)*i-1.*sin(31.41592654+3.141592654*i)*i^3+sin(-31.41592654+3.141592654*i)*i^3-160.*sin(31.41592654+3.141592654*i)-160.*sin(-31.41592654+3.141592654*i))*q[7]*q[3]/((i+4.)*(10.+i)*(-10.+i)*(i-4.))-276.3489233*(121.*sin(-9.424777958+3.141592654*i)*i-121.*sin(9.424777958+3.141592654*i)*i-1.*sin(-9.424777958+3.141592654*i)*i^3+sin(9.424777958+3.141592654*i)*i^3-3.*sin(-9.424777958+3.141592654*i)*i^2-3.*sin(9.424777958+3.141592654*i)*i^2+9.*sin(34.55751920+3.141592654*i)*i-9.*sin(-34.55751920+3.141592654*i)*i-1.*sin(34.55751920+3.141592654*i)*i^3+sin(-34.55751920+3.141592654*i)*i^3+11.*sin(34.55751920+3.141592654*i)*i^2+11.*sin(-34.55751920+3.141592654*i)*i^2-99.*sin(34.55751920+3.141592654*i)-99.*sin(-34.55751920+3.141592654*i)+363.*sin(-9.424777958+3.141592654*i)+363.*sin(9.424777958+3.141592654*i))*q[7]*q[4]/((i+3.)*(11.+i)*(-11.+i)*(i-3.))+431.7951926*(sin(3.141592654*i-6.283185308)*i^3-1.*sin(3.141592654*i+6.283185308)*i^3+2.*sin(3.141592654*i-6.283185308)*i^2+2.*sin(3.141592654*i+6.283185308)*i^2-288.*sin(3.141592654*i+6.283185308)-288.*sin(3.141592654*i-6.283185308)+144.*sin(3.141592654*i+6.283185308)*i-144.*sin(3.141592654*i-6.283185308)*i-12.*sin(37.69911185+3.141592654*i)*i^2-12.*sin(-37.69911185+3.141592654*i)*i^2-4.*sin(37.69911185+3.141592654*i)*i+4.*sin(-37.69911185+3.141592654*i)*i+sin(37.69911185+3.141592654*i)*i^3-1.*sin(-37.69911185+3.141592654*i)*i^3+48.*sin(-37.69911185+3.141592654*i)+48.*sin(37.69911185+3.141592654*i))*q[7]*q[5]/((i+2.)*(12.+i)*(-12.+i)*(i-2.))-4.934802201*AA0*(sin(3.141592654*i-9.424777962)*i^3+sin(3.141592654*i+3.141592654)*i^3-1.*sin(3.141592654*i-3.141592654)*i^3-1.*sin(3.141592654*i+9.424777962)*i^3+3.*sin(3.141592654*i-9.424777962)*i^2-1.*sin(3.141592654*i+3.141592654)*i^2-1.*sin(3.141592654*i-3.141592654)*i^2+3.*sin(3.141592654*i+9.424777962)*i^2-1.*sin(3.141592654*i-9.424777962)*i-9.*sin(3.141592654*i+3.141592654)*i+9.*sin(3.141592654*i-3.141592654)*i+sin(3.141592654*i+9.424777962)*i-3.*sin(3.141592654*i-9.424777962)+9.*sin(3.141592654*i+3.141592654)+9.*sin(3.141592654*i-3.141592654)-3.*sin(3.141592654*i+9.424777962))*q[2]/((i-3.)*(i+1.)*(i-1.)*(i+3.))-7.402203302*AA0*(-1.*sin(3.141592654*i-6.283185308)*i^3+sin(3.141592654*i+6.283185308)*i^3+sin(3.141592654*i-12.56637062)*i^3-1.*sin(3.141592654*i+12.56637062)*i^3-2.*sin(3.141592654*i-6.283185308)*i^2-2.*sin(3.141592654*i+6.283185308)*i^2+4.*sin(3.141592654*i-12.56637062)*i^2+4.*sin(3.141592654*i+12.56637062)*i^2+16.*sin(3.141592654*i-6.283185308)*i-16.*sin(3.141592654*i+6.283185308)*i-4.*sin(3.141592654*i-12.56637062)*i+4.*sin(3.141592654*i+12.56637062)*i+32.*sin(3.141592654*i-6.283185308)+32.*sin(3.141592654*i+6.283185308)-16.*sin(3.141592654*i-12.56637062)-16.*sin(3.141592654*i+12.56637062))*q[3]/((i-4.)*(i+2.)*(i-2.)*(i+4.))+9.869604403*AA0*(sin(3.141592654*i-9.424777962)*i^3-1.*sin(3.141592654*i+9.424777962)*i^3-1.*sin(3.141592654*i-15.70796327)*i^3+sin(3.141592654*i+15.70796327)*i^3+3.*sin(3.141592654*i-9.424777962)*i^2+3.*sin(3.141592654*i+9.424777962)*i^2-5.*sin(3.141592654*i-15.70796327)*i^2-5.*sin(3.141592654*i+15.70796327)*i^2-25.*sin(3.141592654*i-9.424777962)*i+25.*sin(3.141592654*i+9.424777962)*i+9.*sin(3.141592654*i-15.70796327)*i-9.*sin(3.141592654*i+15.70796327)*i-75.*sin(3.141592654*i-9.424777962)-75.*sin(3.141592654*i+9.424777962)+45.*sin(3.141592654*i-15.70796327)+45.*sin(3.141592654*i+15.70796327))*q[4]/((i-5.)*(i+3.)*(i-3.)*(i+5.))-12.33700550*AA0*(sin(3.141592654*i-18.84955592)*i^3-1.*sin(3.141592654*i+18.84955592)*i^3-1.*sin(3.141592654*i-12.56637062)*i^3+sin(3.141592654*i+12.56637062)*i^3+6.*sin(3.141592654*i-18.84955592)*i^2+6.*sin(3.141592654*i+18.84955592)*i^2-4.*sin(3.141592654*i-12.56637062)*i^2-4.*sin(3.141592654*i+12.56637062)*i^2-16.*sin(3.141592654*i-18.84955592)*i+16.*sin(3.141592654*i+18.84955592)*i+36.*sin(3.141592654*i-12.56637062)*i-36.*sin(3.141592654*i+12.56637062)*i-96.*sin(3.141592654*i-18.84955592)-96.*sin(3.141592654*i+18.84955592)+144.*sin(3.141592654*i-12.56637062)+144.*sin(3.141592654*i+12.56637062))*q[5]/((i-6.)*(i+4.)*(i-4.)*(i+6.))-14.80440660*AA0*(sin(3.141592654*i-21.99114858)*i^3-1.*sin(3.141592654*i+21.99114858)*i^3-1.*sin(3.141592654*i-15.70796327)*i^3+sin(3.141592654*i+15.70796327)*i^3+7.*sin(3.141592654*i-21.99114858)*i^2+7.*sin(3.141592654*i+21.99114858)*i^2-5.*sin(3.141592654*i-15.70796327)*i^2-5.*sin(3.141592654*i+15.70796327)*i^2-25.*sin(3.141592654*i-21.99114858)*i+25.*sin(3.141592654*i+21.99114858)*i+49.*sin(3.141592654*i-15.70796327)*i-49.*sin(3.141592654*i+15.70796327)*i-175.*sin(3.141592654*i-21.99114858)-175.*sin(3.141592654*i+21.99114858)+245.*sin(3.141592654*i-15.70796327)+245.*sin(3.141592654*i+15.70796327))*q[6]/((i-7.)*(i+5.)*(i-5.)*(i+7.))+17.27180770*AA0*(sin(3.141592654*i-18.84955592)*i^3-1.*sin(3.141592654*i+18.84955592)*i^3-1.*sin(3.141592654*i-25.13274123)*i^3+sin(3.141592654*i+25.13274123)*i^3+6.*sin(3.141592654*i-18.84955592)*i^2+6.*sin(3.141592654*i+18.84955592)*i^2-8.*sin(3.141592654*i-25.13274123)*i^2-8.*sin(3.141592654*i+25.13274123)*i^2-64.*sin(3.141592654*i-18.84955592)*i+64.*sin(3.141592654*i+18.84955592)*i+36.*sin(3.141592654*i-25.13274123)*i-36.*sin(3.141592654*i+25.13274123)*i-384.*sin(3.141592654*i-18.84955592)-384.*sin(3.141592654*i+18.84955592)+288.*sin(3.141592654*i-25.13274123)+288.*sin(3.141592654*i+25.13274123))*q[7]/((i-8.)*(i+6.)*(i-6.)*(i+8.))-621.7850774*(169.*sin(-3.141592658+3.141592654*i)*i-169.*sin(3.141592658+3.141592654*i)*i-1.*sin(-3.141592658+3.141592654*i)*i^3+sin(3.141592658+3.141592654*i)*i^3-1.*sin(-3.141592658+3.141592654*i)*i^2-1.*sin(3.141592658+3.141592654*i)*i^2+sin(40.84070450+3.141592654*i)*i-1.*sin(-40.84070450+3.141592654*i)*i-1.*sin(40.84070450+3.141592654*i)*i^3+sin(-40.84070450+3.141592654*i)*i^3+13.*sin(40.84070450+3.141592654*i)*i^2+13.*sin(-40.84070450+3.141592654*i)*i^2-13.*sin(-40.84070450+3.141592654*i)-13.*sin(40.84070450+3.141592654*i)+169.*sin(3.141592658+3.141592654*i)+169.*sin(-3.141592658+3.141592654*i))*q[7]*q[6]/((i+1.)*(13.+i)*(-13.+i)*(i-1.))-133.2396595*(-1.*sin(3.141592654*i-9.424777962)*i^3+sin(3.141592654*i+9.424777962)*i^3-3.*sin(3.141592654*i-9.424777962)*i^2-3.*sin(3.141592654*i+9.424777962)*i^2+9.*sin(28.27433389+3.141592654*i)*i^2+9.*sin(-28.27433389+3.141592654*i)*i^2+9.*sin(28.27433389+3.141592654*i)*i-9.*sin(-28.27433389+3.141592654*i)*i-1.*sin(28.27433389+3.141592654*i)*i^3+sin(-28.27433389+3.141592654*i)*i^3+243.*sin(3.141592654*i+9.424777962)+243.*sin(3.141592654*i-9.424777962)+81.*sin(3.141592654*i-9.424777962)*i-81.*sin(3.141592654*i+9.424777962)*i-81.*sin(-28.27433389+3.141592654*i)-81.*sin(28.27433389+3.141592654*i))*q[6]*q[3]/((i+3.)*(9.+i)*(-9.+i)*(i-3.))-236.8705057*(100.*sin(-6.283185304+3.141592654*i)*i-100.*sin(6.283185304+3.141592654*i)*i-1.*sin(-6.283185304+3.141592654*i)*i^3+sin(6.283185304+3.141592654*i)*i^3-2.*sin(-6.283185304+3.141592654*i)*i^2-2.*sin(6.283185304+3.141592654*i)*i^2+4.*sin(31.41592654+3.141592654*i)*i-4.*sin(-31.41592654+3.141592654*i)*i-1.*sin(31.41592654+3.141592654*i)*i^3+sin(-31.41592654+3.141592654*i)*i^3+10.*sin(31.41592654+3.141592654*i)*i^2+10.*sin(-31.41592654+3.141592654*i)*i^2-40.*sin(31.41592654+3.141592654*i)-40.*sin(-31.41592654+3.141592654*i)+200.*sin(6.283185304+3.141592654*i)+200.*sin(-6.283185304+3.141592654*i))*q[6]*q[4]/((i+2.)*(10.+i)*(-10.+i)*(i-2.))+370.1101651*(-1.*sin(3.141592654*i+3.141592654)*i^3+sin(3.141592654*i-3.141592654)*i^3+sin(3.141592654*i+3.141592654)*i^2+sin(3.141592654*i-3.141592654)*i^2-121.*sin(3.141592654*i+3.141592654)+121.*sin(3.141592654*i+3.141592654)*i-121.*sin(3.141592654*i-3.141592654)*i-121.*sin(3.141592654*i-3.141592654)-11.*sin(34.55751919+3.141592654*i)*i^2-11.*sin(-34.55751919+3.141592654*i)*i^2-1.*sin(34.55751919+3.141592654*i)*i+sin(-34.55751919+3.141592654*i)*i+sin(34.55751919+3.141592654*i)*i^3-1.*sin(-34.55751919+3.141592654*i)*i^3+11.*sin(34.55751919+3.141592654*i)+11.*sin(-34.55751919+3.141592654*i))*q[6]*q[5]/((i+1.)*(11.+i)*(-11.+i)*(i-1.))-725.4159234*(sin(-40.84070450+3.141592654*i)*i^3-1.*sin(3.141592656+3.141592654*i)*i^3+sin(-3.141592656+3.141592654*i)*i^2+13.*sin(40.84070450+3.141592654*i)*i^2+13.*sin(-40.84070450+3.141592654*i)*i^2+sin(3.141592656+3.141592654*i)*i^2-169.*sin(-3.141592656+3.141592654*i)*i+sin(40.84070450+3.141592654*i)*i-1.*sin(-40.84070450+3.141592654*i)*i+169.*sin(3.141592656+3.141592654*i)*i+sin(-3.141592656+3.141592654*i)*i^3-1.*sin(40.84070450+3.141592654*i)*i^3-169.*sin(3.141592656+3.141592654*i)-169.*sin(-3.141592656+3.141592654*i)-13.*sin(40.84070450+3.141592654*i)-13.*sin(-40.84070450+3.141592654*i))*q[6]*q[7]/((i-1.)*(13.+i)*(-13.+i)*(i+1.))-17.27180771*(-1.*sin(3.141592654*i-18.84955592)*i^3+sin(3.141592654*i+18.84955592)*i^3-6.*sin(3.141592654*i-18.84955592)*i^2-6.*sin(3.141592654*i+18.84955592)*i^2-288.*sin(3.141592654*i-25.13274123)-288.*sin(3.141592654*i+25.13274123)-36.*sin(3.141592654*i-25.13274123)*i+36.*sin(3.141592654*i+25.13274123)*i+384.*sin(3.141592654*i-18.84955592)+384.*sin(3.141592654*i+18.84955592)+64.*sin(3.141592654*i-18.84955592)*i-64.*sin(3.141592654*i+18.84955592)*i+sin(3.141592654*i-25.13274123)*i^3-1.*sin(3.141592654*i+25.13274123)*i^3+8.*sin(3.141592654*i-25.13274123)*i^2+8.*sin(3.141592654*i+25.13274123)*i^2)*q[7]*q[1]/((i+6.)*(i+8.)*(i-8.)*(i-6.))-12.33700550*(sin(3.141592654*i-18.84955592)*i^3-1.*sin(3.141592654*i+18.84955592)*i^3-1.*sin(3.141592654*i-12.56637062)*i^3+sin(3.141592654*i+12.56637062)*i^3+6.*sin(3.141592654*i-18.84955592)*i^2+6.*sin(3.141592654*i+18.84955592)*i^2-4.*sin(3.141592654*i-12.56637062)*i^2-4.*sin(3.141592654*i+12.56637062)*i^2-16.*sin(3.141592654*i-18.84955592)*i+16.*sin(3.141592654*i+18.84955592)*i+36.*sin(3.141592654*i-12.56637062)*i-36.*sin(3.141592654*i+12.56637062)*i-96.*sin(3.141592654*i-18.84955592)-96.*sin(3.141592654*i+18.84955592)+144.*sin(3.141592654*i-12.56637062)+144.*sin(3.141592654*i+12.56637062))*q[5]*q[1]/((i+4.)*(i+6.)*(i-6.)*(i-4.))-49.34802202*(sin(3.141592654*i-21.99114858)*i^3-1.*sin(3.141592654*i+21.99114858)*i^3+7.*sin(3.141592654*i-21.99114858)*i^2+7.*sin(3.141592654*i+21.99114858)*i^2-63.*sin(3.141592654*i-21.99114858)-63.*sin(3.141592654*i+21.99114858)-9.*sin(3.141592654*i-21.99114858)*i+9.*sin(3.141592654*i+21.99114858)*i-1.*sin(3.141592654*i-9.424777962)*i^3+sin(3.141592654*i+9.424777962)*i^3-3.*sin(3.141592654*i-9.424777962)*i^2-3.*sin(3.141592654*i+9.424777962)*i^2+147.*sin(3.141592654*i+9.424777962)+147.*sin(3.141592654*i-9.424777962)+49.*sin(3.141592654*i-9.424777962)*i-49.*sin(3.141592654*i+9.424777962)*i)*q[5]*q[2]/((i+3.)*(i+7.)*(i-7.)*(i-3.))-111.0330496*(-32.*sin(3.141592654*i-25.13274123)-32.*sin(3.141592654*i+25.13274123)-4.*sin(3.141592654*i-25.13274123)*i+4.*sin(3.141592654*i+25.13274123)*i-1.*sin(3.141592654*i-6.283185308)*i^3+sin(3.141592654*i+6.283185308)*i^3-2.*sin(3.141592654*i-6.283185308)*i^2-2.*sin(3.141592654*i+6.283185308)*i^2+128.*sin(3.141592654*i+6.283185308)+128.*sin(3.141592654*i-6.283185308)-64.*sin(3.141592654*i+6.283185308)*i+64.*sin(3.141592654*i-6.283185308)*i+sin(3.141592654*i-25.13274123)*i^3-1.*sin(3.141592654*i+25.13274123)*i^3+8.*sin(3.141592654*i-25.13274123)*i^2+8.*sin(3.141592654*i+25.13274123)*i^2)*q[5]*q[3]/((i+2.)*(i+8.)*(i-8.)*(i-2.))-197.3920880*(-81.*sin(3.141592650+3.141592654*i)*i+sin(28.27433389+3.141592654*i)*i-1.*sin(-28.27433389+3.141592654*i)*i+81.*sin(-3.141592650+3.141592654*i)*i+sin(3.141592650+3.141592654*i)*i^3-1.*sin(28.27433389+3.141592654*i)*i^3+sin(-28.27433389+3.141592654*i)*i^3-1.*sin(-3.141592650+3.141592654*i)*i^3-1.*sin(3.141592650+3.141592654*i)*i^2+9.*sin(28.27433389+3.141592654*i)*i^2+9.*sin(-28.27433389+3.141592654*i)*i^2-1.*sin(-3.141592650+3.141592654*i)*i^2+81.*sin(-3.141592650+3.141592654*i)+81.*sin(3.141592650+3.141592654*i)-9.*sin(28.27433389+3.141592654*i)-9.*sin(-28.27433389+3.141592654*i))*q[5]*q[4]/((i+1.)*(9.+i)*(-9.+i)*(i-1.))-444.1321982*(121.*sin(3.141592650+3.141592654*i)*i-121.*sin(-3.141592650+3.141592654*i)*i-1.*sin(3.141592650+3.141592654*i)*i^3+sin(-3.141592650+3.141592654*i)*i^3+sin(3.141592650+3.141592654*i)*i^2+sin(-3.141592650+3.141592654*i)*i^2+sin(34.55751919+3.141592654*i)*i-1.*sin(-34.55751919+3.141592654*i)*i-1.*sin(34.55751919+3.141592654*i)*i^3+sin(-34.55751919+3.141592654*i)*i^3+11.*sin(34.55751919+3.141592654*i)*i^2+11.*sin(-34.55751919+3.141592654*i)*i^2-11.*sin(34.55751919+3.141592654*i)-11.*sin(-34.55751919+3.141592654*i)-121.*sin(-3.141592650+3.141592654*i)-121.*sin(3.141592650+3.141592654*i))*q[5]*q[6]/((i-1.)*(11.+i)*(-11.+i)*(i+1.))-39.47841761*AA0*(sin(3.141592654*i-9.424777962)*i^3-1.*sin(3.141592654*i+9.424777962)*i^3+sin(3.141592654*i-15.70796327)*i^3-1.*sin(3.141592654*i+15.70796327)*i^3+3.*sin(3.141592654*i-9.424777962)*i^2+3.*sin(3.141592654*i+9.424777962)*i^2+5.*sin(3.141592654*i-15.70796327)*i^2+5.*sin(3.141592654*i+15.70796327)*i^2-25.*sin(3.141592654*i-9.424777962)*i+25.*sin(3.141592654*i+9.424777962)*i-9.*sin(3.141592654*i-15.70796327)*i+9.*sin(3.141592654*i+15.70796327)*i-75.*sin(3.141592654*i-9.424777962)-75.*sin(3.141592654*i+9.424777962)-45.*sin(3.141592654*i-15.70796327)-45.*sin(3.141592654*i+15.70796327))*q[4]/((i-5.)*(i+3.)*(i-3.)*(i+5.))-61.68502752*AA0*(sin(3.141592654*i-18.84955592)*i^3-1.*sin(3.141592654*i+18.84955592)*i^3+sin(3.141592654*i-12.56637062)*i^3-1.*sin(3.141592654*i+12.56637062)*i^3+6.*sin(3.141592654*i-18.84955592)*i^2+6.*sin(3.141592654*i+18.84955592)*i^2+4.*sin(3.141592654*i-12.56637062)*i^2+4.*sin(3.141592654*i+12.56637062)*i^2-16.*sin(3.141592654*i-18.84955592)*i+16.*sin(3.141592654*i+18.84955592)*i-36.*sin(3.141592654*i-12.56637062)*i+36.*sin(3.141592654*i+12.56637062)*i-96.*sin(3.141592654*i-18.84955592)-96.*sin(3.141592654*i+18.84955592)-144.*sin(3.141592654*i-12.56637062)-144.*sin(3.141592654*i+12.56637062))*q[5]/((i-6.)*(i+4.)*(i-4.)*(i+6.))-88.82643963*AA0*(sin(3.141592654*i-21.99114858)*i^3-1.*sin(3.141592654*i+21.99114858)*i^3+sin(3.141592654*i-15.70796327)*i^3-1.*sin(3.141592654*i+15.70796327)*i^3+7.*sin(3.141592654*i-21.99114858)*i^2+7.*sin(3.141592654*i+21.99114858)*i^2+5.*sin(3.141592654*i-15.70796327)*i^2+5.*sin(3.141592654*i+15.70796327)*i^2-25.*sin(3.141592654*i-21.99114858)*i+25.*sin(3.141592654*i+21.99114858)*i-49.*sin(3.141592654*i-15.70796327)*i+49.*sin(3.141592654*i+15.70796327)*i-175.*sin(3.141592654*i-21.99114858)-175.*sin(3.141592654*i+21.99114858)-245.*sin(3.141592654*i-15.70796327)-245.*sin(3.141592654*i+15.70796327))*q[6]/((i-7.)*(i+5.)*(i-5.)*(i+7.))-120.9026539*AA0*(sin(3.141592654*i-18.84955592)*i^3-1.*sin(3.141592654*i+18.84955592)*i^3+sin(3.141592654*i-25.13274123)*i^3-1.*sin(3.141592654*i+25.13274123)*i^3+6.*sin(3.141592654*i-18.84955592)*i^2+6.*sin(3.141592654*i+18.84955592)*i^2+8.*sin(3.141592654*i-25.13274123)*i^2+8.*sin(3.141592654*i+25.13274123)*i^2-64.*sin(3.141592654*i-18.84955592)*i+64.*sin(3.141592654*i+18.84955592)*i-36.*sin(3.141592654*i-25.13274123)*i+36.*sin(3.141592654*i+25.13274123)*i-384.*sin(3.141592654*i-18.84955592)-384.*sin(3.141592654*i+18.84955592)-288.*sin(3.141592654*i-25.13274123)-288.*sin(3.141592654*i+25.13274123))*q[7]/((i-8.)*(i+6.)*(i-6.)*(i+8.))-9.869604403*AA0*(sin(3.141592654*i-9.424777962)*i^3-1.*sin(3.141592654*i+3.141592654)*i^3+sin(3.141592654*i-3.141592654)*i^3-1.*sin(3.141592654*i+9.424777962)*i^3+3.*sin(3.141592654*i-9.424777962)*i^2+sin(3.141592654*i+3.141592654)*i^2+sin(3.141592654*i-3.141592654)*i^2+3.*sin(3.141592654*i+9.424777962)*i^2-1.*sin(3.141592654*i-9.424777962)*i+9.*sin(3.141592654*i+3.141592654)*i-9.*sin(3.141592654*i-3.141592654)*i+sin(3.141592654*i+9.424777962)*i-3.*sin(3.141592654*i-9.424777962)-9.*sin(3.141592654*i+3.141592654)-9.*sin(3.141592654*i-3.141592654)-3.*sin(3.141592654*i+9.424777962))*q[2]/((i-3.)*(i+1.)*(i-1.)*(i+3.))-22.20660991*AA0*(sin(3.141592654*i-12.56637062)*i^3-1.*sin(3.141592654*i+12.56637062)*i^3+sin(3.141592654*i-6.283185308)*i^3-1.*sin(3.141592654*i+6.283185308)*i^3+4.*sin(3.141592654*i-12.56637062)*i^2+4.*sin(3.141592654*i+12.56637062)*i^2+2.*sin(3.141592654*i-6.283185308)*i^2+2.*sin(3.141592654*i+6.283185308)*i^2-4.*sin(3.141592654*i-12.56637062)*i+4.*sin(3.141592654*i+12.56637062)*i-16.*sin(3.141592654*i-6.283185308)*i+16.*sin(3.141592654*i+6.283185308)*i-16.*sin(3.141592654*i-12.56637062)-16.*sin(3.141592654*i+12.56637062)-32.*sin(3.141592654*i-6.283185308)-32.*sin(3.141592654*i+6.283185308))*q[3]/((i-4.)*(i+2.)*(i-2.)*(i+4.))-604.5132695*(sin(-37.69911185+3.141592654*i)*i^3-1.*sin(6.283185310+3.141592654*i)*i^3+2.*sin(-6.283185310+3.141592654*i)*i^2+12.*sin(37.69911185+3.141592654*i)*i^2+12.*sin(-37.69911185+3.141592654*i)*i^2+2.*sin(6.283185310+3.141592654*i)*i^2-144.*sin(-6.283185310+3.141592654*i)*i+4.*sin(37.69911185+3.141592654*i)*i-4.*sin(-37.69911185+3.141592654*i)*i+144.*sin(6.283185310+3.141592654*i)*i+sin(-6.283185310+3.141592654*i)*i^3-1.*sin(37.69911185+3.141592654*i)*i^3-288.*sin(6.283185310+3.141592654*i)-288.*sin(-6.283185310+3.141592654*i)-48.*sin(37.69911185+3.141592654*i)-48.*sin(-37.69911185+3.141592654*i))*q[5]*q[7]/((i-2.)*(12.+i)*(-12.+i)*(i+2.))-14.80440661*(sin(3.141592654*i-21.99114858)*i^3-1.*sin(3.141592654*i+21.99114858)*i^3-1.*sin(3.141592654*i-15.70796327)*i^3+sin(3.141592654*i+15.70796327)*i^3+7.*sin(3.141592654*i-21.99114858)*i^2+7.*sin(3.141592654*i+21.99114858)*i^2-5.*sin(3.141592654*i-15.70796327)*i^2-5.*sin(3.141592654*i+15.70796327)*i^2-25.*sin(3.141592654*i-21.99114858)*i+25.*sin(3.141592654*i+21.99114858)*i+49.*sin(3.141592654*i-15.70796327)*i-49.*sin(3.141592654*i+15.70796327)*i-175.*sin(3.141592654*i-21.99114858)-175.*sin(3.141592654*i+21.99114858)+245.*sin(3.141592654*i-15.70796327)+245.*sin(3.141592654*i+15.70796327))*q[6]*q[1]/((i+5.)*(i+7.)*(i-7.)*(i-5.))-59.21762642*(-128.*sin(3.141592654*i-25.13274123)-128.*sin(3.141592654*i+25.13274123)-16.*sin(3.141592654*i-25.13274123)*i+16.*sin(3.141592654*i+25.13274123)*i-1.*sin(3.141592654*i-12.56637062)*i^3+sin(3.141592654*i+12.56637062)*i^3-4.*sin(3.141592654*i-12.56637062)*i^2-4.*sin(3.141592654*i+12.56637062)*i^2+256.*sin(3.141592654*i+12.56637062)+256.*sin(3.141592654*i-12.56637062)+64.*sin(3.141592654*i-12.56637062)*i-64.*sin(3.141592654*i+12.56637062)*i+sin(3.141592654*i-25.13274123)*i^3-1.*sin(3.141592654*i+25.13274123)*i^3+8.*sin(3.141592654*i-25.13274123)*i^2+8.*sin(3.141592654*i+25.13274123)*i^2)*q[6]*q[2]/((i+4.)*(i+8.)*(i-8.)*(i-4.))-4.934802202*(sin(3.141592654*i-9.424777962)*i^3+sin(3.141592654*i+3.141592654)*i^3-1.*sin(3.141592654*i-3.141592654)*i^3-1.*sin(3.141592654*i+9.424777962)*i^3+3.*sin(3.141592654*i-9.424777962)*i^2-1.*sin(3.141592654*i+3.141592654)*i^2-1.*sin(3.141592654*i-3.141592654)*i^2+3.*sin(3.141592654*i+9.424777962)*i^2-1.*sin(3.141592654*i-9.424777962)*i-9.*sin(3.141592654*i+3.141592654)*i+9.*sin(3.141592654*i-3.141592654)*i+sin(3.141592654*i+9.424777962)*i-3.*sin(3.141592654*i-9.424777962)+9.*sin(3.141592654*i+3.141592654)+9.*sin(3.141592654*i-3.141592654)-3.*sin(3.141592654*i+9.424777962))*q[2]*q[1]/((i+1.)*(i+3.)*(i-3.)*(i-1.))-44.41321982*(sin(3.141592654*i-15.70796327)*i^3-1.*sin(3.141592654*i+15.70796327)*i^3+5.*sin(3.141592654*i-15.70796327)*i^2+5.*sin(3.141592654*i+15.70796327)*i^2-5.*sin(3.141592654*i+15.70796327)-5.*sin(3.141592654*i-15.70796327)-1.*sin(3.141592654*i-15.70796327)*i+sin(3.141592654*i+15.70796327)*i-1.*sin(3.141592654*i+3.141592654)*i^3+sin(3.141592654*i-3.141592654)*i^3+sin(3.141592654*i+3.141592654)*i^2+sin(3.141592654*i-3.141592654)*i^2-25.*sin(3.141592654*i+3.141592654)+25.*sin(3.141592654*i+3.141592654)*i-25.*sin(3.141592654*i-3.141592654)*i-25.*sin(3.141592654*i-3.141592654))*q[2]*q[3]/((i-1.)*(i+5.)*(i-5.)*(i+1.))-78.95683522*(-36.*sin(-6.283185312+3.141592654*i)*i+4.*sin(18.84955593+3.141592654*i)*i-4.*sin(-18.84955593+3.141592654*i)*i+36.*sin(6.283185312+3.141592654*i)*i+sin(-6.283185312+3.141592654*i)*i^3-1.*sin(18.84955593+3.141592654*i)*i^3+sin(-18.84955593+3.141592654*i)*i^3-1.*sin(6.283185312+3.141592654*i)*i^3+2.*sin(-6.283185312+3.141592654*i)*i^2+6.*sin(18.84955593+3.141592654*i)*i^2+6.*sin(-18.84955593+3.141592654*i)*i^2+2.*sin(6.283185312+3.141592654*i)*i^2-24.*sin(-18.84955593+3.141592654*i)-72.*sin(6.283185312+3.141592654*i)-72.*sin(-6.283185312+3.141592654*i)-24.*sin(18.84955593+3.141592654*i))*q[2]*q[4]/((i-2.)*(i+6.)*(i-6.)*(i+2.))+123.3700550*(-1.*sin(3.141592654*i-21.99114858)*i^3+sin(3.141592654*i+21.99114858)*i^3-7.*sin(3.141592654*i-21.99114858)*i^2-7.*sin(3.141592654*i+21.99114858)*i^2+63.*sin(3.141592654*i-21.99114858)+63.*sin(3.141592654*i+21.99114858)+9.*sin(3.141592654*i-21.99114858)*i-9.*sin(3.141592654*i+21.99114858)*i-1.*sin(3.141592654*i-9.424777962)*i^3+sin(3.141592654*i+9.424777962)*i^3-3.*sin(3.141592654*i-9.424777962)*i^2-3.*sin(3.141592654*i+9.424777962)*i^2+147.*sin(3.141592654*i+9.424777962)+147.*sin(3.141592654*i-9.424777962)+49.*sin(3.141592654*i-9.424777962)*i-49.*sin(3.141592654*i+9.424777962)*i)*q[2]*q[5]/((i-3.)*(i+7.)*(i-7.)*(i+3.))-177.6528793*(-64.*sin(-12.56637061+3.141592654*i)*i+16.*sin(3.141592654*i+25.13274123)*i-16.*sin(3.141592654*i-25.13274123)*i+64.*sin(12.56637061+3.141592654*i)*i+sin(-12.56637061+3.141592654*i)*i^3-1.*sin(3.141592654*i+25.13274123)*i^3+sin(3.141592654*i-25.13274123)*i^3-1.*sin(12.56637061+3.141592654*i)*i^3+4.*sin(-12.56637061+3.141592654*i)*i^2+8.*sin(3.141592654*i+25.13274123)*i^2+8.*sin(3.141592654*i-25.13274123)*i^2+4.*sin(12.56637061+3.141592654*i)*i^2-256.*sin(12.56637061+3.141592654*i)-256.*sin(-12.56637061+3.141592654*i)-128.*sin(3.141592654*i+25.13274123)-128.*sin(3.141592654*i-25.13274123))*q[2]*q[6]/((i-4.)*(i+8.)*(i-8.)*(i+4.))-241.8053078*(sin(-28.27433389+3.141592654*i)*i^3-1.*sin(3.141592654*i+15.70796327)*i^3+5.*sin(3.141592654*i-15.70796327)*i^2+9.*sin(28.27433389+3.141592654*i)*i^2+9.*sin(-28.27433389+3.141592654*i)*i^2+5.*sin(3.141592654*i+15.70796327)*i^2-81.*sin(3.141592654*i-15.70796327)*i+25.*sin(28.27433389+3.141592654*i)*i-25.*sin(-28.27433389+3.141592654*i)*i+81.*sin(3.141592654*i+15.70796327)*i+sin(3.141592654*i-15.70796327)*i^3-1.*sin(28.27433389+3.141592654*i)*i^3-225.*sin(28.27433389+3.141592654*i)-225.*sin(-28.27433389+3.141592654*i)-405.*sin(3.141592654*i+15.70796327)-405.*sin(3.141592654*i-15.70796327))*q[2]*q[7]/((i-5.)*(9.+i)*(-9.+i)*(i+5.))-7.402203303*(-1.*sin(3.141592654*i-6.283185308)*i^3+sin(3.141592654*i+6.283185308)*i^3+sin(3.141592654*i-12.56637062)*i^3-1.*sin(3.141592654*i+12.56637062)*i^3-2.*sin(3.141592654*i-6.283185308)*i^2-2.*sin(3.141592654*i+6.283185308)*i^2+4.*sin(3.141592654*i-12.56637062)*i^2+4.*sin(3.141592654*i+12.56637062)*i^2+16.*sin(3.141592654*i-6.283185308)*i-16.*sin(3.141592654*i+6.283185308)*i-4.*sin(3.141592654*i-12.56637062)*i+4.*sin(3.141592654*i+12.56637062)*i+32.*sin(3.141592654*i-6.283185308)+32.*sin(3.141592654*i+6.283185308)-16.*sin(3.141592654*i-12.56637062)-16.*sin(3.141592654*i+12.56637062))*q[3]*q[1]/((i+2.)*(i+4.)*(i-4.)*(i-2.))-29.60881321*(sin(3.141592654*i-15.70796327)*i^3-1.*sin(3.141592654*i+15.70796327)*i^3+5.*sin(3.141592654*i-15.70796327)*i^2+5.*sin(3.141592654*i+15.70796327)*i^2-5.*sin(3.141592654*i+15.70796327)-5.*sin(3.141592654*i-15.70796327)-1.*sin(3.141592654*i-15.70796327)*i+sin(3.141592654*i+15.70796327)*i+sin(3.141592654*i+3.141592654)*i^3-1.*sin(3.141592654*i-3.141592654)*i^3-1.*sin(3.141592654*i+3.141592654)*i^2-1.*sin(3.141592654*i-3.141592654)*i^2+25.*sin(3.141592654*i+3.141592654)-25.*sin(3.141592654*i+3.141592654)*i+25.*sin(3.141592654*i-3.141592654)*i+25.*sin(3.141592654*i-3.141592654))*q[3]*q[2]/((i+1.)*(i+5.)*(i-5.)*(i-1.))-118.4352528*(-49.*sin(-3.141592658+3.141592654*i)*i+sin(3.141592654*i+21.99114858)*i-1.*sin(3.141592654*i-21.99114858)*i+49.*sin(3.141592658+3.141592654*i)*i+sin(-3.141592658+3.141592654*i)*i^3-1.*sin(3.141592654*i+21.99114858)*i^3+sin(3.141592654*i-21.99114858)*i^3-1.*sin(3.141592658+3.141592654*i)*i^3+sin(-3.141592658+3.141592654*i)*i^2+7.*sin(3.141592654*i+21.99114858)*i^2+7.*sin(3.141592654*i-21.99114858)*i^2+sin(3.141592658+3.141592654*i)*i^2-7.*sin(3.141592654*i+21.99114858)-7.*sin(3.141592654*i-21.99114858)-49.*sin(3.141592658+3.141592654*i)-49.*sin(-3.141592658+3.141592654*i))*q[3]*q[4]/((i-1.)*(i+7.)*(i-7.)*(i+1.))+185.0550826*(32.*sin(3.141592654*i-25.13274123)+32.*sin(3.141592654*i+25.13274123)+4.*sin(3.141592654*i-25.13274123)*i-4.*sin(3.141592654*i+25.13274123)*i-1.*sin(3.141592654*i-6.283185308)*i^3+sin(3.141592654*i+6.283185308)*i^3-2.*sin(3.141592654*i-6.283185308)*i^2-2.*sin(3.141592654*i+6.283185308)*i^2+128.*sin(3.141592654*i+6.283185308)+128.*sin(3.141592654*i-6.283185308)-64.*sin(3.141592654*i+6.283185308)*i+64.*sin(3.141592654*i-6.283185308)*i-1.*sin(3.141592654*i-25.13274123)*i^3+sin(3.141592654*i+25.13274123)*i^3-8.*sin(3.141592654*i-25.13274123)*i^2-8.*sin(3.141592654*i+25.13274123)*i^2)*q[3]*q[5]/((i-2.)*(i+8.)*(i-8.)*(i+2.))-266.4793189*(-81.*sin(-9.424777958+3.141592654*i)*i+9.*sin(28.27433388+3.141592654*i)*i-9.*sin(-28.27433388+3.141592654*i)*i+81.*sin(9.424777958+3.141592654*i)*i+sin(-9.424777958+3.141592654*i)*i^3-1.*sin(28.27433388+3.141592654*i)*i^3+sin(-28.27433388+3.141592654*i)*i^3-1.*sin(9.424777958+3.141592654*i)*i^3+3.*sin(-9.424777958+3.141592654*i)*i^2+9.*sin(28.27433388+3.141592654*i)*i^2+9.*sin(-28.27433388+3.141592654*i)*i^2+3.*sin(9.424777958+3.141592654*i)*i^2-243.*sin(-9.424777958+3.141592654*i)-81.*sin(28.27433388+3.141592654*i)-81.*sin(-28.27433388+3.141592654*i)-243.*sin(9.424777958+3.141592654*i))*q[3]*q[6]/((i-3.)*(9.+i)*(-9.+i)*(i+3.))-362.7079617*(sin(-31.41592654+3.141592654*i)*i^3-1.*sin(3.141592654*i+12.56637062)*i^3+4.*sin(3.141592654*i-12.56637062)*i^2+10.*sin(31.41592654+3.141592654*i)*i^2+10.*sin(-31.41592654+3.141592654*i)*i^2+4.*sin(3.141592654*i+12.56637062)*i^2-100.*sin(3.141592654*i-12.56637062)*i+16.*sin(31.41592654+3.141592654*i)*i-16.*sin(-31.41592654+3.141592654*i)*i+100.*sin(3.141592654*i+12.56637062)*i+sin(3.141592654*i-12.56637062)*i^3-1.*sin(31.41592654+3.141592654*i)*i^3-160.*sin(-31.41592654+3.141592654*i)-400.*sin(3.141592654*i+12.56637062)-400.*sin(3.141592654*i-12.56637062)-160.*sin(31.41592654+3.141592654*i))*q[3]*q[7]/((i-4.)*(10.+i)*(-10.+i)*(i+4.))-9.869604404*(sin(3.141592654*i-15.70796327)*i^3-1.*sin(3.141592654*i+15.70796327)*i^3+5.*sin(3.141592654*i-15.70796327)*i^2+5.*sin(3.141592654*i+15.70796327)*i^2-45.*sin(3.141592654*i+15.70796327)-45.*sin(3.141592654*i-15.70796327)-9.*sin(3.141592654*i-15.70796327)*i+9.*sin(3.141592654*i+15.70796327)*i-1.*sin(3.141592654*i-9.424777962)*i^3+sin(3.141592654*i+9.424777962)*i^3-3.*sin(3.141592654*i-9.424777962)*i^2-3.*sin(3.141592654*i+9.424777962)*i^2+75.*sin(3.141592654*i+9.424777962)+75.*sin(3.141592654*i-9.424777962)+25.*sin(3.141592654*i-9.424777962)*i-25.*sin(3.141592654*i+9.424777962)*i)*q[4]*q[1]/((i+3.)*(i+5.)*(i-5.)*(i-3.))-39.47841761*(sin(3.141592654*i-18.84955592)*i^3-1.*sin(3.141592654*i+18.84955592)*i^3+6.*sin(3.141592654*i-18.84955592)*i^2+6.*sin(3.141592654*i+18.84955592)*i^2-24.*sin(3.141592654*i-18.84955592)-24.*sin(3.141592654*i+18.84955592)-4.*sin(3.141592654*i-18.84955592)*i+4.*sin(3.141592654*i+18.84955592)*i-1.*sin(3.141592654*i-6.283185308)*i^3+sin(3.141592654*i+6.283185308)*i^3-2.*sin(3.141592654*i-6.283185308)*i^2-2.*sin(3.141592654*i+6.283185308)*i^2+72.*sin(3.141592654*i+6.283185308)+72.*sin(3.141592654*i-6.283185308)-36.*sin(3.141592654*i+6.283185308)*i+36.*sin(3.141592654*i-6.283185308)*i)*q[4]*q[2]/((i+2.)*(i+6.)*(i-6.)*(i-2.))-88.82643964*(sin(3.141592654*i-21.99114858)*i^3-1.*sin(3.141592654*i+21.99114858)*i^3+7.*sin(3.141592654*i-21.99114858)*i^2+7.*sin(3.141592654*i+21.99114858)*i^2-7.*sin(3.141592654*i-21.99114858)-7.*sin(3.141592654*i+21.99114858)-1.*sin(3.141592654*i-21.99114858)*i+sin(3.141592654*i+21.99114858)*i+sin(3.141592654*i+3.141592654)*i^3-1.*sin(3.141592654*i-3.141592654)*i^3-1.*sin(3.141592654*i+3.141592654)*i^2-1.*sin(3.141592654*i-3.141592654)*i^2+49.*sin(3.141592654*i+3.141592654)-49.*sin(3.141592654*i+3.141592654)*i+49.*sin(3.141592654*i-3.141592654)*i+49.*sin(3.141592654*i-3.141592654))*q[4]*q[3]/((i+1.)*(i+7.)*(i-7.)*(i-1.))+246.7401101*(sin(3.141592654*i+3.141592654)*i^3-1.*sin(3.141592654*i-3.141592654)*i^3-1.*sin(3.141592654*i+3.141592654)*i^2-1.*sin(3.141592654*i-3.141592654)*i^2-9.*sin(28.27433389+3.141592654*i)*i^2-9.*sin(-28.27433389+3.141592654*i)*i^2-1.*sin(28.27433389+3.141592654*i)*i+sin(-28.27433389+3.141592654*i)*i+sin(28.27433389+3.141592654*i)*i^3-1.*sin(-28.27433389+3.141592654*i)*i^3+81.*sin(3.141592654*i+3.141592654)-81.*sin(3.141592654*i+3.141592654)*i+81.*sin(3.141592654*i-3.141592654)*i+81.*sin(3.141592654*i-3.141592654)+9.*sin(-28.27433389+3.141592654*i)+9.*sin(28.27433389+3.141592654*i))*q[4]*q[5]/((i-1.)*(9.+i)*(-9.+i)*(i+1.))-355.3057585*(-100.*sin(-6.283185304+3.141592654*i)*i+4.*sin(31.41592654+3.141592654*i)*i-4.*sin(-31.41592654+3.141592654*i)*i+100.*sin(6.283185304+3.141592654*i)*i+sin(-6.283185304+3.141592654*i)*i^3-1.*sin(31.41592654+3.141592654*i)*i^3+sin(-31.41592654+3.141592654*i)*i^3-1.*sin(6.283185304+3.141592654*i)*i^3+2.*sin(-6.283185304+3.141592654*i)*i^2+10.*sin(31.41592654+3.141592654*i)*i^2+10.*sin(-31.41592654+3.141592654*i)*i^2+2.*sin(6.283185304+3.141592654*i)*i^2-40.*sin(31.41592654+3.141592654*i)-40.*sin(-31.41592654+3.141592654*i)-200.*sin(6.283185304+3.141592654*i)-200.*sin(-6.283185304+3.141592654*i))*q[4]*q[6]/((i-2.)*(10.+i)*(-10.+i)*(i+2.))-483.6106156*(sin(-34.55751920+3.141592654*i)*i^3-1.*sin(9.424777964+3.141592654*i)*i^3+3.*sin(-9.424777964+3.141592654*i)*i^2+11.*sin(34.55751920+3.141592654*i)*i^2+11.*sin(-34.55751920+3.141592654*i)*i^2+3.*sin(9.424777964+3.141592654*i)*i^2-121.*sin(-9.424777964+3.141592654*i)*i+9.*sin(34.55751920+3.141592654*i)*i-9.*sin(-34.55751920+3.141592654*i)*i+121.*sin(9.424777964+3.141592654*i)*i+sin(-9.424777964+3.141592654*i)*i^3-1.*sin(34.55751920+3.141592654*i)*i^3-363.*sin(9.424777964+3.141592654*i)-363.*sin(-9.424777964+3.141592654*i)-99.*sin(34.55751920+3.141592654*i)-99.*sin(-34.55751920+3.141592654*i))*q[4]*q[7]/((i-3.)*(11.+i)*(-11.+i)*(i+3.)))+Cd*(.1591549431*(sin(3.141592654*i-3.141592654)*i-1.*sin(3.141592654*i+3.141592654)*i+sin(3.141592654*i-3.141592654)+sin(3.141592654*i+3.141592654))*(diff(p(t), t))[1]/((i-1.)*(i+1.))+.1591549431*(sin(3.141592654*i-6.283185308)*i-1.*sin(3.141592654*i+6.283185308)*i+2.*sin(3.141592654*i-6.283185308)+2.*sin(3.141592654*i+6.283185308))*(diff(p(t), t))[2]/((i-2.)*(i+2.))+.1591549431*(sin(3.141592654*i-9.424777962)*i-1.*sin(3.141592654*i+9.424777962)*i+3.*sin(3.141592654*i-9.424777962)+3.*sin(3.141592654*i+9.424777962))*(diff(p(t), t))[3]/((i-3.)*(i+3.))+.1591549431*(sin(3.141592654*i-12.56637062)*i-1.*sin(3.141592654*i+12.56637062)*i+4.*sin(3.141592654*i-12.56637062)+4.*sin(3.141592654*i+12.56637062))*(diff(p(t), t))[4]/((i-4.)*(i+4.))+.1591549431*(sin(3.141592654*i-15.70796327)*i-1.*sin(3.141592654*i+15.70796327)*i+5.*sin(3.141592654*i-15.70796327)+5.*sin(3.141592654*i+15.70796327))*(diff(p(t), t))[5]/((i-5.)*(i+5.))+.1591549431*(sin(3.141592654*i-18.84955592)*i-1.*sin(3.141592654*i+18.84955592)*i+6.*sin(3.141592654*i-18.84955592)+6.*sin(3.141592654*i+18.84955592))*(diff(p(t), t))[6]/((i-6.)*(i+6.))+.1591549431*(sin(3.141592654*i-21.99114858)*i-1.*sin(3.141592654*i+21.99114858)*i+7.*sin(3.141592654*i-21.99114858)+7.*sin(3.141592654*i+21.99114858))*(diff(p(t), t))[7]/((i-7.)*(i+7.))+.1591549431*(sin(3.141592654*i-25.13274123)*i-1.*sin(3.141592654*i+25.13274123)*i+8.*sin(3.141592654*i-25.13274123)+8.*sin(3.141592654*i+25.13274123))*(diff(p(t), t))[8]/((i-8.)*(i+8.))), i = 1)

 

Warning,  computation interrupted

 

``

``

NULL

pp2 := sum((int(phi[i]*phi[j], x = 0 .. 1, numeric))*(diff(q(t), t, t))[j], j = 1 .. 7)+(1+`&eta;&eta;`)*(sum((int(phi[i]*(diff(phi[j], x, x, x, x)), x = 0 .. 1, numeric))*q(t)[j], j = 1 .. 7))+Cd*(sum((int(phi[i]*phi[j], x = 0 .. 1, numeric))*(diff(q(t), t))[j], j = 1 .. 7))-beta^2*(sum(sum((int(phi[i]*(diff(phi[j], x, x))*(diff(phi[k], x)), x = 0 .. 1, numeric))*q(t)[j]*p[k], k = 1 .. 8), j = 1 .. 7)+sum(sum((int(phi[i]*(diff(phi[j], x))*(diff(phi[k], x, x)), x = 0 .. 1, numeric))*q(t)[j]*p[k], k = 1 .. 8), j = 1 .. 7)+sum((int(AA0*(diff(phi[1], x, x))*phi[i]*(diff(phi[j], x)), x = 0 .. 1, numeric))*p[j], j = 1 .. 8)+sum((int(AA0*(diff(phi[1], x))*phi[i]*(diff(phi[j], x, x)), x = 0 .. 1, numeric))*p[j], j = 1 .. 8)+(3/2)*(sum(sum(sum((int(phi[i]*(diff(phi[j], x))*(diff(phi[k], x))*(diff(phi[l], x, x)), x = 0 .. 1, numeric))*q(t)[j]*q(t)[k]*q(t)[l], l = 1 .. 7), k = 1 .. 7), j = 1 .. 7))+(3/2)*(sum(sum((int(AA0*(diff(phi[1], x, x))*phi[i]*(diff(phi[j], x))*(diff(phi[k], x)), x = 0 .. 1, numeric))*q(t)[j]*q(t)[k], k = 1 .. 7), j = 1 .. 7))+sum((int((AA0*(diff(phi[1], x)))^2*phi[i]*(diff(phi[j], x, x)), x = 0 .. 1, numeric))*q(t)[j], j = 1 .. 7)+3*(sum(sum((int(AA0*(diff(phi[1], x))*phi[i]*(diff(phi[j], x))*(diff(phi[k], x, x)), x = 0 .. 1, numeric))*q(t)[j]*q(t)[k], k = 1 .. 7), j = 1 .. 7))+2*(sum((int(AA0^2*(diff(phi[1], x))*(diff(phi[1], x, x))*phi[i]*(diff(phi[j], x)), x = 0 .. 1, numeric))*q(t)[j], j = 1 .. 7)))-(int(f1*phi[1]*phi[i], x = 0 .. 1, numeric))*cos(Omega*t)

NULL

NULL

``

for z to 7 do limit(pp2, i = z) end do

Warning,  computation interrupted

 

``

NULL

``

``

``

``

``

``

``

``

``

``

``

``

``

``

``


 

Download 11111111111111.mwWould you mind please check out my code11111111111111.mw

11111111111111.mw

Hello everyone,

I am experiencing a strange result. The Theta_double_dot got equated to zero in line 1.7. Please see the red arrow.

(I am using the Physics package)

How can I solve this issue?

u:=(x,t)->(40/Pi)*sum((1/r)*sin(r*Pi*x/2)*exp(-lambda^2*t),r=1....infinity);     r=1,3,5.... 

this is one dimensional heat equation solution. r values must be odd numbers and we can take the random r variable like 1000 .x=0...2 and t=0...1   but I don't know how can I draw 3d plot. If I write plot3d([u(x,t)],x=0...2,t=0...1); give an error.(bad range arguments)

Dear Maple useres,

I have a polynomial in the form f(s)/g(s) where f and g are polynomial of order 4 with coefficients in symbolic form. I want to convert it in a form of (s-a)*(s-b)*(s-c)*(s-d)/(s-a1)*(s-b1)*(s-c1)*(s-d1)

When i provide the numic value of  symbolic coefficients, Maple find it easy to factor it in the desired form. Otherwise i get a messy solution in the form of root of... expression. Even with assume command, I see no difference in the result. Is there a way to get the above simple form rather than root of expression?

thanks.

 

Hello!

I am currently working with the A = rosser Matrix. Which is found in Matlab. The task is to find the eigenvectors of this Matrix in Matlab and Maple. I have succeeded in matlab, but I am confused with Maple. What I have done:

1) In Matlab I save the A = roseer so I could import in from Maple

2) I go back to Maple

3) I write with(LinearAlgebra);

3) I use this path "Tools>Assistants>Import Data" and I select the saved Matlab file (Named A.mat) (No specific folder if that is important)

4) I use "Matrix Data Type" as "Anything" and I give the Variable name "A"

5) I now see the Matrix inside Maple. BUT I get dots after each value. Like this --> 99. 3. -147. etc - This might be an issue.

Note: I never get to select file format. Is that because they know it was a matlab file? Or a setting I am missing out on?

6) I write A := A[2] (According to teachers instructions)

7)  Then I write: eigenvects(A);  (Teachers isntructions)

But I am getting no proper values at all. I assume it is something with the import. So I added this 8x8 Matrix by hand. I got a better result with a result. But the result is wrong. I am getting 7 eigenvectors while there should be 8. See the code at: Method-two.mw

I am turning crazy over here. Anyone smart who could help me out please?

Hi,

 

I use Statistics[Biplot] and the rendering is very bad with those huge arrows.

For the moment I fix this by modifying the definitions of the curves which draw each arrow (after using getdata to recover the Biplot structure)

Does it exist a simpler way to manage the appearance of the arrows ?
(options cb, cw and ch of plottols[arrow] are incorrect in Statistics[Biplot](..., arrow=[...]).

Thanks in advance

My co-author and I recently published the 3rd edition of our finite element book1 utilizing routines written with MAPLE. In this latest edition, we include a chapter on the meshless method. The meshless method is a unique numerical method for solving PDEs. The finite element method requires the establishment of a mesh associated with node points. Consideration must be given in establishing a good mesh (and minimizing the bandwidth associated with node numbering). The meshless method does not require a mesh to connect nodes. The following excerpt describes the application of the meshless method for a simple 1-D heat transfer simulation using six nodes.

Consider the 1-D expression for heat transfer in a bar defined by the relation2

     (1)

where the 1-D domain is bounded by 0 ≤ xL. The exact solution to this problem is

     (2)

with the exact derivative of the temperature given by

     (3)

 

In order to solve the 1-D problem, a multiquadric (MQ) radial basis function (RBF) is used 

     (4)

where r(x, xj) is the radial (Euclidean) distance from the expansion point (xj) to any point (x) , c is a shape parameter that controls the flatness of the RBF and is set by the user, and n is an integer. With n = 1, we retrieve the inverse multiquadric

     (5)

that will be used to solve Eq. (1). Other types of RBFs are available; the MQ is accurate and popular.

 

A global expansion for the 1-D temperature can be expressed as

     (6)

with the second derivative of the temperature given as

     (7)

Introducing the RBF expansion for the terms in the governing equation, and collocating at the interior points, we obtain

     (8)

At the boundaries, we collocate the RBF expansion to impose the boundary conditions

     (9)

Defining the operator

     (10)

we can now assemble into a fully populated matrix as,

     (11)

 

The solutions obtained using finite difference, finite volume, finite element, boundary element, and the meshless method are listed in Table 1 for 6 equally spaced nodes3 with To = 15 and TL = 25, and L = 1. The interior nodes do not have to be uniformly spaced.

Table 1. Comparison of errors for interior temperatures i = 2,3,…N-1

 

The Maple code listing follows:

> restart:
   with(LinearAlgebra):with(plots):

# MESHLESS METHOD SOLUTION USING MULTIQUADRIC RADIAL BASIS
FUNCTIONS (RBF) il:=6:To:=15:TL:=25:L:=1:
>   x:=[0,1/5,2/5,3/5,4/5,1]:
>   S:=1000:n:=1:dx:=1/(il-1):
>   C:=Array(1..il,1..il):phi:=Array(1..il,1..il):d2phi:=Array(1..il,1..il):
b:=Vector(1..il):TM:=Vector(1..il):alpha:=Vector(1..il):
for i from 1 to il do
   for j from 1 to il do
      phi[i,j]:=(1+(x[i]-x[j])^2/(S*dx^2))^(n-3/2):
      d2phi[i,j]:=3*((x[j]-x[i])/20)^2/(4*((x[j]-x[i])^2/40+1)^(5/2) )-1/(40*((x[j]-x[i])^2/40+1)^(3/2)):
   end do:
end do:
>   for i from 2 to il-1 do    
>       for j from 1 to il do
>         C[i,j]:=d2phi[i,j]+phi[i,j];
            b[i]:=-x[i];
>         C[1,j]:=phi[1,j];
           C[il,j]:=phi[il,j];
         end do:
      end do:
      b[1]:=To:b[il]:=TL:
> #ConditionNumber(C);
>   alpha:=LinearSolve(convert(C,Matrix),b):
TM[1]:=To:TM[6]:=TL:
for i from 2 to il-1 do
   for j from 1 to il do
>         TM[i]:=TM[i]+alpha[j]*(1+(x[i]-x[j])^2/(S*dx^2))^(n-3/2);
 >     end do:
>   end do:
     evalf(TM);

                     

> TE:=To*cos(xx)+(TL+L-To*cos(L))/sin(L)*sin(xx)-xx:
> TE:=subs(TE):
> TE:=plot(TE,xx=0..1,color=blue,legend="Exact",thickness=3):
> MEM:=[seq([subs(x[i]),subs(TM[i])],i=1..6)]:
> T:=plots[pointplot](MEM,style=line,color=red,legend="MEM", thickness=3): 
  MEM:=plots[pointplot](MEM,color=red,legend="MEM",symbol=box, symbolsize=15):

>  plots[display](TE,MEM,T,axes=BOXED,title="Solution - MEM");

              

 

Additional examples for two-dimensional domains are described in the text, along with a chapter on the boundary element method. The meshless method is an interesting numerical approach that belongs to the family of weighted residual techniques. The matrix condition number is on the order of 1010 and can give surprisingly good results – however, the solution can fluctuate when repeatedly executed, eventually returning to the nearly correct solution; this is not an issue when using local assembly instead of the global assemble performed here4. The method can be used to form hybrid schemes, e.g., a finite element method can easily be linked with a meshless method to solve a secondary system of equations for problems involving large domains. Results are not sensitive to the location of the nodes; a random placement of points gives qualitatively similar results as a uniform placement.

Just over a year ago, someone asked me if Maple could help them pick names for their family gift exchange, because they were fed up with trying to find a solution by hand that met all their requirements. I knew it could be done, of course, and I spent some time (and at least one family dinner conversation) talking about how to do it. There wasn’t enough time to help my friend last year, but I dusted off my ideas, and my somewhat rusty Maple programming skills, and put something together for this year.

The problem, as stated to me, was “Assign everyone in the group the name of someone else in the group (the person they will buy a present for), with the restriction that no one can be assigned their partner.”

I decided to generalize a bit so that you can specify more than one person in the “do not pick” list for each individual, and the restrictions do not have to be reciprocal. That way, you can use it with rules like “parents cannot pick their children”, or “Elizabeth got Martin two years running, so she can’t pick him again this year”.

Ultimately I went with a “guess and check” approach. For each person, pick a name from the pool of suitable candidates (excluding themselves, anyone on their “do not pick” list, and anyone who has been picked already). Keep assigning names until either everyone has a name, or you end up in a situation where you can’t give someone a name. This can happen, for instance, if Todd is the last name, and the only unmatched name is Catherine, and Todd cannot pick Catherine. If that happens, I tossed all the names back into the virtual hat, gave it a good shake (i.e. randomize()) and tried again. Not as elegant as I would have liked, but it seemed like an effective approach.

It does feel like there ought to be a “nicer” solution. Maybe using graph theory? I know that my code will get into trouble if the restrictions are such that no solution exists.  If anyone has any ideas on other/better ways to solve this problem I’d be happy to hear them (now that I’ve had the fun of solving it myself first!).  

The application can be found on the application center: Gift Exchange Helper. The name picker algorithm is in the start-up code.

Happy gift giving!

Hello,

I used the interface(typesetting = extended) command to change the notation used for time derivative of o variable.

But it doesn't seem to be working well when the variable is in the supercript form (check the last line).

How can I solve this issue?

Mapleprimesquestion.mw

 

x/2 seems completely wrong as a CDF. In other cases Maple correctly writes the CDF as a piecewise-constant function clipped to 0..1:

with(Statistics):

dd := Distribution(ProbabilityFunction = 1/2, Support = 1 .. 2);

PDF(dd, x); # OK
                   (1/2)*Dirac(x-1)+(1/2)*Dirac(x-2)

CDF(dd, x);
                                (1/2)*x

Also CDF seems to have issues with DiscreteValueMap specified using a list, a table or piecewise():

dd := Distribution(ProbabilityFunction = 1/2, DiscreteValueMap = (n -> [1, 2][n]), Support = 1 .. 2);

PDF(dd, x); # OK
                    (1/2)*Dirac(x-1)+(1/2)*Dirac(x-2)

CDF(dd, x); # indeterminate
  int((1/2)*Dirac(0)*Dirac(_t-1)+(1/2)*Dirac(0)*Dirac(_t-2), _t = -infinity .. x)

 

The computation of traces of products of Dirac matrices was implemented years ago - see Physics,Trace .

 

The simplification of products of Dirac matrices, however, was not. Now it is, and illustrating this new feature is the matter of this post. To reproduce the results below please update the Physics library with the one distributed at the Maplesoft R&D Physics webpage.

with(Physics)

 

First of all, when loading Physics, a frequent question is about the signature, the default is (- - - +)

Setup(signature)

[signature = `- - - +`]

(1)

This is important because the convention for the Algebra of Dirac Matrices depends on the signature. With the signatures (- - - +) as well as (+ - - -), the sign of the timelike component is 1

Library:-SignOfTimelikeComponent()

1

(2)

With the signatures (+ + + -) as well as (- + + +), the sign of the timelike component is of course -1

Library:-SignOfTimelikeComponent(`+ + + -`)

-1

(3)

The simplification of products of Dirac Matrices, illustrated below with the default signature, works fine with any of these signatures, and works without having to set a representation for the Dirac matrices -- all the results are representation-independent.

 

The examples below, however, also illustrate a new feature of Physics, for now implemented as a Library:-PerformMatrixOperations command (there is a related, also new, command, Library:-RewriteInMatrixForm, to just present the underlying matrix operations, without performing them). To illustrate this other new functionality , set a representation for the Dirac matrices, say the standard one

 

Setup(Dgamma = standard, math = true)

`* Partial match of  'Physics:-Dgamma' against keyword 'Dgammarepresentation'`

 

`* Partial match of  'math' against keyword 'mathematicalnotation'`

 

`Setting lowercaselatin letters to represent spinor indices `

 

`Defined Dirac gamma matrices (Dgamma) in standard representation`, gamma[1], gamma[2], gamma[3], gamma[4]

 

__________________________________________________

 

[Dgammarepresentation = standard, mathematicalnotation = true]

(4)

The four Dirac matrices are

TensorArray(Dgamma[`~mu`])

Array(%id = 18446744078360533342)

(5)

The definition of the Dirac matrices is implemented in Maple following the conventions of Landau books ([1] Quantum Electrodynamics, V4), and  does not depend on the signature, ie the form of these matrices is

"Library:-RewriteInMatrixForm(?)"

Array(%id = 18446744078360529726)

(6)

With the default signature, the space part components of  gamma[mu] change sign when compared with corresponding ones from gamma[`~mu`] while the timelike component remains unchanged

TensorArray(Dgamma[mu])

Array(%id = 18446744078565663678)

(7)

"Library:-RewriteInMatrixForm(?)"

Array(%id = 18446744078677131982)

(8)

For the default signature, the algebra of the Dirac Matrices, loaded by default when Physics is loaded, is (see page 80 of [1])

(%AntiCommutator = AntiCommutator)(Dgamma[`~mu`], Dgamma[`~nu`])

%AntiCommutator(Physics:-Dgamma[`~mu`], Physics:-Dgamma[`~nu`]) = 2*Physics:-g_[`~mu`, `~nu`]

(9)

When the sign of the timelike component of the signature is -1, we have a -1 factor on the right-hand side of (9).

 

Note as well that in (9) the right-hand side has no matrix elements. This is standard in particle physics where the computations are performed algebraically, without performing the matrix operations. For the purpose of actually performing the underlying matrix operations, however, one may want to rewrite this algebra including a 4x4 identity matrix. For that purpose, see Algebra of Dirac Matrices with an identity matrix on the right-hand side. For the purpose of this illustration, below we proceed with the algebra as shown in (9), interpreting right-hand sides as if they involve an identity matrix.

 

Verify the algebra rule by performing all the involved matrix operations

expand(%AntiCommutator(Physics[Dgamma][`~mu`], Physics[Dgamma][`~nu`]) = 2*Physics[g_][`~mu`, `~nu`])

Physics:-`*`(Physics:-Dgamma[`~mu`], Physics:-Dgamma[`~nu`])+Physics:-`*`(Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~mu`]) = 2*Physics:-g_[`~mu`, `~nu`]

(10)

Note that, regarding the spacetime indices, this is a 4x4 matrix, whose elements are in turn 4x4 matrices. Compute first the external 4x4 matrix related to mu and nu

TensorArray(Physics[`*`](Physics[Dgamma][`~mu`], Physics[Dgamma][`~nu`])+Physics[`*`](Physics[Dgamma][`~nu`], Physics[Dgamma][`~mu`]) = 2*Physics[g_][`~mu`, `~nu`])

Matrix(%id = 18446744078587020822)

(11)

Perform now all the matrix operations involved in each of the elements of this 4x4 matrix

"Library:-PerformMatrixOperations(?)"

Matrix(%id = 18446744078743243942)

(12)

By eye everything checks OK.NULL

 

Consider now the following five products of Dirac matrices

e0 := Dgamma[mu]^2

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~mu`])

(13)

e1 := Dgamma[mu]*Dgamma[`~nu`]*Dgamma[mu]

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~mu`])

(14)

e2 := Dgamma[mu]*Dgamma[`~lambda`]*Dgamma[`~nu`]*Dgamma[mu]

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~mu`])

(15)

e3 := Dgamma[mu]*Dgamma[`~lambda`]*Dgamma[`~nu`]*Dgamma[`~rho`]*Dgamma[mu]

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~mu`])

(16)

e4 := Dgamma[mu]*Dgamma[`~lambda`]*Dgamma[`~nu`]*Dgamma[`~rho`]*Dgamma[`~sigma`]*Dgamma[mu]

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~sigma`], Physics:-Dgamma[`~mu`])

(17)

New: the simplification of these products is now implemented

e0 = Simplify(e0)

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~mu`]) = 4

(18)

Verify this result performing the underlying matrix operations

T := SumOverRepeatedIndices(Physics[`*`](Physics[Dgamma][mu], Physics[Dgamma][`~mu`]) = 4)

Physics:-`*`(Physics:-Dgamma[1], Physics:-Dgamma[`~1`])+Physics:-`*`(Physics:-Dgamma[2], Physics:-Dgamma[`~2`])+Physics:-`*`(Physics:-Dgamma[3], Physics:-Dgamma[`~3`])+Physics:-`*`(Physics:-Dgamma[4], Physics:-Dgamma[`~4`]) = 4

(19)

Library:-PerformMatrixOperations(T)

Matrix(%id = 18446744078553169662) = 4

(20)

The same with the other expressions

e1 = Simplify(e1)

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~mu`]) = -2*Physics:-Dgamma[`~nu`]

(21)

SumOverRepeatedIndices(Physics[`*`](Physics[Dgamma][mu], Physics[Dgamma][`~nu`], Physics[Dgamma][`~mu`]) = -2*Physics[Dgamma][`~nu`])

Physics:-`*`(Physics:-Dgamma[1], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~1`])+Physics:-`*`(Physics:-Dgamma[2], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~2`])+Physics:-`*`(Physics:-Dgamma[3], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~3`])+Physics:-`*`(Physics:-Dgamma[4], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~4`]) = -2*Physics:-Dgamma[`~nu`]

(22)

T := TensorArray(Physics[`*`](Physics[Dgamma][1], Physics[Dgamma][`~nu`], Physics[Dgamma][`~1`])+Physics[`*`](Physics[Dgamma][2], Physics[Dgamma][`~nu`], Physics[Dgamma][`~2`])+Physics[`*`](Physics[Dgamma][3], Physics[Dgamma][`~nu`], Physics[Dgamma][`~3`])+Physics[`*`](Physics[Dgamma][4], Physics[Dgamma][`~nu`], Physics[Dgamma][`~4`]) = -2*Physics[Dgamma][`~nu`])

Array(%id = 18446744078695012102)

(23)

Library:-PerformMatrixOperations(T)

Array(%id = 18446744078701714238)

(24)

For e2

e2 = Simplify(e2)

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~mu`]) = 4*Physics:-g_[`~lambda`, `~nu`]

(25)

SumOverRepeatedIndices(Physics[`*`](Physics[Dgamma][mu], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~mu`]) = 4*Physics[g_][`~lambda`, `~nu`])

Physics:-`*`(Physics:-Dgamma[1], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~1`])+Physics:-`*`(Physics:-Dgamma[2], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~2`])+Physics:-`*`(Physics:-Dgamma[3], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~3`])+Physics:-`*`(Physics:-Dgamma[4], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~4`]) = 4*Physics:-g_[`~lambda`, `~nu`]

(26)

T := TensorArray(Physics[`*`](Physics[Dgamma][1], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~1`])+Physics[`*`](Physics[Dgamma][2], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~2`])+Physics[`*`](Physics[Dgamma][3], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~3`])+Physics[`*`](Physics[Dgamma][4], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~4`]) = 4*Physics[g_][`~lambda`, `~nu`])

Matrix(%id = 18446744078470204942)

(27)

Library:-PerformMatrixOperations(T)

Matrix(%id = 18446744078550068870)

(28)

For e3 we have

e3 = Simplify(e3)

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~mu`]) = -2*Physics:-`*`(Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~lambda`])

(29)

Verify this result,

SumOverRepeatedIndices(Physics[`*`](Physics[Dgamma][mu], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~mu`]) = -2*Physics[`*`](Physics[Dgamma][`~rho`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~lambda`]))

Physics:-`*`(Physics:-Dgamma[1], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~1`])+Physics:-`*`(Physics:-Dgamma[2], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~2`])+Physics:-`*`(Physics:-Dgamma[3], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~3`])+Physics:-`*`(Physics:-Dgamma[4], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~4`]) = -2*Physics:-`*`(Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~lambda`])

(30)

In this case, with three free spacetime indices lambda, nu, rho, the spacetime components form an array 4x4x4 of 64 components, each of which is a matrix equation

T := TensorArray(Physics[`*`](Physics[Dgamma][1], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~1`])+Physics[`*`](Physics[Dgamma][2], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~2`])+Physics[`*`](Physics[Dgamma][3], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~3`])+Physics[`*`](Physics[Dgamma][4], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~4`]) = -2*Physics[`*`](Physics[Dgamma][`~rho`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~lambda`]))

Array(%id = 18446744078647326830)

(31)

For instance, the first element is

T[1, 1, 1]

Physics:-`*`(Physics:-Dgamma[1], Physics:-`^`(Physics:-Dgamma[`~1`], 4))+Physics:-`*`(Physics:-Dgamma[2], Physics:-`^`(Physics:-Dgamma[`~1`], 3), Physics:-Dgamma[`~2`])+Physics:-`*`(Physics:-Dgamma[3], Physics:-`^`(Physics:-Dgamma[`~1`], 3), Physics:-Dgamma[`~3`])+Physics:-`*`(Physics:-Dgamma[4], Physics:-`^`(Physics:-Dgamma[`~1`], 3), Physics:-Dgamma[`~4`]) = -2*Physics:-`^`(Physics:-Dgamma[`~1`], 3)

(32)

and it checks OK:

Library:-PerformMatrixOperations(T[1, 1, 1])

Matrix(%id = 18446744078647302614) = Matrix(%id = 18446744078647302974)

(33)

How can you test the 64 components of T all at once?

1. Compute the matrices, without displaying the whole thing, take the elements of the array and remove the indices (ie take the right-hand side); call it M

 

M := map(rhs, ArrayElems(Library:-PerformMatrixOperations(T)))

 

For instance,

M[1]

Matrix(%id = 18446744078629635726) = Matrix(%id = 18446744078629636206)

(34)

Now verify all these matrix equations at once: take the elements of the arrays on each side of the equations and verify that the are the same: we expect for output just {true}

 

map(proc (u) options operator, arrow; evalb(map(ArrayElems, u)) end proc, M)

{true}

(35)

The same for e4

e4 = Simplify(e4)

Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~sigma`], Physics:-Dgamma[`~mu`]) = 2*Physics:-`*`(Physics:-Dgamma[`~sigma`], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`])+2*Physics:-`*`(Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~sigma`])

(36)

SumOverRepeatedIndices(Physics[`*`](Physics[Dgamma][mu], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~sigma`], Physics[Dgamma][`~mu`]) = 2*Physics[`*`](Physics[Dgamma][`~sigma`], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`])+2*Physics[`*`](Physics[Dgamma][`~rho`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~sigma`]))

Physics:-`*`(Physics:-Dgamma[1], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~sigma`], Physics:-Dgamma[`~1`])+Physics:-`*`(Physics:-Dgamma[2], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~sigma`], Physics:-Dgamma[`~2`])+Physics:-`*`(Physics:-Dgamma[3], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~sigma`], Physics:-Dgamma[`~3`])+Physics:-`*`(Physics:-Dgamma[4], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~sigma`], Physics:-Dgamma[`~4`]) = 2*Physics:-`*`(Physics:-Dgamma[`~sigma`], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~rho`])+2*Physics:-`*`(Physics:-Dgamma[`~rho`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~sigma`])

(37)

Regarding the spacetime indices this is now an array 4x4x4x4

T := TensorArray(Physics[`*`](Physics[Dgamma][1], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~sigma`], Physics[Dgamma][`~1`])+Physics[`*`](Physics[Dgamma][2], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~sigma`], Physics[Dgamma][`~2`])+Physics[`*`](Physics[Dgamma][3], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~sigma`], Physics[Dgamma][`~3`])+Physics[`*`](Physics[Dgamma][4], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`], Physics[Dgamma][`~sigma`], Physics[Dgamma][`~4`]) = 2*Physics[`*`](Physics[Dgamma][`~sigma`], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~rho`])+2*Physics[`*`](Physics[Dgamma][`~rho`], Physics[Dgamma][`~nu`], Physics[Dgamma][`~lambda`], Physics[Dgamma][`~sigma`]))

Array(%id = 18446744078730196382)

(38)

For instance the first of these 256 matrix equations

T[1, 1, 1, 1]

Physics:-`*`(Physics:-Dgamma[1], Physics:-`^`(Physics:-Dgamma[`~1`], 5))+Physics:-`*`(Physics:-Dgamma[2], Physics:-`^`(Physics:-Dgamma[`~1`], 4), Physics:-Dgamma[`~2`])+Physics:-`*`(Physics:-Dgamma[3], Physics:-`^`(Physics:-Dgamma[`~1`], 4), Physics:-Dgamma[`~3`])+Physics:-`*`(Physics:-Dgamma[4], Physics:-`^`(Physics:-Dgamma[`~1`], 4), Physics:-Dgamma[`~4`]) = 4*Physics:-`^`(Physics:-Dgamma[`~1`], 4)

(39)

verifies OK:

Library:-PerformMatrixOperations(Physics[`*`](Physics[Dgamma][1], Physics[`^`](Physics[Dgamma][`~1`], 5))+Physics[`*`](Physics[Dgamma][2], Physics[`^`](Physics[Dgamma][`~1`], 4), Physics[Dgamma][`~2`])+Physics[`*`](Physics[Dgamma][3], Physics[`^`](Physics[Dgamma][`~1`], 4), Physics[Dgamma][`~3`])+Physics[`*`](Physics[Dgamma][4], Physics[`^`](Physics[Dgamma][`~1`], 4), Physics[Dgamma][`~4`]) = 4*Physics[`^`](Physics[Dgamma][`~1`], 4))

Matrix(%id = 18446744078727227382) = Matrix(%id = 18446744078727227862)

(40)

Now all the 256 matrix equations verified at once as done for e3

 

M := map(rhs, ArrayElems(Library:-PerformMatrixOperations(T)))

map(proc (u) options operator, arrow; evalb(map(ArrayElems, u)) end proc, M)

{true}

(41)

Finally, although there is more work to be done here, let's define some tensors and contract their product with these expressions involving products of Dirac matrices.

 

For example,

Define(A, B)

`Defined as tensors`

 

{A[nu], B[lambda], Physics:-Dgamma[mu], Physics:-Psigma[mu], Physics:-d_[mu], Physics:-g_[mu, nu], Physics:-KroneckerDelta[mu, nu], Physics:-LeviCivita[alpha, beta, mu, nu]}

(42)

Contract with e1 and e2 and simplify

A[nu]*e1; % = Simplify(%)

A[nu]*Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~mu`]) = -2*A[`~nu`]*Physics:-Dgamma[nu]

(43)

A[nu]*B[lambda]*e2; % = Simplify(%)

A[nu]*B[lambda]*Physics:-`*`(Physics:-Dgamma[mu], Physics:-Dgamma[`~lambda`], Physics:-Dgamma[`~nu`], Physics:-Dgamma[`~mu`]) = 4*B[`~nu`]*A[nu]

(44)

 


 

Download DiracMatricesAndPerformMatrixOperation.mw

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

First 915 916 917 918 919 920 921 Last Page 917 of 2255