2.5 KiB
2.5 KiB
Utils
Standard library basic mathematical utilities.
Usage
var utils = require( '@stdlib/math/base/utils' );
utils
Standard library basic mathematical utilities.
var o = utils;
// returns {...}
absdiff( x, y )
: compute the absolute difference of two real numbers.epsdiff( x, y[, scale] )
: compute the relative difference of two real numbers in units of double-precision floating-point epsilon.reldiff( x, y[, scale] )
: compute the relative difference of two real numbers.
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var utils = require( '@stdlib/math/base/utils' );
console.log( objectKeys( utils ) );