Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment cflipsignf

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

    Parameters

    • z: Complex64

      input value

    • y: number

      number from which to derive the sign

    Returns Complex64

    result

    Example

    var Complex64 = require( `@stdlib/complex/float32` );
    var real = require( `@stdlib/complex/real` );
    var imag = require( `@stdlib/complex/imag` );
    
    var v = cflipsignf( new Complex64( -4.0, 5.0 ), -55.0 );
    // returns <Complex64>
    
    var re = real( v );
    // returns 4.0
    
    var im = imag( v );
    // returns -5.0