Changeset 16358


Ignore:
Timestamp:
12/10/18 16:19:06 (7 months ago)
Author:
gkronber
Message:

#2948: adapted expected results for derivative calculator unit tests because the TreeSimplifier has been changed within ticket #2915

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/DeriveTest.cs

    r16294 r16358  
    113113        var t = new SymbolicExpressionTree(root);
    114114
    115         Assert.AreEqual("(('y' * 'z' * 60) / SQR(('y' * 'z' * 20)))", // actually 3 / (4y  5z) but simplifier is not smart enough to cancel numerator and denominator
    116                                                                       // 60 y z / y² z² 20² == 6 / y z 40 == 3 / y z 20
     115        Assert.AreEqual("(('y' * 'z' * 60) / (SQR('y') * SQR('z') * 400))", // actually 3 / (4y  5z) but simplifier is not smart enough to cancel numerator and denominator
     116                                                                             // 60 y z / y² z² 20² == 6 / y z 40 == 3 / y z 20
    117117          formatter.Format(DerivativeCalculator.Derive(t, "x")));
    118         Assert.AreEqual("(('x' * 'z' * (-60)) / SQR(('y' * 'z' * 20)))", // actually 3x * -(4 5 z) / (4y 5z)² = -3x / (20 y² z)
     118        Assert.AreEqual("(('x' * 'z' * (-60)) / (SQR('y') * SQR('z') * 400))", // actually 3x * -(4 5 z) / (4y 5z)² = -3x / (20 y² z)
    119119                                                                         // -3 4 5 x z / 4² y² 5² z² = -60 x z / 20² z² y² ==    -60 x z / y² z² 20²
    120120          formatter.Format(DerivativeCalculator.Derive(t, "y")));
    121         Assert.AreEqual("(('x' * 'y' * (-60)) / SQR(('y' * 'z' * 20)))",
     121        Assert.AreEqual("(('x' * 'y' * (-60)) / (SQR('y') * SQR('z') * 400))",
    122122          formatter.Format(DerivativeCalculator.Derive(t, "z")));
    123123      }
Note: See TracChangeset for help on using the changeset viewer.