Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/17/16 16:20:08 (8 years ago)
Author:
gkronber
Message:

#2650: added support for factor variables to Excel formatter and Excel exporter as well as to the Latex formatter and consequently the mathematical representation view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeSimplifier.cs

    r14251 r14259  
    3535  public class SymbolicDataAnalysisExpressionTreeSimplifier {
    3636    private Addition addSymbol = new Addition();
    37     private Subtraction subSymbol = new Subtraction();
    3837    private Multiplication mulSymbol = new Multiplication();
    3938    private Division divSymbol = new Division();
     
    10341033        return a;
    10351034      } else if (IsConstant(b) && IsAddition(a) ||
    1036           IsFactor(a) && IsAddition(b) ||
    1037           IsAddition(b) && IsFactor(a)) {
     1035          IsFactor(b) && IsAddition(a)) {
    10381036        // multiply constants into additions
    10391037        return a.Subtrees.Select(x => MakeProduct(x, b)).Aggregate((c, d) => MakeSum(c, d));
Note: See TracChangeset for help on using the changeset viewer.