iComplex_Sqrt

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > iComplex >

iComplex_Sqrt

Source code public domain from José Roca: http://www.jose.it-berater.org/smfforum/index.php?topic=3191.0  

 

Description

 

Returns the square root of the complex number a, sqrt a.

The branch cut is the negative real axis. The result always lies in the right half of the complex plane

 

Syntax

 

z = iComplex_Sqrt(a)

 

Returns

 

Returns a tComplex UDT.

 

Parameters

 

Name

Type

Optional

Meaning

a

tComplex

No


 

Remarks

 

Restrictions

 

See also

 

Examples