Platforms to show: All Mac Windows Linux Cross-Platform

Back to BigNumberMBS class.

Previous items

BigNumberMBS.Root(value as BigNumberMBS, index as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Indexth Root of x
Example
Dim c As New BigNumberMBS(5*5*5*5)
Dim e As New BigNumberMBS(4)
Dim d As BigNumberMBS = BigNumberMBS.Root(c, e)

MsgBox d.StringValue

index must be integer and not negative <0;1;2;3....)

if index==0 the result is one
if x==0 the result is zero and we assume root(0;0) is not defined

if index is even (2;4;6...) the result is x^(1/index) and x>0
if index is odd (1;2;3;...) the result is either

-(abs(x)^(1/index)) if x<0
or
x^(1/index)) if x>0

(for index==1 the result is equal x)

BigNumberMBS.Sgn(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries sign of number.
Example
Dim negative As New BigNumberMBS(-5.6)
Dim sign1 As BigNumberMBS = BigNumberMBS.Sgn(negative)

Dim positive As New BigNumberMBS(5.6)
Dim sign2 As BigNumberMBS = BigNumberMBS.Sgn(positive)

Break

BigNumberMBS.Sin(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the sinus value.
Example
Dim c As New BigNumberMBS(1.0)
Dim d As BigNumberMBS = BigNumberMBS.Sin(c)

Dim x As Double = Sin(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

BigNumberMBS.Sinh(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Hyperbolic Sine.
Example
Dim c As New BigNumberMBS(0.5)
Dim d As BigNumberMBS = BigNumberMBS.SinH(c)

// SinHMBS is in MBS Xojo Util Plugin
Dim x As Double = SinHMBS(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

we're using the formula sinh(x) = ( e^x - e^(-x) ) / 2

BigNumberMBS.Tan(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Tangent.
Example
Dim c As New BigNumberMBS(1.0)
Dim d As BigNumberMBS = BigNumberMBS.Tan(c)

Dim x As Double = Tan(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

We're using the formula tan(x) = sin(x) / cos(x).

BigNumberMBS.Tanh(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates the Hyperbolic Tangent.
Example
Dim c As New BigNumberMBS(0.5)
Dim d As BigNumberMBS = BigNumberMBS.TanH(c)

// TanHMBS is in MBS Xojo Util Plugin
Dim x As Double = TanHMBS(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

We're using the formula tanh(x)= ( e^x - e^(-x) ) / ( e^x + e^(-x) )

BigNumberMBS.TwoPi as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value 2 * PI.
Example
dim b as BigNumberMBS = BigNumberMBS.TwoPi
MsgBox b.StringValue

BigNumberMBS.Zero as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns a number with value zero.
Example
dim b as BigNumberMBS = BigNumberMBS.Zero
MsgBox b.StringValue

Previous items

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


The biggest plugin in space...