MaplePrimes Questions

Hi 

I have a matrix consisting of components which are all definite integrals like the following example: 

L is a paramter I would like to keep as a symbol for now. How do I get maple to write out the result of the definite integral of such an expression? 

 

Best regards, 

Brian

Is there a feature in maple to plot even, odd, and fourier extensions of functions (PDEs)? 

Say we have the function f(x) = x + 1

 

i want to know the sign of all the coefficient of CharacteristicPolynomial of such matrix, can anyone help me to do this ?

calcul_determinant.mw

 

 

I cannot get the answer (m=2,n=2) to the following problem on two equations from Maple 13.

(13/4)*m-(7/4)*n-3 = 0,
-(17/2)*n*2^n +34*m= 0

I get:

{m = (7/13)*RootOf(13*_Z*2^_Z-28*_Z-48)+12/13, n = RootOf(13*_Z*2^_Z-28*_Z-48)}

Thank you very much.

mapleatha

 

 

 

Hello Everyone;
I need to generate muplipal .dat files using loop with different names as shown as figure. Can any body hel me? I am waiting for your kind respinse. Thanks in advance

Dear Sir(Madam) 

I plot a spacecurve,which is an intersection of two surface,x+y+z=5 and x*y+y*z+z*x=0.The curve is shown below.

Then I want the curve's color changes accroding to the value of x*y*z.From the help page,I learn that the colorscheme option can make the color of different parts of a surface change accroding to the value of an user given function.However,it does not apply to all Plots' package command.You need to use the display command,colorscheme option with the option "overrideoptions",to force the graph's color to changed to desired.

P1 is the graph of the curve.

The first code works well,it is just a test.

display(P1,colorscheme=["Orange","Blue"],overrideoptions)

The second code fail to chage color(In my document,I use 2-D Math Input,following the example)

display(P1, colorscheme = ["xyzcoloring", proc (x, y, z) options operator, arrow; x*y*z end proc], overrideoptions)

This is the trouble I encountered.So,please help me use this option correctly,or is there any other way to achieve my goal?

Thank you in advance.

The file here.

problem_with_colorscheme_option.mw

Hi all,

I have a system of nonlinear equations with for equations, 4 variables I want to solve for, and 2 parameters. All of the variables and parameters must be non-negative.

The code I used to try to do this is:

Where eqi (i = 1, ... , 4) are expression (not equations in themselves). For example, eq1 is:

 

When I try to run this code I get the following error:

"Error, (in SolveTools:-Inequality:-Piecewise) piecewise takes at least 2 parameters"

 

Can anyone help me how I can make Maple do what I want here? :)

 

Thank you in advance,

JTamas

 

Hello,

I have the general function F(x,g(y)), and I don't understand the following notation of the derivative of  F w.r.t  y in Maple ?  What is D2(F) ?  Can we provide a concrete example ?

Thank you!

When I try to find the trace of the product of Dirac Gamma matrices with variable indices, I get a different answer than in textbook. The product is Dgamma[~mu]Dgamma[~nu]Dgamma[~rho]Dgamma[~sigma]Dgamma[~5]. The answer I get using Maple is 0. The textbook answer is -4*i*epsilon[~mu,~nu,~rho,~sigma](Levi-Civita symbol). I verified this using Maple with using 1,2,3,4 and 2,1,3,4 for mu,nu,rho,sigma. I think I'm probably the one doing something wrong. Maple 2019 on Mac with Physics package default standard setup.

While using the Physics package in Maple 2018, I am facing a few hurdles. In the file tov.mw ,

1. I have defined a dual-vector with components $u_a$ in step 12, but when I am trying to compute $g(u,u)$ using SumOverRepeatedIndices  in step 15, it is not evaluating the sum.

2. I want to define a tensor $B_{ab}=\nabla_a u_b$. Do I just write Define(B{a,b}=D_[a] u[b]) ?

3. Is there any command to find the symmetric and antisymmetric components and trace of the tensor B or do we evaluate them by writing out the expressions?

Thank you.

Dear, 

Please, may I ask your help with the following problem? 

I have to print something like this: 

Days 4,5,6 is closed. 

4,5,6 is the content of a list.  I enter: 

d:=[4,5,6];

printf("Days %a is closed\n", d[]);

but Maple returns:

Days 4 is closed

Of course, if I enter  printf("Days %a, %a, %a is closed\n", d[]);

I get the correct result: Days 4,5,6 is closed. 

However, the numer of elements the list will have vary from case to case and according to the procedure I'm running so I cannot enter the command with the exact number of %a. How could I overcome this problem?

Many thanks for your help. 

 

Hi all,

I have the following function (with parameters/constants a, b, and p2A ):

 

I want to calculate its partial derivative with resprect to p1A. I entered the following code to do this:

But this returns a result that was (at least, for me) unexpected:

My problem is, I don't really get what the expressions 'D(...)' mean in this equation and why they are even there. a and p2A are supposed to be constant and thus their derivative should be zero (wtih respect to p1A ).

I think this should be an easy problem to solve for someone more familiar with Maple, but I am new to it and have been spending the last few hours trying to figure out how to solve this problem. Any help would be highly appriciated.

 

Thank you in advance,

JTamas

restart; with(plots); _EnvHorizontalName := 'x'; _EnvVerticalName := 'y'; para := -2*p*x+y^2 = 0; para1 := -2*p1*x+y^2 = 0; t := y-m*x-p/(2*m) = 0; t1 := y+x/m+(1/2)*p1*m = 0; sol := op(solve([t, t1], [x, y])); eliminate({rhs(sol[1]), rhs(sol[2])}, m); for example : m := 2; p := 1; p1 := -2; PARA := implicitplot(para, x = -3 .. 3, y = -3 .. 3, color = blue); PARA1 := implicitplot(para1, x = -3 .. 3, y = -3 .. 3, color = green); Tang := implicitplot(t, x = -3 .. 3, y = -3 .. 3, color = brown); Tang1 := implicitplot(t1, x = -3 .. 3, y = -3 .. 3, color = aquamarine); NULL; #m is not constant display([PARA, PARA1, Tang, Tang1], view = [-3 .. 3, -3 .. 3], scaling = constrained);#on what curve is the vertex of the angle of 2 tangents ? Thank you.

i have a function which contains Ln and arctan fanctions in which the output function is complex.
how can i implicitplot this complex function? tnx for the help
 

restart

with(plots, implicitplot)

ode := diff(y(w), w)+(sqrt((12*Pi)(y(w)^2+m^2*w^2))*y(w)+m^2*w)/y(w) = 0

diff(y(w), w)+(2*3^(1/2)*Pi(y(w)^2+m^2*w^2)^(1/2)*y(w)+m^2*w)/y(w) = 0

(1)

Ans := dsolve([ode])

[{ln(w)+(1/4)*ln(-m^4-2*m^2*y(w)^2/w^2-y(w)^4/w^4+12*y(w)^2*Pi/w^2)-(3/2)*arctan((1/4)*(-2*m^2-2*y(w)^2/w^2+12*Pi)/(3*Pi*m^2-9*Pi^2)^(1/2))*Pi/(3*Pi*m^2-9*Pi^2)^(1/2)+(1/4)*ln(2*Pi^(1/2)*3^(1/2)*y(w)/w-y(w)^2/w^2-m^2)-(3/2)*arctan((1/2)*(2*Pi^(1/2)*3^(1/2)-2*y(w)/w)/(m^2-3*Pi)^(1/2))/((3*m^2-9*Pi)/Pi)^(1/2)-(1/4)*ln(2*Pi^(1/2)*3^(1/2)*y(w)/w+m^2+y(w)^2/w^2)+(3/2)*arctan((1/2)*(2*y(w)/w+2*Pi^(1/2)*3^(1/2))/(m^2-3*Pi)^(1/2))/((3*m^2-9*Pi)/Pi)^(1/2)-_C1 = 0}]

(2)

P:=subs(y(w)=Y,eval(lhs(Ans[1, 1]), [_C1 = 0, m = 1]))

ln(w)+(1/4)*ln(-1-2*Y^2/w^2-Y^4/w^4+12*Y^2*Pi/w^2)-(3/2)*arctan((1/4)*(-2-2*Y^2/w^2+12*Pi)/(-9*Pi^2+3*Pi)^(1/2))*Pi/(-9*Pi^2+3*Pi)^(1/2)+(1/4)*ln(2*Pi^(1/2)*3^(1/2)*Y/w-Y^2/w^2-1)-(3/2)*arctan((1/2)*(2*Pi^(1/2)*3^(1/2)-2*Y/w)/(1-3*Pi)^(1/2))/((-9*Pi+3)/Pi)^(1/2)-(1/4)*ln(2*Pi^(1/2)*3^(1/2)*Y/w+1+Y^2/w^2)+(3/2)*arctan((1/2)*(2*Y/w+2*Pi^(1/2)*3^(1/2))/(1-3*Pi)^(1/2))/((-9*Pi+3)/Pi)^(1/2)

(3)

implicitplot(P,w=-10..0,Y=0..10)

 

evalf((eval(P,[w=1,Y=1])))

1.655474573+.8307038310*I

(4)

 

 


 

Download P2.mw

The sphere with radius 0.5 whose center has y coordinate = 0.5 and z coordinate = 0.5 is tangent internally to the ellipsoid centered on the origin with principal semi axes of 5, 3 and 2.

How can the x coordinate of the sphere's center be determined?

First 588 589 590 591 592 593 594 Last Page 590 of 2425