algebra.std

DoubleAlgebra

class DoubleAlgebra extends Field[Double] with Order[Double] with Serializable

Due to the way floating-point equality works, this instance is not lawful under equality, but is correct when taken as an approximation of an exact value.

If you would prefer an absolutely lawful fractional value, you'll need to investigate rational numbers or more exotic types.

Linear Supertypes
Order[Double], PartialOrder[Double], Eq[Double], Field[Double], MultiplicativeCommutativeGroup[Double], MultiplicativeGroup[Double], EuclideanRing[Double], CommutativeRing[Double], CommutativeRig[Double], MultiplicativeCommutativeMonoid[Double], MultiplicativeCommutativeSemigroup[Double], Ring[Double], Rng[Double], AdditiveCommutativeGroup[Double], AdditiveGroup[Double], Rig[Double], MultiplicativeMonoid[Double], Semiring[Double], MultiplicativeSemigroup[Double], AdditiveCommutativeMonoid[Double], AdditiveCommutativeSemigroup[Double], AdditiveMonoid[Double], AdditiveSemigroup[Double], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DoubleAlgebra
  2. Order
  3. PartialOrder
  4. Eq
  5. Field
  6. MultiplicativeCommutativeGroup
  7. MultiplicativeGroup
  8. EuclideanRing
  9. CommutativeRing
  10. CommutativeRig
  11. MultiplicativeCommutativeMonoid
  12. MultiplicativeCommutativeSemigroup
  13. Ring
  14. Rng
  15. AdditiveCommutativeGroup
  16. AdditiveGroup
  17. Rig
  18. MultiplicativeMonoid
  19. Semiring
  20. MultiplicativeSemigroup
  21. AdditiveCommutativeMonoid
  22. AdditiveCommutativeSemigroup
  23. AdditiveMonoid
  24. AdditiveSemigroup
  25. Serializable
  26. Serializable
  27. AnyRef
  28. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DoubleAlgebra()

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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. def additive: CommutativeGroup[Double]

    Definition Classes
    AdditiveCommutativeGroup → AdditiveCommutativeMonoid → AdditiveCommutativeSemigroup → AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
  7. def and(that: Eq[Double]): Eq[Double]

    Definition Classes
    Eq
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compare(x: Double, y: Double): Int

    Definition Classes
    DoubleAlgebra → Order
  11. def div(x: Double, y: Double): Double

    Definition Classes
    DoubleAlgebra → MultiplicativeGroup
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def eqv(x: Double, y: Double): Boolean

    Definition Classes
    DoubleAlgebra → Order → PartialOrder → Eq
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def fromDouble(x: Double): Double

    Definition Classes
    DoubleAlgebra → Field
  17. def fromInt(x: Int): Double

    Definition Classes
    DoubleAlgebra → Ring
  18. def gcd(x: Double, y: Double): Double

  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def gt(x: Double, y: Double): Boolean

    Definition Classes
    DoubleAlgebra → Order → PartialOrder
  21. def gteqv(x: Double, y: Double): Boolean

    Definition Classes
    DoubleAlgebra → Order → PartialOrder
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isOne(a: Double)(implicit ev: Eq[Double]): Boolean

    Definition Classes
    MultiplicativeMonoid
  25. def isZero(a: Double)(implicit ev: Eq[Double]): Boolean

    Definition Classes
    AdditiveMonoid
  26. def lt(x: Double, y: Double): Boolean

    Definition Classes
    DoubleAlgebra → Order → PartialOrder
  27. def lteqv(x: Double, y: Double): Boolean

    Definition Classes
    DoubleAlgebra → Order → PartialOrder
  28. def max(x: Double, y: Double): Double

    Definition Classes
    DoubleAlgebra → Order
  29. def min(x: Double, y: Double): Double

    Definition Classes
    DoubleAlgebra → Order
  30. def minus(x: Double, y: Double): Double

    Definition Classes
    DoubleAlgebra → AdditiveGroup
  31. def mod(x: Double, y: Double): Double

    Definition Classes
    DoubleAlgebra → EuclideanRing
  32. def multiplicative: CommutativeGroup[Double]

    Definition Classes
    MultiplicativeCommutativeGroup → MultiplicativeCommutativeMonoid → MultiplicativeCommutativeSemigroup → MultiplicativeGroup → MultiplicativeMonoid → MultiplicativeSemigroup
  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. def negate(x: Double): Double

    Definition Classes
    DoubleAlgebra → AdditiveGroup
  35. def neqv(x: Double, y: Double): Boolean

    Definition Classes
    DoubleAlgebra → Order → Eq
  36. final def notify(): Unit

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

    Definition Classes
    AnyRef
  38. def on[B](f: (B) ⇒ Double): Order[B]

    Definition Classes
    Order → PartialOrder → Eq
  39. def one: Double

    Definition Classes
    DoubleAlgebra → MultiplicativeMonoid
  40. def or(that: Eq[Double]): Eq[Double]

    Definition Classes
    Eq
  41. def partialCompare(x: Double, y: Double): Double

    Definition Classes
    Order → PartialOrder
  42. def plus(x: Double, y: Double): Double

    Definition Classes
    DoubleAlgebra → AdditiveSemigroup
  43. def pmax(x: Double, y: Double): Option[Double]

    Definition Classes
    PartialOrder
  44. def pmin(x: Double, y: Double): Option[Double]

    Definition Classes
    PartialOrder
  45. def positivePow(a: Double, n: Int): Double

    Attributes
    protected[this]
    Definition Classes
    MultiplicativeSemigroup
  46. def positiveSumN(a: Double, n: Int): Double

    Attributes
    protected[this]
    Definition Classes
    AdditiveSemigroup
  47. def pow(x: Double, y: Int): Double

    Definition Classes
    DoubleAlgebra → MultiplicativeGroup → MultiplicativeMonoid → MultiplicativeSemigroup
  48. def product(as: TraversableOnce[Double]): Double

    Definition Classes
    MultiplicativeMonoid
  49. def quot(x: Double, y: Double): Double

    Definition Classes
    DoubleAlgebra → EuclideanRing
  50. def quotmod(x: Double, y: Double): (Double, Double)

    Definition Classes
    DoubleAlgebra → EuclideanRing
  51. def reciprocal(x: Double): Double

    Definition Classes
    DoubleAlgebra → MultiplicativeGroup
  52. def reverse: Order[Double]

    Definition Classes
    Order → PartialOrder
  53. def sum(as: TraversableOnce[Double]): Double

    Definition Classes
    AdditiveMonoid
  54. def sumN(a: Double, n: Int): Double

    Definition Classes
    AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  56. def times(x: Double, y: Double): Double

    Definition Classes
    DoubleAlgebra → MultiplicativeSemigroup
  57. def toOrdering: Ordering[Double]

    Definition Classes
    Order
  58. def toString(): String

    Definition Classes
    AnyRef → Any
  59. def tryCompare(x: Double, y: Double): Option[Int]

    Definition Classes
    PartialOrder
  60. def tryProduct(as: TraversableOnce[Double]): Option[Double]

    Definition Classes
    MultiplicativeSemigroup
  61. def trySum(as: TraversableOnce[Double]): Option[Double]

    Definition Classes
    AdditiveSemigroup
  62. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. def whenEqual(o: Order[Double]): Order[Double]

    Definition Classes
    Order
  66. def zero: Double

    Definition Classes
    DoubleAlgebra → AdditiveMonoid

Inherited from Order[Double]

Inherited from PartialOrder[Double]

Inherited from Eq[Double]

Inherited from Field[Double]

Inherited from MultiplicativeCommutativeGroup[Double]

Inherited from MultiplicativeGroup[Double]

Inherited from EuclideanRing[Double]

Inherited from CommutativeRing[Double]

Inherited from CommutativeRig[Double]

Inherited from MultiplicativeCommutativeMonoid[Double]

Inherited from MultiplicativeCommutativeSemigroup[Double]

Inherited from Ring[Double]

Inherited from Rng[Double]

Inherited from AdditiveCommutativeGroup[Double]

Inherited from AdditiveGroup[Double]

Inherited from Rig[Double]

Inherited from MultiplicativeMonoid[Double]

Inherited from Semiring[Double]

Inherited from MultiplicativeSemigroup[Double]

Inherited from AdditiveCommutativeMonoid[Double]

Inherited from AdditiveCommutativeSemigroup[Double]

Inherited from AdditiveMonoid[Double]

Inherited from AdditiveSemigroup[Double]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped