Пример #1
0
 public void Simplify()
 {
     if (TermCoef.IsZero())
     {
         TermCoef = Expr.INT_ZERO;
     }
 }
Пример #2
0
 public GaSymMultivector ToMultivector()
 {
     return(TermCoef.IsZero()
         ? GaSymMultivector.CreateZero(GaSpaceDimension)
         : GaSymMultivector.CreateTerm(GaSpaceDimension, TermId, TermCoef));
 }
Пример #3
0
 public bool IsZero()
 {
     return(TermCoef.IsZero());
 }
Пример #4
0
 public bool IsScalar()
 {
     return(TermId == 0 || TermCoef.IsZero());
 }