Math

Overview

Math related functions.

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Mapped to:
    • Math  .NET, .NET Core 6.0, .NET Standard 2.0, Cooper
    • Math  Island

Class Methods


Abs (Double): Double .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island

Return the absolute value of i.

 

class method Abs(d: Double): Double

 

static Double Abs(Double d)

 

static func Abs(_ d: Double) -> Double

 

static Double Abs(Double d)

 

Shared Function Abs(d As Double) As Double

Parameters:

  • d:

Abs (Int32): Int32

Return the absolute value of i.

 

class method Abs(i: Int32): Int32

 

static Int32 Abs(Int32 i)

 

static func Abs(_ i: Int32) -> Int32

 

static Integer Abs(Integer i)

 

Shared Function Abs(i As Int32) As Int32

Parameters:

  • i:

Abs (Int64): Int64

Return the absolute value of i.

 

class method Abs(i: Int64): Int64

 

static Int64 Abs(Int64 i)

 

static func Abs(_ i: Int64) -> Int64

 

static Int64 Abs(Int64 i)

 

Shared Function Abs(i As Int64) As Int64

Parameters:

  • i:

Abs (Double): Double Toffee, ToffeeV2

 

static func Abs(_ value: Double) -> Double

Parameters:

  • value:

Acos

Returns the arc cosine value for a double.

 

class method Acos(d: Double): Double

 

static Double Acos(Double d)

 

static func Acos(_ d: Double) -> Double

 

static Double Acos(Double d)

 

Shared Function Acos(d As Double) As Double

Parameters:

  • d:

Asin

Return the arc sine of d, in radians.

 

class method Asin(d: Double): Double

 

static Double Asin(Double d)

 

static func Asin(_ d: Double) -> Double

 

static Double Asin(Double d)

 

Shared Function Asin(d As Double) As Double

Parameters:

  • d:

Atan

Return the arc tangent of d, in radians.

 

class method Atan(d: Double): Double

 

static Double Atan(Double d)

 

static func Atan(_ d: Double) -> Double

 

static Double Atan(Double d)

 

Shared Function Atan(d As Double) As Double

Parameters:

  • d:

Atan2

The Math.Atan2 function returns the arctangent of the quotient of x.

 

class method Atan2(x: Double; y: Double): Double

 

static Double Atan2(Double x, Double y)

 

static func Atan2(_ x: Double, _ y: Double) -> Double

 

static Double Atan2(Double x, Double y)

 

Shared Function Atan2(x As Double, y As Double) As Double

Parameters:

  • x:
  • y:

Ceiling (Double): Double Cooper

 

class method Ceiling(a: Double): Double

 

static Double Ceiling(Double a)

 

static func Ceiling(_ a: Double) -> Double

 

static Double Ceiling(Double a)

 

Shared Function Ceiling(a As Double) As Double

Parameters:

  • a:

Ceiling (Double): Double .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

Returns the ceiling of d, the smallest integer greater than or equal to d.

 

class method Ceiling(d: Double): Double

 

static Double Ceiling(Double d)

 

static func Ceiling(_ d: Double) -> Double

 

Shared Function Ceiling(d As Double) As Double

Parameters:

  • d:

Cos

Returns the cosine value of d.

 

class method Cos(d: Double): Double

 

static Double Cos(Double d)

 

static func Cos(_ d: Double) -> Double

 

static Double Cos(Double d)

 

Shared Function Cos(d As Double) As Double

Parameters:

  • d:

Cosh

Return the hyperbolic cosine of d.

 

class method Cosh(d: Double): Double

 

static Double Cosh(Double d)

 

static func Cosh(_ d: Double) -> Double

 

static Double Cosh(Double d)

 

Shared Function Cosh(d As Double) As Double

Parameters:

  • d:

Exp

Returns e ^^ x.

 

class method Exp(d: Double): Double

 

static Double Exp(Double d)

 

static func Exp(_ d: Double) -> Double

 

static Double Exp(Double d)

 

Shared Function Exp(d As Double) As Double

Parameters:

  • d:

Floor

Returns the Floor of d, the smallest integer less than or equal to d.

 

class method Floor(d: Double): Double

 

static Double Floor(Double d)

 

static func Floor(_ d: Double) -> Double

 

static Double Floor(Double d)

 

Shared Function Floor(d As Double) As Double

Parameters:

  • d:

IEEERemainder

Returns the remainder according to the IEEE spec.

 

class method IEEERemainder(x: Double; y: Double): Double

 

static Double IEEERemainder(Double x, Double y)

 

static func IEEERemainder(_ x: Double, _ y: Double) -> Double

 

static Double IEEERemainder(Double x, Double y)

 

Shared Function IEEERemainder(x As Double, y As Double) As Double

Parameters:

  • x:
  • y:

Log (Double): Double Toffee, ToffeeV2

 

static func Log(_ a: Double) -> Double

Parameters:

  • a:

Log (Double): Double .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island

Returns the logarithm of a.

 

class method Log(d: Double): Double

 

static Double Log(Double d)

 

static func Log(_ d: Double) -> Double

 

static Double Log(Double d)

 

Shared Function Log(d As Double) As Double

Parameters:

  • d:

Log10 (Double): Double Toffee, ToffeeV2

 

static func Log10(_ a: Double) -> Double

Parameters:

  • a:

Log10 (Double): Double .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island

Returns the base 10 logarithm of a.

 

class method Log10(d: Double): Double

 

static Double Log10(Double d)

 

static func Log10(_ d: Double) -> Double

 

static Double Log10(Double d)

 

Shared Function Log10(d As Double) As Double

Parameters:

  • d:

Max (Double, Double): Double

Returns the largest of the two parameters.

 

class method Max(a: Double; b: Double): Double

 

static Double Max(Double a, Double b)

 

static func Max(_ a: Double, _ b: Double) -> Double

 

static Double Max(Double a, Double b)

 

Shared Function Max(a As Double, b As Double) As Double

Parameters:

  • a:
  • b:

Max (Int32, Int32): Int32

Returns the largest of the two parameters.

 

class method Max(a: Int32; b: Int32): Int32

 

static Int32 Max(Int32 a, Int32 b)

 

static func Max(_ a: Int32, _ b: Int32) -> Int32

 

static Integer Max(Integer a, Integer b)

 

Shared Function Max(a As Int32, b As Int32) As Int32

Parameters:

  • a:
  • b:

Max (Int64, Int64): Int64

Returns the largest of the two parameters.

 

class method Max(a: Int64; b: Int64): Int64

 

static Int64 Max(Int64 a, Int64 b)

 

static func Max(_ a: Int64, _ b: Int64) -> Int64

 

static Int64 Max(Int64 a, Int64 b)

 

Shared Function Max(a As Int64, b As Int64) As Int64

Parameters:

  • a:
  • b:

Min (Double, Double): Double

Returns the smallest of the two parameters.

 

class method Min(a: Double; b: Double): Double

 

static Double Min(Double a, Double b)

 

static func Min(_ a: Double, _ b: Double) -> Double

 

static Double Min(Double a, Double b)

 

Shared Function Min(a As Double, b As Double) As Double

Parameters:

  • a:
  • b:

Min (Int32, Int32): Int32

Returns the smallest of the two parameters.

 

class method Min(a: Int32; b: Int32): Int32

 

static Int32 Min(Int32 a, Int32 b)

 

static func Min(_ a: Int32, _ b: Int32) -> Int32

 

static Integer Min(Integer a, Integer b)

 

Shared Function Min(a As Int32, b As Int32) As Int32

Parameters:

  • a:
  • b:

Min (Int64, Int64): Int64

Returns the smallest of the two parameters.

 

class method Min(a: Int64; b: Int64): Int64

 

static Int64 Min(Int64 a, Int64 b)

 

static func Min(_ a: Int64, _ b: Int64) -> Int64

 

static Int64 Min(Int64 a, Int64 b)

 

Shared Function Min(a As Int64, b As Int64) As Int64

Parameters:

  • a:
  • b:

Pow

Returns x ^^ y.

 

class method Pow(x: Double; y: Double): Double

 

static Double Pow(Double x, Double y)

 

static func Pow(_ x: Double, _ y: Double) -> Double

 

static Double Pow(Double x, Double y)

 

Shared Function Pow(x As Double, y As Double) As Double

Parameters:

  • x:
  • y:

Round (Double): Int64

Round the value of a, according to bankers rounding.

 

class method Round(a: Double): Int64

 

static Int64 Round(Double a)

 

static func Round(_ a: Double) -> Int64

 

static Int64 Round(Double a)

 

Shared Function Round(a As Double) As Int64

Parameters:

  • a:

Round (Double, Int32): Double

Round the value of a, according to bankers rounding, with digits after the decimal separator.

 

class method Round(a: Double; digits: Int32): Double

 

static Double Round(Double a, Int32 digits)

 

static func Round(_ a: Double, _ digits: Int32) -> Double

 

static Double Round(Double a, Integer digits)

 

Shared Function Round(a As Double, digits As Int32) As Double

Parameters:

  • a:
  • digits:

Sign

Returns the sign of d.

 

class method Sign(d: Double): Int32

 

static Int32 Sign(Double d)

 

static func Sign(_ d: Double) -> Int32

 

static Integer Sign(Double d)

 

Shared Function Sign(d As Double) As Int32

Parameters:

  • d:

Sin (Double): Double .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island

Returns the sine of x.

 

class method Sin(d: Double): Double

 

static Double Sin(Double d)

 

static func Sin(_ d: Double) -> Double

 

static Double Sin(Double d)

 

Shared Function Sin(d As Double) As Double

Parameters:

  • d:

Sin (Double): Double Toffee, ToffeeV2

 

static func Sin(_ x: Double) -> Double

Parameters:

  • x:

Sinh (Double): Double .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island

Returns the hyperbolic sine of d.

 

class method Sinh(d: Double): Double

 

static Double Sinh(Double d)

 

static func Sinh(_ d: Double) -> Double

 

static Double Sinh(Double d)

 

Shared Function Sinh(d As Double) As Double

Parameters:

  • d:

Sinh (Double): Double Toffee, ToffeeV2

 

static func Sinh(_ x: Double) -> Double

Parameters:

  • x:

Sqrt

Returns the square root of d.

 

class method Sqrt(d: Double): Double

 

static Double Sqrt(Double d)

 

static func Sqrt(_ d: Double) -> Double

 

static Double Sqrt(Double d)

 

Shared Function Sqrt(d As Double) As Double

Parameters:

  • d:

Tan

Returns the tangent of d.

 

class method Tan(d: Double): Double

 

static Double Tan(Double d)

 

static func Tan(_ d: Double) -> Double

 

static Double Tan(Double d)

 

Shared Function Tan(d As Double) As Double

Parameters:

  • d:

Tanh

Returns the hyperbolic tangent of d.

 

class method Tanh(d: Double): Double

 

static Double Tanh(Double d)

 

static func Tanh(_ d: Double) -> Double

 

static Double Tanh(Double d)

 

Shared Function Tanh(d As Double) As Double

Parameters:

  • d:

Truncate

Gets the integeral value of d.

 

class method Truncate(d: Double): Double

 

static Double Truncate(Double d)

 

static func Truncate(_ d: Double) -> Double

 

static Double Truncate(Double d)

 

Shared Function Truncate(d As Double) As Double

Parameters:

  • d: