Example #1
0
 public FractionElement(MathElement numerator, MathElement denominator, bool isNegative = false)
     : base(isNegative, numerator.IsConstant && denominator.IsConstant)
 {
     Numerator   = numerator;
     Denominator = denominator;
 }
Example #2
0
 public SinElement(MathElement argument, bool isNegative = false)
     : base(isNegative, argument.IsConstant)
 {
     Argument = argument;
 }
 public PowerElement(MathElement @base, MathElement exponent, bool isNegative = false)
     : base(isNegative, @base.IsConstant && exponent.IsConstant)
 {
     Base     = @base;
     Exponent = exponent;
 }