Uses of Class
it.unich.jgmp.MPQ

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

    Classes in it.unich.jgmp that implement interfaces with type arguments of type MPQ
    Modifier and Type
    Class
    Description
    class 
    Multi-precision rational numbers.
    Methods in it.unich.jgmp that return MPQ
    Modifier and Type
    Method
    Description
    MPQ.abs()
    Return an MPQ whose value is the absolute value of this.
    MPQ.absAssign()
    Set this MPQ to its absolute value.
    MPQ.absAssign(MPQ op)
    Set this MPQ to the absolute value of op.
    MPQ.add(MPQ op)
    Return an MPQ whose value is (this + op).
    MPQ.addAssign(MPQ op)
    Set this MPQ to (this + op)
    MPQ.addAssign(MPQ op1, MPQ op2)
    Set this MPQ to (op1 + op2).
    MPQ.div(MPQ op)
    Return an MPQ whose value is (this / op).
    MPQ.div2Exp(long b)
    Return an MPQ whose value is (this / 2b).
    MPQ.div2ExpAssign(long b)
    Set this MPQ to (this / 2b).
    MPQ.div2ExpAssign(MPQ op, long b)
    Set this MPQ to (op / 2b).
    MPQ.divAssign(MPQ op)
    Set this MPQ to (this / op)
    MPQ.divAssign(MPQ op1, MPQ op2)
    Set this MPQ to (op1 / op2).
    static MPQ
    MPQ.init()
    Return an MPQ whose value is zero.
    MPQ.inv()
    Return an MPQ whose value is (1/this).
    MPQ.invAssign()
    Set this MPQ to its inverse.
    MPQ.invAssign(MPQ op)
    Set this MPQ to 1/op.
    MPQ.mul(MPQ op)
    Return an MPQ whose value is (this * op).
    MPQ.mul2Exp(long b)
    Return an MPQ whose value is (this * 2b).
    MPQ.mul2ExpAssign(long b)
    Set this MPQ to (this * 2b).
    MPQ.mul2ExpAssign(MPQ op, long b)
    Set this MPQ to (op * 2b).
    MPQ.mulAssign(MPQ op)
    Set this MPQ to (this * op)
    MPQ.mulAssign(MPQ op1, MPQ op2)
    Set this MPQ to (op1 * op2).
    MPQ.neg()
    Return an MPQ whose value is the quotient of (- this).
    MPQ.negAssign()
    Set this MPQ to its opposite.
    MPQ.negAssign(MPQ op)
    Set this MPQ to (- op).
    MPQ.set(double op)
    Set this MPQ to op.
    MPQ.set(long num, long den)
    Set this MPQ to (<num/>den).
    MPQ.set(MPF op)
    Set this MPQ to op.
    MPQ.set(MPQ op)
    Set this MPQ to op.
    MPQ.set(MPZ op)
    Set this MPQ to op.
    MPQ.setDen(MPZ den)
    Set the denominator of this to the value den.
    MPQ.setNum(MPZ num)
    Set the numerator of this to the value num.
    MPQ.setUi(long num, long den)
    Set this MPQ to (num/den).
    MPQ.setValue(double op)
    Set this MPQ to op op.
    MPQ.setValue(long op)
    Set this MPQ to op.
    MPQ.setValue(MPF op)
    Set this MPQ to op.
    MPQ.setValue(MPQ op)
    Set this MPQ to op.
    MPQ.setValue(String str)
    Set this MPQ to the value represented by the string str in decimal base.
    MPQ.setValue(String str, int base)
    Set this MPQ to the number represented by the string str in the specified base.
    MPQ.sub(MPQ op)
    Return an MPQ whose value is (this - op).
    MPQ.subAssign(MPQ op)
    Set this MPQ to (this - op)
    MPQ.subAssign(MPQ op1, MPQ op2)
    Set this MPQ to (op1 - op2).
    MPQ.swap(MPQ op)
    Swap the value of this MPQ with the value of op.
    Methods in it.unich.jgmp with parameters of type MPQ
    Modifier and Type
    Method
    Description
    MPQ.absAssign(MPQ op)
    Set this MPQ to the absolute value of op.
    MPQ.add(MPQ op)
    Return an MPQ whose value is (this + op).
    MPQ.addAssign(MPQ op)
    Set this MPQ to (this + op)
    MPQ.addAssign(MPQ op1, MPQ op2)
    Set this MPQ to (op1 + op2).
    int
    MPQ.cmp(MPQ op)
    Compare this with op.
    int
    MPQ.compareTo(MPQ op)
    Compare this MPQ with op.
    MPQ.div(MPQ op)
    Return an MPQ whose value is (this / op).
    MPQ.div2ExpAssign(MPQ op, long b)
    Set this MPQ to (op / 2b).
    MPQ.divAssign(MPQ op)
    Set this MPQ to (this / op)
    MPQ.divAssign(MPQ op1, MPQ op2)
    Set this MPQ to (op1 / op2).
    boolean
    MPQ.equal(MPQ op)
    Return true if this is equal to op, false otherwise.
    MPQ.invAssign(MPQ op)
    Set this MPQ to 1/op.
    MPQ.mul(MPQ op)
    Return an MPQ whose value is (this * op).
    MPQ.mul2ExpAssign(MPQ op, long b)
    Set this MPQ to (op * 2b).
    MPQ.mulAssign(MPQ op)
    Set this MPQ to (this * op)
    MPQ.mulAssign(MPQ op1, MPQ op2)
    Set this MPQ to (op1 * op2).
    MPQ.negAssign(MPQ op)
    Set this MPQ to (- op).
    MPF.set(MPQ op)
    Set this MPF to op, possibly truncated according to precision.
    MPQ.set(MPQ op)
    Set this MPQ to op.
    MPZ.set(MPQ op)
    Set this MPZ to the truncation of op.
    MPF.setValue(MPQ op)
    Set this MPF to op, possibly truncated according to precision.
    MPQ.setValue(MPQ op)
    Set this MPQ to op.
    MPZ.setValue(MPQ op)
    Set this MPZ to the truncation op op.
    MPQ.sub(MPQ op)
    Return an MPQ whose value is (this - op).
    MPQ.subAssign(MPQ op)
    Set this MPQ to (this - op)
    MPQ.subAssign(MPQ op1, MPQ op2)
    Set this MPQ to (op1 - op2).
    MPQ.swap(MPQ op)
    Swap the value of this MPQ with the value of op.
    Constructors in it.unich.jgmp with parameters of type MPQ
    Modifier
    Constructor
    Description
     
    MPF(MPQ op)
    Build an MPF whose value is op, possibly truncated to the default precision.
     
    MPQ(MPQ op)
    Build an MPQ whose value is op.
     
    MPZ(MPQ op)
    Build an MPZ whose value is the truncation of op.