Project

General

Profile

Scol standard library package  0.3.1
Common and usefull functions for all Scol applications
complex.pkg File Reference

Scol Standard Library - Complex number API. More...

Classes

struct  Complex
 Internal structure. You should not call it directly, use API instead ! More...

Typedefs

typedef struct mkComplex Complex

Functions

 std_cAdd (c1, c2)
 Add two complex numbers.
 std_cAddNew (c1, c2)
 Add two complex numbers. The return is a new complex number.
 std_carg (a, b, flag)
 std_cArg (c, flag)
 Get the argument of a complex number.
 std_ccheck2string (str)
 std_cCmp (c1, c2)
 Compare two complex numbers.
 std_cConjugate (c)
 Create the conjugate of a complex number.
 std_cDiv (c1, c2)
 Divide two complex numbers.
 std_cDivNew (c1, c2)
 Divide two complex numbers. The return is a new complex number.
 std_cEuler (f)
 Exponentiation by the Euler's formula : e power fi where i is the imaginary unit (i² = -1) and f is a real number (here, f is a floatting point number).
 std_cfroms (str)
 std_cFromS (szC)
 Create a new Complex from a literal string (such as "a + bi")
 std_cfroms_img (str, posreal)
 std_cfroms_real (str)
 std_cGet (c)
 Get a complex number.
 std_cGetImg (c)
 Get the imaginary part of a complex number.
 std_cGetReal (c)
 Get the real part of a complex number.
 std_cInv (c)
 Returns the inverse of a complex number.
 std_cInvNew (c)
 Returns the inverse of a complex number. This is a new complex number.
 std_cIsZero (c)
 Check if a complex number is 0.
 std_cLog (c)
 The natural logarithm (base 'e') of a complex number.
 std_cLogNew (c)
 Returns the first solution of the natural logarithm (base 'e') of a complex number. The return is a new complex number.
 std_cMod (c)
 Get the modulus (phasis) of a complex number.
 std_cMul (c1, c2)
 Multiply two complex numbers.
 std_cMulNew (c1, c2)
 Multiply two complex numbers. The return is a new complex number.
 std_cNew (fReal, fImg)
 Create a new Complex.
 std_cPow (c, i)
 The power of a complex number by an integer.
 std_cPowNew (c, i)
 The power of a complex number by an integer The return is a new complex number.
 std_cRootn (c, i)
 Returns the first solution of the n-th root of a complex number.
 std_cRootnAll (c, i)
 Returns all n-th roots of a complex number.
 std_cRootnK (c, i, k)
 Returns a particular soultion of the n-th root of a complex number.
 std_cRootnNew (c, i)
 Returns the first solution of the n-th root of a complex number. The return is a new complex number.
 std_cSet (c, fReal, fImg)
 Set a complex number.
 std_cSetImg (c, fImg)
 Set the imaginary part of a complex number.
 std_cSetReal (c, fReal)
 Set the real part of a complex number.
 std_cSqr (c)
 The square of a complex number.
 std_cSqrNew (c)
 Square of a complex number. The return is a new complex number.
 std_csqrt (c)
 std_cSqrt (c)
 Square root of a complex number.
 std_cSqrtNew (c)
 Square root of a complex number. The return is two new complex numbers.
 std_cSub (c1, c2)
 Substract two complex numbers.
 std_cSubNew (c1, c2)
 Substract two complex numbers. The return is a new complex number.
 std_ctos (r, i)
 std_cToS (c)
 Get a complex number to a literal string (like "a+bi")
 std_cZero ()
 Create a new zero (0) Complex (0+0i)

Detailed Description

Scol Standard Library - Complex number API.

Author
Scol team
Version
0.1

This API provides some methods to work with the complex numbers.