128-bit complex number.
We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we’ve built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.
The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.
When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.
To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url]
Double-precision complex floating-point number functions.
bash
npm install @stdlib/complex-float64
script
tag without installation and bundlers, use the [ES Module][es-module] available on the [esm
][esm-url] branch (see [README][esm-readme]).deno
][deno-url] branch (see [README][deno-readme] for usage intructions).umd
][umd-url] branch (see [README][umd-readme]).javascript
var complex = require( '@stdlib/complex-float64' );
javascript
var ns = complex;
// returns {...}
base
][@stdlib/complex/float64/base]: base (i.e., lower-level) double-precision complex floating-point number functions.conj( z )
][@stdlib/complex/float64/conj]: return the complex conjugate of a double-precision complex floating-point number.Complex128( real, imag )
][@stdlib/complex/float64/ctor]: 128-bit complex number.imag( z )
][@stdlib/complex/float64/imag]: return the imaginary component of a double-precision complex floating-point number.parseComplex128( str )
][@stdlib/complex/float64/parse]: parse a string representation of a 128-bit complex number.real( z )
][@stdlib/complex/float64/real]: return the real component of a double-precision complex floating-point number.reim( z )
][@stdlib/complex/float64/reim]: return the real and imaginary components of a double-precision complex floating-point number.reviveComplex128( key, value )
][@stdlib/complex/float64/reviver]: revive a JSON-serialized 128-bit complex number.javascript
var objectKeys = require( '@stdlib/utils-keys' );
var ns = require( '@stdlib/complex-float64' );
console.log( objectKeys( ns ) );