output array
real component
imaginary component
absolute value and phase, respectively
var Float32Array = require( `@stdlib/array/float32` );
var out = new Float32Array( 2 );
var v = cpolar( out, 5.0, 3.0 );
// returns <Float32Array>[ ~5.83, ~0.5404 ]
var bool = ( v === out );
// returns true
Computes the absolute value and the phase of a complex number.
real component
imaginary component
absolute value and phase, respectively
var v = cpolar( 5.0, 3.0 );
// returns [ ~5.83, ~0.5404 ]
Computes the absolute value and the phase of a complex number.