output array
real component
imaginary component
real and imaginary components
var Float32Array = require( `@stdlib/array/float32` );
var out = new Float32Array( 2 );
var v = cexp( out, 0.0, 1.0 );
// returns <Float32Array>[ ~0.540, ~0.841 ]
var bool = ( v === out );
// returns true
Computes the exponential function of a complex number.
real component
imaginary component
real and imaginary components
var v = cexp( 0.0, 0.0 );
// returns [ 1.0, 0.0 ]
var v = cexp( 1.0, 0.0 );
// returns [ ~2.718, 0.0 ]
Computes the exponential function of a complex number.