Uses of Class
it.unich.jgmp.MPF
Packages that use MPF
-
Uses of MPF in it.unich.jgmp
Classes in it.unich.jgmp that implement interfaces with type arguments of type MPFMethods in it.unich.jgmp that return MPFModifier and TypeMethodDescriptionMPF.abs()Return anMPFwhose value is the absolute value ofthis.MPF.absAssign()Set thisMPFto its absolute value.Set thisMPFto the absolute value ofop.Return anMPFwhose value is(this + op).Set thisMPFto(this + op)Set thisMPFto(op1 + op2).MPF.addUi(long op) Return anMPFwhose value is(this + op).MPF.addUiAssign(long op) Set thisMPFto(this + op)MPF.addUiAssign(MPF op1, long op2) Set thisMPFto(op1 + op2).MPF.ceil()Return anMPFwhose value isthisrounded to the next higher integer.MPF.ceilAssign()Set thisMPFto its value rounded to the next higher integer.MPF.ceilAssign(MPF op) Set thisMPFto the value ofoprounded to the next higher integer.Return anMPFwhose value is(this / op).MPF.div2Exp(long b) Return anMPFwhose value is(this * 2b).MPF.div2ExpAssign(long b) Set thisMPFto(this / 2b).MPF.div2ExpAssign(MPF op, long b) Set thisMPFto(op / 2b).Set thisMPFto(this / op)Set thisMPFto(op1 / op2).MPF.divUi(long op) Return anMPFwhose value is(this / op).MPF.divUiAssign(long op) Set thisMPFto(this / op)MPF.divUiAssign(MPF op1, long op2) Set thisMPFto(op1 / op2).MPF.floor()Return anMPFwhose value isthisrounded to the next lower integer.MPF.floorAssign()Set thisMPFto its value rounded to the next lower integer.MPF.floorAssign(MPF op) Set thisMPFto the value ofoprounded to the next lower integer.static MPFMPF.init()Return anMPFwhose value is zero.static MPFMPF.init2(long prec) Return anMPFwhose value is zero, and set its precision to be at leastprecbits.static MPFMPF.initSet(double op) Return anMPFwhose value isop, possibly truncated to the default precision.static MPFMPF.initSet(long op) Return anMPFwhose value isop, possibly truncated to the default precision.static MPFReturn anMPFwhose value isop, possibly truncated to the default precision.static MPFMPF.initSetUi(long op) Return anMPFwhose value isop, possibly truncated to the default precision.Return anMPFwhose value is(this * op).MPF.mul2Exp(long b) Return anMPFwhose value is(this * 2b).MPF.mul2ExpAssign(long b) Set thisMPFto(this * 2b).MPF.mul2ExpAssign(MPF op, long b) Set thisMPFto(op * 2b).Set thisMPFto(this * op)Set thisMPFto(op1 * op2).MPF.mulUi(long op) Return anMPFwhose value is(this * op).MPF.mulUiAssign(long op) Set thisMPFto(this * op)MPF.mulUiAssign(MPF op1, long op2) Set thisMPFto(op1 * op2).MPF.neg()Return anMPFwhose value is(- this).MPF.negAssign()Set thisMPFto its opposite.Set thisMPFto(- op).MPF.powUi(long exp) Return anMPFwhose value is(thisexp).MPF.powUiAssign(long exp) Set thisMPFto(thisexp).MPF.powUiAssign(MPF base, long exp) Set thisMPFto(baseexp).static MPFMPF.random2(long maxSize, long exp) Return anMPFwhose value is a random integer of at mostmaxSizelimbs, with long strings of zeros and ones in the binary representation.MPF.random2Assign(long maxSize, long exp) Set thisMPFto a random integer of at mostmaxSizelimbs, with long strings of zeros and ones in the binary representation.Return the relative difference betweenthisandthis, i.e.,(abs(this-op)/this).MPF.reldiffAssign(MPF op) Set thisMPFto the relative difference betweenthisandop, i.e.,(abs(this-op)/this).MPF.reldiffAssign(MPF op1, MPF op2) Set thisMPFto the relative difference betweenop1andop2, i.e.,(abs(op1-op2)/op1).MPF.set(double op) Set thisMPFtoop, possibly truncated according to precision.MPF.set(long op) Set thisMPFtoop, possibly truncated according to precision.Set thisMPFtoop, possibly truncated according to precision.Set thisMPFtoop, possibly truncated according to precision.Set thisMPFtoop, possibly truncated according to precision.MPF.set(BigDecimal op) Set thisMPFto the big decimalop.MPF.setPrec(long prec) Set the precision of thisMPFto be at leastprecbits.MPF.setUi(long op) Set thisMPFtoop, possibly truncated according to precision.MPF.setValue(double op) Set thisMPFtoop, possibly truncated according to precision.MPF.setValue(long op) Set thisMPFtoop, possibly truncated according to precision.Set thisMPFtoop, possibly truncated according to precision.Set thisMPFtoop, possibly truncated according to precision.Set thisMPFtoop, possibly truncated according to precision.Set thisMPFto the value represented by the stringstrin decimal base, possibly truncated according to precision.Set thisMPFto the number represented by the stringstrin the specifiedbase, possibly truncated according to precision.MPF.setValue(BigDecimal op) Set thisMPFto the big decimalop.MPF.sqrt()Return anMPFwhose value is the square root ofthis.MPF.sqrtAssign()Set thisMPFto its square root.MPF.sqrtAssign(MPF op) Set thisMPFto the the square root ofop.static MPFMPF.sqrtUi(long op) Return anMPFwhose value is the square root ofthis.MPF.sqrtUiAssign(long op) Set thisMPFto the the square root ofop.Return anMPFwhose value is(this - op).Set thisMPFto(this - op)Set thisMPFto(op1 - op2).MPF.subUi(long op) Return anMPFwhose value is(this - op).MPF.subUiAssign(long op) Set thisMPFto(this - op)MPF.subUiAssign(MPF op1, long op2) Set thisMPFto(op1 - op2).Swap the value of thisMPFwith the value ofop.MPF.trunc()Return anMPFwhose value isthisrounded towards zero.MPF.truncAssign()Set thisMPFto its value rounded towards zero.MPF.truncAssign(MPF op) Set thisMPFto the value ofoprounded towards zero.MPF.uiDiv(long op) Return anMPFwhose value is(op / this).MPF.uiDivAssign(long op) Set thisMPFto(op / this)MPF.uiDivAssign(long op1, MPF op2) Set thisMPFto(op1 / op2).MPF.uiSub(long op) Return anMPFwhose value is(op - this).MPF.uiSubAssign(long op) Set thisMPFto(op - this)MPF.uiSubAssign(long op1, MPF op2) Set thisMPFto(op1 - op2).static MPFReturn anMPFwhose value is an uniformly distributed random float in the range from0included to1excluded.MPF.urandombAssign(RandState s, long nbits) Set thisMPFto a uniformly distributed random float in the range from0included to1excluded.Methods in it.unich.jgmp that return types with arguments of type MPFModifier and TypeMethodDescriptionReturn anMPFwhose value is the number represented by the stringstrin the specifiedbase, possibly truncated to the default precision.Methods in it.unich.jgmp with parameters of type MPFModifier and TypeMethodDescriptionSet thisMPFto the absolute value ofop.Return anMPFwhose value is(this + op).Set thisMPFto(this + op)Set thisMPFto(op1 + op2).MPF.addUiAssign(MPF op1, long op2) Set thisMPFto(op1 + op2).MPF.ceilAssign(MPF op) Set thisMPFto the value ofoprounded to the next higher integer.intComparethiswithop.intCompare thisMPFwithop.Return anMPFwhose value is(this / op).MPF.div2ExpAssign(MPF op, long b) Set thisMPFto(op / 2b).Set thisMPFto(this / op)Set thisMPFto(op1 / op2).MPF.divUiAssign(MPF op1, long op2) Set thisMPFto(op1 / op2).MPF.floorAssign(MPF op) Set thisMPFto the value ofoprounded to the next lower integer.static MPFReturn anMPFwhose value isop, possibly truncated to the default precision.Return anMPFwhose value is(this * op).MPF.mul2ExpAssign(MPF op, long b) Set thisMPFto(op * 2b).Set thisMPFto(this * op)Set thisMPFto(op1 * op2).MPF.mulUiAssign(MPF op1, long op2) Set thisMPFto(op1 * op2).Set thisMPFto(- op).MPF.powUiAssign(MPF base, long exp) Set thisMPFto(baseexp).Return the relative difference betweenthisandthis, i.e.,(abs(this-op)/this).MPF.reldiffAssign(MPF op) Set thisMPFto the relative difference betweenthisandop, i.e.,(abs(this-op)/this).MPF.reldiffAssign(MPF op1, MPF op2) Set thisMPFto the relative difference betweenop1andop2, i.e.,(abs(op1-op2)/op1).Set thisMPFtoop, possibly truncated according to precision.Set thisMPQtoop.Set thisMPZto the truncation ofop.Set thisMPFtoop, possibly truncated according to precision.Set thisMPQtoop.Set thisMPZto the truncation opop.MPF.sqrtAssign(MPF op) Set thisMPFto the the square root ofop.Return anMPFwhose value is(this - op).Set thisMPFto(this - op)Set thisMPFto(op1 - op2).MPF.subUiAssign(MPF op1, long op2) Set thisMPFto(op1 - op2).Swap the value of thisMPFwith the value ofop.MPF.truncAssign(MPF op) Set thisMPFto the value ofoprounded towards zero.MPF.uiDivAssign(long op1, MPF op2) Set thisMPFto(op1 / op2).MPF.uiSubAssign(long op1, MPF op2) Set thisMPFto(op1 - op2).Constructors in it.unich.jgmp with parameters of type MPF