given_Field_Rational
- Source:
- rational.scala
Value members
Inherited methods
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
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
Tests if a
is one.
Tests if a
is one.
- Inherited from:
- MultiplicativeMonoid
- Source:
- Multiplicative.scala
Given a sequence of as
, compute the product.
Given a sequence of as
, compute the product.
- Inherited from:
- MultiplicativeMonoid
- Source:
- Multiplicative.scala
Given a sequence of as
, compute the sum.
Given a sequence of as
, compute the sum.
- Inherited from:
- AdditiveMonoid
- Source:
- Additive.scala
- Definition Classes
- Inherited from:
- MultiplicativeMonoid
- Source:
- Multiplicative.scala