I am dealing with very large numbers on the scale 10^500, 10^800. When I try to calculate 10^309, it returns inf.
>> 10^309
ans =
Inf
I tested format long, it also returns inf.
>> format long
>> 10^309
ans =
Inf
I also checked the function vpa:
vpa(10^309,309)
ans =
Inf
How can I calculate and use large numbers in my calculations? I cannot use the logarithm because I need all the numbers in very large numbers. those. I want MATLAB to return the following for10^308
vpa(10^308,308)
ans =
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Can someone help me do this?
user4569486
source
share