Items tagged with for

a=100 
b=10  

1)c=a-b  
2)d=c*2-k2; k2=(b*2)  
3)e=d*2-k3;k3=k2*2  
4)f=e*2-k4;k4=k3*2  
30) (...)
z=c+d+e+f+(...)
z=?

I need a for Statement that calculates this mathematical sequence.

Thanks

I have upload the attachment here. in this problem I want to find the comparison. Please check it and please tell me the correction

 

Ask.mw

How do I solve the problem that attached? Please give me the correction. thank you

Hello,

I have a little question about the property "local" or not of a index in a for loop.

I notice that when I make "for loop" the index i is not local. In the small example, when I ask to evaluate i after having done this loop, the answer is 5 and not i.

Example :

for i from 1 to 4 do
i^2
od;

i; --> 5

How can I do to ask Maple to use index as local ?

Thanks a lot for your help.

 

I want to plot a function given different value combinations of parameters. I used the following code and it doesn't work. Could anybody please help?

Page 1 of 1