DoubleAlgebra
Due to the way floating-point equality works, this instance is not lawful under equality, but is correct when taken as an approximation of an exact value.
Due to the way floating-point equality works, this instance is not lawful under equality, but is correct when taken as an approximation of an exact value.
If you would prefer an absolutely lawful fractional value, you'll need to investigate rational numbers or more exotic types.
trait Field[Double]
trait MultiplicativeCommutativeGroup[Double]
trait MultiplicativeGroup[Double]
trait CommutativeRing[Double]
trait CommutativeRng[Double]
trait CommutativeRig[Double]
trait MultiplicativeCommutativeMonoid[Double]
trait CommutativeSemiring[Double]
trait MultiplicativeCommutativeSemigroup[Double]
trait Ring[Double]
trait Rng[Double]
trait AdditiveCommutativeGroup[Double]
trait AdditiveGroup[Double]
trait Rig[Double]
trait MultiplicativeMonoid[Double]
trait Semiring[Double]
trait MultiplicativeSemigroup[Double]
trait AdditiveCommutativeMonoid[Double]
trait AdditiveCommutativeSemigroup[Double]
trait AdditiveMonoid[Double]
trait AdditiveSemigroup[Double]
trait Serializable
class Object
trait Matchable
class Any
Value members
Inherited methods
Given a sequence of as
, compute the product.
Given a sequence of as
, compute the product.
- Inherited from
- MultiplicativeMonoid
Given a sequence of as
, compute the sum.
Given a sequence of as
, compute the sum.
- Inherited from
- AdditiveMonoid