I have a simple while loop. After running, the variable does not change:
a=1; b=2; v1 = NSolve[a^2 == E^(-(x/b))/x, x, Real][]; f[x_] := x; v = f[x /. v1] v=5.72178
I use above value of v as intial value of v in the while loop:
i = 1; v = f[x /. v1]; While[ i < 10, v = v++; i++]
Now, I want to see what is the value of "i" and "v" after running while loop:
but v is not changed:
why "v" doesn't change? What should I do?