public virtual mpc Power(mpfr exponent, RoundingMode?roundingMode = null) { var c = new mpc(precisionRe: PrecisionRe, precisionIm: PrecisionIm); mpir.mpc_pow_fr(c, this, exponent, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(c); }
public mpfr Norm(mpfr.RoundingMode?roundingMode = null) { var fr = new mpfr(precision: Math.Max(PrecisionRe, PrecisionIm)); mpir.mpc_norm(fr, this, (int)roundingMode.GetValueOrDefault(mpfr.DefaultRoundingMode)); return(fr); }
public virtual mpc DivideFrom(mpfr x, RoundingMode?roundingMode = null) { var c = new mpc(precisionRe: Math.Max(PrecisionRe, x.Precision), precisionIm: Math.Max(PrecisionIm, x.Precision)); mpir.mpc_fr_div(c, x, this, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(c); }
public virtual mpc Multiply(mpfr x, RoundingMode?roundingMode = null) { var c = new mpc(precisionRe: Math.Max(PrecisionRe, x.Precision), precisionIm: Math.Max(PrecisionIm, x.Precision)); mpir.mpc_mul_fr(c, this, x, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(c); }
public override mpfr Remainder(mpfr y, RoundingMode?roundingMode = null) { mpir.mpfr_remainder(this, this, y, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
public override mpfr Fms(mpfr x, mpfr y, RoundingMode?roundingMode = null) { mpir.mpfr_fms(this, this, x, y, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
public override mpfr PositiveDifference(mpfr x, RoundingMode?roundingMode = null) { mpir.mpfr_dim(this, this, x, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
public override mpfr Power(mpfr exponent, RoundingMode?roundingMode = null) { mpir.mpfr_pow(this, this, exponent, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
public override mpfr DivideFrom(mpfr x, RoundingMode?roundingMode = null) { mpir.mpfr_div(this, x, this, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
public mpc(mpfr re, mpfr im, long?precisionRe = null, long?precisionIm = null, RoundingMode?roundingMode = null) : this(precisionRe : precisionRe, precisionIm : precisionIm) { mpir.mpc_set_fr_fr(this, re, im, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); }
public override mpfr CopySignBit(mpfr sign, RoundingMode?roundingMode = null) { mpir.mpfr_copysign(this, this, sign, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
public mpc(mpfr op, long?precision = null, RoundingMode?roundingMode = null) : this(precision : precision) { mpir.mpc_set_fr(this, op, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); }
public static int Compare(mpfr x, mpfr y) { return(x.CompareTo(y)); }
public override mpfr RemainderQuotient(mpfr y, out int q, RoundingMode?roundingMode = null) { mpir.mpfr_remquo(this, out q, this, y, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
internal xmpfr(mpfr op) : base(precision: op.Precision) { mpir.mpfr_set(this, op, (int)DefaultRoundingMode); }
public override mpfr NextToward(mpfr y) { mpir.mpfr_nexttoward(this, y); return(this); }
public override mpfr Multiply(mpfr x, RoundingMode?roundingMode = null) { mpir.mpfr_mul(this, this, x, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
public override mpfr Subtract(mpfr x, RoundingMode?roundingMode = null) { mpir.mpfr_sub(this, this, x, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }
public override mpc Add(mpfr x, RoundingMode?roundingMode = null) { mpir.mpc_add_fr(this, this, x, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode)); return(this); }