Platforms to show: All Mac Windows Linux Cross-Platform
BigNumberMBS.Abs(value as BigNumberMBS) as BigNumberMBS
Function:
Absolute value of x.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(-3)
Dim d As BigNumberMBS = BigNumberMBS.Abs(c)
Dim e As BigNumberMBS = c.Abs
MsgBox d.StringValue+EndOfLine+e.StringValue // shows 3
See also:
BigNumberMBS.ACos(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates the Arc Cosine.
Example:
Notes:
we're using the formula: acos(x) = pi/2 - asin(x)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(0.5)
Dim d As BigNumberMBS = BigNumberMBS.ACos(c)
Dim x As Double = ACos(0.5)
MsgBox d.StringValue+EndOfLine+Str(x)
BigNumberMBS.ACosh(value as BigNumberMBS) as BigNumberMBS
Function:
Inverse hyperbolic cosine.
Example:
Notes:
acosh(x) = ln( x + sqrt(x^2 - 1) ) x in <1, infinity)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(2.0)
Dim d As BigNumberMBS = BigNumberMBS.ACosh(c)
// ACosHMBS is in MBS Xojo Util Plugin
Dim x As Double = ACosHMBS(2.0)
MsgBox d.StringValue+EndOfLine+Str(x)
BigNumberMBS.ACot(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates the Arc Cotangent.
Notes: we're using the formula: actan(x) = pi/2 - atan(x)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: we're using the formula: actan(x) = pi/2 - atan(x)
BigNumberMBS.ACoth(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates inverse hyperbolic cotangent.
Notes: acoth(x) = 0.5 * ln( (x+1) / (x-1) ) x in (-infinity, -1) or (1, infinity)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: acoth(x) = 0.5 * ln( (x+1) / (x-1) ) x in (-infinity, -1) or (1, infinity)
BigNumberMBS.ASin(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates the Arc Sine.
Example:
Notes:
Range is from -1 to 1.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(1.0)
Dim d As BigNumberMBS = BigNumberMBS.ASin(c)
Dim x As Double = ASin(1.0)
MsgBox d.StringValue+EndOfLine+Str(x)
BigNumberMBS.ASinh(value as BigNumberMBS) as BigNumberMBS
Function:
Inverse hyperbolic sine.
Example:
Notes:
asinh(x) = ln( x + sqrt(x^2 + 1) )
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(0.5)
Dim d As BigNumberMBS = BigNumberMBS.ASinH(c)
// ASinHMBS is in MBS Xojo Util Plugin
Dim x As Double = ASinHMBS(0.5)
MsgBox d.StringValue+EndOfLine+Str(x)
BigNumberMBS.ATan(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates the Arc Tangent.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(0.5)
Dim d As BigNumberMBS = BigNumberMBS.ATan(c)
Dim x As Double = ATan(0.5)
MsgBox d.StringValue+EndOfLine+Str(x)
BigNumberMBS.ATanh(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates inverse hyperbolic tangent.
Example:
Notes:
atanh(x) = 0.5 * ln( (1+x) / (1-x) ) x in (-1, 1)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(0.5)
Dim d As BigNumberMBS = BigNumberMBS.ATanh(c)
// ATanhMBS is in MBS Xojo Util Plugin
Dim x As Double = ATanhMBS(0.5)
MsgBox d.StringValue+EndOfLine+Str(x)
BigNumberMBS.Cos(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates the cosine value.
Example:
Notes:
We're using the formula cos(x) = sin(x + PI/2).
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(1.0)
Dim d As BigNumberMBS = BigNumberMBS.Cos(c)
Dim x As Double = Cos(1.0)
MsgBox d.StringValue+EndOfLine+Str(x)
BigNumberMBS.Cosh(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates the Hyperbolic Cosine.
Example:
Notes:
We're using the formula cosh(x)= ( e^x + e^(-x) ) / 2.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
Dim c As New BigNumberMBS(0.5)
Dim d As BigNumberMBS = BigNumberMBS.CosH(c)
// CosHMBS is in MBS Xojo Util Plugin
Dim x As Double = CosHMBS(0.5)
MsgBox d.StringValue+EndOfLine+Str(x)
BigNumberMBS.Cot(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates the Cotangent.
Notes: We're using the formula tan(x) = cos(x) / sin(x).
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: We're using the formula tan(x) = cos(x) / sin(x).
BigNumberMBS.Coth(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates the Hyperbolic Cotangent.
Notes: We're using the formula coth(x)= ( e^x + e^(-x) ) / ( e^x - e^(-x) )
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: 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
Function:
Converts degrees in the long format into one value.
Notes:
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)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
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
Function:
Converts degrees in the long format to gradians.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
BigNumberMBS.DegToGrad(value as BigNumberMBS) as BigNumberMBS
Function:
Converts degrees to gradians.
Notes: it returns: x * 200 / 180
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: it returns: x * 200 / 180
See also:
BigNumberMBS.DegToRad(d as BigNumberMBS, m as BigNumberMBS, s as BigNumberMBS) as BigNumberMBS
Function:
Converts degrees in the long format to radians.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
See also:
BigNumberMBS.DegToRad(value as BigNumberMBS) as BigNumberMBS
Function:
Converts degrees to radians.
Notes: It returns: x * pi / 180
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: It returns: x * pi / 180
See also:
BigNumberMBS.E as BigNumberMBS
Function:
Returns a number with value zero.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim b as BigNumberMBS = BigNumberMBS.e
MsgBox b.StringValue
BigNumberMBS.Exp(value as BigNumberMBS) as BigNumberMBS
Function:
Calculates e^value.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(2)
dim p as BigNumberMBS = BigNumberMBS.Exp(x)
MsgBox p.StringValue // shows e^2 = 7.38
BigNumberMBS.GradToDeg(value as BigNumberMBS) as BigNumberMBS
Function:
Converts degrees to gradians.
Notes: it returns: x * 180 / 200
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: it returns: x * 180 / 200
BigNumberMBS.GradToRad(value as BigNumberMBS) as BigNumberMBS
Function:
Converts gradians to radians.
Notes: It returns: x * pi / 200.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes: It returns: x * pi / 200.
BigNumberMBS.HalfPi as BigNumberMBS
Function:
Returns a number with value pi/2.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim b as BigNumberMBS = BigNumberMBS.HalfPi
MsgBox b.StringValue
BigNumberMBS.LibTypeStr as String
Function:
Queries what implementation is used for this platform.
Notes:
Shows asm in the text if assembler code is used.
Assembler code is not available for all platforms.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 21.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Notes:
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
Function:
Calculates natural logarithm.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(2)
dim p as BigNumberMBS = BigNumberMBS.Ln(x)
MsgBox p.StringValue // shows ln(2) = 0.69
BigNumberMBS.Ln10 as BigNumberMBS
Function:
Returns a number with value ln(10).
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim b as BigNumberMBS = BigNumberMBS.Ln10
MsgBox b.StringValue
BigNumberMBS.Ln2 as BigNumberMBS
Function:
Returns a number with value ln(2).
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim b as BigNumberMBS = BigNumberMBS.Ln2
MsgBox b.StringValue
BigNumberMBS.Log(value as BigNumberMBS, base as BigNumberMBS) as BigNumberMBS
Function:
Calculates logarithm in a given base.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim x as new BigNumberMBS(100)
dim d as new BigNumberMBS(10)
dim p as BigNumberMBS = BigNumberMBS.Log(x, d)
MsgBox p.StringValue // shows ln(100)/ln(10) = 2
BigNumberMBS.Max as BigNumberMBS
Function:
Returns a number with maximum value.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Math | MBS DataTypes Plugin | 16.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim b as BigNumberMBS = BigNumberMBS.Min
MsgBox b.StringValue
The items on this page are in the following plugins: MBS DataTypes Plugin.
Feedback: Report problem or ask question.
