I have an iteration loop. Inside the loop, I have a constant gamma. I want its starting value to be 10e-8. I want to half its value on every iteration (10e-4 on second iteration). How to do it?
maxiter = 100;while iter< maxiter gamma = 1Oe-8 f = gamma * p;end
Best Answer