Navigation: Scripting Reference Manual > Functions & Subroutines > CmpxSub

 

CmpxSub

 

Contact Us: fredsupport@photonengr.com

 

Description

Subtracts one complex number from another and stores the result in a third.

 

Syntax

CmpxSub real1, imag1, real2, imag2, real3, imag3

 

Parameters

real1 As Double

Real part of the first complex number

 

imag1 As Double

Imaginary part of the first complex number

 

real2 As Double

Real part of the second complex number

 

imag2 As Double

Imaginary part of the second complex number

 

real3 As Double

The real part of the resulting complex number

 

imag3 As Double

The imaginary part of the resulting complex number

 

Remarks

This subroutine subtracts one complex number from another and stores the result in a third. Specifically, it performs

 

(real1,imag1)-(real2,imag2)=(real3,imag3).

 

No errors are set.

 

See Also

CmpxAdd

CmpxMult

CmpxDiv

CmpxArg

CmpxSqrt

CmpxAbs

CmpxAbs2

Examples

 

 

 

 

 

 

Copyright © Photon Engineering, LLC