ComplexDoubleMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to ComplexDoubleMBS class.

ComplexDoubleMBS.abs as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The absolute value of the complex number.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox str(c.abs)

ComplexDoubleMBS.Add(c as ComplexDoubleMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds the given value to this complex number.

See also:

ComplexDoubleMBS.Add(x as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds the given value to this complex number.

See also:

ComplexDoubleMBS.arg as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return phase angle of complex.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox str(c.arg)

ComplexDoubleMBS.conj as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns complex conjugate.
Example
dim c as new ComplexDoubleMBS(1,2)
dim e as ComplexDoubleMBS = c.conj
MsgBox e.str

ComplexDoubleMBS.Constructor(other as ComplexDoubleMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new complex number with the values from the given one.
Example
dim c as new ComplexDoubleMBS(1,2)
dim d as new ComplexDoubleMBS(c)

d.Add 1 // modify second object
MsgBox "d: "+d.str+", c: "+c.str

See also:

ComplexDoubleMBS.Constructor(x as Double = 0.0, y as Double = 0.0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new complex number with the given values.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox str(c.Real)+" "+str(c.Imag)

See also:

ComplexDoubleMBS.cos as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return cosine of complex.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox c.cos.str

ComplexDoubleMBS.cosh as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return hyperbolic cosine of complex.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox c.cosh.str

ComplexDoubleMBS.Divide(c as ComplexDoubleMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Divides this complex number by the given complex number.

See also:

ComplexDoubleMBS.Divide(x as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Divides this complex number by the given value.

See also:

ComplexDoubleMBS.exp as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return exponential of complex.

dim c as new ComplexDoubleMBS(1,2)
MsgBox c.exp.str

ComplexDoubleMBS.log as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return natural logarith of complex.
Example
dim c as new ComplexDoubleMBS(10,10)
MsgBox c.log.str

ComplexDoubleMBS.log10 as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return common logarithm of complex.
Example
dim c as new ComplexDoubleMBS(10,0)
MsgBox c.log10.str

ComplexDoubleMBS.Multiply(c as ComplexDoubleMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Mulitplies this complex number with the given value.

See also:

ComplexDoubleMBS.Multiply(x as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Multiplies this complex number with the given value.

See also:

ComplexDoubleMBS.norm as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return norm of complex number.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox str(c.norm)

ComplexDoubleMBS.Operator_Add(c as ComplexDoubleMBS) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to add two complex numbers.
Example
dim c as new ComplexDoubleMBS(1,2)
dim d as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c+d
MsgBox e.str

See also:

ComplexDoubleMBS.Operator_Add(x as Double) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to add a value to this complex number.
Example
dim c as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c+2
MsgBox e.str

See also:

ComplexDoubleMBS.Operator_Compare(c as ComplexDoubleMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Compares two complex numbers.
Example
dim c as new ComplexDoubleMBS(1,2)
dim d as new ComplexDoubleMBS(1,2)

if c = d then
MsgBox "equal"
else
MsgBox "not equal"
end if

ComplexDoubleMBS.Operator_Divide(c as ComplexDoubleMBS) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to divide one complex number by another.
Example
dim c as new ComplexDoubleMBS(1,2)
dim d as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c/d
MsgBox e.str

See also:

ComplexDoubleMBS.Operator_Divide(x as Double) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to divide a complex number by the given value.
Example
dim c as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c/2
MsgBox e.str

See also:

ComplexDoubleMBS.Operator_Multiply(c as ComplexDoubleMBS) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to multiply two complex numbers.
Example
dim c as new ComplexDoubleMBS(1,2)
dim d as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c*d
MsgBox e.str

See also:

ComplexDoubleMBS.Operator_Multiply(x as Double) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to multiply a double to a complex number.
Example
dim c as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c*2
MsgBox e.str

See also:

ComplexDoubleMBS.Operator_Power(x as ComplexDoubleMBS) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to calculate the power of two complex numbers.
Example
dim c as new ComplexDoubleMBS(1,2)
dim d as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c^d
MsgBox e.str

ComplexDoubleMBS.Operator_Subtract(c as ComplexDoubleMBS) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to subtract one complex number from another.
Example
dim c as new ComplexDoubleMBS(1,2)
dim d as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c-d
MsgBox e.str

See also:

ComplexDoubleMBS.Operator_Subtract(x as Double) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This method is called by Xojo in order to subtract the given value from this complex number.
Example
dim c as new ComplexDoubleMBS(3,4)
dim e as ComplexDoubleMBS = c-2
MsgBox e.str

See also:

ComplexDoubleMBS.pow(x as ComplexDoubleMBS) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return complex power.
Example
dim c as new ComplexDoubleMBS(1,2)
dim d as new ComplexDoubleMBS(2,0)
dim m as ComplexDoubleMBS = c.pow(d)

MsgBox "c: "+c.str+EndOfLine+"d: "+d.str+EndOfLine+"c^d: "+m.str

See also:

ComplexDoubleMBS.pow(x as Double) as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return complex power.
Example
dim c as new ComplexDoubleMBS(1,2)
dim m as ComplexDoubleMBS = c.pow(2)

MsgBox "c: "+c.str+EndOfLine+"c^2: "+m.str

See also:

ComplexDoubleMBS.sin as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return sine of complex.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox c.sin.str

ComplexDoubleMBS.sinh as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return hyperbolic sine of complex.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox c.sinh.str

ComplexDoubleMBS.sqrt as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return square root of complex.
Example
dim c as new ComplexDoubleMBS(1,2)
dim r as ComplexDoubleMBS = c.sqrt
dim m as ComplexDoubleMBS = r*r

MsgBox "number: "+c.str+EndOfLine+"root: "+r.str+EndOfLine+"back: "+m.str

ComplexDoubleMBS.str as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Shows the number in an human readable format.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox c.str

The actual format can change.

ComplexDoubleMBS.Subtract(c as ComplexDoubleMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Subtracts the given complex number from this complex number.

See also:

ComplexDoubleMBS.Subtract(x as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Subtracts the given value from this complex number.

See also:

ComplexDoubleMBS.tan as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return tangent of complex.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox c.tan.str

ComplexDoubleMBS.tanh as ComplexDoubleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Data Types MBS DataTypes Plugin 10.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Return hyperbolic tangent of complex.
Example
dim c as new ComplexDoubleMBS(1,2)
MsgBox c.tanh.str

The items on this page are in the following plugins: MBS DataTypes Plugin.


💬 Ask a question or report a problem