scala

Math

object Math extends MathCommon

The object Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.

source: Math.scala
    deprecated:
  1. use scala.math package instead

Inherited
  1. Hide All
  2. Show all
  1. MathCommon
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. val E: Double

    The double value that is closer than any other to e, the base of the natural logarithms.

  9. val EPS_DOUBLE: Double

    The smallest difference between two values of scala.

  10. val EPS_FLOAT: Float

    The smallest difference between two values of scala.

  11. def IEEEremainder(x: Double, y: Double): Double

  12. val MAX_BYTE: Byte

  13. val MAX_CHAR: Char

  14. val MAX_DOUBLE: Double

    The greatest possible value for scala.

  15. val MAX_FLOAT: Float

    The greatest possible value for scala.

  16. val MAX_INT: Int

  17. val MAX_LONG: Long

  18. val MAX_SHORT: Short

  19. val MIN_BYTE: Byte

  20. val MIN_CHAR: Char

  21. val MIN_DOUBLE: Double

    The smallest possible value for scala.

  22. val MIN_FLOAT: Float

    The smallest possible value for scala.

  23. val MIN_INT: Int

  24. val MIN_LONG: Long

  25. val MIN_SHORT: Short

  26. val NEG_INF_DOUBLE: Double

    Negative infinity of type scala.

  27. val NEG_INF_FLOAT: Float

    Negative infinity of type scala.

  28. val NaN_DOUBLE: Double

    A value of type scala.

  29. val NaN_FLOAT: Float

    A value of type scala.

  30. val POS_INF_DOUBLE: Double

    Positive infinity of type scala.

  31. val POS_INF_FLOAT: Float

    Positive infinity of type scala.

  32. val Pi: Double

    The double value that is closer than any other to pi, the ratio of the circumference of a circle to its diameter.

  33. def abs(x: Double): Double

  34. def abs(x: Float): Float

  35. def abs(x: Long): Long

  36. def abs(x: Int): Int

  37. def acos(x: Double): Double

  38. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  39. def asin(x: Double): Double

  40. def atan(x: Double): Double

  41. def atan2(y: Double, x: Double): Double

    Converts rectangular coordinates (x, y) to polar (r, theta).

  42. def ceil(x: Double): Double

  43. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  44. def cos(x: Double): Double

  45. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  46. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  47. def exp(x: Double): Double

    Returns Euler's number e raised to the power of a double value.

  48. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  49. def floor(x: Double): Double

  50. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  51. def hashCode(): Int

    Returns a hash code value for the object.

  52. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  53. def log(x: Double): Double

  54. def max(x: Double, y: Double): Double

  55. def max(x: Float, y: Float): Float

  56. def max(x: Long, y: Long): Long

  57. def max(x: Int, y: Int): Int

  58. def min(x: Double, y: Double): Double

  59. def min(x: Float, y: Float): Float

  60. def min(x: Long, y: Long): Long

  61. def min(x: Int, y: Int): Int

  62. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  63. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  64. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  65. def pow(x: Double, y: Double): Double

    Returns the value of the first argument raised to the power of the second argument.

  66. def random: Double

    Returns a double value with a positive sign, greater than or equal to 0.

  67. def rint(x: Double): Double

    Returns the double value that is closest in value to the argument and is equal to a mathematical integer.

  68. def round(x: Double): Long

  69. def round(x: Float): Int

    Returns the closest long to the argument.

  70. def signum(x: Int): Int

  71. def signum(x: Long): Long

  72. def signum(x: Float): Float

  73. def signum(x: Double): Double

  74. def sin(x: Double): Double

  75. def sqrt(x: Double): Double

  76. def synchronized[T0](arg0: T0): T0

  77. def tan(x: Double): Double

  78. def toDegrees(x: Double): Double

    Converts an angle measured in radians to an approximately equivalent angle measured in degrees.

  79. def toRadians(x: Double): Double

    Converts an angle measured in degrees to an approximately equivalent angle measured in radians.

  80. def toString(): String

    Returns a string representation of the object.

  81. def wait(): Unit

  82. def wait(arg0: Long, arg1: Int): Unit

  83. def wait(arg0: Long): Unit