mstevens

30 Reputation

5 Badges

11 years, 231 days

MaplePrimes Activity


These are questions asked by mstevens

I would like to create a fuction from the values in a vector. Say I have a 3 vectors , A,F,Theta.

A=col vect of Amplitudes (order n)
F=col vector of Frequecies (order n)
Theta=col vector of phases (order n)

I want to create a function 

f(x):=x->A[0]*cos(F[0]*x+Theta[0] + A[1]*cos(F[1]*x+Theta[1] + ... + A[n]*cos(F[n]*x+Theta[n]

I would then like to create a vector x, and get the values for f(x). I am trying to create a function that is a sum of sinusoids that I can then create data from using a vector x.

I have tried many things but I can't seem to get it right. Can anyone help me with this.

Thanks

Given any arbitrary function, say... cos(3t)+2sin(2t-3)

How can I generate data from said funciton. Precisely, I want to generat the dataset

t         value

0.1      value1
0.2      value2
...

10.0    value(@t=10)

Surely there has to be some easy way to do this but I cannot seem to find it. the plottool:-getdata does not seem to be able to export the data in the desired t increments.

I would like to use the angle symbol to represent polar numbers (phasor notation for electrical engineering. In other words, I would like to enter 10<30 instead of polar(10, pi/6). Also, I would like the results displayed with the angle notation.  Is this possible in Maple. In the "other package" by PTC this is trivial. Even on a TI graphing calucator it is trivial. Someone please tell me it is possible in Maple.

For computation, Maple is great. For presentation, there is a lot to be desired. 

Thanks.

I have the following nonlinear Differential Equation and don't know how to solve.  Can anyone give me any hints on how solvle for E__fd(t).  I don't even know the specific classification (other than nonlinear) of this DE can someone at least give me hint on that. Thanks.

 

.5*(diff(E__fd(t), t)) = -(-.132+.1*e^(.6*E__fd(t)))*E__fd(t)+0.5e-1

 

Thanks,

Melvin

I am getting an error dialog when I try to Browse an array I created programmatically.  The title of the dialog is RTable Browse Error with and error that says Empty RTable Structure. 

 

Now the data is 0..20 x 0..1 Array Datatype :anything Storage: rectangular

Order: Fortran_Order. 

 

If I do a showall, I can see the data, I just cannot browse it.  Any help would be appreciated.

Code is:


for i from 1 to N do
 t:=h*i:
 X[i,0]:=x1+h*(-x1)*x2+x1:
 X[i,1]:=x2+h*x1*x2-x2:
 x1:=X[i,0]:
 x2:=X[i,1]:
 print('Iteration',i,'AtTime',t,x1,x2)
end do;
print(X);

Thanks

Melvin

 

 

1 2 Page 2 of 2