Navigation: Scripting Reference Manual > Functions & Subroutines > CmpxAdd

 

CmpxAdd

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds two complex numbers and stores the result in a third.

 

Syntax

CmpxAdd real1, imag1, real2, imag2, real3, imag3

 

Parameters

ByVal real1 As Double

Real part of the first complex number

 

ByVal imag1 As Double

Imaginary part of the first complex number

 

ByVal real2 As Double

Real part of the second complex number

 

ByVal imag2 As Double

Imaginary part of the second complex number

 

ByRef real3 As Double

Will hold the real part of the resulting complex number

 

ByRef imag3 As Double

Will hold the imaginary part of the resulting complex number

 

Remarks

This subroutine adds two complex numbers and stores the result in a third;

 

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

 

No errors are set.

 

See Also

CmpxSub

CmpxMult

CmpxDiv

CmpxArg

CmpxSqrt

CmpxAbs

CmpxAbs2

Examples

 

 

 

 

 

 

Copyright © Photon Engineering, LLC