Uses of Class
it.unich.jgmp.MPF

Packages that use MPF
Package
Description
This package contains all the high-level classes of JGMP.
  • Uses of MPF in it.unich.jgmp

    Methods in it.unich.jgmp that return MPF
    Modifier and Type
    Method
    Description
    MPF.abs()
    Return an MPF whose value is the absolute value of this.
    MPF.absAssign()
    Set this MPF to its absolute value.
    MPF.absAssign(MPF op)
    Set this MPF to the absolute value of op.
    MPF.add(MPF op)
    Return an MPF whose value is (this + op).
    MPF.addAssign(MPF op)
    Set this MPF to (this + op)
    MPF.addAssign(MPF op1, MPF op2)
    Set this MPF to (op1 + op2).
    MPF.addUi(long op)
    Return an MPF whose value is (this + op).
    MPF.addUiAssign(long op)
    Set this MPF to (this + op)
    MPF.addUiAssign(MPF op1, long op2)
    Set this MPF to (op1 + op2).
    MPF.ceil()
    Return an MPF whose value is this rounded to the next higher integer.
    Set this MPF to its value rounded to the next higher integer.
    MPF.ceilAssign(MPF op)
    Set this MPF to the value of op rounded to the next higher integer.
    MPF.div(MPF op)
    Return an MPF whose value is (this / op).
    MPF.div2Exp(long b)
    Return an MPF whose value is (this * 2b).
    MPF.div2ExpAssign(long b)
    Set this MPF to (this / 2b).
    MPF.div2ExpAssign(MPF op, long b)
    Set this MPF to (op / 2b).
    MPF.divAssign(MPF op)
    Set this MPF to (this / op)
    MPF.divAssign(MPF op1, MPF op2)
    Set this MPF to (op1 / op2).
    MPF.divUi(long op)
    Return an MPF whose value is (this / op).
    MPF.divUiAssign(long op)
    Set this MPF to (this / op)
    MPF.divUiAssign(MPF op1, long op2)
    Set this MPF to (op1 / op2).
    MPF.floor()
    Return an MPF whose value is this rounded to the next lower integer.
    Set this MPF to its value rounded to the next lower integer.
    MPF.floorAssign(MPF op)
    Set this MPF to the value of op rounded to the next lower integer.
    static MPF
    MPF.init()
    Return an MPF whose value is zero.
    static MPF
    MPF.init2(long prec)
    Return an MPF whose value is zero, and set its precision to be at least prec bits.
    static MPF
    MPF.initSet(double op)
    Return an MPF whose value is op, possibly truncated to the default precision.
    static MPF
    MPF.initSet(long op)
    Return an MPF whose value is op, possibly truncated to the default precision.
    static MPF
    MPF.initSet(MPF op)
    Return an MPF whose value is op, possibly truncated to the default precision.
    static MPF
    MPF.initSetUi(long op)
    Return an MPF whose value is op, possibly truncated to the default precision.
    MPF.mul(MPF op)
    Return an MPF whose value is (this * op).
    MPF.mul2Exp(long b)
    Return an MPF whose value is (this * 2b).
    MPF.mul2ExpAssign(long b)
    Set this MPF to (this * 2b).
    MPF.mul2ExpAssign(MPF op, long b)
    Set this MPF to (op * 2b).
    MPF.mulAssign(MPF op)
    Set this MPF to (this * op)
    MPF.mulAssign(MPF op1, MPF op2)
    Set this MPF to (op1 * op2).
    MPF.mulUi(long op)
    Return an MPF whose value is (this * op).
    MPF.mulUiAssign(long op)
    Set this MPF to (this * op)
    MPF.mulUiAssign(MPF op1, long op2)
    Set this MPF to (op1 * op2).
    MPF.neg()
    Return an MPF whose value is (- this).
    MPF.negAssign()
    Set this MPF to its opposite.
    MPF.negAssign(MPF op)
    Set this MPF to (- op).
    MPF.powUi(long exp)
    Return an MPF whose value is (thisexp).
    MPF.powUiAssign(long exp)
    Set this MPF to (thisexp).
    MPF.powUiAssign(MPF base, long exp)
    Set this MPF to (baseexp).
    static MPF
    MPF.random2(long maxSize, long exp)
    Return an MPF whose value is a random integer of at most maxSize limbs, with long strings of zeros and ones in the binary representation.
    MPF.random2Assign(long maxSize, long exp)
    Set this MPF to a random integer of at most maxSize limbs, with long strings of zeros and ones in the binary representation.
    MPF.reldiff(MPF op)
    Return the relative difference between this and this, i.e., (abs(this-op)/this).
    Set this MPF to the relative difference between this and op, i.e., (abs(this-op)/this).
    MPF.reldiffAssign(MPF op1, MPF op2)
    Set this MPF to the relative difference between op1 and op2, i.e., (abs(op1-op2)/op1).
    MPF.set(double op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.set(long op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.set(MPF op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.set(MPQ op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.set(MPZ op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.set(BigDecimal op)
    Set this MPF to the big decimal op.
    MPF.setPrec(long prec)
    Set the precision of this MPF to be at least prec bits.
    MPF.setUi(long op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.setValue(double op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.setValue(long op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.setValue(MPF op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.setValue(MPQ op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.setValue(MPZ op)
    Set this MPF to op, possibly truncated according to precision.
    MPF.setValue(String str)
    Set this MPF to the value represented by the string str in decimal base, possibly truncated according to precision.
    MPF.setValue(String str, int base)
    Set this MPF to the number represented by the string str in the specified base, possibly truncated according to precision.
    Set this MPF to the big decimal op.
    MPF.sqrt()
    Return an MPF whose value is the square root of this.
    Set this MPF to its square root.
    MPF.sqrtAssign(MPF op)
    Set this MPF to the the square root of op.
    static MPF
    MPF.sqrtUi(long op)
    Return an MPF whose value is the square root of this.
    MPF.sqrtUiAssign(long op)
    Set this MPF to the the square root of op.
    MPF.sub(MPF op)
    Return an MPF whose value is (this - op).
    MPF.subAssign(MPF op)
    Set this MPF to (this - op)
    MPF.subAssign(MPF op1, MPF op2)
    Set this MPF to (op1 - op2).
    MPF.subUi(long op)
    Return an MPF whose value is (this - op).
    MPF.subUiAssign(long op)
    Set this MPF to (this - op)
    MPF.subUiAssign(MPF op1, long op2)
    Set this MPF to (op1 - op2).
    MPF.swap(MPF op)
    Swap the value of this MPF with the value of op.
    MPF.trunc()
    Return an MPF whose value is this rounded towards zero.
    Set this MPF to its value rounded towards zero.
    MPF.truncAssign(MPF op)
    Set this MPF to the value of op rounded towards zero.
    MPF.uiDiv(long op)
    Return an MPF whose value is (op / this).
    MPF.uiDivAssign(long op)
    Set this MPF to (op / this)
    MPF.uiDivAssign(long op1, MPF op2)
    Set this MPF to (op1 / op2).
    MPF.uiSub(long op)
    Return an MPF whose value is (op - this).
    MPF.uiSubAssign(long op)
    Set this MPF to (op - this)
    MPF.uiSubAssign(long op1, MPF op2)
    Set this MPF to (op1 - op2).
    static MPF
    MPF.urandomb(RandState s, long nbits)
    Return an MPF whose value is an uniformly distributed random float in the range from 0 included to 1 excluded.
    MPF.urandombAssign(RandState s, long nbits)
    Set this MPF to a uniformly distributed random float in the range from 0 included to 1 excluded.
    Methods in it.unich.jgmp that return types with arguments of type MPF
    Modifier and Type
    Method
    Description
    static org.javatuples.Pair<Integer,MPF>
    MPF.initSet(String str, int base)
    Return an MPF whose value is the number represented by the string str in the specified base, possibly truncated to the default precision.
    Methods in it.unich.jgmp with parameters of type MPF
    Modifier and Type
    Method
    Description
    MPF.absAssign(MPF op)
    Set this MPF to the absolute value of op.
    MPF.add(MPF op)
    Return an MPF whose value is (this + op).
    MPF.addAssign(MPF op)
    Set this MPF to (this + op)
    MPF.addAssign(MPF op1, MPF op2)
    Set this MPF to (op1 + op2).
    MPF.addUiAssign(MPF op1, long op2)
    Set this MPF to (op1 + op2).
    MPF.ceilAssign(MPF op)
    Set this MPF to the value of op rounded to the next higher integer.
    int
    MPF.cmp(MPF op)
    Compare this with op.
    int
    MPF.compareTo(MPF op)
    Compare this MPF with op.
    MPF.div(MPF op)
    Return an MPF whose value is (this / op).
    MPF.div2ExpAssign(MPF op, long b)
    Set this MPF to (op / 2b).
    MPF.divAssign(MPF op)
    Set this MPF to (this / op)
    MPF.divAssign(MPF op1, MPF op2)
    Set this MPF to (op1 / op2).
    MPF.divUiAssign(MPF op1, long op2)
    Set this MPF to (op1 / op2).
    MPF.floorAssign(MPF op)
    Set this MPF to the value of op rounded to the next lower integer.
    static MPF
    MPF.initSet(MPF op)
    Return an MPF whose value is op, possibly truncated to the default precision.
    MPF.mul(MPF op)
    Return an MPF whose value is (this * op).
    MPF.mul2ExpAssign(MPF op, long b)
    Set this MPF to (op * 2b).
    MPF.mulAssign(MPF op)
    Set this MPF to (this * op)
    MPF.mulAssign(MPF op1, MPF op2)
    Set this MPF to (op1 * op2).
    MPF.mulUiAssign(MPF op1, long op2)
    Set this MPF to (op1 * op2).
    MPF.negAssign(MPF op)
    Set this MPF to (- op).
    MPF.powUiAssign(MPF base, long exp)
    Set this MPF to (baseexp).
    MPF.reldiff(MPF op)
    Return the relative difference between this and this, i.e., (abs(this-op)/this).
    Set this MPF to the relative difference between this and op, i.e., (abs(this-op)/this).
    MPF.reldiffAssign(MPF op1, MPF op2)
    Set this MPF to the relative difference between op1 and op2, i.e., (abs(op1-op2)/op1).
    MPF.set(MPF op)
    Set this MPF to op, possibly truncated according to precision.
    MPQ.set(MPF op)
    Set this MPQ to op.
    MPZ.set(MPF op)
    Set this MPZ to the truncation of op.
    MPF.setValue(MPF op)
    Set this MPF to op, possibly truncated according to precision.
    MPQ.setValue(MPF op)
    Set this MPQ to op.
    MPZ.setValue(MPF op)
    Set this MPZ to the truncation op op.
    MPF.sqrtAssign(MPF op)
    Set this MPF to the the square root of op.
    MPF.sub(MPF op)
    Return an MPF whose value is (this - op).
    MPF.subAssign(MPF op)
    Set this MPF to (this - op)
    MPF.subAssign(MPF op1, MPF op2)
    Set this MPF to (op1 - op2).
    MPF.subUiAssign(MPF op1, long op2)
    Set this MPF to (op1 - op2).
    MPF.swap(MPF op)
    Swap the value of this MPF with the value of op.
    MPF.truncAssign(MPF op)
    Set this MPF to the value of op rounded towards zero.
    MPF.uiDivAssign(long op1, MPF op2)
    Set this MPF to (op1 / op2).
    MPF.uiSubAssign(long op1, MPF op2)
    Set this MPF to (op1 - op2).
    Constructors in it.unich.jgmp with parameters of type MPF
    Modifier
    Constructor
    Description
     
    MPF(MPF op)
    Build an MPF whose value is op, possibly truncated to the default precision.
     
    MPQ(MPF op)
    Build an MPQ whose value is op.
     
    MPZ(MPF op)
    Build an MPZ whose value is the truncation of op.