MaplePrimes Questions

I need my results are nice and neat in final presentation so how can I change the way it present matrix in maple, its so messy in hear like picture . It happend resulted in Maple can reduce the same ratio such as As^2+Bs^2=(A+B)s^2, I tried all my best to find way to simply it but its so hard due to my noob in maple. Please help me make it nice and neat in array of matrix [    ]. 

I am wondering how to plot a function and a histogram together on the same set of axis. 

1-Write a Maple ProcInserer procedure (x, pos, L) that inserts the element x into L at position pos.
 2- Write an inverse procedure (L) taking as argument a list L and returning the list obtained by inverting L in the decreasing direction of the indices.

The function given is f(x)= x3/4-sin x +1/2, interval=[0,2*pi]

a) plot the function over the interval to see its general behaviour.

f := x -> x^(3/4)-sin(x)+1/2;
plot(f(x), x=0..2*Pi);

 

b)FInd the interior points where f'=0.You may want to plot the f' as well.

d1:=D(f)(x);

plot (d1, x=0..2*Pi);

fsolve(d1=0, x);

       5.231279862

 

c) Find the interior points where f' does not exist.I don't know how to show question c) in Maple. Please help?plot(x^(3/4)-sin(x)+1/2, x=0..2*Pi)    plot(3/4*x^(-1/4)-cos(x) , x=0..2*Pi)

When i do this,

d2:=solve(d1=infinity,x);
         

Is this the correct way to shoe f' does not exist? How to I get the numerical value of the RootOf....?

Write a procedure that says whether or not an item a is in a  list L, and at which place (if there are several times the same item, you can return the place of the first, or the list of places of all the occurrences of a).

I got a double sum as a solution to heat equation in 2d. How do I plot that för different time values? 

I can't get the right syntax for add, op

 

Can anyone tell me why the following command

restart; with(plots): with(Statistics):  with(numapprox):

 create an error of this type?

Error, Got internal error in Typesetting:-Parse : "cannot determine if this expression is true or false: membertype(specfunc(Typesetting:-mspace),Typesetting:-mempty(Typesetting:-mspace(depth = "0.0ex",height = "0.0ex",width = "0.0em",linebreak = "newline")))"
 

lambda := .2;
                              0.2
mu := .3;
                              0.3
F := proc (n)

exp(-lambda*t)*(lambda*t)^n/factorial(n)

end proc;
P := proc (n) local ret, i; ret := 0;

for i from 0 to n do

if i = 0 then ret := ret+evalf(exp(-lambda*t))

elif i = 1 then ret := ret+evalf((diff(exp(-lambda*t), t))/mu+lambda*exp(-lambda*t)/mu)

elif i < n then ret := ret+evalf((diff(exp(-lambda*t)*(lambda*t)^(n-1)/factorial(n-1), t))/mu+(lambda+mu)*exp(-lambda*t)*(lambda*t)^(n-1)/(mu*factorial(n-1))-lambda*exp(-lambda*t)*(lambda*t)^(n-2)/(mu*factorial(n-2)))

else ret := ret-(diff(exp(-lambda*t)*(lambda*t)^n/factorial(n), t))/mu+lambda*exp(-lambda*t)*(lambda*t)^(n-1)/(mu*factorial(n-1)) end if

end do;

ret

end proc;
 

Hello everyone

I am new in mapple software and i am facing some proplem to tackle  Laplace equation and Poisson equation. I want to find out the potential psi given in two equations 

I want to solve following equ with finite difference method in order to find potential psi .In the second equation  n = concentration of electrons  ,p= concentration of holes and C= additional concentration ,q is electronic charge .

Can anyone suggeset how I can solve this type of partial differential equation with numerical method (FDM) in mapple?

Hi everybody:

i want to obtain the binary(basis of two) of a number with procedure and without use the convert command, can everyone help me? tnx.

Hi,

I am trying to find k1,m1,k2,m2 from these four equations defined in sys but Maple does not give any solution. Any suggestions?

sys := {(k1*m1+k1*m2+k2*m1+sqrt(k1^2*m1^2+2*k1^2*m1*m2+k1^2*m2^2+2*k1*k2*m1^2-2*k1*k2*m1*m2+k2^2*m1^2))/(2*m1*m2) = (2*Pi*8.78)^2, .8347192842*k1/m1 = (2*Pi*4.8515)^2, -(-30.85287127*k1-k2)/m2 = (2*Pi*8.78)^2, -(-k1*m1-k1*m2-k2*m1+sqrt(k1^2*m1^2+2*k1^2*m1*m2+k1^2*m2^2+2*k1*k2*m1^2-2*k1*k2*m1*m2+k2^2*m1^2))/(2*m1*m2) = (2*Pi*4.8515)^2};

solve(sys, {m1,k1,m2,k2});

Thanks,

Bahar

 

I have 6 parameters, say p1 - p6, which enter my Monte Carlo Code and computes a 1-D Array of floats of size 1000 . I have an experimental array of floats of the same size. My code outputs an array which is the difference of these two arrays. The objective function is the sum of the sqares of the elements in this output array. I have initial guess for the parameters: p1i - p6i. I need to find the values of the 6 parameters which minimize the objective function.

Obviously I do not have an explicit mathematical form for the objective function and nor its Jacobian.

Could some one please help me in this task.  Thanks in advance. 

Greetings, I am trying to make augmented matrix in the form of A, B and F where A is the tridiagonal matrix, B is the vector and F is the non-linear part of the system. I already tried (A,B,F):=augment(X,output='A','B','F'); but it is an error. Can someone help me? Thank you in advance!

 

 

The matrix X is as follows:

 

X:=[[[-lambda/(h^2),-u/(2 h)+lambda/(h^2),0,0],

       [u/(2 h)+lambda/(h^2),-lambda/(h^2),-u/(2 h)+lambda/(h^2),0],

       [0,u/(2 h)+lambda/(h^2),-lambda/(h^2),-u/(2 h)+lambda/(h^2)],

       [0,0,u/(2 h)+lambda/(h^2),-lambda/(h^2)]]];

I have a matrix with complex entries! and I want to multyply that by it's conjugate. But I can have a simplify form for example  I have matrix A and B as below thier multiplication is a real matrix but it does not give me in simplifyied form!

I have made a plots[multiple] with 3 different functions, but I wish to connect the ends with vertical lines. Does anybody have a solution to this? I have uploaded screenshot Thank you in advance. BR Jens

First 829 830 831 832 833 834 835 Last Page 831 of 2434