MaplePrimes Questions

How do I do a translation or a rotation of an equilateral triangle?

I have done the following so far in maple

equitriangle:=[ [0,0], [1,0], [0.5,sqrt(3)/2] ;
D0:=display ( polygon (equitriangle, linestyle=solid, thickness=5, color=COLOR(RGB,0,1,1)), scaling=CONSTRAINED,axes=NONE);
display(D0);

What do I do next to find a translation or rotation?

Thanks.

 

I have written a loop (for i from 0 to 25 do evalf(eval(eq2, t = i)) end do). This gives me a list of values n(0) = 10 to n(25) = 0.90....

I want to plot these values n(t) against t. Is there a better way to do this than to type the values individually.

Hope that made sence.

Thanks.

 

 

Im sure this is very easy but im new to maple and am having some problems.

I've stored a differential equation eq1:= diff(n(t),t) + s*n(t) = 0;

I want for t=0, n(0)=N=10, how do i input that so that dsolve(eq1); will give me the answer n(t)=10e^(-0.1t).

Also once that dsolve is done and saved as eq2 is there a way i can write it so that i can put for example eq2(5); which will give me n for t=5.

Thanks so much.

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;

First 2030 2031 2032 2033 2034 2035 2036 Last Page 2032 of 2431