Torabi Architect.
Mathsurf Documents Dec 2008
arrowComplex Numbers.
 

In mathematics, the complex numbers are the extension of the real numbers obtained by adjoining an imaginary unit, denoted “i”, which satisfies :i^2 = -1
Every complex number can be written in the form a + bi, where a and b are real numbers called the real part and the imaginary part of the complex number, respectively. Mathsurf will add a new variable structure to your 3dsMax script language in form of : ” complex a b” . According to the definition above if “z” is a complex number then z = a + bi  and in max-script the syntax is
“z = complex a b”

The complex class defines characteristics of complex numbers in 3D Max, the properties and method of Complex numbers has explained below:  

 

 

   

arrowProperties:


<Complex>.re: real part of complex number
<Complex>.im: imaginary part of complex number

 

arrowMethods:


<Complex>.denom() : return re^2 + im^2
<Complex>.r() : return sqrt(re^2+im^2)
<Complex>.theta() : return Atan(im/re)

<Complex>.inverse() : return the inversion.
 if z is a complex number then z.inverse() = 1/z.

<Complex>.conj() : return the conjugation.
The complex conjugate of the complex number z = x + yi is defined to be x yi,

arrowOperators:


<Complex>.equal z : return true if the complex number and “z” are equal, otherwise return false .

<Complex>.add z: perform the plus operation with a real number or another complex number and return a new complex number.

Syntax: C is complex number; Z is real number or complex. S is complex:
s = c.add z S = C+Z

<Complex>.sub z: perform the minus operation with a real number or another complex number and return a new complex number.

Syntax: C is complex number; Z is real number or complex. S is complex:
s = c.sub z S=C-Z


<Complex>.times z: perform the cross operation with a real number or another complex number and return a new complex number.


Syntax: C is complex number; Z is real number or complex. S is complex:
s = c.times z S=C*Z


<Complex>.div z: perform the divide operation with a real number or another complex number and return a new complex number.


Syntax: C is complex number; Z is real number or complex. S is complex:
s = c.div z S=C/Z


<Complex>.dot z: return the dot product of two complex numbers. The result is a real number.


Syntax: C and Z are complex numbers and S is real:

s = c.dot z S=C.Z

 

arrowMore functions:


<Complex>.power (z): return the power of “z” in complex number.


Syntax: C is a complex number; Z is real number and S is Complex:
S=C.power (Z) S=C^Z

<Complex>.integerpower (n): perform “n” times cross operation on complex number and return new complex number. Use this function instead of Power function if exponent is an integer value.


Syntax: C is a complex number; N is integer number and S is Complex:
S=C.integerpower (N) S=C^N

<Complex>. integerRoot(n): return the Nth root of complex number.

Syntax: C is a complex number; N is integer number and S is Complex:
S=C. integerRoot (N) S=Z^(1/n)

<Complex>. squareRootNearer(Z):Computes that square root of this complex number that is nearer to previous than to minus previous.

Syntax: C, S and Z are Complex numbers:
S=C. squareRootNearer (Z) S=sqrt(Z)

<Complex>.exponential (): return the exponential of complex number.

Syntax: C is a complex number; e is exponent number and S is Complex:
S=C.exponential() S=e^C

<Complex>. logaritm(): return the logarim of complex number.

Syntax: C and S are Complex numbers:
S=C.logaritm() S=log C

<Complex>.logNearer(z):Computes that complex logarithm of this complex number that is nearest to previous.

Syntax: C, S and Z are Complex numbers:
S=C.logNearer (Z)

arrowGlobal complex variables:

These variables are global and used to brief complex expressions.

Global complex variables

 

 

 
arrowMathsurf Classes.
arrowAdditional Functions.
arrowPlug-in features.
arrowBack to Index
www.torabiarchitect.com