iComplex_Polar

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > iComplex >

iComplex_Polar

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

 

Description

 

Returns the complex number z = r exp(i theta) = r (cos(theta) + i sin(theta))  from the polar representation (r, theta)

 

Syntax

 

z = iComplex_Set(r, theta)

 

Returns

 

Returns a tComplex UDT.

 

Parameters

 

Name

Type

Optional

Meaning

r

Number

No


theta

Number

No


 

Remarks

 

Restrictions

 

See also

 

Examples