Math

Overview

Location

 

constructor

 

constructor()

 

Math()

 

init()

 

Math()

Abs (Double): Double

 

class method Abs(i: Double): Double

 

static Double Abs(Double i)

 

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

 

static Double Abs(Double i)

Parameters:

  • i:

Abs (Int32): Int32

 

class method Abs(i: Int32): Int32

 

static Int32 Abs(Int32 i)

 

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

 

static Int32 Abs(Int32 i)

Parameters:

  • i:

Abs (Int64): Int64

 

class method Abs(i: Int64): Int64

 

static Int64 Abs(Int64 i)

 

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

 

static Int64 Abs(Int64 i)

Parameters:

  • i:

Acos

 

class method Acos(d: Double): Double

 

static Double Acos(Double d)

 

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

 

static Double Acos(Double d)

Parameters:

  • d:

Asin

 

class method Asin(d: Double): Double

 

static Double Asin(Double d)

 

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

 

static Double Asin(Double d)

Parameters:

  • d:

Atan

 

class method Atan(d: Double): Double

 

static Double Atan(Double d)

 

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

 

static Double Atan(Double d)

Parameters:

  • d:

Atan2

 

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)

Parameters:

  • x:
  • y:

Ceiling (Double): Double

 

class method Ceiling(d: Double): Double

 

static Double Ceiling(Double d)

 

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

 

static Double Ceiling(Double d)

Parameters:

  • d:

Ceiling (Single): Single

 

class method Ceiling(d: Single): Single

 

static Single Ceiling(Single d)

 

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

 

static Single Ceiling(Single d)

Parameters:

  • d:

Cos

 

class method Cos(d: Double): Double

 

static Double Cos(Double d)

 

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

 

static Double Cos(Double d)

Parameters:

  • d:

Cosh

 

class method Cosh(d: Double): Double

 

static Double Cosh(Double d)

 

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

 

static Double Cosh(Double d)

Parameters:

  • d:

E

 

const E: Double = 2,71828182845905

 

const Double E = 2,71828182845905

 

static let E: Double = 2,71828182845905

 

static final Double E = 2,71828182845905

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Exp

 

class method Exp(d: Double): Double

 

static Double Exp(Double d)

 

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

 

static Double Exp(Double d)

Parameters:

  • d:

Exp2

 

class method Exp2(d: Double): Double

 

static Double Exp2(Double d)

 

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

 

static Double Exp2(Double d)

Parameters:

  • d:

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize()

 

void Finalize()

 

func Finalize()

 

void Finalize()

Floor (Double): Double

 

class method Floor(d: Double): Double

 

static Double Floor(Double d)

 

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

 

static Double Floor(Double d)

Parameters:

  • d:

Floor (Single): Single

 

class method Floor(d: Single): Single

 

static Single Floor(Single d)

 

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

 

static Single Floor(Single d)

Parameters:

  • d:

fmod

 

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

 

static Double fmod(Double x, Double y)

 

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

 

static Double fmod(Double x, Double y)

Parameters:

  • x:
  • y:

fmodf

 

class method fmodf(x: Single; y: Single): Single

 

static Single fmodf(Single x, Single y)

 

static func fmodf(_ x: Single, _ y: Single) -> Single

 

static Single fmodf(Single x, Single y)

Parameters:

  • x:
  • y:

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode(): Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType(): Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

IEEERemainder

 

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)

Parameters:

  • x:
  • y:

Log

 

class method Log(a: Double): Double

 

static Double Log(Double a)

 

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

 

static Double Log(Double a)

Parameters:

  • a:

Log10

 

class method Log10(a: Double): Double

 

static Double Log10(Double a)

 

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

 

static Double Log10(Double a)

Parameters:

  • a:

Log2

 

class method Log2(a: Double): Double

 

static Double Log2(Double a)

 

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

 

static Double Log2(Double a)

Parameters:

  • a:

Max (Double, Double): Double

 

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)

Parameters:

  • a:
  • b:

Max (Int32, Int32): Int32

 

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

 

static Int32 Max(Int32 a, Int32 b)

 

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

 

static Int32 Max(Int32 a, Int32 b)

Parameters:

  • a:
  • b:

Max (Int64, Int64): Int64

 

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)

Parameters:

  • a:
  • b:

Min (Double, Double): Double

 

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)

Parameters:

  • a:
  • b:

Min (Int32, Int32): Int32

 

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

 

static Int32 Min(Int32 a, Int32 b)

 

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

 

static Int32 Min(Int32 a, Int32 b)

Parameters:

  • a:
  • b:

Min (Int64, Int64): Int64

 

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)

Parameters:

  • a:
  • b:

PI

 

const PI: Double = 3,14159265358979

 

const Double PI = 3,14159265358979

 

static let PI: Double = 3,14159265358979

 

static final Double PI = 3,14159265358979

Pow (Double, Double): Double

 

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)

Parameters:

  • x:
  • y:

Pow (Double, Int32): Double

 

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

 

static Double Pow(Double x, Int32 y)

 

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

 

static Double Pow(Double x, Int32 y)

Parameters:

  • x:
  • y:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

Round

 

class method Round(a: Double): Int64

 

static Int64 Round(Double a)

 

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

 

static Int64 Round(Double a)

Parameters:

  • a:

Sign

 

class method Sign(d: Double): Int32

 

static Int32 Sign(Double d)

 

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

 

static Int32 Sign(Double d)

Parameters:

  • d:

Sin

 

class method Sin(x: Double): Double

 

static Double Sin(Double x)

 

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

 

static Double Sin(Double x)

Parameters:

  • x:

Sinh

 

class method Sinh(x: Double): Double

 

static Double Sinh(Double x)

 

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

 

static Double Sinh(Double x)

Parameters:

  • x:

Sqrt

 

class method Sqrt(d: Double): Double

 

static Double Sqrt(Double d)

 

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

 

static Double Sqrt(Double d)

Parameters:

  • d:

Tan

 

class method Tan(d: Double): Double

 

static Double Tan(Double d)

 

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

 

static Double Tan(Double d)

Parameters:

  • d:

Tanh

 

class method Tanh(d: Double): Double

 

static Double Tanh(Double d)

 

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

 

static Double Tanh(Double d)

Parameters:

  • d:

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString(): String

 

String ToString()

 

func ToString() -> String

 

String ToString()

Truncate (Double): Double

 

class method Truncate(d: Double): Double

 

static Double Truncate(Double d)

 

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

 

static Double Truncate(Double d)

Parameters:

  • d:

Truncate (Single): Single

 

class method Truncate(d: Single): Single

 

static Single Truncate(Single d)

 

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

 

static Single Truncate(Single d)

Parameters:

  • d:

 

E

 

const E: Double = 2,71828182845905

 

const Double E = 2,71828182845905

 

static let E: Double = 2,71828182845905

 

static final Double E = 2,71828182845905

PI

 

const PI: Double = 3,14159265358979

 

const Double PI = 3,14159265358979

 

static let PI: Double = 3,14159265358979

 

static final Double PI = 3,14159265358979

 

Abs (Double): Double

 

class method Abs(i: Double): Double

 

static Double Abs(Double i)

 

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

 

static Double Abs(Double i)

Parameters:

  • i:

Abs (Int32): Int32

 

class method Abs(i: Int32): Int32

 

static Int32 Abs(Int32 i)

 

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

 

static Int32 Abs(Int32 i)

Parameters:

  • i:

Abs (Int64): Int64

 

class method Abs(i: Int64): Int64

 

static Int64 Abs(Int64 i)

 

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

 

static Int64 Abs(Int64 i)

Parameters:

  • i:

Acos

 

class method Acos(d: Double): Double

 

static Double Acos(Double d)

 

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

 

static Double Acos(Double d)

Parameters:

  • d:

Asin

 

class method Asin(d: Double): Double

 

static Double Asin(Double d)

 

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

 

static Double Asin(Double d)

Parameters:

  • d:

Atan

 

class method Atan(d: Double): Double

 

static Double Atan(Double d)

 

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

 

static Double Atan(Double d)

Parameters:

  • d:

Atan2

 

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)

Parameters:

  • x:
  • y:

Ceiling (Double): Double

 

class method Ceiling(d: Double): Double

 

static Double Ceiling(Double d)

 

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

 

static Double Ceiling(Double d)

Parameters:

  • d:

Ceiling (Single): Single

 

class method Ceiling(d: Single): Single

 

static Single Ceiling(Single d)

 

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

 

static Single Ceiling(Single d)

Parameters:

  • d:

Cos

 

class method Cos(d: Double): Double

 

static Double Cos(Double d)

 

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

 

static Double Cos(Double d)

Parameters:

  • d:

Cosh

 

class method Cosh(d: Double): Double

 

static Double Cosh(Double d)

 

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

 

static Double Cosh(Double d)

Parameters:

  • d:

Exp

 

class method Exp(d: Double): Double

 

static Double Exp(Double d)

 

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

 

static Double Exp(Double d)

Parameters:

  • d:

Exp2

 

class method Exp2(d: Double): Double

 

static Double Exp2(Double d)

 

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

 

static Double Exp2(Double d)

Parameters:

  • d:

Floor (Double): Double

 

class method Floor(d: Double): Double

 

static Double Floor(Double d)

 

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

 

static Double Floor(Double d)

Parameters:

  • d:

Floor (Single): Single

 

class method Floor(d: Single): Single

 

static Single Floor(Single d)

 

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

 

static Single Floor(Single d)

Parameters:

  • d:

fmod

 

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

 

static Double fmod(Double x, Double y)

 

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

 

static Double fmod(Double x, Double y)

Parameters:

  • x:
  • y:

fmodf

 

class method fmodf(x: Single; y: Single): Single

 

static Single fmodf(Single x, Single y)

 

static func fmodf(_ x: Single, _ y: Single) -> Single

 

static Single fmodf(Single x, Single y)

Parameters:

  • x:
  • y:

IEEERemainder

 

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)

Parameters:

  • x:
  • y:

Log

 

class method Log(a: Double): Double

 

static Double Log(Double a)

 

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

 

static Double Log(Double a)

Parameters:

  • a:

Log10

 

class method Log10(a: Double): Double

 

static Double Log10(Double a)

 

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

 

static Double Log10(Double a)

Parameters:

  • a:

Log2

 

class method Log2(a: Double): Double

 

static Double Log2(Double a)

 

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

 

static Double Log2(Double a)

Parameters:

  • a:

Max (Double, Double): Double

 

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)

Parameters:

  • a:
  • b:

Max (Int32, Int32): Int32

 

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

 

static Int32 Max(Int32 a, Int32 b)

 

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

 

static Int32 Max(Int32 a, Int32 b)

Parameters:

  • a:
  • b:

Max (Int64, Int64): Int64

 

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)

Parameters:

  • a:
  • b:

Min (Double, Double): Double

 

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)

Parameters:

  • a:
  • b:

Min (Int32, Int32): Int32

 

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

 

static Int32 Min(Int32 a, Int32 b)

 

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

 

static Int32 Min(Int32 a, Int32 b)

Parameters:

  • a:
  • b:

Min (Int64, Int64): Int64

 

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)

Parameters:

  • a:
  • b:

Pow (Double, Double): Double

 

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)

Parameters:

  • x:
  • y:

Pow (Double, Int32): Double

 

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

 

static Double Pow(Double x, Int32 y)

 

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

 

static Double Pow(Double x, Int32 y)

Parameters:

  • x:
  • y:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

Parameters:

  • a: left value
  • b: right value

Round

 

class method Round(a: Double): Int64

 

static Int64 Round(Double a)

 

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

 

static Int64 Round(Double a)

Parameters:

  • a:

Sign

 

class method Sign(d: Double): Int32

 

static Int32 Sign(Double d)

 

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

 

static Int32 Sign(Double d)

Parameters:

  • d:

Sin

 

class method Sin(x: Double): Double

 

static Double Sin(Double x)

 

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

 

static Double Sin(Double x)

Parameters:

  • x:

Sinh

 

class method Sinh(x: Double): Double

 

static Double Sinh(Double x)

 

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

 

static Double Sinh(Double x)

Parameters:

  • x:

Sqrt

 

class method Sqrt(d: Double): Double

 

static Double Sqrt(Double d)

 

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

 

static Double Sqrt(Double d)

Parameters:

  • d:

Tan

 

class method Tan(d: Double): Double

 

static Double Tan(Double d)

 

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

 

static Double Tan(Double d)

Parameters:

  • d:

Tanh

 

class method Tanh(d: Double): Double

 

static Double Tanh(Double d)

 

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

 

static Double Tanh(Double d)

Parameters:

  • d:

Truncate (Double): Double

 

class method Truncate(d: Double): Double

 

static Double Truncate(Double d)

 

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

 

static Double Truncate(Double d)

Parameters:

  • d:

Truncate (Single): Single

 

class method Truncate(d: Single): Single

 

static Single Truncate(Single d)

 

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

 

static Single Truncate(Single d)

Parameters:

  • d:

 

constructor

 

constructor()

 

Math()

 

init()

 

Math()

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize()

 

void Finalize()

 

func Finalize()

 

void Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode(): Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType(): Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString(): String

 

String ToString()

 

func ToString() -> String

 

String ToString()