DoubleAlgebra

@SerialVersionUID(0L)
class DoubleAlgebra extends DoubleIsField with DoubleIsNRoot with DoubleIsTrig with DoubleIsReal with Serializable
trait TruncatedDivision[Double]
trait IsRational[Double]
trait IsAlgebraic[Double]
trait IsReal[Double]
trait Signed[Double]
trait Order[Double]
trait PartialOrder[Double]
trait Eq[Double]
trait Trig[Double]
trait NRoot[Double]
trait WithDefaultGCD[Double]
trait Field[Double]
trait EuclideanRing[Double]
trait GCDRing[Double]
trait Field[Double]
trait MultiplicativeCommutativeGroup[Double]
trait MultiplicativeGroup[Double]
trait CommutativeRing[Double]
trait CommutativeRng[Double]
trait CommutativeRig[Double]
trait MultiplicativeCommutativeMonoid[Double]
trait CommutativeSemiring[Double]
trait MultiplicativeCommutativeSemigroup[Double]
trait Ring[Double]
trait Rng[Double]
trait AdditiveCommutativeGroup[Double]
trait AdditiveGroup[Double]
trait Rig[Double]
trait MultiplicativeMonoid[Double]
trait Semiring[Double]
trait MultiplicativeSemigroup[Double]
trait AdditiveCommutativeMonoid[Double]
trait AdditiveCommutativeSemigroup[Double]
trait AdditiveMonoid[Double]
trait AdditiveSemigroup[Double]
trait Serializable
class Object
trait Matchable
class Any

Value members

Inherited methods

override
def abs(a: Double): Double
Definition Classes
Inherited from
DoubleSigned
def acos(a: Double): Double
Inherited from
DoubleIsTrig
override
def additive: CommutativeGroup[Double]
Definition Classes
AdditiveCommutativeGroup -> AdditiveCommutativeMonoid -> AdditiveCommutativeSemigroup -> AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveCommutativeGroup
def asin(a: Double): Double
Inherited from
DoubleIsTrig
def atan(a: Double): Double
Inherited from
DoubleIsTrig
def atan2(y: Double, x: Double): Double
Inherited from
DoubleIsTrig
def ceil(a: Double): Double
Inherited from
DoubleIsReal
def compare(x: Double, y: Double): Int
Inherited from
DoubleOrder
def comparison(x: Double, y: Double): Comparison

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
Order
def cos(a: Double): Double
Inherited from
DoubleIsTrig
def cosh(x: Double): Double
Inherited from
DoubleIsTrig
def div(a: Double, b: Double): Double
Inherited from
DoubleIsField
def e: Double
Inherited from
DoubleIsTrig
def emod(a: Double, b: Double): Double
Inherited from
Field
def equot(a: Double, b: Double): Double
Inherited from
Field
override
def equotmod(a: Double, b: Double): (Double, Double)
Definition Classes
Inherited from
Field
override
def eqv(x: Double, y: Double): Boolean
Definition Classes
DoubleOrder -> Order -> PartialOrder -> Eq
Inherited from
DoubleOrder
def euclideanFunction(a: Double): BigInt
Inherited from
Field
def exp(a: Double): Double
Inherited from
DoubleIsTrig
def expm1(a: Double): Double
Inherited from
DoubleIsTrig
def floor(a: Double): Double
Inherited from
DoubleIsReal
def fmod(x: Double, y: Double): Double
def fpow(a: Double, b: Double): Double
Inherited from
DoubleIsNRoot
def fquot(x: Double, y: Double): Double
override
def fquotmod(x: Double, y: Double): (Double, Double)
def fromBigInt(n: BigInt): Double

Convert the given BigInt to an instance of A.

Convert the given BigInt to an instance of A.

This is equivalent to n repeated summations of this ring's one, or -n summations of -one if n is negative.

Most type class instances should consider overriding this method for performance reasons.

Inherited from
Ring
override
def fromDouble(n: Double): Double
Definition Classes
DoubleIsField -> Field
Inherited from
DoubleIsField
override
def fromInt(n: Int): Double
Definition Classes
Inherited from
DoubleIsField
override
def gcd(a: Double, b: Double)(implicit eqA: Eq[Double]): Double
Definition Classes
Inherited from
WithDefaultGCD
override
def gt(x: Double, y: Double): Boolean
Definition Classes
DoubleOrder -> Order -> PartialOrder
Inherited from
DoubleOrder
override
def gteqv(x: Double, y: Double): Boolean
Definition Classes
DoubleOrder -> Order -> PartialOrder
Inherited from
DoubleOrder
def isOne(a: Double)(implicit ev: Eq[Double]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from
MultiplicativeMonoid
def isSignNegative(a: Double): Boolean
Inherited from
Signed
def isSignNonNegative(a: Double): Boolean
Inherited from
Signed
def isSignNonPositive(a: Double): Boolean
Inherited from
Signed
def isSignNonZero(a: Double): Boolean
Inherited from
Signed
def isSignPositive(a: Double): Boolean
Inherited from
Signed
def isSignZero(a: Double): Boolean
Inherited from
Signed
def isWhole(a: Double): Boolean
Inherited from
DoubleIsReal
def isZero(a: Double)(implicit ev: Eq[Double]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from
AdditiveMonoid
override
def lcm(a: Double, b: Double)(implicit eqA: Eq[Double]): Double
Definition Classes
Inherited from
WithDefaultGCD
def log(a: Double): Double
Inherited from
DoubleIsTrig
def log1p(a: Double): Double
Inherited from
DoubleIsTrig
override
def lt(x: Double, y: Double): Boolean
Definition Classes
DoubleOrder -> Order -> PartialOrder
Inherited from
DoubleOrder
override
def lteqv(x: Double, y: Double): Boolean
Definition Classes
DoubleOrder -> Order -> PartialOrder
Inherited from
DoubleOrder
override
def max(x: Double, y: Double): Double
Definition Classes
DoubleOrder -> Order
Inherited from
DoubleOrder
override
def min(x: Double, y: Double): Double
Definition Classes
DoubleOrder -> Order
Inherited from
DoubleOrder
override
def minus(a: Double, b: Double): Double
Definition Classes
DoubleIsField -> AdditiveGroup
Inherited from
DoubleIsField
override
def multiplicative: CommutativeGroup[Double]
Definition Classes
MultiplicativeCommutativeGroup -> MultiplicativeCommutativeMonoid -> MultiplicativeCommutativeSemigroup -> MultiplicativeGroup -> MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeCommutativeGroup
def negate(a: Double): Double
Inherited from
DoubleIsField
override
def neqv(x: Double, y: Double): Boolean
Definition Classes
DoubleOrder -> Order -> Eq
Inherited from
DoubleOrder
def nroot(a: Double, k: Int): Double
Inherited from
DoubleIsNRoot
def one: Double
Inherited from
DoubleIsField
def partialCompare(x: Double, y: Double): Double
Inherited from
Order
def partialComparison(x: Double, y: Double): Option[Comparison]

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def pi: Double
Inherited from
DoubleIsTrig
def plus(a: Double, b: Double): Double
Inherited from
DoubleIsField
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.

Inherited from
PartialOrder
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.

Inherited from
PartialOrder
override
def pow(a: Double, b: Int): Double
Definition Classes
DoubleIsField -> MultiplicativeGroup -> MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
DoubleIsField
def product(as: IterableOnce[Double]): Double

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from
MultiplicativeMonoid
def reciprocal(x: Double): Double
Inherited from
MultiplicativeGroup
def round(a: Double): Double
Inherited from
DoubleIsReal
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.

Inherited from
Signed
override
def signum(a: Double): Int
Definition Classes
Inherited from
DoubleSigned
def sin(a: Double): Double
Inherited from
DoubleIsTrig
def sinh(x: Double): Double
Inherited from
DoubleIsTrig
override
def sqrt(a: Double): Double
Definition Classes
Inherited from
DoubleIsNRoot
def sum(as: IterableOnce[Double]): Double

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from
AdditiveMonoid
override
def sumN(a: Double, n: Int): Double
Definition Classes
AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveGroup
def tan(a: Double): Double
Inherited from
DoubleIsTrig
def tanh(x: Double): Double
Inherited from
DoubleIsTrig
override
def times(a: Double, b: Double): Double
Definition Classes
DoubleIsField -> MultiplicativeSemigroup
Inherited from
DoubleIsField
def tmod(a: Double, b: Double): Double
def toAlgebraic(a: Double): Algebraic
Inherited from
IsRational
def toBigIntOpt(a: Double): Opt[BigInt]
def toDegrees(a: Double): Double
Inherited from
DoubleIsTrig
def toDouble(x: Double): Double
Inherited from
DoubleIsReal
def toOrdering: Ordering[Double]

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

Inherited from
Order
def toRadians(a: Double): Double
Inherited from
DoubleIsTrig
def toRational(a: Double): Rational
Inherited from
DoubleIsReal
def toReal(a: Double): Real
Inherited from
IsAlgebraic
def tquot(a: Double, b: Double): Double
def tquotmod(x: Double, y: Double): (Double, Double)
Inherited from
TruncatedDivision
def tryCompare(x: Double, y: Double): Option[Int]

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:

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
Inherited from
PartialOrder
override
def tryProduct(as: IterableOnce[Double]): Option[Double]
Definition Classes
MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeMonoid
override
def trySum(as: IterableOnce[Double]): Option[Double]
Definition Classes
AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveMonoid
def zero: Double
Inherited from
DoubleIsField