My program uses Math.pow()to calculate a relatively large double number in power 2. Later I need to find the square root of a very large double number. The problem is that I have to do this more than 100,000 times, and it takes a very long time. Is there an alternative that can speed up this process? Thanks
Edit: by large numbers, I mean from 1,000 to 10,000 (which is probably not so great in computational terms). And from the point of view of this, it takes a lot of time, it takes about 30 seconds to perform the function 500 times
source
share