Numbers greater than INF in matlab

  • Context: MATLAB 
  • Thread starter Thread starter SamuraiJack
  • Start date Start date
  • Tags Tags
    Matlab Numbers
Click For Summary

Discussion Overview

The discussion revolves around the limitations of MATLAB in handling numbers greater than 10e308, specifically addressing the use of floating-point types and potential workarounds for representing larger values.

Discussion Character

  • Technical explanation, Debate/contested, Conceptual clarification

Main Points Raised

  • One participant notes that MATLAB uses INF for numbers greater than 10e308 due to its default support for double precision (IEEE 754-2008 binary64).
  • Another participant suggests that the Symbolic Toolbox may be necessary for handling larger numbers and proposes the idea of creating an Arbitrary Precision library as an alternative.
  • A link to a MATLAB Central file exchange resource for variable precision integer arithmetic is provided as a potential solution.

Areas of Agreement / Disagreement

Participants express varying opinions on how to handle numbers greater than the maximum representable value in MATLAB, with no consensus on a single solution or approach.

Contextual Notes

Participants mention limitations related to MATLAB's default floating-point representation and the need for additional tools or libraries to work with larger numbers, but do not resolve the specifics of implementation or effectiveness.

Who May Find This Useful

Users of MATLAB who require the manipulation of very large numbers or are interested in numerical methods that exceed standard floating-point capabilities.

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 14 ·
Replies
14
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
1
Views
5K