README
Operators
Standard library base math operators.
Installation
npm install @stdlib/math-base-ops
Usage
var ns = require( '@stdlib/math-base-ops' );
ns
Standard library base math operators.
var operators = ns;
// returns {...}
The namespace contains the following functions:
cadd( [out,] re1, im1, re2, im2 )
: add two complex numbers.cdiv( [out,] re1, im1, re2, im2 )
: divide two complex numbers.cmul( [out,] re1, im1, re2, im2 )
: multiply two complex numbers.cneg( [out,] re, im )
: negate a complex number.csub( [out,] re1, im1, re2, im2 )
: subtract two complex numbers.
Examples
var objectKeys = require( '@stdlib/utils-keys' );
var ns = require( '@stdlib/math-base-ops' );
console.log( objectKeys( ns ) );
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-2021. The Stdlib Authors.