RingFunctions
trait RingFunctions[R <: (Ring)] extends AdditiveGroupFunctions[R] with MultiplicativeMonoidFunctions[R]
trait MultiplicativeMonoidFunctions[R]
trait MultiplicativeSemigroupFunctions[R]
trait AdditiveGroupFunctions[R]
trait AdditiveMonoidFunctions[R]
trait AdditiveSemigroupFunctions[R]
class Object
trait Matchable
class Any
object BoolRing.type
object CommutativeRing.type
trait DivisionRingFunctions[F]
object DivisionRing.type
trait GCDRingFunctions[R]
trait EuclideanRingFunctions[R]
object EuclideanRing.type
trait FieldFunctions[F]
object Field.type
object GCDRing.type
object Ring.type
Value members
Concrete methods
final def defaultFromBigInt[@specialized(Int, Long, Float, Double) A](n: BigInt)(implicit ev: R[A]): A
Returns the given Double, understood as a rational number, in the provided (division) ring.
Returns the given Double, understood as a rational number, in the provided (division) ring.
This is implemented in terms of basic ops. However, this is probably significantly less efficient than can be done with a specific type. So, it is recommended to specialize this general method.