@stdlib/math-array-special
v0.1.1
Published
Special math functions applied to arrays.
Readme
Special Functions
Special math functions applied to arrays.
Installation
npm install @stdlib/math-array-specialUsage
var ns = require( '@stdlib/math-array-special' );ns
Namespace containing special math functions applied to arrays.
var o = ns;
// returns {...}The namespace contains the following:
abs( x[, options] ): compute the absolute value for each element in an input array.
Examples
var ns = require( '@stdlib/math-array-special' );
// Create an input array:
var x = [ -1.0, 2.0, -3.0, 4.0 ];
// Perform element-wise computation:
var out = ns.abs( x );
// returns [ 1.0, 2.0, 3.0, 4.0 ]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-2026. The Stdlib Authors.
