given_Field_Rational

Value members

Inherited methods

Inherited from:
Field
Source:
Field.scala
Inherited from:
Field
Source:
Field.scala
override def equotmod(a: Rational, b: Rational): (Rational, Rational)
Definition Classes
Inherited from:
Field
Source:
Field.scala
Inherited from:
Field
Source:
Field.scala

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
Source:
Ring.scala
override def fromDouble(a: Double): Rational
Definition Classes
Inherited from:
Field
Source:
Field.scala

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
Source:
Ring.scala
override def gcd(a: Rational, b: Rational)(implicit eqA: Eq[Rational]): Rational
Definition Classes
Inherited from:
Field
Source:
Field.scala
def isOne(a: Rational)(implicit ev: Eq[Rational]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from:
MultiplicativeMonoid
Source:
Multiplicative.scala
def isZero(a: Rational)(implicit ev: Eq[Rational]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
Source:
Additive.scala
override def lcm(a: Rational, b: Rational)(implicit eqA: Eq[Rational]): Rational
Definition Classes
Inherited from:
Field
Source:
Field.scala
@nowarn("msg=deprecated")

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
Source:
Multiplicative.scala
@nowarn("msg=deprecated")

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
Source:
Additive.scala
override def sumN(a: Rational, n: Int): Rational
Definition Classes
Inherited from:
AdditiveGroup
Source:
Additive.scala
@nowarn("msg=deprecated")
Definition Classes
Inherited from:
AdditiveMonoid
Source:
Additive.scala