Uses of Class
it.unich.jgmp.MPF
Packages that use MPF
-
Uses of MPF in it.unich.jgmp
Methods in it.unich.jgmp that return MPFModifier and TypeMethodDescriptionMPF.abs()
Return anMPF
whose value is the absolute value ofthis
.MPF.absAssign()
Set thisMPF
to its absolute value.Set thisMPF
to the absolute value ofop
.Return anMPF
whose value is(this + op)
.Set thisMPF
to(this + op)
Set thisMPF
to(op1 + op2)
.MPF.addUi
(long op) Return anMPF
whose value is(this + op)
.MPF.addUiAssign
(long op) Set thisMPF
to(this + op)
MPF.addUiAssign
(MPF op1, long op2) Set thisMPF
to(op1 + op2)
.MPF.ceil()
Return anMPF
whose value isthis
rounded to the next higher integer.MPF.ceilAssign()
Set thisMPF
to its value rounded to the next higher integer.MPF.ceilAssign
(MPF op) Set thisMPF
to the value ofop
rounded to the next higher integer.Return anMPF
whose value is(this / op)
.MPF.div2Exp
(long b) Return anMPF
whose value is(this * 2b)
.MPF.div2ExpAssign
(long b) Set thisMPF
to(this / 2b)
.MPF.div2ExpAssign
(MPF op, long b) Set thisMPF
to(op / 2b)
.Set thisMPF
to(this / op)
Set thisMPF
to(op1 / op2)
.MPF.divUi
(long op) Return anMPF
whose value is(this / op)
.MPF.divUiAssign
(long op) Set thisMPF
to(this / op)
MPF.divUiAssign
(MPF op1, long op2) Set thisMPF
to(op1 / op2)
.MPF.floor()
Return anMPF
whose value isthis
rounded to the next lower integer.MPF.floorAssign()
Set thisMPF
to its value rounded to the next lower integer.MPF.floorAssign
(MPF op) Set thisMPF
to the value ofop
rounded to the next lower integer.static MPF
MPF.init()
Return anMPF
whose value is zero.static MPF
MPF.init2
(long prec) Return anMPF
whose value is zero, and set its precision to be at leastprec
bits.static MPF
MPF.initSet
(double op) Return anMPF
whose value isop
, possibly truncated to the default precision.static MPF
MPF.initSet
(long op) Return anMPF
whose value isop
, possibly truncated to the default precision.static MPF
Return anMPF
whose value isop
, possibly truncated to the default precision.static MPF
MPF.initSetUi
(long op) Return anMPF
whose value isop
, possibly truncated to the default precision.Return anMPF
whose value is(this * op)
.MPF.mul2Exp
(long b) Return anMPF
whose value is(this * 2b)
.MPF.mul2ExpAssign
(long b) Set thisMPF
to(this * 2b)
.MPF.mul2ExpAssign
(MPF op, long b) Set thisMPF
to(op * 2b)
.Set thisMPF
to(this * op)
Set thisMPF
to(op1 * op2)
.MPF.mulUi
(long op) Return anMPF
whose value is(this * op)
.MPF.mulUiAssign
(long op) Set thisMPF
to(this * op)
MPF.mulUiAssign
(MPF op1, long op2) Set thisMPF
to(op1 * op2)
.MPF.neg()
Return anMPF
whose value is(- this)
.MPF.negAssign()
Set thisMPF
to its opposite.Set thisMPF
to(- op)
.MPF.powUi
(long exp) Return anMPF
whose value is(thisexp)
.MPF.powUiAssign
(long exp) Set thisMPF
to(thisexp)
.MPF.powUiAssign
(MPF base, long exp) Set thisMPF
to(baseexp)
.static MPF
MPF.random2
(long maxSize, long exp) Return anMPF
whose value is a random integer of at mostmaxSize
limbs, with long strings of zeros and ones in the binary representation.MPF.random2Assign
(long maxSize, long exp) Set thisMPF
to a random integer of at mostmaxSize
limbs, with long strings of zeros and ones in the binary representation.Return the relative difference betweenthis
andthis
, i.e.,(abs(this-op)/this)
.MPF.reldiffAssign
(MPF op) Set thisMPF
to the relative difference betweenthis
andop
, i.e.,(abs(this-op)/this)
.MPF.reldiffAssign
(MPF op1, MPF op2) Set thisMPF
to the relative difference betweenop1
andop2
, i.e.,(abs(op1-op2)/op1)
.MPF.set
(double op) Set thisMPF
toop
, possibly truncated according to precision.MPF.set
(long op) Set thisMPF
toop
, possibly truncated according to precision.Set thisMPF
toop
, possibly truncated according to precision.Set thisMPF
toop
, possibly truncated according to precision.Set thisMPF
toop
, possibly truncated according to precision.MPF.set
(BigDecimal op) Set thisMPF
to the big decimalop
.MPF.setPrec
(long prec) Set the precision of thisMPF
to be at leastprec
bits.MPF.setUi
(long op) Set thisMPF
toop
, possibly truncated according to precision.MPF.setValue
(double op) Set thisMPF
toop
, possibly truncated according to precision.MPF.setValue
(long op) Set thisMPF
toop
, possibly truncated according to precision.Set thisMPF
toop
, possibly truncated according to precision.Set thisMPF
toop
, possibly truncated according to precision.Set thisMPF
toop
, possibly truncated according to precision.Set thisMPF
to the value represented by the stringstr
in decimal base, possibly truncated according to precision.Set thisMPF
to the number represented by the stringstr
in the specifiedbase
, possibly truncated according to precision.MPF.setValue
(BigDecimal op) Set thisMPF
to the big decimalop
.MPF.sqrt()
Return anMPF
whose value is the square root ofthis
.MPF.sqrtAssign()
Set thisMPF
to its square root.MPF.sqrtAssign
(MPF op) Set thisMPF
to the the square root ofop
.static MPF
MPF.sqrtUi
(long op) Return anMPF
whose value is the square root ofthis
.MPF.sqrtUiAssign
(long op) Set thisMPF
to the the square root ofop
.Return anMPF
whose value is(this - op)
.Set thisMPF
to(this - op)
Set thisMPF
to(op1 - op2)
.MPF.subUi
(long op) Return anMPF
whose value is(this - op)
.MPF.subUiAssign
(long op) Set thisMPF
to(this - op)
MPF.subUiAssign
(MPF op1, long op2) Set thisMPF
to(op1 - op2)
.Swap the value of thisMPF
with the value ofop
.MPF.trunc()
Return anMPF
whose value isthis
rounded towards zero.MPF.truncAssign()
Set thisMPF
to its value rounded towards zero.MPF.truncAssign
(MPF op) Set thisMPF
to the value ofop
rounded towards zero.MPF.uiDiv
(long op) Return anMPF
whose value is(op / this)
.MPF.uiDivAssign
(long op) Set thisMPF
to(op / this)
MPF.uiDivAssign
(long op1, MPF op2) Set thisMPF
to(op1 / op2)
.MPF.uiSub
(long op) Return anMPF
whose value is(op - this)
.MPF.uiSubAssign
(long op) Set thisMPF
to(op - this)
MPF.uiSubAssign
(long op1, MPF op2) Set thisMPF
to(op1 - op2)
.static MPF
Return anMPF
whose value is an uniformly distributed random float in the range from0
included to1
excluded.MPF.urandombAssign
(RandState s, long nbits) Set thisMPF
to a uniformly distributed random float in the range from0
included to1
excluded.Methods in it.unich.jgmp that return types with arguments of type MPFModifier and TypeMethodDescriptionReturn anMPF
whose value is the number represented by the stringstr
in the specifiedbase
, possibly truncated to the default precision.Methods in it.unich.jgmp with parameters of type MPFModifier and TypeMethodDescriptionSet thisMPF
to the absolute value ofop
.Return anMPF
whose value is(this + op)
.Set thisMPF
to(this + op)
Set thisMPF
to(op1 + op2)
.MPF.addUiAssign
(MPF op1, long op2) Set thisMPF
to(op1 + op2)
.MPF.ceilAssign
(MPF op) Set thisMPF
to the value ofop
rounded to the next higher integer.int
Comparethis
withop
.int
Compare thisMPF
withop
.Return anMPF
whose value is(this / op)
.MPF.div2ExpAssign
(MPF op, long b) Set thisMPF
to(op / 2b)
.Set thisMPF
to(this / op)
Set thisMPF
to(op1 / op2)
.MPF.divUiAssign
(MPF op1, long op2) Set thisMPF
to(op1 / op2)
.MPF.floorAssign
(MPF op) Set thisMPF
to the value ofop
rounded to the next lower integer.static MPF
Return anMPF
whose value isop
, possibly truncated to the default precision.Return anMPF
whose value is(this * op)
.MPF.mul2ExpAssign
(MPF op, long b) Set thisMPF
to(op * 2b)
.Set thisMPF
to(this * op)
Set thisMPF
to(op1 * op2)
.MPF.mulUiAssign
(MPF op1, long op2) Set thisMPF
to(op1 * op2)
.Set thisMPF
to(- op)
.MPF.powUiAssign
(MPF base, long exp) Set thisMPF
to(baseexp)
.Return the relative difference betweenthis
andthis
, i.e.,(abs(this-op)/this)
.MPF.reldiffAssign
(MPF op) Set thisMPF
to the relative difference betweenthis
andop
, i.e.,(abs(this-op)/this)
.MPF.reldiffAssign
(MPF op1, MPF op2) Set thisMPF
to the relative difference betweenop1
andop2
, i.e.,(abs(op1-op2)/op1)
.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
.MPF.sqrtAssign
(MPF op) Set thisMPF
to the the square root ofop
.Return anMPF
whose value is(this - op)
.Set thisMPF
to(this - op)
Set thisMPF
to(op1 - op2)
.MPF.subUiAssign
(MPF op1, long op2) Set thisMPF
to(op1 - op2)
.Swap the value of thisMPF
with the value ofop
.MPF.truncAssign
(MPF op) Set thisMPF
to the value ofop
rounded towards zero.MPF.uiDivAssign
(long op1, MPF op2) Set thisMPF
to(op1 / op2)
.MPF.uiSubAssign
(long op1, MPF op2) Set thisMPF
to(op1 - op2)
.Constructors in it.unich.jgmp with parameters of type MPF