Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I would like to know how I can calculate the minimum of a function that  is the solution of a differential equation in a (time)-efficient way

Parameters:L := 0.5e-2; Zs := (2/3*180)*10^(-6); Za := (4/3*180)*10^(-6); ss := (2/3*14)*10^4; sa := (4/3*14)*10^4; a := 1.35; N1 := 600; N2 := 300;

Solution of the differential equation:

It seems that Sample  works with only posints as the number of samples (Maple 12):

 restart;
 with(Statistics);

X:=RandomVariable(Uniform(-1,1));

xs:=Sample(X,1E6);

# it gives an error

xs:=Sample(X,1000000); # it is ok.

 

So my professor gave me a sheet of Arc Length eqautions, but wasnt helpful in how to input it into Maple.

I found something about using is with (VectorCalculus), but I have not had much luck.

The problem I am starting off with, is "Find the arc length of the curve y^2+y =x from x=1..x=6 in two different ways, and plot the curve with Maple.

Any help on getting started would be great.

 

John

how can i use the name of an assignment in a proc block instead of writing a big equation that i've calcuated before proc?

actually i want plot 2 equ. with an if , by use of some assignments before the proc. pls help me!

I was using Maple to solve some basic algebraic equations for my chemistry course, and came across a quirky behavior that has me baffled. When I type: (-5.05)(23.83-100)c = (4.186)(10)(23.83-22) I can right click on that input and solve for the variable c. If instead, however, I type: (-5.05)(c)(23.83-100) = (4.186)(10)(23.83-22) then Maple only gives me the option to isolate the expression for "c(-76". Can someone explain to me why Maple is doing this so I can better understand what is happening "behind the scenes?" Also, if it helps, I'm using Maple 11. Thank you!

How do I get expressions 2.3 to 2.5 from this old paper: projecteuclid.org/DPubS with maple? What is the standard (or otherwise) way to compute (symbolically)  this sort of thing with Maple, e.g., using intersect, assuming?  Nothing seems to work for me. Thanks.

Hi,

To evaluate some real integrals I use the 'assume' instruction to make sure all the quantities are real.  But Maple 12 can't seem to deduce the obvious inequalities from this - testing for them gives a FAIL result.  Here is a minimal example:

    assume(X,real, Y,real, w>0);

    is( (X+w)^2 + Y^2 >= 0);

If I have g:=x^2 , and I want to plot it against x^2 I should get a straight line,

but If I do plot(g,x^2) it says "Error, (in plot) unexpected option: x^2"

Can I plot arbitrary functions against arbitrary functions ??

Hello, i would like to use the animate function to simulate the drawing of a "rose curve" ( en.wikipedia.org/wiki/Rose_curve ): the effect i would like to achieve is like this

c := 3;

animate(plot, [[cos(d*t), sin(d*t), t = 0 .. 2*Pi], -c .. c, -c .. c], d = 0 .. 1);

 

the fact is that here i'm using cartesian coordinates (though parametric, not cartesian equations), while the rose curve is given by the equation

Hello! I am 100% useless with maple and i need some graphs to fill a report i am doing.

 

I need two sine wave graphs with different frequencies, i can plot a sine wave but i dont understand how i am supposed to do this in terms of frequency?

I also need to plot fourier transforms of each of these sine functions and to apply a wavelet transform to them.

 

If anyone could help me with any of this i would be so grateful!! Or even just point me in the direction of a help guide because i am struggling to find anything that makes sense!!!

Hello,

how does one create a piecewise linear function from a given set of points? Having np points [x[i],y[i]], I tried

Lf(q):=q->piecewise(seq('(q>=x[j]) and (q<=x[j+1]),evalf(y[j]+(q-x[j])*(y[j+1]-y[j])/(x[j+1]-x[j]))',j=0..np-1),ERROR("argument out of range!"));

but it did not work (invoking Lf(3); resulted in "Lf(3)," not in an actual number). Then I tried

(just got v12, haven't used it since v8) <--- my only excuse!

Trying to make a list of the centroids of the faces of a regular icosahedron. Here's my code:

***********

with(geom3d);

icosahedron(f,point(o,0,0,0);

a:=faces(f);

cent:=[];

printlevel:=-1; for k from 1 to 20 do point(A,a[k][1]):point(B,a[k][2]):point(C,a[k][3]);

print(coordinates(centroid(c,[A,B,C])));

cent:=[op(cent),coordinates(centroid(c,[A,B,C]))] od;
 

************

Is it possible to perform a Ztransform with initial conditions in Maple?

I want to calculate the Ztransfrom of following differrence equation.

Dv:=3*y(k)-4*y(k-1)+4*y(k-2)=(1/2)^k*Heaviside(k)

With.

y(-1) = 1

y(-2) = 2

For now I am using following command.

Opl:=ztrans(Dv,k,z);

I suppose that this command uses initial conditions zero.

 

Thank you in advance,

 

 

First 1881 1882 1883 1884 1885 1886 1887 Last Page 1883 of 2166