nitebreaker

5 Reputation

One Badge

8 years, 88 days

MaplePrimes Activity


These are replies submitted by nitebreaker

 

Hi @nm thanks for replying and helping. 

I have a question on the syntax you did "for i from 1 to n do". Is that a syntax line or a text box line. I copied the way you did the syntax and I couldn't get the same results as you. From everything after y := y0, it's not the same as mine. "for i from 1 to n do" I did that line as a syntax line and it kept giving me error. And when I did the lines after that, it kept giving me individual values unlike yours, which it just gives you a columns of the two values I want.

for i from 1 to n do  ;
Error, invalid loop

k := f(x, y);
                          1.928200000
y := h*k+y;
                          1.528200000
x := x+h;
                          0.4000000000
print(x, y);
                   0.4000000000, 1.528200000
od:

 

Page 1 of 1