Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Mapleprimes_Integral.mw

I have a question regarding following problem:

assume(a > 0, a < 1, t > 0, Z0 > 0, z > 0)

f1 := proc (z) options operator, arrow; 1/z end proc

proc (z) options operator, arrow; 1/z end proc

(1)

I_1 := int(f1(z)*ln((a*z+1)/(1+z/a)), z = 0 .. Z0); 1; MultiSeries:-asympt(%, Z0, 3)

2*ln(Z0)*ln(a)+(a^2-1)/(a*Z0)-(1/4)*(a^4-1)/(a^2*Z0^2)+O(1/Z0^3)

(2)

Using the representation which should hold for all a>0 and z>0

int(z*exp(t)*(a^2-1)/((exp(t)+a*z)*(exp(t)*a+z)), t = 0 .. infinity); 1; combine(%)

ln((a*z+1)*a/(z+a))

(3)

I'm calculating the result the other way around

int(z*exp(t)*(a^2-1)*f1(z)/((exp(t)+a*z)*(exp(t)*a+z)), z = 0 .. Z0); 1; I_2 := int(%, t = 0 .. infinity); 1; MultiSeries:-asympt(%, Z0, 3)

2*ln(Z0)*ln(a)+(a^2-1)/(a*Z0)-(1/4)*(a^4-1)/(a^2*Z0^2)+O(1/Z0^3)

(4)

plot(eval([I_1, I_2], a = 1/2), Z0 = 0 .. 10)

 

So the results are the same.

But if I calculate this with another function

f2 := proc (z) options operator, arrow; 1/(z*(z+a)) end proc

proc (z) options operator, arrow; 1/(z*(z+a)) end proc

(5)

I_3 := int(f2(z)*ln((a*z+1)/(1+z/a)), z = 0 .. Z0); 1; MultiSeries:-asympt(%, Z0, 3)

-dilog(a^2)/a-2*ln(a)/Z0+(1/2)*(2*ln(a)*a^2+a^2-1)/(a*Z0^2)+O(1/Z0^3)

(6)

int(z*exp(t)*(a^2-1)*f2(z)/((exp(t)+z*a)*(exp(t)*a+z)), z = 0 .. Z0); 1; I_4 := IntegrationTools:-Change(int(%, t = 0 .. infinity), t = ln(z)); 1; MultiSeries:-asympt(%, Z0, 3); 1; simplify(convert(convert(MultiSeries:-series(I_4, Z0, 1), polynom), polynom))

ln(a)*(ln(Z0)+ln(a))/a

(7)

I get another result :-/ The Integral doesn't even vanish in the limit Z0 -> 0

Though if I take the limit prior:

int(z*exp(t)*(a^2-1)*f2(z)/((exp(t)+z*a)*(exp(t)*a+z)), z = 0 .. infinity);

-dilog(a^2)/a

(8)

the result is correct. What is the problem here?



Download Mapleprimes_Integral.mw

 

Hi,

I want to compute a formula which is too complicated and it contains some variables. So I divide it into several parts. But it always turns out kernel connection has been lost. I looked maplesoft online help system and change the ConnectionType from 0 to 2. But it does not work. So how does this happen and how to solve?

I attach my maple file which appears error.
Thanks a lot!

Regards,

Yan

with(Groebner):
with(LinearAlgebra):
T := lexdeg([x1,x2,x3],[e1,e2,e3]);
hello1 := proc(xx,yy)
return MatrixMatrixMultiply(xx,yy);
end proc:
hello2 := proc(xx,yy)
return xx+yy- MatrixMatrixMultiply(xx,yy);
end proc:
m1 := Matrix(3, 3, {(1, 1) = -.737663975994461+0.*I, (1, 2) = -.588973463383001+0.*I, (1, 3) = .330094104689369+0.*I, (2, 1) = -.588012653178741+0.*I, (2, 2) = .320157823261769+0.*I, (2, 3) = -.742792089286083+0.*I, (3, 1) = -.331802619371428+0.*I, (3, 2) = .742030476217061+0.*I, (3, 3) = .582492741708719+0.*I});
m2 := Matrix(3, 3, {(1, 1) = -.742269137704830+0.*I, (1, 2) = -.590598631673326+0.*I, (1, 3) = .316590877121441+0.*I, (2, 1) = -.593533033362923+0.*I, (2, 2) = .360143915024171+0.*I, (2, 3) = -.719732518911068+0.*I, (3, 1) = -.311054762892221+0.*I, (3, 2) = .722142379823161+0.*I, (3, 3) = .617863510611693+0.*I});
m3 := Matrix(3, 3, {(1, 1) = -.751491355856820+0.*I, (1, 2) = -.574908634018322+0.*I, (1, 3) = .323636840615627+0.*I, (2, 1) = -.575794245520782+0.*I, (2, 2) = .332066412772496+0.*I, (2, 3) = -.747123071744916+0.*I, (3, 1) = -.322058579916187+0.*I, (3, 2) = .747804760642505+0.*I, (3, 3) = .580574121936877+0.*I});
AA := hello1(m1, m2);
BB := hello2(m1, m2);
GB := Basis([e1- AA,e2- BB],T):
NormalForm(m3, GB, T);

i have got alot of mixed and high degree derivatives. For example:

u[x]*u[x,t]*eta[x,t]+u[]^2*u[x]*eta[x]+kis(x,y)u[x,t]^2*u[]+eta(x, y)*u[]*u[x]^2+ksi[x,t]*u[x]^2*u[x,t]+......

like this alot of terms

my question is how can i solve divided by the derivative of the u(x,t) partial differential equations system and so  how can i find eta(x,t,u) and ksi(x,t,u) 

Hi MaplePrimers!

I have a simulation in MapleSIM, exported as a compiled procedure in maple using -LinkModel(), and -GetCompiledProc.

I'm trying to do parameter estimation on my MapleSIM model.  Within a optimization scheme, I call the MapleSIM model, and it will output a curve.  Using a least squares method, I compare this measurements to synthetic experimental data (I know the actual values), and generate an objective function.  The optimization algorithm will try different parameter values, and try to minimze the objective function.  When the curves are exactly the same, the objective function will be zero.

The problem I am having is certain parameter sets will cause the model to require very small steps.  I wish to put a timeout on these experiments, because speed is important.  However, I would also like to see the results up to the point of requiring very small steps.  For timeout, I was using code along the lines of:

out:= timelimit(30,cProc(params = PData)); #simulate with 30s limit

where PData are the parameter guessses, and cProc is the compiled MapleSim model.

I would like 'out' to be assigned whatever the results were after 30 seconds, even if the model had not finished integrating.

 

Thanks in advance for any help!

I want to define a band matrix using n vectors. Detial given maple sheet. please help me

Help.mw

I want to define a matrix of M by M which have some condition. detail given in maple file. please help me.

Help_Maple-1.mw

I wan to define a square matrix for M and r detial given in Maple sheet. Please Help....Help_Maple.mwHelp_Maple.mw

FirstEigenVector := Matrix(3, 1, {(1, 1) = -.736895432967255+0.*I, (2, 1) = -.588906969844997+0.*I, (3, 1) = -.331924240964690+0.*I});
SecondEigenVector := Matrix(3, 1, {(1, 1) = -.589856901397123+0.*I, (2, 1) = .320280857681335+0.*I, (3, 1) = .741275257969058+0.*I});
ThirdEigenVector := Matrix(3, 1, {(1, 1) = .330233185410229+0.*I, (2, 1) = -.742030156443046+0.*I, (3, 1) = .583384341736151+0.*I});
LHS := ProjOfEigenVector;
LHS := Matrix(3, 3, {(1, 1) = -.736895432967255+0.*I, (1, 2) = -.589856901397123+0.*I, (1, 3) = .330233185410229+0.*I, (2, 1) = -.588906969844997+0.*I, (2, 2) = .320280857681335+0.*I, (2, 3) = -.742030156443046+0.*I, (3, 1) = -.331924240964690+0.*I, (3, 2) = .741275257969058+0.*I, (3, 3) = .583384341736151+0.*I});
RHS := c1*FirstEigenVector+c2*SecondEigenVector+c3*ThirdEigenVector;
RHS := Matrix(3, 1, {(1, 1) = (-.736895432967255+0.*I)*c1+(-.589856901397123+0.*I)*c2+(.330233185410229+0.*I)*c3, (2, 1) = (-.588906969844997+0.*I)*c1+(.320280857681335+0.*I)*c2+(-.742030156443046+0.*I)*c3, (3, 1) = (-.331924240964690+0.*I)*c1+(.741275257969058+0.*I)*c2+(.583384341736151+0.*I)*c3});
solve([LHS[1][1] = RHS[1][1], LHS[2][2] = RHS[2][1], c1^2+c2^2+c3^2 = 1], [c1, c2, c3]);

 

after calculated the projection matrix, 

it is a 3*3 matrix on left hand side

however, combination of eigenvectors on right hand side is 3*1 matrix

when calculated c1,c2,c3 under the condition c1^2+c2^2+c3^2 = 1

how to know whether LHS[1][1] = RHS[1][1], or LHS[1][2] = RHS[1][1] or

LHS[1][3] = RHS[1][1]

How to create a borel set from a list of decimal

if i interpolate three decimal number and solve it, 

if any number substitute into this result which is a inverse function, can the results be said borel set?

When i look into 'maple help' for Pade approximation, it only show a code for solving equation involving 1 variable only..what is the code for equation involving 2 or more variable for pade approximation?

superposition said that a vector is a linear combination of other vectors

but even if i calculated the coefficient, i do not know which vector is which other vectors's linear combination

how to prove?

InputMatrix3 := Matrix([[close3(t), close3(t+1) , close3(t+2) , close3(t+3) , close3(t+4) , close3(t+5)],
[close3(t+1) , close3(t+2) , close3(t+3) , close3(t+4) , close3(t+5) , close3(t+6)],
[close3(t+2) , close3(t+3) , close3(t+4) , close3(t+5) , close3(t+6) , 0],
[close3(t+3) , close3(t+4) , close3(t+5) , close3(t+6) , 0 , 0],
[close3(t+4) , close3(t+5) , close3(t+6) , 0 , 0 , 0],
[close3(t+5) , close3(t+6) , 0 , 0 , 0, 0],
[close3(t+6) , 0 , 0 , 0, 0, 0]]):
EigenValue1 := Eigenvalues(MatrixMatrixMultiply(Transpose(InputMatrix3), InputMatrix3)):
Asso_eigenvector := Eigenvectors(MatrixMatrixMultiply(Transpose(InputMatrix3), InputMatrix3)):
AEigenVector[tt+1] := Asso_eigenvector;

Matrix(6, 6, {(1, 1) = .514973850028629+0.*I, (1, 2) = .510603608194333+0.*I, (1, 3) = .469094659512372+0.*I, (1, 4) = .389872713818831+0.*I, (1, 5) = .279479324327359+0.*I, (1, 6) = -.154682461176604+0.*I, (2, 1) = .493994413154560+0.*I, (2, 2) = .306651336822139+0.*I, (2, 3) = -0.583656699197969e-1+0.*I, (2, 4) = -.417550308930506+0.*I, (2, 5) = -.566122865008542+0.*I, (2, 6) = .404579494288380+0.*I, (3, 1) = .449581541124671+0.*I, (3, 2) = -0.266751368453398e-1+0.*I, (3, 3) = -.529663398913996+0.*I, (3, 4) = -.359719616523673+0.*I, (3, 5) = .313717798014566+0.*I, (3, 6) = -.537405340038665+0.*I, (4, 1) = .386952162293470+0.*I, (4, 2) = -.351332186748244+0.*I, (4, 3) = -.390816901794187+0.*I, (4, 4) = .470032416161955+0.*I, (4, 5) = .231969182174424+0.*I, (4, 6) = .547134073332474+0.*I, (5, 1) = .306149178348317+0.*I, (5, 2) = -.530611390076568+0.*I, (5, 3) = .192717713961280+0.*I, (5, 4) = .291213691618787+0.*I, (5, 5) = -.562991429686901+0.*I, (5, 6) = -.431067688369314+0.*I, (6, 1) = .212576094920847+0.*I, (6, 2) = -.489443150196337+0.*I, (6, 3) = .553283259136031+0.*I, (6, 4) = -.488381938231088+0.*I, (6, 5) = .363604594054259+0.*I, (6, 6) = .195982711855368+0.*I})

Matrix(6, 6, {(1, 1) = .515428842592397+0.*I, (1, 2) = .515531996615269+0.*I, (1, 3) = .468108280940919+0.*I, (1, 4) = -.392394120975052+0.*I, (1, 5) = -.280467124908196+0.*I, (1, 6) = -.129613084502380+0.*I, (2, 1) = .494563493180197+0.*I, (2, 2) = .301273494494509+0.*I, (2, 3) = -0.622136916501293e-1+0.*I, (2, 4) = .438383262732459+0.*I, (2, 5) = .571041594120088+0.*I, (2, 6) = .377494770878435+0.*I, (3, 1) = .450886315308369+0.*I, (3, 2) = -0.323387895921418e-1+0.*I, (3, 3) = -.527636820417566+0.*I, (3, 4) = .332744872607714+0.*I, (3, 5) = -.322934536375586+0.*I, (3, 6) = -.549772001891837+0.*I, (4, 1) = .385916641681991+0.*I, (4, 2) = -.352066020655722+0.*I, (4, 3) = -.389655495441319+0.*I, (4, 4) = -.450049711766943+0.*I, (4, 5) = -.221529986447276+0.*I, (4, 6) = .568916672007495+0.*I, (5, 1) = .305485655770791+0.*I, (5, 2) = -.528766119966973+0.*I, (5, 3) = .201065789602278+0.*I, (5, 4) = -.310329356773806+0.*I, (5, 5) = .555973984740943+0.*I, (5, 6) = -.425730045170186+0.*I, (6, 1) = .210210489500614+0.*I, (6, 2) = -.488744465076970+0.*I, (6, 3) = .553484076328700+0.*I, (6, 4) = .494245653290329+0.*I, (6, 5) = -.364390406353340+0.*I, (6, 6) = .183130120876843+0.*I})
mm1 := 1;
solve(
[AEigenVector[mm1][2][1][6] = m1*AEigenVector[mm1][2][1][1]+m2*AEigenVector[mm1][2][1][2]+m3*AEigenVector[mm1][2][1][3]+m4*AEigenVector[mm1][2][1][4]+m5*AEigenVector[mm1][2][1][5],
AEigenVector[mm1][2][2][6] = m1*AEigenVector[mm1][2][2][1]+m2*AEigenVector[mm1][2][2][2]+m3*AEigenVector[mm1][2][2][3]+m4*AEigenVector[mm1][2][2][4]+m5*AEigenVector[mm1][2][2][5],
AEigenVector[mm1][2][3][6] = m1*AEigenVector[mm1][2][3][1]+m2*AEigenVector[mm1][2][3][2]+m3*AEigenVector[mm1][2][3][3]+m4*AEigenVector[mm1][2][3][4]+m5*AEigenVector[mm1][2][3][5],
AEigenVector[mm1][2][4][6] = m1*AEigenVector[mm1][2][4][1]+m2*AEigenVector[mm1][2][4][2]+m3*AEigenVector[mm1][2][4][3]+m4*AEigenVector[mm1][2][4][4]+m5*AEigenVector[mm1][2][4][5],
m1^2 + m2^2 + m3^2 + m4^2 + m5^2 = 1], [m1, m2, m3, m4, m5]);

[m1 = .4027576723+.5022235499*I, m2 = -.5922841426-1.043213223*I, m3 = -.1130969773+.9150300317*I, m4 = .9867039883-.5082455178*I, m5 = -1.400123192+.1536850673*I], [m1 = .4027576723-.5022235499*I, m2 = -.5922841426+1.043213223*I, m3 = -.1130969773-.9150300317*I, m4 = .9867039883+.5082455178*I, m5 = -1.400123192-.1536850673*I]

mm1 := 2;
solve(
[AEigenVector[mm1][2][1][6] = m1*AEigenVector[mm1][2][1][1]+m2*AEigenVector[mm1][2][1][2]+m3*AEigenVector[mm1][2][1][3]+m4*AEigenVector[mm1][2][1][4]+m5*AEigenVector[mm1][2][1][5],
AEigenVector[mm1][2][2][6] = m1*AEigenVector[mm1][2][2][1]+m2*AEigenVector[mm1][2][2][2]+m3*AEigenVector[mm1][2][2][3]+m4*AEigenVector[mm1][2][2][4]+m5*AEigenVector[mm1][2][2][5],
AEigenVector[mm1][2][3][6] = m1*AEigenVector[mm1][2][3][1]+m2*AEigenVector[mm1][2][3][2]+m3*AEigenVector[mm1][2][3][3]+m4*AEigenVector[mm1][2][3][4]+m5*AEigenVector[mm1][2][3][5],
AEigenVector[mm1][2][4][6] = m1*AEigenVector[mm1][2][4][1]+m2*AEigenVector[mm1][2][4][2]+m3*AEigenVector[mm1][2][4][3]+m4*AEigenVector[mm1][2][4][4]+m5*AEigenVector[mm1][2][4][5],
m1^2 + m2^2 + m3^2 + m4^2 + m5^2 = 1], [m1, m2, m3, m4, m5]);

[m1 = .4262845394-.5114193433*I, m2 = -.6313720018+1.072185334*I, m3 = -0.7337582213e-1-.9580760394*I, m4 = -1.036525681-.5400714113*I, m5 = 1.412710014+.1874839516*I], [m1 = .4262845394+.5114193433*I, m2 = -.6313720018-1.072185334*I, m3 = -0.7337582213e-1+.9580760394*I, m4 = -1.036525681+.5400714113*I, m5 = 1.412710014-.1874839516*I]

hello. before I used Mapple 15. But then I`ve run Mapple 16 and now I`ve a problem. I can`t use this program. I open the program, everthing is in the rule, but if I want to write any mathemathical function, or a letter, such as- x or x+2, the program does`t give any reaction. program only gives reaction the numbers.

Please, help me. (my english isn`t very good, and I don`t know I`ve explained my opinion).

First 226 227 228 229 230 231 232 Last Page 228 of 2218