Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/06/18 08:56:14 (6 years ago)
Author:
gkronber
Message:

#2948 changed unit test cases to assert results of derivative calculations. Fixed bug in deriving sqrt(x)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/DerivativeCalculator.cs

    r16206 r16213  
    120120        var f = (ISymbolicExpressionTreeNode)branch.Clone();
    121121        var u = (ISymbolicExpressionTreeNode)branch.GetSubtree(0).Clone();
    122         return Div(CreateConstant(1.0), Product(Product(CreateConstant(2.0), f), Derive(u, variableName)));
     122        return Product(Div(CreateConstant(1.0), Product(CreateConstant(2.0), f)), Derive(u, variableName));
    123123      }
    124124      if (branch.Symbol is Sine) {
Note: See TracChangeset for help on using the changeset viewer.