Numbers greater than INF in matlab

  • Context: MATLAB 
  • Thread starter Thread starter SamuraiJack
  • Start date Start date
  • Tags Tags
    Matlab Numbers
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 4K views
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.