Memory optimize

You don't appear to use the value of real, so maybe the whole calculation is optimised away