Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/07/20 12:05:41 (4 years ago)
Author:
chaider
Message:

#3073

  • Added HyperbolicTangent as known symbol to IntervalInterpreter and DerivativeCalculator
  • Removed Cube- and Cuberoot-Symbol from IntervalArithmeticGrammar and set Power- and Root-Symbol to disabled
Location:
branches/3073_IA_constraint_splitting/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3073_IA_constraint_splitting/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/DerivativeCalculator.cs

    r17180 r17650  
    265265          !(n.Symbol is Absolute) &&
    266266          !(n.Symbol is AnalyticQuotient) &&
     267          !(n.Symbol is HyperbolicTangent) &&
    267268          !(n.Symbol is Sine) &&
    268269          !(n.Symbol is Cosine) &&
  • branches/3073_IA_constraint_splitting/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Grammars/IntervalArithmeticGrammar.cs

    r17628 r17650  
    11using System.Collections.Generic;
     2using System.Linq;
    23using HEAL.Attic;
    34using HeuristicLab.Common;
     
    3940      var root     = new Root();
    4041      var sqrt     = new SquareRoot();
    41       var cube     = new Cube();
    42       var cubeRoot = new CubeRoot();
    4342      var exp      = new Exponential();
    4443      var tanh     = new HyperbolicTangent();
     
    5554      //all other symbols
    5655      var allSymbols = new List<Symbol> {
    57         add, sub, mul, div, constant, variableSymbol, sin, cos, tan, log, pow, square, root, sqrt, cube, cubeRoot, exp,
     56        add, sub, mul, div, constant, variableSymbol, sin, cos, tan, log, pow, square, root, sqrt, exp,
    5857        tanh
    5958      };
     
    6261      var trigonometricSymbols             = new List<Symbol> {sin, cos, tan, tanh};
    6362      var exponentialAndLogarithmicSymbols = new List<Symbol> {exp, log};
    64       var powerSymbols                     = new List<Symbol> {square, pow, sqrt, root, cube, cubeRoot};
     63      var powerSymbols                     = new List<Symbol> {square, pow, sqrt, root};
    6564      var realValueSymbols = new List<Symbol>
    6665        {add, sub, mul, div, sin, cos, tan, tanh, exp, log, variableSymbol, constant};
     
    8685      SetSubtreeCount(root, 2, 2);
    8786      SetSubtreeCount(square, 1, 1);
    88       SetSubtreeCount(cube, 1, 1);
    8987      SetSubtreeCount(sqrt, 1, 1);
    90       SetSubtreeCount(cubeRoot, 1, 1);
    9188
    9289      #endregion
     
    121118      }
    122119      #endregion
     120
     121      Symbols.First(s => s is Power).Enabled = false;
     122      Symbols.First(s => s is Root).Enabled = false;
    123123    }
    124124  }
  • branches/3073_IA_constraint_splitting/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/IntervalInterpreter.cs

    r17637 r17650  
    461461          !(n.Symbol is Cosine) &&
    462462          !(n.Symbol is Tangent) &&
     463          !(n.Symbol is HyperbolicTangent) &&
    463464          !(n.Symbol is Logarithm) &&
    464465          !(n.Symbol is Exponential) &&
Note: See TracChangeset for help on using the changeset viewer.