class LongAlgebra extends LongIsEuclideanRing with LongIsNRoot with LongIsReal with Serializable
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- LongAlgebra
- Serializable
- Serializable
- LongIsReal
- LongIsSigned
- LongOrder
- IsIntegral
- IsRational
- IsAlgebraic
- IsReal
- Signed
- Order
- PartialOrder
- Eq
- LongIsNRoot
- NRoot
- LongIsEuclideanRing
- EuclideanRing
- CRing
- MultiplicativeCMonoid
- MultiplicativeCSemigroup
- Ring
- Rng
- AdditiveAbGroup
- AdditiveCMonoid
- AdditiveCSemigroup
- AdditiveGroup
- Rig
- MultiplicativeMonoid
- Semiring
- MultiplicativeSemigroup
- AdditiveMonoid
- AdditiveSemigroup
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new LongAlgebra()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
abs(a: Long): Long
An idempotent function that ensures an object has a non-negative sign.
An idempotent function that ensures an object has a non-negative sign.
- Definition Classes
- LongIsSigned → Signed
-
def
additive: AbGroup[Long]
- Definition Classes
- AdditiveAbGroup → AdditiveCMonoid → AdditiveCSemigroup → AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ceil(a: Long): Long
Rounds
athe nearest integer that is greater than or equal toa.Rounds
athe nearest integer that is greater than or equal toa.- Definition Classes
- IsIntegral → IsReal
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def compare(x: Long, y: Long): Int
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eqv(x: Long, y: Long): Boolean
Returns
trueifxandyare equivalent,falseotherwise.Returns
trueifxandyare equivalent,falseotherwise.- Definition Classes
- LongOrder → Order → PartialOrder → Eq
-
final
def
euclid(a: Long, b: Long)(implicit eq: Eq[Long]): Long
- Attributes
- protected[this]
- Definition Classes
- EuclideanRing
- Annotations
- @tailrec()
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
floor(a: Long): Long
Rounds
athe nearest integer that is less than or equal toa.Rounds
athe nearest integer that is less than or equal toa.- Definition Classes
- IsIntegral → IsReal
-
def
fpow(a: Long, b: Long): Long
- Definition Classes
- LongIsNRoot → NRoot
-
def
fromInt(n: Int): Long
Defined to be equivalent to
additive.sumn(one, n).Defined to be equivalent to
additive.sumn(one, n). That is,nrepeated summations of this ring'sone, or-oneifnis negative.- Definition Classes
- LongIsEuclideanRing → Ring
-
def
gcd(a: Long, b: Long): Long
- Definition Classes
- LongIsEuclideanRing → EuclideanRing
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
gt(x: Long, y: Long): Boolean
- Definition Classes
- LongOrder → Order → PartialOrder
-
def
gteqv(x: Long, y: Long): Boolean
- Definition Classes
- LongOrder → Order → PartialOrder
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isOne(a: Long)(implicit ev: Eq[Long]): Boolean
- Definition Classes
- MultiplicativeMonoid
-
def
isSignNegative(a: Long): Boolean
- Definition Classes
- Signed
-
def
isSignNonNegative(a: Long): Boolean
- Definition Classes
- Signed
-
def
isSignNonPositive(a: Long): Boolean
- Definition Classes
- Signed
-
def
isSignNonZero(a: Long): Boolean
- Definition Classes
- Signed
-
def
isSignPositive(a: Long): Boolean
- Definition Classes
- Signed
-
def
isSignZero(a: Long): Boolean
- Definition Classes
- Signed
-
def
isWhole(a: Long): Boolean
Returns
trueiffais a an integer.Returns
trueiffais a an integer.- Definition Classes
- IsIntegral → IsReal
-
def
isZero(a: Long)(implicit ev: Eq[Long]): Boolean
Tests if
ais zero.Tests if
ais zero.- Definition Classes
- AdditiveMonoid
-
def
lcm(a: Long, b: Long): Long
- Definition Classes
- EuclideanRing
-
def
log(a: Long): Long
- Definition Classes
- LongIsNRoot
-
def
lt(x: Long, y: Long): Boolean
- Definition Classes
- LongOrder → Order → PartialOrder
-
def
lteqv(x: Long, y: Long): Boolean
- Definition Classes
- LongOrder → Order → PartialOrder
-
def
max(x: Long, y: Long): Long
- Definition Classes
- Order
-
def
min(x: Long, y: Long): Long
- Definition Classes
- Order
-
def
minus(a: Long, b: Long): Long
- Definition Classes
- LongIsEuclideanRing → AdditiveGroup
-
def
mod(a: Long, b: Long): Long
- Definition Classes
- LongIsEuclideanRing → EuclideanRing
-
def
multiplicative: CMonoid[Long]
- Definition Classes
- MultiplicativeCMonoid → MultiplicativeCSemigroup → MultiplicativeMonoid → MultiplicativeSemigroup
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
negate(a: Long): Long
- Definition Classes
- LongIsEuclideanRing → AdditiveGroup
-
def
neqv(x: Long, y: Long): Boolean
Returns
falseifxandyare equivalent,trueotherwise. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
nroot(x: Long, n: Int): Long
- Definition Classes
- LongIsNRoot → NRoot
-
def
on[B](f: (B) ⇒ Long): Order[B]
Defines an order on
Bby mappingBtoAusingfand usingAs order to orderB.Defines an order on
Bby mappingBtoAusingfand usingAs order to orderB.- Definition Classes
- Order → PartialOrder → Eq
-
def
one: Long
- Definition Classes
- LongIsEuclideanRing → MultiplicativeMonoid
-
def
partialCompare(x: Long, y: Long): Double
Result of comparing
xwithy.Result of comparing
xwithy. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is: - negative iffx < y- zero iffx === y- positive iffx > y- Definition Classes
- Order → PartialOrder
-
def
plus(a: Long, b: Long): Long
- Definition Classes
- LongIsEuclideanRing → AdditiveSemigroup
-
def
pmax(x: Long, y: Long): Option[Long]
Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.
Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.
- Definition Classes
- PartialOrder
-
def
pmin(x: Long, y: Long): Option[Long]
Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.
Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.
- Definition Classes
- PartialOrder
-
def
pow(a: Long, b: Int): Long
This is similar to
Semigroup#pow, except thata pow 0is defined to be the multiplicative identity.This is similar to
Semigroup#pow, except thata pow 0is defined to be the multiplicative identity.- Definition Classes
- LongIsEuclideanRing → Rig → Semiring
-
def
prod(as: TraversableOnce[Long]): Long
Given a sequence of
as, sum them using the monoid and return the total.Given a sequence of
as, sum them using the monoid and return the total.- Definition Classes
- MultiplicativeMonoid
-
def
prodOption(as: TraversableOnce[Long]): Option[Long]
Given a sequence of
as, sum them using the semigroup and return the total.Given a sequence of
as, sum them using the semigroup and return the total.If the sequence is empty, returns None. Otherwise, returns Some(total).
- Definition Classes
- MultiplicativeSemigroup
-
def
prodn(a: Long, n: Int): Long
Return
amultiplied with itselfntimes.Return
amultiplied with itselfntimes.- Definition Classes
- MultiplicativeMonoid → MultiplicativeSemigroup
-
def
prodnAboveOne(a: Long, n: Int): Long
- Attributes
- protected
- Definition Classes
- MultiplicativeSemigroup
-
def
quot(a: Long, b: Long): Long
- Definition Classes
- LongIsEuclideanRing → EuclideanRing
-
def
quotmod(a: Long, b: Long): (Long, Long)
- Definition Classes
- EuclideanRing
-
def
reverse: Order[Long]
Defines an ordering on
Awhere all arrows switch direction.Defines an ordering on
Awhere all arrows switch direction.- Definition Classes
- Order → PartialOrder
-
def
round(a: Long): Long
Rounds
ato the nearest integer.Rounds
ato the nearest integer.- Definition Classes
- IsIntegral → IsReal
-
def
sign(a: Long): Sign
Returns Zero if
ais 0, Positive ifais positive, and Negative isais negative.Returns Zero if
ais 0, Positive ifais positive, and Negative isais negative.- Definition Classes
- Signed
-
def
signum(a: Long): Int
Returns 0 if
ais 0, > 0 ifais positive, and < 0 isais negative.Returns 0 if
ais 0, > 0 ifais positive, and < 0 isais negative.- Definition Classes
- LongIsSigned → Signed
-
def
sqrt(a: Long): Long
- Definition Classes
- NRoot
-
def
sum(as: TraversableOnce[Long]): Long
Given a sequence of
as, sum them using the monoid and return the total.Given a sequence of
as, sum them using the monoid and return the total.- Definition Classes
- AdditiveMonoid
-
def
sumOption(as: TraversableOnce[Long]): Option[Long]
Given a sequence of
as, sum them using the semigroup and return the total.Given a sequence of
as, sum them using the semigroup and return the total.If the sequence is empty, returns None. Otherwise, returns Some(total).
- Definition Classes
- AdditiveSemigroup
-
def
sumn(a: Long, n: Int): Long
Return
aadded with itselfntimes.Return
aadded with itselfntimes.- Definition Classes
- AdditiveGroup → AdditiveMonoid → AdditiveSemigroup
-
def
sumnAboveOne(a: Long, n: Int): Long
- Attributes
- protected
- Definition Classes
- AdditiveSemigroup
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
times(a: Long, b: Long): Long
- Definition Classes
- LongIsEuclideanRing → MultiplicativeSemigroup
-
def
toAlgebraic(a: Long): Algebraic
- Definition Classes
- IsRational → IsAlgebraic
-
def
toBigInt(n: Long): BigInt
- Definition Classes
- LongIsReal → IsIntegral
-
def
toDouble(n: Long): Double
Approximates
aas aDouble.Approximates
aas aDouble.- Definition Classes
- LongIsReal → IsReal
-
def
toRational(a: Long): Rational
- Definition Classes
- IsIntegral → IsRational
-
def
toReal(a: Long): Real
- Definition Classes
- IsAlgebraic → IsReal
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryCompare(x: Long, y: Long): Option[Int]
Result of comparing
xwithy.Result of comparing
xwithy. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is: - negative iffx < y- zero iffx == y- positive iffx > y- Definition Classes
- PartialOrder
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
zero: Long
- Definition Classes
- LongIsEuclideanRing → AdditiveMonoid