input value
number from which to derive the sign
result
var Complex128 = require( `@stdlib/complex/float64` );
var real = require( `@stdlib/complex/real` );
var imag = require( `@stdlib/complex/imag` );
var v = cflipsign( new Complex128( -4.2, 5.5 ), -55.0 );
// returns <Complex128>
var re = real( v );
// returns 4.2
var im = imag( v );
// returns -5.5
Returns a double-precision complex floating-point number with the same magnitude as
z
and the sign ofy*z
.