@stdlib/lapack-base-dlamch
v0.1.1
Published
Determine double-precision floating-point machine parameters.
Readme
dlamch
Determine double-precision floating-point machine parameters.
Installation
npm install @stdlib/lapack-base-dlamchUsage
var dlamch = require( '@stdlib/lapack-base-dlamch' );dlamch( cmach )
Determines double-precision floating-point machine parameters.
var out = dlamch( 'E' );
// returns 1.1102230246251565e-16The function has the following parameters:
cmach: specifies the value to be returned. The following characters are supported:
'E'/'e': (eps) relative machine precision.'S'/'s': (sfmin) safe minimum such that1/sfmindoes not overflow.'B'/'b': (base) base of the machine (also known as the floating-point radix).'P'/'p': (prec)eps*base.'N'/'n': (t) number of (base) digits in the mantissa.'R'/'r': (rnd)1.0when rounding occurs in addition and0.0otherwise.'M'/'m': (emin) minimum exponent before (gradual) underflow.'U'/'u': (rmin) underflow threshold.'L'/'l': (emax) largest exponent before overflow.'O'/'o': (rmax) overflow threshold.
Notes
Examples
var dlamch = require( '@stdlib/lapack-base-dlamch' );
var out = dlamch( 'E' );
console.log( 'Precision: %d', out );
out = dlamch( 'S' );
console.log( 'Safe minimum: %d', out );
out = dlamch( 'B' );
console.log( 'Base: %d', out );
out = dlamch( 'P' );
console.log( 'Precision*base: %d', out );
out = dlamch( 'N' );
console.log( 'Number of digits in mantissa: %d', out );
out = dlamch( 'R' );
console.log( 'Rounding: %d', out );
out = dlamch( 'M' );
console.log( 'Minimum exponent before underflow: %d', out );
out = dlamch( 'U' );
console.log( 'Underflow threshold: %d', out );
out = dlamch( 'L' );
console.log( 'Maximum exponent before overflow: %d', out );
out = dlamch( 'O' );
console.log( 'Overflow threshold: %d', out );C APIs
Usage
TODOTODO
TODO.
TODOTODO
TODOExamples
TODONotice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
