@stdlib/math-base-utils
v0.3.2
Published
Base math utilities.
Downloads
33
Readme
Utils
Base math utilities.
Installation
npm install @stdlib/math-base-utils
Usage
var utils = require( '@stdlib/math-base-utils' );
utils
Namespace for "base" (i.e., lower-level) math 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 ) );
Notice
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-2024. The Stdlib Authors.