MATLAB Numbers greater than INF in matlab

  • Thread starter Thread starter SamuraiJack
  • Start date Start date
  • Tags Tags
    Matlab Numbers
AI Thread Summary
MATLAB's default floating point type, the double (IEEE 754-2008 binary64), cannot handle numbers greater than 10e308, resulting in the output of INF for such values. To work with larger numbers, users can utilize the Symbolic Toolbox or create an Arbitrary Precision library, which allows for handling numbers with greater precision. Resources such as the Variable Precision Integer Arithmetic library available on MATLAB's File Exchange may also provide solutions for users needing to manage large numerical values effectively.
SamuraiJack
Messages
9
Reaction score
0
Hello all,

I need to use numbers that are greater than 10e308 in matlab. Apparently, 52 bit MATLAB does not recognize them and uses INF instead of the big number. I googled for it and only got some vague answers how to deal with it (something about file exchange...).Help! please...

thanks.
 
Physics news on Phys.org
SamuraiJack said:
Hello all,

I need to use numbers that are greater than 10e308 in matlab. Apparently, 52 bit MATLAB does not recognize them and uses INF instead of the big number. I googled for it and only got some vague answers how to deal with it (something about file exchange...).Help! please...

thanks.

You need the Symbolic Toolbox. If your needs are "simple" enough, then you could write an Arbitrary Precision ('BigNum') library (using, say, a vector to hold numbers on a one digit per element basis). ... or google for one, maybe this http://www.mathworks.com/matlabcentral/fileexchange/22725-variable-precision-integer-arithmetic ?
 
Thank you. This is very helpful. I'm going to try it now.
 

Similar threads

Replies
6
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
5
Views
6K
Replies
10
Views
3K
Replies
2
Views
5K
Back
Top