MaplePrimes Questions

I'm trying to make a FFT from a 2s long input file by using the obsolete FFT-procedure, but strange thing is: No matter what first argument they receive (3, 2, 1, 0 even!) the result is always the same; even more strange is: Writing out the signal after the FFT it's exactly the same as before as if the FFT never would've happened.
What am I doing wrong?

Where Re(M) seems to work fine, Im(M) does not
I already found out which procedures to use instead: Re~(M) and Im~(M).
But still, it looks like

Re(M)=Re~(M)

am I right, or what's the difference between those two?
BTW, I didn't find a page about Re~/Im~ and was wondering..

I've solved a PDE with pdsolve, I can get the value of u(x,t) at a certain x and a certain t with the value command, K := pds:-value(x = 1-b, t = 0 .. 1, output = listprocedure) leads to; [100.*(x(0) = .99), 100.*(t(0) = 0.), 100.*((u(x, t))(0) = 2.40908278321669992*10^(-93))] id like to get the u(x,t) value out to put it in a function, is there a simple way of doing this? Thanks, Ryan

Okay so I do have those two objects of type Array, from which one has 'Data Type: anything' and the other 'Data Type: float[8]'. I get this information by using the procedure 'properties'.
What I now wanna know is: How can I change a specific property from an Array like the above mentioned for example?

<p>Hey,</p>
<p> </p>
<p>How do I set up a loop that resets if a certain condition is met? </p>
<p>I have set up a loop that pulls and runs an external process. However, if certain conditions are met, I wish the loop to reset from the beginning and take the last output from the process as the new input.</p>
<p> </p>
<p>Example:</p>
<p>for i from 1 to 10 do</p>
<p>     tester:=baseset[i]:</p>
<p>     tester:=process(tester)[1]:</p>
<p>     check:=process(tester)[2]:</p>

Hi all,

 

I am after some advice on how to extract a value from a proc.

 

below is the system of ODE's im trying to solve, however i get this error which i cannot get round, can anyone help?

 

At the moment I'm trying to find the smallest difference between two things (of form E[i] i goes from 1 to n)  and input them in a list. To do this I need to use nested loops but I'm not sure of the best kind/way to do this. I have been experimenting with for and if loops so far

for instance, this is my most recent effort.
 

for i from 2 to n do;

a := abs(E[i]-E[1]);

for j from 2 to n do;

if i <> j then ;

b := abs(E[i]-E[j]);

end if;

if b < a then a := b end if;

end do;

<p>Hello</p>
<p>I am trying to assign equations:</p>
<p><img src="http://img121.imageshack.us/img121/9821/assign.jpg" alt="" /></p>
<p>But i get the invalid arguments error. What is the problem?</p>
<p>Thank you</p>

How can I use algorithmic variables in multiple parts of a multipart question? We used to do it like in the Tips & Techniques document http://www.maplesoft.com/tacontent/view.aspx?SID=5390. Now, the variables from the question algorithm seem hidden from the parts.

When I create the multipart question through the question editor, I get the following script:

mode=Multipart@
name=Multipart@

 

I attach the relevant file but in essence I have a function which includes a term sin(x+a+b) where x is the variable and ‘a’ and ‘b’ are constants, symbolic integration and solving then follow.

I may have stumbled upon a loop quirk

for m from 1 to 5 do
  m;
end do;

From this program

S1:=unapply(u*FresnelS(u)+((1/Pi)*cos((1/2)*Pi*u^2))-(1/Pi),u);

C1:=unapply(u*FresnelC(u)-((1/Pi)*sin((1/2)*Pi*u^2)),u);

R1:=1;

u1:=evalf(sqrt(0.4));

E1:=evalf(Pi*R1*S1(u1)+R1);

D1:=evalf(Pi*R1*C1(u1)+1);

a:=evalf(Pi*R1*(u1));

with(plottools);

with(plots);

c1 := circle([D1,0], R1);

display(c1);

plot([a*FresnelC(u),a*FresnelS(u),u=0..u1]);

p1:=plots[display](plot([1+a*FresnelC(u),a*FresnelS(u)-E1,u=0..u1]),c1,scaling=constrained);

h := Array(1..2^16,datatype=float[8], storage=rectangular, order = C_order) # of hfarray
x:= Read(clarinet): # of Array
ArrayTools[Copy](x,h):

First, I have the following object:

H := Array(1..2^16,datatype=float[8], storage=rectangular, Order = C_order).

Now, I try to find out which type it has:

whattype(H),

and it only tells me 'Array', but it's fare more than that: datatype=float[8], storage=rectangular etc. etc.

If I'd change a setting in this array and try to store it into the original, Maple would give me a type clash error.

But how to find out these types?

First 2033 2034 2035 2036 2037 2038 2039 Last Page 2035 of 2434