## 514 Reputation

13 years, 256 days

## plot and animate...

Maple 14

Hi all,

How to plot and animate an expression like this:

f:=x1+a*y1+1; plots[animate](plot, [f, x1 = 0 .. 5, y1 = 0 .. 25, y=0..10],a=0..1, frames=100);

This is just an example for understanding my need.

thanks for help

## I have a problem with "if"...

Maple 14

Dear all,

I have a problem in programming with maple if statement:

restart;Qs:=24; p:=20; m:=3; q:=Qs/(2*p*m); if (q=1) then
> yc:=Qs/(2*p); elif (frem(q,1)~=0) then if (evalf(Qs/(2*p))<1) then
> yc:=1; else yc:=floor(Qs/(2*p)); end if; else yc:=round(0.8*Qs/(2*p)); end if;

The result is yc:=0; the result must be yc:=1;

In Matlab:

## "mod" of Maple is not the same as in Mat...

Maple 14

Hi all,

What is the command in Maple which is equivalent to the command "mod" in Matlab ?

Thanks

## Fourrier series...

Maple

Dear all,

Thank you to help with the Fourrier serie of:

f:=t->piecewise((-tp/2<=t and t<-b[0]/(2*Rs),0),(-b[0]/(2*Rs)<=t and t<=b[0]/(2*Rs),ix/b[0]),(b[0]/(2*Rs)<t and t<ty-b[0]/(2*Rs),0),(ty-b[0]/(2*Rs)<=t and t<=ty+b[0]/(2*Rs),-ix/b[0]),(ty+b[0]/(2*Rs)<t and t<=ty+tp/2,0));

ix:=10: Rs:=73.0e-3: b[0]:=Rs*4*Pi/180: b[t]:=Rs*6*Pi/180: ty:=10*Pi/180: tp:=10*Pi/180: plot(f(t),t=-tp/2..ty+tp/2,title=`signal to analyze`);

Thanks

 First 13 14 15 Page 15 of 15
﻿