RealAlgebra

Value members

Inherited methods

override def abs(x: Real): Real
def acos(a: Real): Real
Inherited from:
RealIsFractional
def asin(a: Real): Real
Inherited from:
RealIsFractional
def atan(a: Real): Real
Inherited from:
RealIsFractional
def atan2(y: Real, x: Real): Real
Inherited from:
RealIsFractional
def ceil(x: Real): Real
Inherited from:
RealIsFractional
def compare(x: Real, y: Real): Int
Inherited from:
RealIsFractional

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: Real): Real
Inherited from:
RealIsFractional
def cosh(x: Real): Real
Inherited from:
RealIsFractional
def div(x: Real, y: Real): Real
Inherited from:
RealIsFractional
def e: Real
Inherited from:
RealIsFractional
def emod(a: Real, b: Real): Real
Inherited from:
Field
def equot(a: Real, b: Real): Real
Inherited from:
Field
override def equotmod(a: Real, b: Real): (Real, Real)
Definition Classes
Inherited from:
Field
override def eqv(x: Real, y: Real): Boolean
Definition Classes
Inherited from:
RealIsFractional
Inherited from:
Field
def exp(x: Real): Real
Inherited from:
RealIsFractional
def expm1(x: Real): Real
Inherited from:
RealIsFractional
def floor(x: Real): Real
Inherited from:
RealIsFractional
def fmod(x: Real, y: Real): Real
Inherited from:
forCommutativeRing
def fpow(x: Real, y: Real): Real
Inherited from:
RealIsFractional
def fquot(x: Real, y: Real): Real
Inherited from:
forCommutativeRing
override def fquotmod(x: Real, y: Real): (Real, Real)
Definition Classes
Inherited from:
forCommutativeRing
override def fromBigInt(n: BigInt): Real
Definition Classes
Inherited from:
RealIsFractional
def fromByte(n: Byte): Real
Inherited from:
RealIsFractional
override def fromDouble(a: Double): Real
Definition Classes
Inherited from:
Field
Inherited from:
RealIsFractional
def fromInt(n: Int): Real

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
def fromLong(n: Long): Real
Inherited from:
RealIsFractional
def fromReal(n: Real): Real
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional
def fromType[B](b: B)(implicit ev: ConvertableFrom[B]): Real
Inherited from:
RealIsFractional
override def gcd(a: Real, b: Real)(implicit eqA: Eq[Real]): Real
Definition Classes
Inherited from:
Field
override def gt(x: Real, y: Real): Boolean

Returns true if x > y, false otherwise.

Returns true if x > y, false otherwise.

Definition Classes
Inherited from:
Order
override def gteqv(x: Real, y: Real): Boolean

Returns true if x >= y, false otherwise.

Returns true if x >= y, false otherwise.

Definition Classes
Inherited from:
Order
def isOne(a: Real)(implicit ev: Eq[Real]): 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
Inherited from:
RealIsFractional
def isZero(a: Real)(implicit ev: Eq[Real]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
override def lcm(a: Real, b: Real)(implicit eqA: Eq[Real]): Real
Definition Classes
Inherited from:
Field
def log(x: Real): Real
Inherited from:
RealIsFractional
def log1p(x: Real): Real
Inherited from:
RealIsFractional
override def lt(x: Real, y: Real): Boolean

Returns true if x < y, false otherwise.

Returns true if x < y, false otherwise.

Definition Classes
Inherited from:
Order
override def lteqv(x: Real, y: Real): Boolean

Returns true if x <= y, false otherwise.

Returns true if x <= y, false otherwise.

Definition Classes
Inherited from:
Order
def max(x: Real, y: Real): Real

If x > y, return x, else return y.

If x > y, return x, else return y.

Inherited from:
Order
def min(x: Real, y: Real): Real

If x < y, return x, else return y.

If x < y, return x, else return y.

Inherited from:
Order
override def minus(x: Real, y: Real): Real
Definition Classes
Inherited from:
RealIsFractional
def negate(x: Real): Real
Inherited from:
RealIsFractional
override def neqv(x: Real, y: Real): Boolean

Returns true if x != y, false otherwise.

Returns true if x != y, false otherwise.

Note: this default implementation provided by Order is the same as the one defined in Eq, but for purposes of binary compatibility, the override in Order has not yet been removed. See this discussion.

Definition Classes
Inherited from:
Order
def nroot(x: Real, k: Int): Real
Inherited from:
RealIsFractional
def one: Real
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional
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 pi: Real
Inherited from:
RealIsFractional
def plus(x: Real, y: Real): Real
Inherited from:
RealIsFractional
def pmax(x: Real, y: Real): Option[Real]

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: Real, y: Real): Option[Real]

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

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
override def reciprocal(x: Real): Real
Definition Classes
Inherited from:
RealIsFractional
def round(x: Real): Real
Inherited from:
RealIsFractional
def sign(a: Real): 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(x: Real): Int
def sin(x: Real): Real
Inherited from:
RealIsFractional
def sinh(x: Real): Real
Inherited from:
RealIsFractional
override def sqrt(x: Real): Real
Definition Classes
Inherited from:
RealIsFractional
@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: Real, n: Int): Real
Definition Classes
Inherited from:
AdditiveGroup
def tan(x: Real): Real
Inherited from:
RealIsFractional
def tanh(x: Real): Real
Inherited from:
RealIsFractional
def times(x: Real, y: Real): Real
Inherited from:
RealIsFractional
def tmod(x: Real, y: Real): Real
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional
def toByte(x: Real): Byte
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional
def toFloat(x: Real): Float
Inherited from:
RealIsFractional
def toInt(x: Real): Int
Inherited from:
RealIsFractional
def toLong(x: Real): Long
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional

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
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional
def toReal(x: Real): Real
Inherited from:
RealIsFractional
def toShort(x: Real): Short
Inherited from:
RealIsFractional
Inherited from:
RealIsFractional
def toType[B](x: Real)(implicit ev: ConvertableTo[B]): B
Inherited from:
RealIsFractional
def tquot(x: Real, y: Real): Real
Inherited from:
RealIsFractional
def tquotmod(x: Real, y: Real): (Real, Real)
Inherited from:
TruncatedDivision
def tryCompare(x: Real, y: Real): 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
@nowarn("msg=deprecated")
override def tryProduct(as: IterableOnce[Real]): Option[Real]
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Real]): Option[Real]
Definition Classes
Inherited from:
AdditiveMonoid
def zero: Real
Inherited from:
RealIsFractional