Uses of Class
it.unich.jgmp.MPQ
Packages that use MPQ
-
Uses of MPQ in it.unich.jgmp
Classes in it.unich.jgmp that implement interfaces with type arguments of type MPQMethods in it.unich.jgmp that return MPQModifier and TypeMethodDescriptionMPQ.abs()Return anMPQwhose value is the absolute value ofthis.MPQ.absAssign()Set thisMPQto its absolute value.Set thisMPQto the absolute value ofop.Return anMPQwhose value is(this + op).Set thisMPQto(this + op)Set thisMPQto(op1 + op2).Return anMPQwhose value is(this / op).MPQ.div2Exp(long b) Return anMPQwhose value is(this / 2b).MPQ.div2ExpAssign(long b) Set thisMPQto(this / 2b).MPQ.div2ExpAssign(MPQ op, long b) Set thisMPQto(op / 2b).Set thisMPQto(this / op)Set thisMPQto(op1 / op2).static MPQMPQ.init()Return anMPQwhose value is zero.MPQ.inv()Return anMPQwhose value is(1/this).MPQ.invAssign()Set thisMPQto its inverse.Set thisMPQto1/op.Return anMPQwhose value is(this * op).MPQ.mul2Exp(long b) Return anMPQwhose value is(this * 2b).MPQ.mul2ExpAssign(long b) Set thisMPQto(this * 2b).MPQ.mul2ExpAssign(MPQ op, long b) Set thisMPQto(op * 2b).Set thisMPQto(this * op)Set thisMPQto(op1 * op2).MPQ.neg()Return anMPQwhose value is the quotient of(- this).MPQ.negAssign()Set thisMPQto its opposite.Set thisMPQto(- op).MPQ.set(double op) Set thisMPQtoop.MPQ.set(long num, long den) Set thisMPQto(<num/>den).Set thisMPQtoop.Set thisMPQtoop.Set thisMPQtoop.Set the denominator ofthisto the valueden.Set the numerator ofthisto the valuenum.MPQ.setUi(long num, long den) Set thisMPQto(num/den).MPQ.setValue(double op) Set thisMPQto opop.MPQ.setValue(long op) Set thisMPQtoop.Set thisMPQtoop.Set thisMPQtoop.Set thisMPQto the value represented by the stringstrin decimal base.Set thisMPQto the number represented by the stringstrin the specifiedbase.Return anMPQwhose value is(this - op).Set thisMPQto(this - op)Set thisMPQto(op1 - op2).Swap the value of thisMPQwith the value ofop.Methods in it.unich.jgmp with parameters of type MPQModifier and TypeMethodDescriptionSet thisMPQto the absolute value ofop.Return anMPQwhose value is(this + op).Set thisMPQto(this + op)Set thisMPQto(op1 + op2).intComparethiswithop.intCompare thisMPQwithop.Return anMPQwhose value is(this / op).MPQ.div2ExpAssign(MPQ op, long b) Set thisMPQto(op / 2b).Set thisMPQto(this / op)Set thisMPQto(op1 / op2).booleanReturn true ifthisis equal toop, false otherwise.Set thisMPQto1/op.Return anMPQwhose value is(this * op).MPQ.mul2ExpAssign(MPQ op, long b) Set thisMPQto(op * 2b).Set thisMPQto(this * op)Set thisMPQto(op1 * op2).Set thisMPQto(- op).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.Return anMPQwhose value is(this - op).Set thisMPQto(this - op)Set thisMPQto(op1 - op2).Swap the value of thisMPQwith the value ofop.Constructors in it.unich.jgmp with parameters of type MPQ