Maple 18 Questions and Posts

These are Posts and Questions associated with the product, Maple 18

Hi!

Is there any possibility for taking the negative sign outside a function, like factorization of -1?

Say I have. 

2*Pi^2*(-1+delta)/r^(1+delta),

How do i get this output?

-2*Pi^2*(1-delta)/r^(1+delta)

Thanks!

Hello every one,

I'm using Maple to create a compiled program of my model Maplesim. I had a error with "getcompiledProc" command, which is :

Error, (in GetCompiledProc) non-numeric initial condition for `Main.RAB.value`(t): Float(undefined)

the "Main.RAB.value(t)" represent a probe used to visualize an output of my system.

Does anybody had a such error ?
Thank you for your responses.

Larbi ANIBA

Hi,

The error "warning bad name, cannot profile...." occurred and I don't know why. Here my minimal example,

test.mw

Does anyone knows the reason?

 

Dear All

I am stucked at converting an differential expression in Jet notations. Maple is giving error as  expression contains composite derivatives. Please see attached file.


 

with(PDEtools, D_Dx, declare, ToJet, FromJet):

DepVars := [alpha(x, y, t), beta(x, y, t), xi(x, y, t), tau(x, y, t), eta(x, y, t), U(xi(x, y, t), tau(x, y, t), eta(x, y, t))]

[alpha(x, y, t), beta(x, y, t), xi(x, y, t), tau(x, y, t), eta(x, y, t), U(xi(x, y, t), tau(x, y, t), eta(x, y, t))]

(1)

alias(alpha = alpha(x, y, t), beta = beta(x, y, t), xi = xi(x, y, t), tau = tau(x, y, t), eta = eta(x, y, t), U = U(xi(x, y, t), tau(x, y, t), eta(x, y, t)))

alpha, beta, xi, tau, eta, U

(2)

declare(alpha, beta, xi, tau, eta, U)

alpha(x, y, t)*`will now be displayed as`*alpha

 

beta(x, y, t)*`will now be displayed as`*beta

 

xi(x, y, t)*`will now be displayed as`*xi

 

tau(x, y, t)*`will now be displayed as`*tau

 

eta(x, y, t)*`will now be displayed as`*eta

 

U(xi(x, y, t), tau(x, y, t), eta(x, y, t))*`will now be displayed as`*U

(3)

u := U*beta+alpha

beta*U+alpha

(4)

diff(u, x)

(diff(beta, x))*U+beta*((D[1](U))(xi, tau, eta)*(diff(xi, x))+(D[2](U))(xi, tau, eta)*(diff(tau, x))+(D[3](U))(xi, tau, eta)*(diff(eta, x)))+diff(alpha, x)

(5)

ToJet((diff(beta, x))*U+beta*((D[1](U))(xi, tau, eta)*(diff(xi, x))+(D[2](U))(xi, tau, eta)*(diff(tau, x))+(D[3](U))(xi, tau, eta)*(diff(eta, x)))+diff(alpha, x), DepVars)

Error, invalid input: PDEtools:-ToJet expects its 2nd argument, DepVars, to be of type Or(`PDEtools/F(...)`, name, And(Or(list({name, `PDEtools/F(...)`}), set({name, `PDEtools/F(...)`})), satisfies(proc (SL) options operator, arrow; evalb(0 < nops(SL)) end proc))), but received [alpha(x, y, t), beta(x, y, t), xi(x, y, t), tau(x, y, t), eta(x, y, t), U(xi(x, y, t), tau(x, y, t), eta(x, y, t))]

 

I guess ToJet is not working in case of composite function.

But how I can  display derivatived (D[1](U))(xi, tau, eta)as U[xi]


 

Download Composite_Derivative.mw

Dear All

For six parameters, I have corresponding list of their values and there are eight values for every parameter. I need to put these values in a formula to obtain a list of output values. There are two formulas one for 'P' and next is for 'RL'. I have used value of 'P' to calculate value of 'RL'. There are some complex number too, for which I have used modulus and final value is calculated by using 'evalf', but this command is not returning proper values for list as required. But this command works fine when I use single value from every list to calculate RL.

The Maple sheet attached herewith.

List.mw

Regards

How can I ask Maple to wake me up after running the code?

It takes a long time to finish the job. So it would be helpful to play a beep or something to inform me the answer is ready.

Thank you in advance for your help.

Hello again,

Everytime I start an (I thought deteministic) algorithm the number, how often a loop run through, is different. That makes debugging and profiling hard. But tests say, the algorithm works well.

I analized my code, I think different set orders can cause the problem.

Can indexing a set change its order ?
Can set operations like minus or union gives different result-orders in different times?

Can a set operation like minus or union change the order of the origin sets?

Hi, I need help with this little university assignment.

See the thumbnail below.

I have been away from the class because of a staph infection and missed the notes about vectors and Euler's formula.

 

It would be helpful if someone could give a rundown about how to solve the problems or give a general solution.

 

 

-Thanks

Hello,

my problem is as follows. Given


g := [g1, g2, ... , g99];    # a list of polynomials,  high  in degree and with big coefficients

S := [1, 3, 14, 29];        # Set of indices, which polynomials we want to multiply

p := 11;   # the modulus

------------------------------------------------------------------------------------------------------------------------------


I want to calculate the product of the constant-terms of the indexed g, that means for example

cg1 * cg3 * cg14 * cg29  mod p         

where cgi means coeff(g[i], x, 0), and mod should be mods,  using symmetric representatives

 

Till now I'm using:

    mods(mul(coeff(g[i], x, 0), i in S), p)


It works, but the problem is, that the order is not optimal and costs too much time.

The order is for example:
(3  *  5 * 7 * 9) mod 11;

But I need for efficieny an order like:
(((3 * 5 mod 11) * 7 mod 11) * 9 mod 11

I read about the fold operators, but I've no idea how to combine these with mul and mods to get what I need.

 

Hey all,

my goal is to get a taylor expansion in Maple up to n-th order of a function y(t) (not defined in more detail, just abstract).

I want to taylor this function around tn, and I want the series for tn+1=tn + h. I would expect to get (as an example: 4th order)

y(tn+1) ≈ y(tn) + h* y'(tn) + h2/2*y''(tn) + h3/6*y'''(tn) + O(h4).

My command was:

and I get:

Can someone maybe point out what I am doing wrong and how I can fix it?

Thanks in advance!

Tim

Hi,

 

Im new to Maple and have a hard time trying to get used to it. I've understood the basics, but I have still trouble with solving more complex exercises.

 

Could someone please help me with this little assignment.

 

 

 

 

The assignment:

In the lectures it was discussed that the air resistance of a body moving with velocity v may be written:


FD(v) =1/2*C*p*A*v^2 . (1)


with a drag coefficient C which is almost constant on a wide range of Reynolds numbers. Here p  is the density of the air. In most contexts, A is the bodies cross-sectional area, but for aircraft it is common to use instead the wing’s area. The drag force is directed opposite to the direction of motion. For a asymmetric bodies such as the wings of an aircraft, additional forces, such as the lifting force, which is perpendicular to the direction of motion, appear. It may be written written in a form similar to (1):


FL(v) =1/2*CL*p*A*v^2 . (2)


Here A is the area in the lift direction, here the wing area for the aircraft. The lift coefficient CL is approximately constant over a wide range of Reynolds numbers.


a) When an aircraft flies horizontally, the lift force FL must balance the force of gravity mg, where m is the aircraft’s mass and g = 9.81m/s2 the gravitational acceleration. Compute the velocity, v0, of a sport airplane at an altitude of h0 = 1 000m, where air’s density is  p= 1.10 kg/m3. The plane has mass m = 750 kg, wing area A = 18m2 and lift coefficient CL = 0.35 .


b) The propeller of an aircraft transmits power from the engine to the surrounding air. This power is used entirely to overcome the drag force. Compute the engine’s power P0 = FDv of the sport plane when it flies at a velocity v = v0 if the drag coefficient (based on the wing area) is C = 0.030.

 

 

 

 

How do I insert Maple18 plots into LaTeX documents?

Hello, 

I have a PDE system. When I use pdsolve it gets me the messege " pdsolve->Warning: System is inconsistent". Is there a way I can see which equations breaks the system down? 
For this system, it's difficult to see from ayeball where the problem is. 
Thank you! 

test.mw

i copy maple code from notepad to maple in maple window,

there is no error

my function in the code

explicit define parameters are Local type

for example

appendto("...");

func1(aaa)

Local aaa;

 

but when i run cmaple to read the code text file in window 8

it return error

missing operator, syntax error

at Local aaa;

originally 

i have defined

Local aaa, ii;

for ii from 1 to nops(aaa) do

etc.

but it has error too,

then i change to one by one

Local aaa;

Local ii;

still have error at Local aaa;

 

First 39 40 41 42 43 44 45 Last Page 41 of 86