given_Field_Rational
Attributes
- Source
- rational.scala
- Graph
-
- Supertypes
-
trait CommutativeSemifield[Rational]trait DivisionRing[Rational]trait MultiplicativeGroup[Rational]trait EuclideanRing[Rational]trait CommutativeRing[Rational]trait CommutativeRng[Rational]trait CommutativeRig[Rational]trait CommutativeSemiring[Rational]trait AdditiveCommutativeGroup[Rational]trait AdditiveGroup[Rational]trait MultiplicativeMonoid[Rational]trait MultiplicativeSemigroup[Rational]trait AdditiveMonoid[Rational]trait AdditiveSemigroup[Rational]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
given_Field_Rational.type
Members list
Value members
Concrete methods
Attributes
- Definition Classes
- Source
- rational.scala
Attributes
- Source
- rational.scala
Attributes
- Source
- rational.scala
Attributes
- Definition Classes
- Source
- rational.scala
Attributes
- Source
- rational.scala
Inherited methods
Attributes
- Definition Classes
- Inherited from:
- AdditiveCommutativeGroup
- Source
- Additive.scala
Attributes
- Definition Classes
- Inherited from:
- Field
- Source
- Field.scala
Attributes
- 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.
Attributes
- Inherited from:
- Ring
- Source
- Ring.scala
This is implemented in terms of basic Ring ops. However, this is probably significantly less efficient than can be done with a specific type. So, it is recommended that this method be overriden.
This is implemented in terms of basic Ring ops. However, this is probably significantly less efficient than can be done with a specific type. So, it is recommended that this method be overriden.
This is possible because a Double is a rational number.
Attributes
- 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.
Attributes
- Inherited from:
- Ring
- Source
- Ring.scala
Attributes
- Definition Classes
- Inherited from:
- Field
- Source
- Field.scala
Tests if a
is one.
Tests if a
is zero.
Attributes
- Definition Classes
- Inherited from:
- Field
- Source
- Field.scala
Attributes
- Definition Classes
- Inherited from:
- MultiplicativeCommutativeGroup
- Source
- Multiplicative.scala
Given a sequence of as
, compute the product.
Given a sequence of as
, compute the product.
Attributes
- Inherited from:
- MultiplicativeMonoid
- Source
- Multiplicative.scala
Attributes
- Inherited from:
- MultiplicativeGroup
- Source
- Multiplicative.scala
Given a sequence of as
, compute the sum.
Given a sequence of as
, compute the sum.
Attributes
- Inherited from:
- AdditiveMonoid
- Source
- Additive.scala
Attributes
- Definition Classes
- Inherited from:
- AdditiveGroup
- Source
- Additive.scala
Given a sequence of as
, combine them and return the total.
Given a sequence of as
, combine them and return the total.
If the sequence is empty, returns None. Otherwise, returns Some(total).
Attributes
- Definition Classes
- Inherited from:
- MultiplicativeMonoid
- Source
- Multiplicative.scala
Given a sequence of as
, combine them and return the total.
Given a sequence of as
, combine them and return the total.
If the sequence is empty, returns None. Otherwise, returns Some(total).
Attributes
- Definition Classes
- Inherited from:
- AdditiveMonoid
- Source
- Additive.scala