JavaScript must be enabled in order for you to use JSXGraph and JSXGraph reference. However, it seems JavaScript is either disabled or not supported by your browser.

Class Index | File Index

Elements
Classes

Class JXG.Complex


      ↳ JXG.Complex

This class is for calculating with complex numbers, see also JXG.C for more methods.

Defined in: complex.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JXG.Complex(x, y)
Creates a new complex number.
Field Summary
Field Attributes Field Name and Description
 
Absolute value in the polar form of the complex number.
 
Angle value in the polar form of the complex number.
 
Imaginary part of the complex number.
<private>  
This property is only to signalize that this object is of type JXG.Complex.
 
Real part of the complex number.
Method Summary
Method Attributes Method Name and Description
 
add(c)
Add another complex number to this complex number.
 
conj()
Conjugate a complex number in place.
 
div(c)
Divide this complex number by the given complex number.
 
mult(c)
Multiply another complex number to this complex number.
 
sub(c)
Subtract another complex number from this complex number.
 
Converts a complex number into a string.
Class Detail
JXG.Complex(x, y)
Creates a new complex number. See also JXG.C.
Parameters:
{Number} x Optional, Default: 0
Real part.


{Number} y Optional, Default: 0
Imaginary part.


See:
JXG.C
Field Detail
{Number} absval
Absolute value in the polar form of the complex number. Currently unused.

{Number} angle
Angle value in the polar form of the complex number. Currently unused.

{Number} imaginary
Imaginary part of the complex number.
Default Value:
0

<private> {Boolean} isComplex
This property is only to signalize that this object is of type JXG.Complex. Only used internally to distinguish between normal JavaScript numbers and JXG.Complex numbers.
Default Value:
true

{Number} real
Real part of the complex number.
Default Value:
0
Method Detail
{JXG.Complex} add(c)
Add another complex number to this complex number.
Parameters:
{JXG.Complex|Number} c
A JavaScript number or a JXG.Complex object to be added to the current object.
Returns:
{JXG.Complex} Reference to this complex number

{JXG.Complex} conj()
Conjugate a complex number in place.
Returns:
{JXG.Complex} Reference to this complex number

{JXG.Complex} div(c)
Divide this complex number by the given complex number.
Parameters:
{JXG.Complex|Number} c
A JavaScript number or a JXG.Complex object to divide the current object by.
Returns:
{JXG.Complex} Reference to this complex number

{JXG.Complex} mult(c)
Multiply another complex number to this complex number.
Parameters:
{JXG.Complex|Number} c
A JavaScript number or a JXG.Complex object to multiply with the current object.
Returns:
{JXG.Complex} Reference to this complex number

{JXG.Complex} sub(c)
Subtract another complex number from this complex number.
Parameters:
{JXG.Complex|Number} c
A JavaScript number or a JXG.Complex object to subtract from the current object.
Returns:
{JXG.Complex} Reference to this complex number

{String} toString()
Converts a complex number into a string.
Returns:
{String} Formatted string containing the complex number in human readable form (algebraic form).

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Nov 08 2024 12:13:04 GMT+0100 (Mitteleuropäische Normalzeit)