Platforms to show: All Mac Windows Linux Cross-Platform

Back to BigNumberMBS class.

BigNumberMBS.Abs(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
Absolute value of x.
Example
Var c As New BigNumberMBS(-3)
Var d As BigNumberMBS = BigNumberMBS.Abs(c)
Var e As BigNumberMBS = c.Abs

MsgBox d.StringValue+EndOfLine+e.StringValue // shows 3

See also:

BigNumberMBS.ACos(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 Arc Cosine.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.ACos(c)

Var x As Double = ACos(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

we're using the formula: acos(x) = pi/2 - asin(x)

BigNumberMBS.ACosh(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
Inverse hyperbolic cosine.
Example
Var c As New BigNumberMBS(2.0)
Var d As BigNumberMBS = BigNumberMBS.ACosh(c)

// ACosHMBS is in MBS Xojo Util Plugin
Var x As Double = ACosHMBS(2.0)

MsgBox d.StringValue+EndOfLine+Str(x)

acosh(x) = ln( x + sqrt(x^2 - 1) ) x in <1, infinity)

BigNumberMBS.ACot(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 Arc Cotangent.

we're using the formula: actan(x) = pi/2 - atan(x)

BigNumberMBS.ACoth(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 inverse hyperbolic cotangent.

acoth(x) = 0.5 * ln( (x+1) / (x-1) ) x in (-infinity, -1) or (1, infinity)

BigNumberMBS.ASin(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 Arc Sine.
Example
Var c As New BigNumberMBS(1.0)
Var d As BigNumberMBS = BigNumberMBS.ASin(c)

Var x As Double = ASin(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

Range is from -1 to 1.

BigNumberMBS.ASinh(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
Inverse hyperbolic sine.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.ASinH(c)

// ASinHMBS is in MBS Xojo Util Plugin
Var x As Double = ASinHMBS(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

asinh(x) = ln( x + sqrt(x^2 + 1) )

BigNumberMBS.ATan(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 Arc Tangent.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.ATan(c)

Var x As Double = ATan(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

BigNumberMBS.ATanh(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 inverse hyperbolic tangent.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.ATanh(c)

// ATanhMBS is in MBS Xojo Util Plugin
Var x As Double = ATanhMBS(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

atanh(x) = 0.5 * ln( (1+x) / (1-x) ) x in (-1, 1)

BigNumberMBS.Cos(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 cosine value.
Example
Var c As New BigNumberMBS(1.0)
Var d As BigNumberMBS = BigNumberMBS.Cos(c)

Var x As Double = Cos(1.0)

MsgBox d.StringValue+EndOfLine+Str(x)

We're using the formula cos(x) = sin(x + PI/2).

BigNumberMBS.Cosh(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 Cosine.
Example
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.CosH(c)

// CosHMBS is in MBS Xojo Util Plugin
Var x As Double = CosHMBS(0.5)

MsgBox d.StringValue+EndOfLine+Str(x)

We're using the formula cosh(x)= ( e^x + e^(-x) ) / 2.

BigNumberMBS.Cot(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 Cotangent.

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

BigNumberMBS.Coth(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 Cotangent.

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

BigNumberMBS.DegToDeg(d as BigNumberMBS, m as BigNumberMBS, s 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
Converts degrees in the long format into one value.

long format: (degrees, minutes, seconds)
minutes and seconds must be greater than or equal zero

result:
if d>=0 : result= d + ((s/60)+m)/60
if d<0 : result= d - ((s/60)+m)/60

((s/60)+m)/60 = (s+60*m)/3600 (second version is faster because there's only one division)

for example:
DegToDeg(10, 30, 0) = 10.5
DegToDeg(10, 24, 35.6)=10.4098(8)

BigNumberMBS.DegToGrad(d as BigNumberMBS, m as BigNumberMBS, s 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
Converts degrees in the long format to gradians.

See also:

BigNumberMBS.DegToGrad(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
Converts degrees to gradians.

it returns: x * 200 / 180

See also:

BigNumberMBS.DegToRad(d as BigNumberMBS, m as BigNumberMBS, s 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
Converts degrees in the long format to radians.

See also:

BigNumberMBS.DegToRad(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
Converts degrees to radians.

It returns: x * pi / 180

See also:

BigNumberMBS.E 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
Var b as BigNumberMBS = BigNumberMBS.e
MsgBox b.StringValue

BigNumberMBS.Exp(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates e^value.
Example
Var x as new BigNumberMBS(2)
Var p as BigNumberMBS = BigNumberMBS.Exp(x)

MsgBox p.StringValue // shows e^2 = 7.38

BigNumberMBS.GradToDeg(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
Converts degrees to gradians.

it returns: x * 180 / 200

BigNumberMBS.GradToRad(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
Converts gradians to radians.

It returns: x * pi / 200.

BigNumberMBS.HalfPi 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 pi/2.
Example
Var b as BigNumberMBS = BigNumberMBS.HalfPi
MsgBox b.StringValue

BigNumberMBS.LibTypeStr as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Queries what implementation is used for this platform.

Shows asm in the text if assembler code is used.
Assembler code is not available for all platforms.

BigNumberMBS.Ln(value as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates natural logarithm.
Example
Var x as new BigNumberMBS(2)
Var p as BigNumberMBS = BigNumberMBS.Ln(x)

MsgBox p.StringValue // shows ln(2) = 0.69

BigNumberMBS.Ln10 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 ln(10).
Example
Var b as BigNumberMBS = BigNumberMBS.Ln10
MsgBox b.StringValue

BigNumberMBS.Ln2 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 ln(2).
Example
Var b as BigNumberMBS = BigNumberMBS.Ln2
MsgBox b.StringValue

BigNumberMBS.Log(value as BigNumberMBS, base as BigNumberMBS) as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 16.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Calculates logarithm in a given base.
Example
Var x as new BigNumberMBS(100)
Var d as new BigNumberMBS(10)
Var p as BigNumberMBS = BigNumberMBS.Log(x, d)

MsgBox p.StringValue // shows ln(100)/ln(10) = 2

BigNumberMBS.Max 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 maximum value.
Example
Var b as BigNumberMBS = BigNumberMBS.Min
MsgBox b.StringValue

BigNumberMBS.Min 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 minimum value.
Example
Var b as BigNumberMBS = BigNumberMBS.Min
MsgBox b.StringValue

BigNumberMBS.One 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 one.
Example
Var b as BigNumberMBS = BigNumberMBS.One
MsgBox b.StringValue

BigNumberMBS.Pi 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 pi.
Example
Var b as BigNumberMBS = BigNumberMBS.Pi
MsgBox b.StringValue

BigNumberMBS.RadToDeg(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
Converts radians to degrees.

It returns: x * 180 / pi.

BigNumberMBS.RadToGrad(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
Converts radians to gradians.

it returns: x * 200 / pi

BigNumberMBS.Rand as BigNumberMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Math MBS DataTypes Plugin 21.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates random number.

Mantissa and exponent are filled with random bytes to generate a random names.

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
Var c As New BigNumberMBS(5*5*5*5)
Var e As New BigNumberMBS(4)
Var 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
Var negative As New BigNumberMBS(-5.6)
Var sign1 As BigNumberMBS = BigNumberMBS.Sgn(negative)

Var positive As New BigNumberMBS(5.6)
Var 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
Var c As New BigNumberMBS(1.0)
Var d As BigNumberMBS = BigNumberMBS.Sin(c)

Var 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
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.SinH(c)

// SinHMBS is in MBS Xojo Util Plugin
Var 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
Var c As New BigNumberMBS(1.0)
Var d As BigNumberMBS = BigNumberMBS.Tan(c)

Var 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
Var c As New BigNumberMBS(0.5)
Var d As BigNumberMBS = BigNumberMBS.TanH(c)

// TanHMBS is in MBS Xojo Util Plugin
Var 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
Var 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
Var b as BigNumberMBS = BigNumberMBS.Zero
MsgBox b.StringValue

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


The biggest plugin in space...