MATLAB Answers

integer to the power larger integer = infinity

7 views (last 30 days)
Mohsin Shah
Mohsin Shah on 15 May 2011
i entered in Matlab command window the folowing values 65^171 and i got the result infinity (Inf)...why is it so? why Matlab not showing larger integer results. if there is any setting in Matlab for this to rectify please let me know.

Accepted Answer

Jan
Jan on 16 May 2011
Decimal approximation: 1.0190E310
realmax % >> 1.7977e308
Numbers greater than REALMAX are Inf.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!