Open Side Menu Go to the Top
Register
Approximating x^N for tiny x, large N Approximating x^N for tiny x, large N

11-09-2017 , 10:53 PM
Consider:

Let x = 965604004910 / 965604004911
Calculate x^100000 to 2 or 3 decimal places of accuracy

You can't just use your favorite programming language's extended precision library, because the numbers get too big to handle.

I'm trying to figure out if there's a clever numerical method to solve problems like this?
Approximating x^N for tiny x, large N Quote
11-09-2017 , 11:06 PM
I think the binomial theorem is all you need here.

(1 + a)^n = 1 + n*a + n*(n-1)/2 * a^2 + ...
Approximating x^N for tiny x, large N Quote
11-09-2017 , 11:55 PM
Thanks Aaron. Ofc, I guess I blanked for a moment there.
Approximating x^N for tiny x, large N Quote

      
m