Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/cflipsign/docs/types/index.d"

Index

Functions

Functions

Export assignment cflipsign

  • Returns a double-precision complex floating-point number with the same magnitude as z and the sign of y*z.

    Parameters

    • z: Complex128

      input value

    • y: number

      number from which to derive the sign

    Returns Complex128

    result

    Example

    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