Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

The solution by Maple below is correct, but non-the-less, a little strange.

restart;
dsolve(diff(y(x),x)=3*x^2*(y(x)^2+1),y(x));

Gives

Ofcourse 3*constant is still constant. But it is a little strange and have no reason for it to be there.  When I solve it by hand

What could made Maple put the 3 in there? Again, solution is 100% correct, but it could be simpler.

Maple 2017.1

 

 

I have Imported a CAD model (.sty) into maple. What I want to do is rotate the model along several axes. At first I want to rotate it around its center. This can be done via 

rotate(Zylinder, 2, 3, 56)

where Zylinder is the Object I importet via

Zylinder := Import("C:/...")

this works fine, but I want the rotation to be a continuous animation. I tried:

animate(rotate(Zylinder, A, 0, 0), A = 0 .. 360)

but that does not work. Can you please tell me how to make it work? And it would be great if the aproach would work for rotations around an axis away from the center, too.

I don't recall ever changing any settings in my copy of Maple 16. But for some reason, I tried to make a plot and it spit out line-printed output rather than a regular plot.

How do I change this back? I have no use for line-printed output.

lineprinted_fail.mw
 

plot([E1(x), E2(x), E3(x)], x = 0 .. 5, title = "Nitrogen Nucleus Second-Order Energy Shifts")


                                                                              
                  Nitrogen Nucleus Second-Order Energy Shifts                 
  |                                                                           
  +                                                                     HHHHH
6e-08                                                               HHHHH     
  +                                                            HHHHHH         
4e-08                                                     HHHHHH              
  +                                                  HHHHHH                   
  +                                           HHHHHHH                         
2e-08                                  HHHHHHHH                               
  +                           HHHHHHHHHH                                      
  +             HHHHHHHHHHHHHHH                                               
  ***************************************************************************
0 +              1    HHHHHHHHHH2HH           3              4              5
  +                               HHHHHHHHH                                   
-2e-08                                    HHHHHHHH                            
  +                                              HHHHHHH                      
-4e-08                                                 HHHHHH                 
  +                                                         HHHHHH            
  +                                                              HHHHH        
-6e-08                                                                HHHHH   
  +                                                                       HHH
                                                                              

 

NULL

``


 

Download lineprinted_fail.mw

 

To translate maple code to C or C++ or whatever i would call then placing that maple code inside a C(),

is there a command for doing the reverse?

1.op(0,Expr) , op(1,Expr)

2. indets(eq1,{string,name})

3. type(varlist[ii], function)

I am not able to understand why Maple fails to compute and display the integrals for Eqn (1) and Eqn (8). I have a integral table to cross-verify the integrals for each of these in here

 

Also, another integral I am trying to calculate in MWE2 (attached file) in which the integral computed doesn't make any sense.

MWE-2.mw

 

int(sqrt(x^3.(ax+b)), x)

int((x^3.(ax+b))^(1/2), x)

(1)

2+2

4

(2)

int(7*x^3+3*x^2+5*x, x)

(7/4)*x^4+x^3+(5/2)*x^2

(3)

int(1, x)

x

(4)

int(1/(x^2+1), x)

arctan(x)

(5)

int(1/(ax^2+bx+c), x)

x/(ax^2+bx+c)

(6)

int(x^n, x)

x^(n+1)/(n+1)

(7)

int(sqrt(x(ax+b)), x)

int(x(ax+b)^(1/2), x)

(8)

``


 

Download MWE-1.mw

Suppose that I have an expression of the form  eq:=a*x^2+b*y^2+c*x*y, where x,y are real numbers, a>0, b<0, and c>0. Is there a relatively simple way to separate the positive, negative, and indeterminate terms from such an expression. In other words, I want to get  

eq_positive=a*x^2,

 eq_negative=b*y^2,

eq_indeterminate=c*x*y.

Thanks

See Wiki and the description  in flame_draves.pdf for info and an example below.

Dear Community,

I try to solve the following very simple ODE symbolically with the ODE Analyzer assistant, yet Maple says "unble to obtain solution". :-/

If I try to slove it with dsolve, nothing happens. Is it really so difficult?

diff(p(h),h)=A/(B+C*p(h)), p(h0)=p1

A, B, C, h0 and p1 are constants. I use Maple 2016.

Tx in advance,

best egards

Andras

Hi everyone,

I have a strange problem with the LSSolve function. I get an error when specifying an optimality tolerance as an option for LSSolve function : "unexpected parameters: optimalitytolerance = 1/1000" (see attached). When I remove the option, the LSSolve function works and returns something. Why ?

This is a problem for me because in my program I automatically generate lots of equations and I need to solve them using the same parameters.  "list1" is an example of a list that makes LSSolve to return an error and therefore it makes my program stop.
Is it possible, when LSSolve returns an Error, to re-run the function without the optimalitytolerance option ?
 

with(Optimization):

[0.127345646906885e-1-0.186555124779203e-2*D32-0.282637107183903e-3*D33, -0.427981372479296e-2+0.184372031092059e-1*D32+0.366060535331614e-2*D33, -0.279056870350439e-1+0.497068050546578e-1*D32+0.300683751452398e-1*D33, -0.159123153512316e-1-0.200310190531632e-2*D32+0.110642730744851e-1*D33, -0.358677392345135e-2-0.477282036776905e-2*D32+0.279495051520868e-2*D33, -.158025406913808+.301050727553470*D32+0.991309483578555e-1*D33, -0.767170565747362e-1+0.287589092672543e-1*D32+0.380554240544922e-1*D33, 0.134025593814442e-1-0.163134747085529e-1*D32-0.978424817965354e-2*D33, 0.177936771272063e-1-0.193555892719151e-1*D32-0.117324484775754e-1*D33, .136323651819599-.101383912457110*D32-0.800923073293239e-1*D33, 0.658540765374620e-1-.134530865070270*D32-0.449966493124888e-1*D33, 0.366589441985546e-1-0.923517762126252e-1*D32-0.313964041159186e-1*D33, 0.200320004853408e-2-0.454710553314498e-2*D32-0.121523285055995e-2*D33, 0.362766049610844e-2-0.103494064252009e-1*D32-0.347855768021822e-2*D33, 0.431461474510905e-2-0.122762710681104e-1*D32+0.305664301894285e-3*D33]

(1)

LSSolve(list1, [0 <= D32, 0 <= D33], optimalitytolerance = 10^(-3))

Error, (in Optimization:-LSSolve) unexpected parameters: optimalitytolerance = 1/1000

 

``

``

 

 

worksheet_help.mw



Thanks in advance,
Lilian

Dear all,

I am making a plot, which is Delta z/Delta t vs. z.

but in labeling maple prints z/t, because it simplifies Delta  !

You can find my worksheet below.

Could any of you help me with this please?

Thanks in advance!

DzDt := z^2; -1; plot(DzDt, z = 0 .. 4, labels = [z, typeset(Delta*z*(1/(Delta*t)))])

 

``

 

 

 

I'm defining forces. The only thing I changed is x to y for one particular piece of an equation. I copied and pasted it so I don't see why it's not working.

opparam_fail.mw

hi!

Hi I have a 8x8  matrix and I was attempting to get maple to find the eigenvalues. but after a while I thought it is caught in an infinite loop!  anyway I manually kill the mserver processing and saved the maple worksheet and restarted the laptop. but after all these it seems its still working.CPU usage and memory (in task maneger) are still high! 

how can I get rid of this condition?

 

In the Maple help to use a matrix defined monomial order it is said to define a matrix and a list of variables and then typing 'matrix'(M,V). But I fail to use it. A very simple example:

M:=<<1,0>|<0,1>>;
V:=[x,y];
Groebner[LeadingMonomial](y^3+x*y, 'matrix'(M, V));

But Maple shows this error:

 

Error, invalid input: Groebner:-LeadingMonomial expects its 2nd argument, tord, to be of type {MonomialOrder, ShortMonomialOrder}, but received matrix(Matrix(2, 2, {(1, 1) = 1, (1, 2) = 0, (2, 1) = 0, (2, 2) = 1}), [x, y])

What is wrong?


 

Download example.mw

I tried to solve some linear differential equations,

but the result is incomplete.

The complete solutions have been derived by hand.

How can I get the right result using maple?

The example is from determining symmetres of differential equations.

Thank you!

First 929 930 931 932 933 934 935 Last Page 931 of 2215