spire.math

AlgebraicAlgebra

Related Doc: package math

class AlgebraicAlgebra extends AlgebraicIsField with AlgebraicIsNRoot with AlgebraicIsReal with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AlgebraicAlgebra
  2. Serializable
  3. Serializable
  4. AlgebraicIsReal
  5. AlgebraicIsSigned
  6. AlgebraicOrder
  7. IsReal
  8. Signed
  9. Order
  10. PartialOrder
  11. Eq
  12. AlgebraicIsNRoot
  13. NRoot
  14. AlgebraicIsField
  15. AlgebraicIsEuclideanRing
  16. AlgebraicIsRing
  17. Field
  18. MultiplicativeAbGroup
  19. MultiplicativeGroup
  20. EuclideanRing
  21. CRing
  22. MultiplicativeCMonoid
  23. MultiplicativeCSemigroup
  24. Ring
  25. Rng
  26. AdditiveAbGroup
  27. AdditiveCMonoid
  28. AdditiveCSemigroup
  29. AdditiveGroup
  30. Rig
  31. MultiplicativeMonoid
  32. Semiring
  33. MultiplicativeSemigroup
  34. AdditiveMonoid
  35. AdditiveSemigroup
  36. AnyRef
  37. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AlgebraicAlgebra()

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: Algebraic): Algebraic

    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
    AlgebraicIsSigned → Signed
  5. def additive: AbGroup[Algebraic]

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def ceil(a: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsReal → IsReal
  8. def clone(): AnyRef

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

    Definition Classes
    AlgebraicOrder → Order
  10. def div(a: Algebraic, b: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsField → MultiplicativeGroup
  11. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  13. def eqv(x: Algebraic, y: Algebraic): Boolean

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

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

    Definition Classes
    AlgebraicOrder → OrderPartialOrderEq
  14. final def euclid(a: Algebraic, b: Algebraic)(implicit eq: Eq[Algebraic]): Algebraic

    Attributes
    protected[this]
    Definition Classes
    EuclideanRing
    Annotations
    @tailrec()
  15. def finalize(): Unit

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

    Definition Classes
    AlgebraicIsReal → IsReal
  17. def fpow(a: Algebraic, b: Algebraic): Nothing

    Definition Classes
    AlgebraicIsNRoot → NRoot
  18. def fromDouble(n: Double): Algebraic

    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
    AlgebraicIsField → Field
  19. def fromInt(n: Int): Algebraic

    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
    AlgebraicIsRing → Ring
  20. def gcd(a: Algebraic, b: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsEuclideanRing → EuclideanRing
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def gt(x: Algebraic, y: Algebraic): Boolean

    Definition Classes
    OrderPartialOrder
  23. def gteqv(x: Algebraic, y: Algebraic): Boolean

    Definition Classes
    OrderPartialOrder
  24. def hashCode(): Int

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

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

    Definition Classes
    MultiplicativeMonoid
  27. def isSignNegative(a: Algebraic): Boolean

    Definition Classes
    Signed
  28. def isSignNonNegative(a: Algebraic): Boolean

    Definition Classes
    Signed
  29. def isSignNonPositive(a: Algebraic): Boolean

    Definition Classes
    Signed
  30. def isSignNonZero(a: Algebraic): Boolean

    Definition Classes
    Signed
  31. def isSignPositive(a: Algebraic): Boolean

    Definition Classes
    Signed
  32. def isSignZero(a: Algebraic): Boolean

    Definition Classes
    Signed
  33. def isWhole(a: Algebraic): Boolean

    Definition Classes
    AlgebraicIsReal → IsReal
  34. def isZero(a: Algebraic)(implicit ev: Eq[Algebraic]): Boolean

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  35. def lcm(a: Algebraic, b: Algebraic): Algebraic

    Definition Classes
    EuclideanRing
  36. def lt(x: Algebraic, y: Algebraic): Boolean

    Definition Classes
    OrderPartialOrder
  37. def lteqv(x: Algebraic, y: Algebraic): Boolean

    Definition Classes
    OrderPartialOrder
  38. def max(x: Algebraic, y: Algebraic): Algebraic

    Definition Classes
    Order
  39. def min(x: Algebraic, y: Algebraic): Algebraic

    Definition Classes
    Order
  40. def minus(a: Algebraic, b: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsRing → AdditiveGroup
  41. def mod(a: Algebraic, b: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsEuclideanRing → EuclideanRing
  42. def multiplicative: AbGroup[Algebraic]

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

    Definition Classes
    AnyRef
  44. def negate(a: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsRing → AdditiveGroup
  45. def neqv(x: Algebraic, y: Algebraic): Boolean

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

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

    Definition Classes
    AlgebraicOrder → Eq
  46. final def notify(): Unit

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

    Definition Classes
    AnyRef
  48. def nroot(a: Algebraic, k: Int): Algebraic

    Definition Classes
    AlgebraicIsNRoot → NRoot
  49. def on[B](f: (B) ⇒ Algebraic): 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
  50. def one: Algebraic

    Definition Classes
    AlgebraicIsRing → MultiplicativeMonoid
  51. def partialCompare(x: Algebraic, y: Algebraic): 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
  52. def plus(a: Algebraic, b: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsRing → AdditiveSemigroup
  53. def pmax(x: Algebraic, y: Algebraic): Option[Algebraic]

    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
  54. def pmin(x: Algebraic, y: Algebraic): Option[Algebraic]

    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
  55. def pow(a: Algebraic, b: Int): Algebraic

    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
    AlgebraicIsRing → RigSemiring
  56. def prod(as: TraversableOnce[Algebraic]): Algebraic

    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
  57. def prodOption(as: TraversableOnce[Algebraic]): Option[Algebraic]

    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
  58. def prodn(a: Algebraic, n: Int): Algebraic

    Return a multiplicated with itself n times.

    Return a multiplicated with itself n times.

    Definition Classes
    MultiplicativeGroupMultiplicativeMonoidMultiplicativeSemigroup
  59. def prodnAboveOne(a: Algebraic, n: Int): Algebraic

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  60. def quot(a: Algebraic, b: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsEuclideanRing → EuclideanRing
  61. def quotmod(a: Algebraic, b: Algebraic): (Algebraic, Algebraic)

    Definition Classes
    EuclideanRing
  62. def reciprocal(x: Algebraic): Algebraic

    Definition Classes
    MultiplicativeGroup
  63. def reverse: Order[Algebraic]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  64. def round(a: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsReal → IsReal
  65. def sign(a: Algebraic): 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
    AlgebraicIsSigned → Signed
  66. def signum(a: Algebraic): 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
    AlgebraicIsSigned → Signed
  67. def sqrt(a: Algebraic): Algebraic

    Definition Classes
    NRoot
  68. def sum(as: TraversableOnce[Algebraic]): Algebraic

    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
  69. def sumOption(as: TraversableOnce[Algebraic]): Option[Algebraic]

    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
  70. def sumn(a: Algebraic, n: Int): Algebraic

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  71. def sumnAboveOne(a: Algebraic, n: Int): Algebraic

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

    Definition Classes
    AnyRef
  73. def times(a: Algebraic, b: Algebraic): Algebraic

    Definition Classes
    AlgebraicIsRing → MultiplicativeSemigroup
  74. def toDouble(x: Algebraic): Double

    Definition Classes
    AlgebraicIsReal → IsReal
  75. def toString(): String

    Definition Classes
    AnyRef → Any
  76. def tryCompare(x: Algebraic, y: Algebraic): 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
  77. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. def zero: Algebraic

    Definition Classes
    AlgebraicIsRing → AdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from AlgebraicIsReal

Inherited from AlgebraicIsSigned

Inherited from AlgebraicOrder

Inherited from IsReal[Algebraic]

Inherited from Signed[Algebraic]

Inherited from Order[Algebraic]

Inherited from PartialOrder[Algebraic]

Inherited from Eq[Algebraic]

Inherited from AlgebraicIsNRoot

Inherited from NRoot[Algebraic]

Inherited from AlgebraicIsField

Inherited from AlgebraicIsEuclideanRing

Inherited from AlgebraicIsRing

Inherited from Field[Algebraic]

Inherited from MultiplicativeGroup[Algebraic]

Inherited from EuclideanRing[Algebraic]

Inherited from CRing[Algebraic]

Inherited from Ring[Algebraic]

Inherited from Rng[Algebraic]

Inherited from AdditiveAbGroup[Algebraic]

Inherited from AdditiveCMonoid[Algebraic]

Inherited from AdditiveCSemigroup[Algebraic]

Inherited from AdditiveGroup[Algebraic]

Inherited from Rig[Algebraic]

Inherited from Semiring[Algebraic]

Inherited from AdditiveMonoid[Algebraic]

Inherited from AdditiveSemigroup[Algebraic]

Inherited from AnyRef

Inherited from Any

Ungrouped