Packages

object Real extends Serializable

The Real companion object defines the origin (zero), one half and one as well as some utility functions.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Real
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val E: Real

    Euler's number 'e' with 106 bits of precision

  5. val EPSILON: Double

    Approximate machine epsilon for Double-Double

  6. val NaN: Real

    Represents Not a Number

  7. val Pi: Real

    'pi' with 106 bits of precision

  8. val _0: Real

    Zero (0) as a Real number

  9. val _1: Real

    One (1) as a Real number

  10. val _10: Real

    Ten (10) as a Real number

  11. val _1by2: Real

    One Half (0.5) as a Real number

  12. val _1n: Real

    Negative One (-1) as a Real number

  13. val _2: Real

    Two (2) as a Real number

  14. val _2Pi: Real

    '2 pi' with 106 bits of precision

  15. val _512: Real

    2^9 as a real number

  16. val _700: Real

    700 as a real number

  17. def abs(x: Real): Real

    Return the absolute value of real number 'x'.

    Return the absolute value of real number 'x'.

    x

    the real number whose absolute value is sought

  18. def apply(xs: String): Real

    Create a real number from its primary string representation "dd.ddd".

    Create a real number from its primary string representation "dd.ddd". Example: "0.693147180559945309417232121458"

    xs

    the string form of a real number

  19. def apply(xt: (Double, Double)): Real

    Create a real number from a pair (Tuple2) of Doubles.

    Create a real number from a pair (Tuple2) of Doubles.

    xt

    the tuple form of a real number

  20. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  21. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. implicit def double2Real(d: Double): Real

    Implicit conversion from 'Double' to 'Real'.

    Implicit conversion from 'Double' to 'Real'.

    d

    the Double parameter to convert

  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  25. def exp(x: Real = _1): Real

    Return 'e' raised to the 'x'-th power 'e^x'. 'x' is rescaled to improve convergence. Rescaling causes slight reduction in precision. e = 2.718281828459045235360287471345 from scalation.math.Real.exp E = 2.718281828459045235360287471352 given constant

    Return 'e' raised to the 'x'-th power 'e^x'. 'x' is rescaled to improve convergence. Rescaling causes slight reduction in precision. e = 2.718281828459045235360287471345 from scalation.math.Real.exp E = 2.718281828459045235360287471352 given constant

    x

    the real number exponent

    See also

    bt.pa.msu.edu/pub/papers/HICOSYMSU08/HICOSYMSU08.pdf FIX: use a faster and more precise algorithm

    http://mathworld.wolfram.com/e.html

  26. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. def log(x: Real): Real

    Return the natural log (log base 'e') of real number 'x'.

    Return the natural log (log base 'e') of real number 'x'.

    x

    the real number whose log is sought

    See also

    bt.pa.msu.edu/pub/papers/HICOSYMSU08/HICOSYMSU08.pdf

  31. val log_2: Real

    Natural log of 2 as a real number

  32. def magnitude(x: Double): Int

    Determine the decimal magnitude of 'x', i.e., the largest integer 'k' such that '10^k <= x'.

    Determine the decimal magnitude of 'x', i.e., the largest integer 'k' such that '10^k <= x'.

    x

    the number to find the magnitude of

  33. def max(x: Real, y: Real): Real

    Return the maximum of two real numbers 'x' and 'y'.

    Return the maximum of two real numbers 'x' and 'y'.

    x

    the first real number to compare

    y

    the second real number to compare

  34. def min(x: Real, y: Real): Real

    Return the minimum of two real numbers 'x' and 'y'.

    Return the minimum of two real numbers 'x' and 'y'.

    x

    the first real number to compare

    y

    the second real number to compare

  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  38. implicit val num: Real

    Implicit numeric value for establishing type

  39. implicit val ord: Ordering[Real]

    Ordering for real numbers

  40. def signum(r: Real): Real

    Return the signum (sgn) of a real number.

    Return the signum (sgn) of a real number. The values may be -1, 0, or 1.

    r

    the real number to obtain the sigum of

  41. def sin(x: Real): Real

    Return the sin of real number 'x'.

    Return the sin of real number 'x'.

    x

    the real number whose sin is sought

  42. def sqrt(x: Real): Real

    Return the square root of real number 'x'.

    Return the square root of real number 'x'.

    x

    the real number whose square root is sought

  43. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped