MaplePrimes Questions

Hello,

I wanted to ask whether it's possible to use the taylor command together with vectors from the physics package, maybe I am just doing something wrong here. I tried the following:

and get an error message that diff cannot handle vectors. Of course I could do the expansion by hand an enter the result in Maple but I think it would be a very nice feature because an expansion of vector fields which vary in space and time is such a common problem e.g. in classical electrodynamics. I think of an expansion with non-projected vectors such as

+ higher order terms.

Thanks a lot!

Peter

Hi. I want to differentiate the following expression using "Diff", not "diff". but I want to apply "Diff" to differentiate each separate term based on the chain rule. How can I do that? Does "Diff" apply chain rule for differentiation?

 

 

  

I wish to substitute Re=W[0]/V[0] in the expression V[0]/W[0] * diff(u(t),t). I tried using the subs command but it didn't work. Any help would be appreciated !

When greek symbols are used in code edit region (by copying from worksheet 2d math mode), they used to get exported properly to PDF but the only issue was large code edit region used to get cut off. But now with this new 18.01 update, code edit region is not cut off but greek symbol inside code edit region are not appearing in PDF export instead just pink boxes. Has anyone else also encountered this issue and suggest a resolution.

Hi Everyone,

 

    I just upgraded a Linux 64-bit computer from Maple 17 to Maple 18.01.  Code that worked on Maple 17 no longer works on Maple 18.01.  The code uses BLAS matrix operations in in the LinearAlgebra package.  When the first such operation is called, I obtain the following fatal error:

 

MKL FATAL ERROR on loading the function mkl_blas_avx_xdcopy.

Maple 18.01 is unable to load any of the MKL routines even though the MKL shared libraries are in the Linux bin directory.  If I load my own MKL library (provided by Intel), Maple 18 will run these operatrions, but they ultimately lose precision which causes the program (which works fine in 17) to crash.  Any ideas about how to activate the version of MKL provided by Maple?  Will this version not loose floating-point precision?  Any help is greatly appreciated.

Best wishes.

David

University of Chicago

 

 

mode_shapes_and_critical_load(changed_model).mw

This is my code for finding mode shapes and critical load for a bimaterial strut under buckling. 

Although everything else is working fine but I have a problem while solving for critical load.

h_new := convert(series(h, P, 3), polynom):

h_new := convert(series(h, P, 3), polynom):

without converting to polynomial, the code is unable to solve for P. Even on conversion, for differnet S values, I need to change the truncation order of conversion (like for S=0.5, it would work with 3 but for other S values I have to change truncation (convert(series(h, P, 6), polynom)), which also causes the number of solutions of equation to change which causes problem with plotting of graphs of critical load that I need (basically I need lowest two plots), thereby restricts me from automating the code with a for loop. I need to test it for various S values and then later in code I need to put teh critical load back and check mode shapes for different a values.

 

Is there a better way to solve two variable equation to get one variable in terms of another(the equation is quite complicated, contains trigonometric expressions). 

 

and also if I try to automate the analysis for different S and a values, teh process needs to put teh value back in P which changes everything and teh next time loop operates it just ruins everything. Also there are varied number of solutions of P_crit for differnet S values which makes it difficult to store those solutions during automation?

hello

please compare result of DirectSearch and implicitplot. which of them is correct??

please help me.please......

resul.mw

 

 

Hi,

  I have an expression as p in the following. I would like to extract the coeffient with x^n*y^m and x^(n+2)*y^(m+2), however, coeff comand does not work...

 

***

p:=3*x^n*y^m+4*x^(n+2)*y^(m+2)+k*x^(n+2)*y^(m+2);
coeff(p,x,n);

***  

gives me

***

n m (n + 2) (m + 2) (n + 2) (m + 2)
3 x y + 4 x y + k x y
/ n m (n + 2) (m + 2) (n + 2) (m + 2) \
coeff\3 x y + 4 x y + k x y , x, n/

***

 

What is the correct command to get the coefficients? Thank you very much

Hi,

I would like to format the solution given by maple.
I have the answer given by a paper and I would like to reproduce the same formula.

I have the expression :

(a1/2+a2/2)*ln(a1/2+a2/2+sqrt((a1/2+a2/2)^2+(b1/2-b2/2)^2+d^2))+(a1/2-a2/)*ln(a1/2-a2/2+sqrt((a1/2-a2/2)^2+(b1/2-b2/2)^2+d^2))

I would like to assume deltaa = a1-a2 and sigmaa = a1+a2.

The issue is that algsubs(deltaa = a1-a2, expr), my a1+a2 is replaced by deltaa+2*a2 and same for algsubs(sigmaa = a1+a2, expr), so i can't have sigmaa*ln(...) + deltaa*ln(...).

And all my squares are developed, for example I have : sqrt(1/4*a1^2+1/4*a2^2+1/2*a1*a2+...)

I can't put them in canonical form (1/2*a1+1/2*a2)^2 to get (1/2*sigmaa)^2.

 

Sorry for my english,
If you know how to do, i would be really grateful !

Mathieu

Hi. I am trying to identify mode shapes (phi(x)) and natural frequencies  of non-uniform euler-bernoulli beam. There are number of numerical methods to solve ODE with certain boundary conditions (i.e. Runge Kutta method). Problem is that I am newbie here. I am interested in particularly first vibration mode and its frequency. Is there anyone acquainted with it and would be able to help me?  Non-unif.mw

Hi,

 

Since i already have a working eclipse environment, I want to ask whether Maple IDE is available as an Eclipse Plugin. Also is there any trial version available. Is it possible to use Maple IDE with maple worksheet environment so for example i prepare a document inside maple and write codes procedures separately in maple IDE file and call them where ever i want inside the worksheet. Also what file format Maple IDE supports (Sorry the only files in maple i have used is .mw). Moreover can i use Maple IDE without relying on maple worksheet enviroment in other words is maple graphics (like plots viewable in Maple IDE like for R programming Language, R Eclipse Plugin has graphics section inside eclipse as well).

 

Thanks

I am writing a big numerical code in maple. I need to write the results in each step in a file. I mean in the first step of loop it writes the results in the first line of a text file, in the second step writes in the second line and to the end. when I use writedata command, it needs to write a complete array or matrix and it is not what i need. In  other words I want to save data for each steps of iteration during the calculation and when it goes to ther next step it writes the result in the next line.

Can you help me to perform it?

Thanks

I am trying to find out the stiffness matrix of composite by using iterative loop that sums over each laminate and adds the result to the previously calculated matrix 

D=null matrix

for i to 4 do Dply := evalf(evalm((1/3)*Q[i]*(z(i+1)^3-z(i)^3))); D := evalm(D+Dply) end do;
evalm(D);

although the values are coming out fine but in the diagonalm elements, it shows the true value + _rtable[4456495426] which I am not able to figure out why is it coming?

 

hi,

I want to solve this to data table , i can plot but i need data in table 

 

sol1 := dsolve([diff(u(theta),theta) = 427.2461*u(theta)+385620.123/u(theta)-25671.3871, u(0) = .6], numeric);

plots[odeplot](sol1, 0..0.18, color = red);

 

thanks.

how i can trust in DirectSearch solution result.is there any creteria?

my variable is intensity.

this is my code:

ep0 := 1/(4*3.14); el := 8.54*10^(-2); hbar := 1; vf := 1/300; kb := 1; tem := 2.586*10^(-2); ci := 1; p := 1.458*10^16; beta := 2; ai := 7.1*10^(-4); bi := ai/sqrt(3); enph := .196; d := enph/(kb*tem); n0 := 1/(exp(enph/(kb*tem))-1); gama := hbar*vf; intensity := 10000001; w := 1.55; impurity := 7.2*10^3;

g := hbar*beta/(bi^2*sqrt(2*p*enph)); aa := g^2*(n0+1)/(2*Pi*hbar*gama^2); bb := g^2*n0/(2*Pi*hbar*gama^2); cc := 2/(Pi*gama^2); l := (1*hbar)*w/(2*kb*tem);u := el^2*intensity/(32*w*hbar^2);

 

DirectSearch:-SolveEquations([op([((enph*ln(1+exp(c+enph/(kb*tem)))/(kb*tem)-polylog(2, -exp(c))+polylog(2, -exp(c+enph/(kb*tem))))*enph*(kb*tem)^2-(enph^2*ln(1+exp(c+enph/(kb*tem)))/(kb^2*tem^2)+2*enph*polylog(2, -exp(c+enph/(kb*tem)))/(kb*tem)+2*polylog(3, -exp(c))-2*polylog(3, -exp(c+enph/(kb*tem))))*(kb*tem)^3+(-exp(b)*enph*ln(1+exp(c+enph/(kb*tem)))+exp(c+d)*enph*ln(1+exp(b-d+enph/(kb*tem)))+exp(b)*kb*tem*polylog(2, -exp(c))-exp(c+d)*kb*tem*polylog(2, -exp(b-d))-exp(b)*kb*tem*polylog(2, -exp(c+enph/(kb*tem)))+exp(c+d)*kb*tem*polylog(2, -exp(b-d+enph/(kb*tem))))*enph*(kb*tem)^2/((exp(b)-exp(c+d))*kb*tem)+(exp(b)*enph^2*ln(1+exp(c+enph/(kb*tem)))-exp(c+d)*enph^2*ln(1+exp(b-d+enph/(kb*tem)))+2*exp(b)*enph*kb*tem*polylog(2, -exp(c+enph/(kb*tem)))-2*exp(c+d)*enph*kb*tem*polylog(2, -exp(b-d+enph/(kb*tem)))+2*exp(b)*kb^2*tem^2*polylog(3, -exp(c))-2*exp(c+d)*kb^2*tem^2*polylog(3, -exp(b-d))-2*exp(b)*kb^2*tem^2*polylog(3, -exp(c+enph/(kb*tem)))+2*exp(c+d)*kb^2*tem^2*polylog(3, -exp(b-d+enph/(kb*tem))))*(kb*tem)^3/((exp(b)-exp(c+d))*kb^2*tem^2))*bb+u*(1/(1+exp(-l-c))-1/((1+exp(-l-c))*(1+exp(l-b))))-(((1*enph)*(enph-2*kb*tem*ln(1+exp(-b+enph/(kb*tem))))/(2*kb^2*tem^2)+2*kb^2*tem^2*(-polylog(2, -exp(-b+enph/(kb*tem)))+polylog(2, -cosh(b)+sinh(b))))*enph*(kb*tem)^2-(enph^2*(enph-3*kb*tem*ln(1+exp(-b+enph/(kb*tem))))-6*kb^2*tem^2*(enph*polylog(2, -exp(-b+enph/(kb*tem)))+kb*tem*(-polylog(3, -exp(-b+enph/(kb*tem)))+polylog(3, -cosh(b)+sinh(b)))))*(kb*tem)^3/(3*kb^3*tem^3)-(-exp(b)*enph^2+exp(c+d)*enph^2-2*exp(c+d)*enph*kb*tem*ln(1+exp(-b+enph/(kb*tem)))+2*exp(b)*enph*kb*tem*ln(1+exp(-c-d+enph/(kb*tem)))+2*exp(c+d)*kb^2*tem^2*polylog(2, -exp(-b))-2*exp(b)*kb^2*tem^2*polylog(2, -exp(-c-d))-2*exp(c+d)*kb^2*tem^2*polylog(2, -exp(-b+enph/(kb*tem)))+2*exp(b)*kb^2*tem^2*polylog(2, -exp(-c-d+enph/(kb*tem))))*enph*(kb*tem)^2/((2*(-exp(b)+exp(c+d)))*kb^2*tem^2)-(exp(b)*enph^3-exp(c+d)*enph^3+3*exp(c+d)*enph^2*kb*tem*ln(1+exp(-b+enph/(kb*tem)))-3*exp(b)*enph^2*kb*tem*ln(1+exp(-c-d+enph/(kb*tem)))+6*exp(c+d)*enph*kb^2*tem^2*polylog(2, -exp(-b+enph/(kb*tem)))-6*exp(b)*enph*kb^2*tem^2*polylog(2, -exp(-c-d+enph/(kb*tem)))+6*exp(c+d)*kb^3*tem^3*polylog(3, -exp(-b))-6*exp(b)*kb^3*tem^3*polylog(3, -exp(-c-d))-6*exp(c+d)*kb^3*tem^3*polylog(3, -exp(-b+enph/(kb*tem)))+6*exp(b)*kb^3*tem^3*polylog(3, -exp(-c-d+enph/(kb*tem))))*(kb*tem)^3/((3*(-exp(b)+exp(c+d)))*kb^3*tem^3))*aa-u*(1/(1+exp(l-b))-1/((1+exp(-l-c))*(1+exp(l-b)))) = 0, -cc*polylog(2, -exp(b))+cc*polylog(2, -exp(-c))-impurity = 0])], tolerances = 10^(-8), evaluationlimit = 20000)

 

First 1411 1412 1413 1414 1415 1416 1417 Last Page 1413 of 2427