Question: Paramiter that give me a maximum value

I need a mathematical system that finds the value of k that gives the z value bigger (for loop inside the slider). Moving the slider would seem  k=0.80621762 that give z: 2517.701824

k.mw


The for Statement calculates this mathematical sequence:

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=?

The paramiter 2 is k (i have to find the value that give me the maximum of z).

 

Please Wait...