Michael Reitzenstein #1 That is exactly what he is doing, except substantially slower - using ^ for squaring a number is significantly slower than standard multiplication. I believe your problem, Farflame, is that you are not using floats?