spire.std

DoubleAlgebra

Related Doc: package std

class DoubleAlgebra extends DoubleIsField with DoubleIsNRoot with DoubleIsTrig with DoubleIsReal with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, DoubleIsReal, DoubleIsSigned, DoubleOrder, IsRational[Double], IsAlgebraic[Double], IsReal[Double], Signed[Double], Order[Double], PartialOrder[Double], Eq[Double], DoubleIsTrig, Trig[Double], DoubleIsNRoot, NRoot[Double], DoubleIsField, Field[Double], MultiplicativeAbGroup[Double], MultiplicativeGroup[Double], EuclideanRing[Double], CRing[Double], MultiplicativeCMonoid[Double], MultiplicativeCSemigroup[Double], Ring[Double], Rng[Double], AdditiveAbGroup[Double], AdditiveCMonoid[Double], AdditiveCSemigroup[Double], AdditiveGroup[Double], Rig[Double], MultiplicativeMonoid[Double], Semiring[Double], MultiplicativeSemigroup[Double], AdditiveMonoid[Double], AdditiveSemigroup[Double], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DoubleAlgebra
  2. Serializable
  3. Serializable
  4. DoubleIsReal
  5. DoubleIsSigned
  6. DoubleOrder
  7. IsRational
  8. IsAlgebraic
  9. IsReal
  10. Signed
  11. Order
  12. PartialOrder
  13. Eq
  14. DoubleIsTrig
  15. Trig
  16. DoubleIsNRoot
  17. NRoot
  18. DoubleIsField
  19. Field
  20. MultiplicativeAbGroup
  21. MultiplicativeGroup
  22. EuclideanRing
  23. CRing
  24. MultiplicativeCMonoid
  25. MultiplicativeCSemigroup
  26. Ring
  27. Rng
  28. AdditiveAbGroup
  29. AdditiveCMonoid
  30. AdditiveCSemigroup
  31. AdditiveGroup
  32. Rig
  33. MultiplicativeMonoid
  34. Semiring
  35. MultiplicativeSemigroup
  36. AdditiveMonoid
  37. AdditiveSemigroup
  38. AnyRef
  39. 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: 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. def abs(a: Double): Double

    An idempotent function that ensures an object has a non-negative sign.

    An idempotent function that ensures an object has a non-negative sign.

    Definition Classes
    DoubleIsSignedSigned
  5. def acos(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  6. def additive: AbGroup[Double]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def asin(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  9. def atan(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  10. def atan2(y: Double, x: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  11. def ceil(a: Double): Double

    Rounds a the nearest integer that is greater than or equal to a.

    Rounds a the nearest integer that is greater than or equal to a.

    Definition Classes
    DoubleIsRealIsReal
  12. def clone(): AnyRef

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

    Definition Classes
    DoubleOrderOrder
  14. def cos(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  15. def cosh(x: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  16. def div(a: Double, b: Double): Double

    Definition Classes
    DoubleIsFieldMultiplicativeGroup
  17. def e: Double

    Definition Classes
    DoubleIsTrigTrig
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Returns true if x and y are equivalent, false otherwise.

    Returns true if x and y are equivalent, false otherwise.

    Definition Classes
    DoubleOrderOrderPartialOrderEq
  21. final def euclid(a: Double, b: Double)(implicit eq: Eq[Double]): Double

    Attributes
    protected[this]
    Definition Classes
    EuclideanRing
    Annotations
    @tailrec()
  22. def exp(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  23. def expm1(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def floor(a: Double): Double

    Rounds a the nearest integer that is less than or equal to a.

    Rounds a the nearest integer that is less than or equal to a.

    Definition Classes
    DoubleIsRealIsReal
  26. def fpow(a: Double, b: Double): Double

    Definition Classes
    DoubleIsNRootNRoot
  27. def fromDouble(n: Double): Double

    This is implemented in terms of basic Field ops.

    This is implemented in terms of basic Field ops. However, this is probably significantly less efficient than can be done with a specific type. So, it is recommended that this method is overriden.

    This is possible because a Double is a rational number.

    Definition Classes
    DoubleIsFieldField
  28. def fromInt(n: Int): Double

    Defined to be equivalent to additive.sumn(one, n).

    Defined to be equivalent to additive.sumn(one, n). That is, n repeated summations of this ring's one, or -one if n is negative.

    Definition Classes
    DoubleIsFieldRing
  29. final def gcd(a: Double, b: Double): Double

    Definition Classes
    DoubleIsFieldEuclideanRing
  30. final def getClass(): Class[_]

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

    Definition Classes
    DoubleOrderOrderPartialOrder
  32. def gteqv(x: Double, y: Double): Boolean

    Definition Classes
    DoubleOrderOrderPartialOrder
  33. def hashCode(): Int

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

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

    Definition Classes
    MultiplicativeMonoid
  36. def isSignNegative(a: Double): Boolean

    Definition Classes
    Signed
  37. def isSignNonNegative(a: Double): Boolean

    Definition Classes
    Signed
  38. def isSignNonPositive(a: Double): Boolean

    Definition Classes
    Signed
  39. def isSignNonZero(a: Double): Boolean

    Definition Classes
    Signed
  40. def isSignPositive(a: Double): Boolean

    Definition Classes
    Signed
  41. def isSignZero(a: Double): Boolean

    Definition Classes
    Signed
  42. def isWhole(a: Double): Boolean

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

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

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  44. def lcm(a: Double, b: Double): Double

    Definition Classes
    EuclideanRing
  45. def log(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  46. def log1p(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  47. def lt(x: Double, y: Double): Boolean

    Definition Classes
    DoubleOrderOrderPartialOrder
  48. def lteqv(x: Double, y: Double): Boolean

    Definition Classes
    DoubleOrderOrderPartialOrder
  49. def max(x: Double, y: Double): Double

    Definition Classes
    DoubleOrderOrder
  50. def min(x: Double, y: Double): Double

    Definition Classes
    DoubleOrderOrder
  51. def minus(a: Double, b: Double): Double

    Definition Classes
    DoubleIsFieldAdditiveGroup
  52. def mod(a: Double, b: Double): Double

    Definition Classes
    DoubleIsFieldEuclideanRing
  53. def multiplicative: AbGroup[Double]

  54. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  55. def negate(a: Double): Double

    Definition Classes
    DoubleIsFieldAdditiveGroup
  56. def neqv(x: Double, y: Double): Boolean

    Returns false if x and y are equivalent, true otherwise.

    Returns false if x and y are equivalent, true otherwise.

    Definition Classes
    DoubleOrderEq
  57. final def notify(): Unit

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

    Definition Classes
    AnyRef
  59. def nroot(a: Double, k: Int): Double

    Definition Classes
    DoubleIsNRootNRoot
  60. def on[B](f: (B) ⇒ Double): Order[B]

    Defines an order on B by mapping B to A using f and using As order to order B.

    Defines an order on B by mapping B to A using f and using As order to order B.

    Definition Classes
    OrderPartialOrderEq
  61. def one: Double

    Definition Classes
    DoubleIsFieldMultiplicativeMonoid
  62. def partialCompare(x: Double, y: Double): Double

    Result of comparing x with y.

    Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is: - negative iff x < y - zero iff x === y - positive iff x > y

    Definition Classes
    OrderPartialOrder
  63. def pi: Double

    Definition Classes
    DoubleIsTrigTrig
  64. def plus(a: Double, b: Double): Double

    Definition Classes
    DoubleIsFieldAdditiveSemigroup
  65. def pmax(x: Double, y: Double): Option[Double]

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

    Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

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

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

    Definition Classes
    PartialOrder
  67. def pow(a: Double, b: Int): Double

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    Definition Classes
    DoubleIsFieldRigSemiring
  68. def prod(as: TraversableOnce[Double]): Double

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    MultiplicativeMonoid
  69. def prodOption(as: TraversableOnce[Double]): Option[Double]

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    MultiplicativeSemigroup
  70. def prodn(a: Double, n: Int): Double

    Return a multiplicated with itself n times.

    Return a multiplicated with itself n times.

    Definition Classes
    MultiplicativeGroupMultiplicativeMonoidMultiplicativeSemigroup
  71. def prodnAboveOne(a: Double, n: Int): Double

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  72. def quot(a: Double, b: Double): Double

    Definition Classes
    DoubleIsFieldEuclideanRing
  73. def quotmod(a: Double, b: Double): (Double, Double)

    Definition Classes
    EuclideanRing
  74. def reciprocal(x: Double): Double

    Definition Classes
    MultiplicativeGroup
  75. def reverse: Order[Double]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  76. def round(a: Double): Double

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    DoubleIsRealIsReal
  77. def sign(a: Double): Sign

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

    Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

    Definition Classes
    Signed
  78. def signum(a: Double): Int

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Definition Classes
    DoubleIsSignedSigned
  79. def sin(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  80. def sinh(x: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  81. def sqrt(a: Double): Double

    Definition Classes
    DoubleIsNRootNRoot
  82. def sum(as: TraversableOnce[Double]): Double

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    AdditiveMonoid
  83. def sumOption(as: TraversableOnce[Double]): Option[Double]

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    AdditiveSemigroup
  84. def sumn(a: Double, n: Int): Double

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  85. def sumnAboveOne(a: Double, n: Int): Double

    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  86. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  87. def tan(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  88. def tanh(x: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  89. def times(a: Double, b: Double): Double

    Definition Classes
    DoubleIsFieldMultiplicativeSemigroup
  90. def toAlgebraic(a: Double): Algebraic

    Definition Classes
    IsRationalIsAlgebraic
  91. def toDegrees(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  92. def toDouble(x: Double): Double

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    DoubleIsRealIsReal
  93. def toRadians(a: Double): Double

    Definition Classes
    DoubleIsTrigTrig
  94. def toRational(a: Double): Rational

    Definition Classes
    DoubleIsRealIsRational
  95. def toReal(a: Double): Real

    Definition Classes
    IsAlgebraicIsReal
  96. def toString(): String

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

    Result of comparing x with y.

    Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is: - negative iff x < y - zero iff x == y - positive iff x > y

    Definition Classes
    PartialOrder
  98. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  101. def zero: Double

    Definition Classes
    DoubleIsFieldAdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from DoubleIsReal

Inherited from DoubleIsSigned

Inherited from DoubleOrder

Inherited from IsRational[Double]

Inherited from IsAlgebraic[Double]

Inherited from IsReal[Double]

Inherited from Signed[Double]

Inherited from Order[Double]

Inherited from PartialOrder[Double]

Inherited from Eq[Double]

Inherited from DoubleIsTrig

Inherited from Trig[Double]

Inherited from DoubleIsNRoot

Inherited from NRoot[Double]

Inherited from DoubleIsField

Inherited from Field[Double]

Inherited from MultiplicativeAbGroup[Double]

Inherited from MultiplicativeGroup[Double]

Inherited from EuclideanRing[Double]

Inherited from CRing[Double]

Inherited from MultiplicativeCMonoid[Double]

Inherited from MultiplicativeCSemigroup[Double]

Inherited from Ring[Double]

Inherited from Rng[Double]

Inherited from AdditiveAbGroup[Double]

Inherited from AdditiveCMonoid[Double]

Inherited from AdditiveCSemigroup[Double]

Inherited from AdditiveGroup[Double]

Inherited from Rig[Double]

Inherited from MultiplicativeMonoid[Double]

Inherited from Semiring[Double]

Inherited from MultiplicativeSemigroup[Double]

Inherited from AdditiveMonoid[Double]

Inherited from AdditiveSemigroup[Double]

Inherited from AnyRef

Inherited from Any

Ungrouped