New answers tagged

-3

Real is the best way to convert an integer into a real as shown by the following. AbsoluteTiming[Do[ i = 1; Real[i]; ,{j,1,10^6}]] (* {1.881108,Null} Knowing that the part i = 1; takes some time by itself. AbsoluteTiming[Do[ i = 1; , {j, 1, 10^6}]] (* {1.216070, Null} it means that converting one million 1 to 1. takes 0.665038 s. All other ...



Top 50 recent answers are included