Uses of Class
it.unich.jgmp.MPQ
Packages that use MPQ
-
Uses of MPQ in it.unich.jgmp
Methods in it.unich.jgmp that return MPQModifier and TypeMethodDescriptionMPQ.abs()
Return anMPQ
whose value is the absolute value ofthis
.MPQ.absAssign()
Set thisMPQ
to its absolute value.Set thisMPQ
to the absolute value ofop
.Return anMPQ
whose value is(this + op)
.Set thisMPQ
to(this + op)
Set thisMPQ
to(op1 + op2)
.Return anMPQ
whose value is(this / op)
.MPQ.div2Exp
(long b) Return anMPQ
whose value is(this / 2b)
.MPQ.div2ExpAssign
(long b) Set thisMPQ
to(this / 2b)
.MPQ.div2ExpAssign
(MPQ op, long b) Set thisMPQ
to(op / 2b)
.Set thisMPQ
to(this / op)
Set thisMPQ
to(op1 / op2)
.static MPQ
MPQ.init()
Return anMPQ
whose value is zero.MPQ.inv()
Return anMPQ
whose value is(1/this)
.MPQ.invAssign()
Set thisMPQ
to its inverse.Set thisMPQ
to1/op
.Return anMPQ
whose value is(this * op)
.MPQ.mul2Exp
(long b) Return anMPQ
whose value is(this * 2b)
.MPQ.mul2ExpAssign
(long b) Set thisMPQ
to(this * 2b)
.MPQ.mul2ExpAssign
(MPQ op, long b) Set thisMPQ
to(op * 2b)
.Set thisMPQ
to(this * op)
Set thisMPQ
to(op1 * op2)
.MPQ.neg()
Return anMPQ
whose value is the quotient of(- this)
.MPQ.negAssign()
Set thisMPQ
to its opposite.Set thisMPQ
to(- op)
.MPQ.set
(double op) Set thisMPQ
toop
.MPQ.set
(long num, long den) Set thisMPQ
to(<num/>den)
.Set thisMPQ
toop
.Set thisMPQ
toop
.Set thisMPQ
toop
.Set the denominator ofthis
to the valueden
.Set the numerator ofthis
to the valuenum
.MPQ.setUi
(long num, long den) Set thisMPQ
to(num/den)
.MPQ.setValue
(double op) Set thisMPQ
to opop
.MPQ.setValue
(long op) Set thisMPQ
toop
.Set thisMPQ
toop
.Set thisMPQ
toop
.Set thisMPQ
to the value represented by the stringstr
in decimal base.Set thisMPQ
to the number represented by the stringstr
in the specifiedbase
.Return anMPQ
whose value is(this - op)
.Set thisMPQ
to(this - op)
Set thisMPQ
to(op1 - op2)
.Swap the value of thisMPQ
with the value ofop
.Methods in it.unich.jgmp with parameters of type MPQModifier and TypeMethodDescriptionSet thisMPQ
to the absolute value ofop
.Return anMPQ
whose value is(this + op)
.Set thisMPQ
to(this + op)
Set thisMPQ
to(op1 + op2)
.int
Comparethis
withop
.int
Compare thisMPQ
withop
.Return anMPQ
whose value is(this / op)
.MPQ.div2ExpAssign
(MPQ op, long b) Set thisMPQ
to(op / 2b)
.Set thisMPQ
to(this / op)
Set thisMPQ
to(op1 / op2)
.boolean
Return true ifthis
is equal toop
, false otherwise.Set thisMPQ
to1/op
.Return anMPQ
whose value is(this * op)
.MPQ.mul2ExpAssign
(MPQ op, long b) Set thisMPQ
to(op * 2b)
.Set thisMPQ
to(this * op)
Set thisMPQ
to(op1 * op2)
.Set thisMPQ
to(- op)
.Set thisMPF
toop
, possibly truncated according to precision.Set thisMPQ
toop
.Set thisMPZ
to the truncation ofop
.Set thisMPF
toop
, possibly truncated according to precision.Set thisMPQ
toop
.Set thisMPZ
to the truncation opop
.Return anMPQ
whose value is(this - op)
.Set thisMPQ
to(this - op)
Set thisMPQ
to(op1 - op2)
.Swap the value of thisMPQ
with the value ofop
.Constructors in it.unich.jgmp with parameters of type MPQ