Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/ops/csub/docs/types/index.d"

Index

Functions

Functions

Export assignment csub

  • Subtracts two double-precision complex floating-point numbers.

    Parameters

    Returns Complex128

    result

    Example

    var Complex128 = require( `@stdlib/complex/float64` );
    var real = require( `@stdlib/complex/real` );
    var imag = require( `@stdlib/complex/imag` );
    
    var z1 = new Complex128( 5.0, 3.0 );
    // returns <Complex128>
    
    var z2 = new Complex128( -2.0, 1.0 );
    // returns <Complex128>
    
    var out = csub( z1, z2 );
    // returns <Complex128>
    
    var re = real( out );
    // returns 7.0
    
    var im = imag( out );
    // returns 2.0