MaplePrimes Questions

Hi,

I would like to know if it is possible to make Maple do the following:

Suppose you have a function dx:=1/((x1-x3)^2+(x2-x4)^2) and we want  diff(dx,x1), is there a way to obtain: *-(2*x1-2*x3)/((x1-x3)^2+(x2-x4)^2)^2 instead of -1/(x1^2-2*x1*x3+x3^2+x2^2-2*x2*x4+x4^2)^2*(2*x1-2*x3)?

Basically how to keep the denominator in a fatorized form and not expanded?

 

Thanks.

Hello,

How can i simplify the following expression which should be a function of omega

Thank you for your help

Hi again! :-)

I just ran into another problem with units...

I want to remove all units from an expression like this one

V[dis]:=(3/100000)*Unit('m')^3+0.1e-2*Pi*Unit('m')^2*(.112-0.28e-1*cos(theta)-sqrt(0.7e-2-0.1e-2*sin(theta)^2))

I've tried with convert(V[dis],'units_free') but Maple wont let me use that command, when the expression contains units in powers (square and cubic).

I guess there is another way arround, but how?

Best regards

Dear Sir,  I want to know why the procedure  appear the error : (in U1) unable to execute add.

My procedure:

restart:
>
> h0:=0.156;
> d:=0.32*h0;
> l:=1;
> h1:=h0-d;
> h2:=h0+d;
> h5:=evalf(2/3*h0);
> h7:=h0;
> s1:=evalf(2/3);
> s2:=evalf(2/3);
> g:=9.8;
> d1:=1;
> Term:=10;
> Num:=5:
> n:=1:
>
>
> for N from 1 to Num do
> k0:=evalf(0.5*Pi+2*(N-1)*Pi/(Num-1)):...

Can anyone tell me how i can compute the correct partial derivatis of this function? I need to compute the partial derivative with respect to Pj,k but since I am summing over 'j', it does not compute the chain rule properly. 

Hello,

After we solved two equations we want to plot them with two sliders. I am trying to have two sliders for k and mu. I followed what this link suggested:

http://www.mapleprimes.com/questions/119732-How-To-Code-Sliders-To-Make-It-Easy

But I get this warning:

Warning, `p1` is implicitly declared local to procedure `myplot`
 

My query has spawned two new questions.

1) Why won't this work?

  First embed and Text area component TextArea0
  SetProperty(TextArea0,'value',showstat(SetProperty))

  I thought the contents of the procedure would be entered into TextArea0.


2) While code is being evaluated in Maple, is it possible to continue working within the same kernel?  or must one have to be in a separate Maple (kernel) window?

In the following script, I am trying to understand why evala returns an error. It returns

                Error, (in evala/Reduce/nf/indep) invalid arguments to coeffs

in a couple of places. I tried, and I can get around the errors by doing it a complex way, but it seems like I'm just not using evala correctly. Perhaps someone can comment? I'd very much appreciate it.

Hello,

tryning to put some text on plots,

and wonder how can I separate text decoration of variables.

For example a circule with radius

r[0] 

and center in

x[0],

Is it possible to programmatically insert an embedded component, say for example a TextArea0?

    Why the zeta1 does not plug in numerical calculation.
 My program:

restart:
>
> h0:=0.156;
> d:=0.32*h0;
> l:=1;
> h1:=h0-d;
> h2:=h0+d;
> h5:=evalf(2/3*h0);
> h7:=h0;
> s1:=evalf(2/3);
> s2:=evalf(2/3);
> g:=9.8;
> d1:=1;
> Term:=10;
> Num:=5:
> n:=1:
>
>
> for N from 1 to Num do
> k0:=evalf(0.5*Pi+2*(N-1)*Pi/(Num-1)):

hello, everyone,
the attached pdf file contain four models, I can't get the solutions of last three models.
help, thank you in advance.

 

123.pdf

The damped driven pendulum is modeled using :

d2(x)/d(t2) + b*d(x)/d(t) + sin(x) = F*cos(x).  (4)

Numerically simulate (4) with b=0.22 and F=2.7

a) Starting from any reasonable initial condition, perform a phase portrait analysis. Show that the time series has an erratic appearance, and interpret it in terms of the pendulum's motion.

b) Plot the Poincare section by sampling the system whenever  t=2*pi*k, where k is an integer.

 d^2(x)/d(t^2) + sin(x)=0  (1)

d^2(x)/d(t^2) + x = 0 (2)

d^2(x)/d(t^2) + ( x - (x)^3/6) = 0 (3)

1) Compare the results of numerical simulations of (1), (2), (3) to see how closely the period of the periodic orbits relate.

a) Perform a phase portrait ( (x)'(t) vs. x ) analysis for (1), (2), and (3).

b) Consider the initial conditions x(0)= x0 and x'(0)=0. For what intervals of x0 do the periodic orbits of (2...

For example, how to round 45.67845 up to 3 digits after comma?

expected answer - 45.678

First 1611 1612 1613 1614 1615 1616 1617 Last Page 1613 of 2430