DoubleIsReal

Value members

Concrete methods

def ceil(a: Double): Double

Inherited methods

override def abs(a: Double): Double
Definition Classes
Inherited from:
DoubleSigned
def compare(x: Double, y: Double): Int
Inherited from:
DoubleOrder

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
override def eqv(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
def fmod(x: Double, y: Double): Double
Inherited from:
forCommutativeRing
def fquot(x: Double, y: Double): Double
Inherited from:
forCommutativeRing
override def fquotmod(x: Double, y: Double): (Double, Double)
Definition Classes
Inherited from:
forCommutativeRing

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
def fromInt(n: Int): Double

Convert the given integer to an instance of A.

Convert the given integer to an instance of A.

Defined to be equivalent to sumN(one, n).

That is, 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 gt(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
override def gteqv(x: Double, y: Double): Boolean
Definition Classes
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
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
def isZero(a: Double)(implicit ev: Eq[Double]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
override def lt(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
override def lteqv(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
override def max(x: Double, y: Double): Double
Definition Classes
Inherited from:
DoubleOrder
override def min(x: Double, y: Double): Double
Definition Classes
Inherited from:
DoubleOrder
def minus(x: Double, y: Double): Double
Inherited from:
AdditiveGroup
Inherited from:
AdditiveGroup
override def neqv(x: Double, y: Double): Boolean
Definition Classes
Inherited from:
DoubleOrder
def one: Double
Inherited from:
MultiplicativeMonoid
Inherited from:
DoubleSigned
Inherited from:
Order

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 plus(x: Double, y: Double): Double
Inherited from:
AdditiveSemigroup

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

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, n: Int): Double
@nowarn("msg=deprecated")

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
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
@nowarn("msg=deprecated")

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
Inherited from:
AdditiveGroup
def times(x: Double, y: Double): Double
def tmod(a: Double, b: Double): Double
Inherited from:
IsRational

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 toReal(a: Double): Real
Inherited from:
IsAlgebraic
def tquot(a: Double, b: Double): Double
Inherited from:
TruncatedDivision

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
@nowarn("msg=deprecated")
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Double]): Option[Double]
Definition Classes
Inherited from:
AdditiveMonoid
Inherited from:
AdditiveMonoid