Platforms to show: All Mac Windows Linux Cross-Platform

Back to BiggerNumberMBS class.

Previous items

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

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 BiggerNumberMBS(5*5*5*5)
Dim e As New BiggerNumberMBS(4)
Dim d As BiggerNumberMBS = BiggerNumberMBS.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)

BiggerNumberMBS.Sgn(value as BiggerNumberMBS) as BiggerNumberMBS

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 BiggerNumberMBS(-5.6)
Dim sign1 As BiggerNumberMBS = BiggerNumberMBS.Sgn(negative)

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

Break

BiggerNumberMBS.Sin(value as BiggerNumberMBS) as BiggerNumberMBS

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 BiggerNumberMBS(1.0)
Dim d As BiggerNumberMBS = BiggerNumberMBS.Sin(c)

Dim x As Double = Sin(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

BiggerNumberMBS.Sinh(value as BiggerNumberMBS) as BiggerNumberMBS

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 BiggerNumberMBS(0.5)
Dim d As BiggerNumberMBS = BiggerNumberMBS.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

BiggerNumberMBS.Tan(value as BiggerNumberMBS) as BiggerNumberMBS

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 BiggerNumberMBS(1.0)
Dim d As BiggerNumberMBS = BiggerNumberMBS.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).

BiggerNumberMBS.Tanh(value as BiggerNumberMBS) as BiggerNumberMBS

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 BiggerNumberMBS(0.5)
Dim d As BiggerNumberMBS = BiggerNumberMBS.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) )

BiggerNumberMBS.TwoPi as BiggerNumberMBS

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

BiggerNumberMBS.Zero as BiggerNumberMBS

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

Previous items

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


The biggest plugin in space...