ComplexSingleMBS 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 ComplexSingleMBS class.

ComplexSingleMBS.abs as single

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 ComplexSingleMBS(1,2)
MsgBox str(c.abs)

ComplexSingleMBS.Add(c as ComplexSingleMBS)

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:

ComplexSingleMBS.Add(x as single)

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:

ComplexSingleMBS.arg as single

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 ComplexSingleMBS(1,2)
MsgBox str(c.arg)

ComplexSingleMBS.conj as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim e as ComplexSingleMBS = c.conj
MsgBox e.str

ComplexSingleMBS.Constructor(other as ComplexSingleMBS)

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 ComplexSingleMBS(1,2)
dim d as new ComplexSingleMBS(c)

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

See also:

ComplexSingleMBS.Constructor(x as single = 0.0, y as single = 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 ComplexSingleMBS(1,2)
MsgBox str(c.Real)+" "+str(c.Imag)

See also:

ComplexSingleMBS.cos as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
MsgBox c.cos.str

ComplexSingleMBS.cosh as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
MsgBox c.cosh.str

ComplexSingleMBS.Divide(c as ComplexSingleMBS)

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:

ComplexSingleMBS.Divide(x as single)

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:

ComplexSingleMBS.exp as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
MsgBox c.exp.str

ComplexSingleMBS.log as ComplexSingleMBS

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 ComplexSingleMBS(10,10)
MsgBox c.log.str

ComplexSingleMBS.log10 as ComplexSingleMBS

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 ComplexSingleMBS(10,0)
MsgBox c.log10.str

ComplexSingleMBS.Multiply(c as ComplexSingleMBS)

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:

ComplexSingleMBS.Multiply(x as single)

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:

ComplexSingleMBS.norm as single

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 ComplexSingleMBS(1,2)
MsgBox str(c.norm)

ComplexSingleMBS.Operator_Add(c as ComplexSingleMBS) as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim d as new ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c+d
MsgBox e.str

See also:

ComplexSingleMBS.Operator_Add(x as single) as ComplexSingleMBS

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 ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c+2
MsgBox e.str

See also:

ComplexSingleMBS.Operator_Compare(c as ComplexSingleMBS) 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 ComplexSingleMBS(1,2)
dim d as new ComplexSingleMBS(1,2)

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

ComplexSingleMBS.Operator_Divide(c as ComplexSingleMBS) as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim d as new ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c/d
MsgBox e.str

See also:

ComplexSingleMBS.Operator_Divide(x as single) as ComplexSingleMBS

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 ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c/2
MsgBox e.str

See also:

ComplexSingleMBS.Operator_Multiply(c as ComplexSingleMBS) as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim d as new ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c*d
MsgBox e.str

See also:

ComplexSingleMBS.Operator_Multiply(x as single) as ComplexSingleMBS

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 single to a complex number.
Example
dim c as new ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c*2
MsgBox e.str

See also:

ComplexSingleMBS.Operator_Power(x as ComplexSingleMBS) as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim d as new ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c^d
MsgBox e.str

ComplexSingleMBS.Operator_Subtract(c as ComplexSingleMBS) as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim d as new ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c-d
MsgBox e.str

See also:

ComplexSingleMBS.Operator_Subtract(x as single) as ComplexSingleMBS

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 ComplexSingleMBS(3,4)
dim e as ComplexSingleMBS = c-2
MsgBox e.str

See also:

ComplexSingleMBS.pow(x as ComplexSingleMBS) as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim d as new ComplexSingleMBS(2,0)
dim m as ComplexSingleMBS = c.pow(d)

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

See also:

ComplexSingleMBS.pow(x as single) as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim m as ComplexSingleMBS = c.pow(2)

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

See also:

ComplexSingleMBS.sin as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
MsgBox c.sin.str

ComplexSingleMBS.sinh as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
MsgBox c.sinh.str

ComplexSingleMBS.sqrt as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
dim r as ComplexSingleMBS = c.sqrt
dim m as ComplexSingleMBS = r*r

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

ComplexSingleMBS.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 ComplexSingleMBS(1,2)
MsgBox c.str

The actual format can change.

ComplexSingleMBS.Subtract(c as ComplexSingleMBS)

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:

ComplexSingleMBS.Subtract(x as single)

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:

ComplexSingleMBS.tan as ComplexSingleMBS

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 ComplexSingleMBS(1,2)
MsgBox c.tan.str

ComplexSingleMBS.tanh as ComplexSingleMBS

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 ComplexSingleMBS(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