MaplePrimes Questions

How to solve and plot DE?

eq1 := diff(f(x), `$`(x, 5))+2*(diff(f(x), `$`(x, 4)))+diff(f(x), `$`(x, 3))+diff(f(x), `$`(x, 2))+2*(diff(f(x), `$`(x, 1)))+3*f(x) = g(x)

Hello all, 

When I enter the following expression:

eqaux_2 := l__bb = L__aa0 + L__aa2 * cos(2*theta - 4/3*Pi);
 

the cos function got converted an equivalent sin function automatically and the result was displayed like this:

l__bb = L__aa0 - L__aa2*sin(2*theta + Pi/6)

Is there any way to ask Maple not to do this automatic conversion?



Maple Worksheet - Error

Failed to load the worksheet /maplenet/convert/q20210204.mw .
 

Download q20210204.mw
 

 

This worksheet contains images scanned from a book of problems.

Problem56.mw

Hi,

Suppose I want to create a matrix of derivatives, like gradient, Hessian, or Jacobian, and then apply that matrix to a function.  How do I do this?

Thanks

Hi there,

 

I'm currently trying to work with combinations where I need to be able to retrieve a list of possible combinations, although i do not actually need to see the output but use it for a later part of programming.

Unfortunately, I get an error message such as the one in the title of this question. 

It seems to me that maple is unable to allocate enough memory to evaluate the problem. I'm not familiar with any way to refine the programming.

are there any possible workarounds for this issue?

 

 

Hello,

I was trying to simplify an expression using assume. However, I ended up with very long evaluation time and got an error: "Error, (in type/complex) too many levels of recursion". Here is the case:

Consider the following code:

restart:with(Physics):
simplify(csgn(a-b),assume=[a::real,b::real, a>0,b>0,a>b])

this gives 1 as expected.

However, if I run the following code:

restart:with(Physics):
simplify(csgn(a-b[2]),assume=[a::real,b[2]::real, a>0,b[2]>0,a>b[2]])

I get an error ""Error, (in type/complex) too many levels of recursion" after along evaluation. The last condition a>b[2] is causing the along evaluation time. Without it I get, of course, signum(a-b[2]), which is fine. 

If I do these tests without Physics package loaded, I get the result 1 immediately in both cases without any problem. So, something in Physics package is causing this problem. 

What is the problem? and how can I resolve this issue?

Thank you in advance.

 

Hello everyone, I wondered if there is a way to plot the solution for a DE using the DEplot command but at the same time show the graph of another function (explicit or implicit) that is not a solution of the DE itself. Is that possible?

I have this two expresions

e1 := (1/2)*P[psi]^2/(cos(`ϑ`)^2*Ix)

e2 := (1/2)*P[psi]^2/(cos(`ϑ`)^2*Ix)

simplify(e1-e2)=-(1/2)*(-P[psi]^2+P[psi]^2)/(cos(`ϑ`)^2*Ix)

but 

simplify(-P[psi]^2+P[psi]^2)

is zero 

why i dont obtain zero if i use simplify(e1-e2) ??

Download MHD1.mw

 

 

System of equations with boundary conditions are moving?

Also, find the values of unknown variables?

I know that, tetrahedron with vertices (0, 0, 0), (3, 0, 0), (0, 5, 0), (0, 0, 14) has center of insphere is  (1, 1, 1) and radius R = 1. How to create a tetrahedron whose coordinates of all vertices are integers, the inscribed spherical center and the inscribed spherical radius are integers?

Dear maple users 

Greetings.

In this code, I am solving the PDEs via perturbation method.

There is some mistake in the boundary condition and pdsolve.

Kindly help me that to get the solution for this PDE via perturbation method.

Wating for your replay.

BC: 

Code: JVB.mw

Hello,

I wanted to substitute exp(a) with p in an expression of the form exp(-a).

subs(exp(a)=p,exp(-a))

This threw back exp(-a) to me. I was expecting 

exp(-a)->1/exp(a)->1/p

Is there a way to do that with subs? (a some mystical option perhaps?)

Thanks in advance.

This integral 

for n integer and n>=0

Maple finds it if I tell it this in the assumptions.  But if I remove the assumption that n>=0 and just keep the assumption that n is integer, it hangs. (at least I waited 5 minutes and gave up).

Is this something to be expected?  If I try the same thing in Mathematica, i.e. telling it n is an integer, but not that it is n>=0, it returns result  immediately, with condition that the result is valid for n>=0.

restart;
int(x^n*exp(-x),x=0..infinity) assuming n::integer

seems to hang.

In Mathematica:

My question is  if this behaviour of int hanging is to be expected, since it was not told than n>=0? Should it have returned result of n!  like Mathematica, with the assumption given in the result as well?

Since for n<0 the integral does not converge, and maple knows this

restart;
int(x^(-2)*exp(-x),x=0..infinity)

            infinity

May be this is just a design issue in int and it was stuck trying to evaluate the integral for negative integers, and could not determine if it converges or not?

Any thoughts?

Maple 2020.2

First 443 444 445 446 447 448 449 Last Page 445 of 2427