spire.math

Real

final class Real extends ScalaNumber with ScalaNumericConversions with RealLike[Real] with BMFSSBound[Real] with BigDecimalApprox[Real] with FPFilter[Real] with ConstantFolder[Real] with BubbleUpDivs[Real] with PrettyToString[Real] with Ordered[Real]

An general Real type. Can be used represent real numbers and approximate them on-demand.

Linear Supertypes
Ordered[Real], Comparable[Real], PrettyToString[Real], BubbleUpDivs[Real], ConstantFolder[Real], RealTransform[Real], FPFilter[Real], BigDecimalApprox[Real], BMFSSBound[Real], SeparationBound[Real], RealLike[Real], ScalaNumericConversions, ScalaNumericAnyConversions, ScalaNumber, java.lang.Number, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Real
  2. Ordered
  3. Comparable
  4. PrettyToString
  5. BubbleUpDivs
  6. ConstantFolder
  7. RealTransform
  8. FPFilter
  9. BigDecimalApprox
  10. BMFSSBound
  11. SeparationBound
  12. RealLike
  13. ScalaNumericConversions
  14. ScalaNumericAnyConversions
  15. ScalaNumber
  16. Number
  17. Serializable
  18. AnyRef
  19. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def %(that: Real): Real

    Definition Classes
    BigDecimalApprox
  5. def *(that: Real): Real

    Definition Classes
    RealTransformRealLike
  6. def +(that: Real): Real

    Definition Classes
    RealTransformRealLike
  7. def +/-(err: BigDecimal): BigDecimal

    Returns an absolute approximation to this s.

    Returns an absolute approximation to this s.t. this - err <= this +/- err <= this + err.

    Definition Classes
    BigDecimalApprox
  8. def -(that: Real): Real

    Definition Classes
    RealTransformRealLike
  9. def /(that: Real): Real

    Definition Classes
    RealTransformRealLike
  10. def /~(that: Real): Real

    Definition Classes
    BigDecimalApprox
  11. def <(that: Real): Boolean

    Definition Classes
    Ordered
  12. def <=(that: Real): Boolean

    Definition Classes
    Ordered
  13. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  15. def >(that: Real): Boolean

    Definition Classes
    Ordered
  16. def >=(that: Real): Boolean

    Definition Classes
    Ordered
  17. def abs: Real

    Definition Classes
    RealLike
  18. def approximateTo[B, C](b: B)(implicit approx: Approximation[Real, B, C]): C

    Definition Classes
    BigDecimalApprox
  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def byteValue(): Byte

    Definition Classes
    Real → ScalaNumericAnyConversions → Number
  21. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. val coexpr: Coexpr[Real]

    Definition Classes
    RealRealLike
  23. def compare(that: Real): Int

    Definition Classes
    RealLike
  24. def compareTo(that: Real): Int

    Definition Classes
    Ordered → Comparable
  25. def decimalLowerBound: Int

    Definition Classes
    SeparationBound
  26. def decimalUpperBound: Int

    Definition Classes
    SeparationBound
  27. def doubleValue(): Double

    Definition Classes
    FPFilter → Number
  28. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. def equals(that: Any): Boolean

    Definition Classes
    Real → AnyRef → Any
  30. val expr: Expr[Real]

  31. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. def floatValue(): Float

    Definition Classes
    FPFilter → Number
  33. lazy val fpf: MaybeDouble

    Definition Classes
    FPFilter
  34. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  35. def hashCode(): Int

    Definition Classes
    Real → AnyRef → Any
  36. def intValue(): Int

    Definition Classes
    FPFilter → Number
  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. def isRadical: Boolean

    Returns true if this is a radical expression, false otherwise.

    Returns true if this is a radical expression, false otherwise.

    Definition Classes
    RealLike
  39. def isValidByte: Boolean

    Definition Classes
    ScalaNumericAnyConversions
  40. def isValidChar: Boolean

    Definition Classes
    ScalaNumericAnyConversions
  41. def isValidInt: Boolean

    Definition Classes
    ScalaNumericAnyConversions
  42. def isValidShort: Boolean

    Definition Classes
    ScalaNumericAnyConversions
  43. def isWhole(): Boolean

    Definition Classes
    FPFilterRealLike → ScalaNumber
  44. def longValue(): Long

    Definition Classes
    FPFilter → Number
  45. def lowerBound: Int

    This returns an Int k s.

    This returns an Int k s.t. 2^k <= the value this is bounding.

    Definition Classes
    BMFSSBoundSeparationBound
  46. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  47. final def notify(): Unit

    Definition Classes
    AnyRef
  48. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  49. def nroot(k: Int): Real

    Definition Classes
    RealTransformRealLike
  50. def pow(k: Int): Real

    Definition Classes
    RealLike
  51. def shortValue(): Short

    Definition Classes
    Real → ScalaNumericAnyConversions → Number
  52. lazy val sign: Sign

    Definition Classes
    FPFilterRealLike
  53. def signum: Int

    Definition Classes
    RealLike
  54. def simulate[B](implicit f: Fractional[B]): B

    Simulate returns the result of the Real if it had instead been replaced by the type A.

    Simulate returns the result of the Real if it had instead been replaced by the type A. So, this won't provide any type

    Definition Classes
    BigDecimalApprox
  55. def sqrt: Real

    Definition Classes
    RealLike
  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  57. def toBigDecimal(implicit mc: MathContext = MathContext.DECIMAL128): BigDecimal

    Definition Classes
    BigDecimalApproxRealLike
  58. def toBigInt: BigInt

    Definition Classes
    FPFilterRealLike
  59. def toByte: Byte

    Definition Classes
    ScalaNumericAnyConversions
  60. def toChar: Char

    Definition Classes
    ScalaNumericAnyConversions
  61. def toDouble: Double

    Definition Classes
    ScalaNumericAnyConversions
  62. def toFloat: Float

    Definition Classes
    ScalaNumericAnyConversions
  63. def toInt: Int

    Definition Classes
    ScalaNumericAnyConversions
  64. def toLong: Long

    Definition Classes
    ScalaNumericAnyConversions
  65. def toRational(implicit ac: ApproximationContext[Rational] = ...): Rational

    Definition Classes
    BigDecimalApprox
  66. def toShort: Short

    Definition Classes
    ScalaNumericAnyConversions
  67. def toString(): String

    Definition Classes
    BigDecimalApprox → AnyRef → Any
  68. def toTreeString: String

    Definition Classes
    PrettyToString
  69. def transform(num: Real): Real

    Override this to return the Real resulting from the tree.

    Override this to return the Real resulting from the tree.

    Definition Classes
    BubbleUpDivsRealTransform
  70. def unary_-(): Real

    Definition Classes
    RealTransformRealLike
  71. def underlying(): AnyRef

    Definition Classes
    BigDecimalApprox → ScalaNumber
  72. def unifiedPrimitiveEquals(x: Any): Boolean

    Attributes
    protected
    Definition Classes
    ScalaNumericAnyConversions
  73. def unifiedPrimitiveHashcode(): Int

    Attributes
    protected
    Definition Classes
    ScalaNumericAnyConversions
  74. def upperBound: Int

    This returns an int k s.

    This returns an int k s.t. 2^k >= the value this is bounding.

    Definition Classes
    BMFSSBoundSeparationBound
  75. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  76. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  77. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Ordered[Real]

Inherited from Comparable[Real]

Inherited from PrettyToString[Real]

Inherited from BubbleUpDivs[Real]

Inherited from ConstantFolder[Real]

Inherited from RealTransform[Real]

Inherited from FPFilter[Real]

Inherited from BigDecimalApprox[Real]

Inherited from BMFSSBound[Real]

Inherited from SeparationBound[Real]

Inherited from RealLike[Real]

Inherited from ScalaNumericConversions

Inherited from ScalaNumericAnyConversions

Inherited from ScalaNumber

Inherited from java.lang.Number

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped