public void Simplify() { if (TermCoef.IsZero()) { TermCoef = Expr.INT_ZERO; } }
public GaSymMultivector ToMultivector() { return(TermCoef.IsZero() ? GaSymMultivector.CreateZero(GaSpaceDimension) : GaSymMultivector.CreateTerm(GaSpaceDimension, TermId, TermCoef)); }
public bool IsZero() { return(TermCoef.IsZero()); }
public bool IsScalar() { return(TermId == 0 || TermCoef.IsZero()); }