Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/13/21 17:49:34 (2 years ago)
Author:
gkronber
Message:

#3140: made several more changes for the constant -> number branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3140_NumberSymbol/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/IntervalInterpreter.cs

    r18114 r18115  
    326326          !(n.Symbol is Variable) &&
    327327          !(n.Symbol is Number) &&
     328          !(n.Symbol is Constant) &&
    328329          !(n.Symbol is StartSymbol) &&
    329330          !(n.Symbol is Addition) &&
     
    347348        else if (n.Symbol is Power) {
    348349          // only integer exponents are supported
    349           var exp = n.GetSubtree(1) as NumberTreeNode;
    350           if (exp == null || exp.Value != Math.Truncate(exp.Value)) return false;
     350          var exponent = n.GetSubtree(1) as INumericTreeNode;
     351          if (exponent == null || exponent.Value != Math.Truncate(exponent.Value)) return false;
    351352        }
    352353      }
Note: See TracChangeset for help on using the changeset viewer.