Example #1
0
 public override mpc SubtractFrom(mpc x, RoundingMode?roundingMode = null)
 {
     mpir.mpc_sub(this, x, this, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode));
     return(this);
 }
Example #2
0
 public override mpc Add(mpc x, RoundingMode?roundingMode = null)
 {
     mpir.mpc_add(this, this, x, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode));
     return(this);
 }
Example #3
0
 public override mpc Power(mpc exponent, RoundingMode?roundingMode = null)
 {
     mpir.mpc_pow(this, this, exponent, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode));
     return(this);
 }
Example #4
0
 public override mpc DivideFrom(mpc x, RoundingMode?roundingMode = null)
 {
     mpir.mpc_div(this, x, this, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode));
     return(this);
 }
Example #5
0
 public override mpc Fma(mpc x, mpc y, RoundingMode?roundingMode = null)
 {
     mpir.mpc_fma(this, this, x, y, (int)roundingMode.GetValueOrDefault(DefaultRoundingMode));
     return(this);
 }
Example #6
0
 internal xmpc(mpc op) : base(precisionRe: op.PrecisionRe, precisionIm: op.PrecisionIm)
 {
     mpir.mpc_set(this, op, (int)DefaultRoundingMode);
 }