Re: Decimal Precision Determination



Jason Vanderplas wrote:
>
> How does Matlab determine the precision of a output value. ...

As others have noted, the displayed precision of Matlab (and virtually
all other programming languages as well, in fact) is not directly
related to the internal representation of the value but is an artifact
of the i/o formatting used.

Most languages have something similat ro what is known in Fortran as
"list-directed" formatting if a specific format is not provided. This
output format is designed to be a compromise between accuracy and ease
of presentation/comprehension for the user. If you need a specific
precision of output results for display, look into fprintf or other
formatting options in Matlab.

As a companion work, I suggest the following link to understand the
basics behind the scenes in dealing w/ floating point representation in
Matlab and any other programming language.

http://docs.sun.com/source/806-3568/ncg_goldberg.html
.



Relevant Pages

  • Re: Precision and Accuracy of Elementary Functions in MATLAB
    ... exploring MATLAB as the programming language seems more accessible. ... Not so with with elementary functions. ... These operate in double or single precision, ... If you pass a double array into the Symbolic Math Toolbox, ...
    (comp.soft-sys.matlab)
  • Re: Int 32 processing speed: Is it a bug
    ... It is confirmed that matlab is not doing any integer arithmetic in ... I am not planning to use any matrix calculation in my program. ... Elapsed time is 0.017342 seconds. ... %Double precision ...
    (comp.soft-sys.matlab)
  • Re: A concern about the Matlab implementation of the Mersenne Twister RNG.
    ... On Mar 8, 10:48 am, Peter Perkins ... MATLAB's "basic" data class is double precision, ... That isn't exactly what MATLAB ... which comes with source code. ...
    (comp.soft-sys.matlab)
  • Precision and Accuracy of Elementary Functions in MATLAB
    ... exploring MATLAB as the programming language seems more accessible. ... Not so with with elementary functions. ... they are simply interface routines to call built-in functions. ... much precision is guaranteed. ...
    (comp.soft-sys.matlab)
  • Re: eigenvalue and higher precission
    ... > The problem I mainly encounter with is to investigate whether Matlab ... > have QP(Quadropole Precision) or not. ... > All give me the result, especially eigenvector, and I am not sure of ... Hello Ali, ...
    (comp.soft-sys.matlab)