Skip to content

Commit

Permalink
Update FullTSQuadraticSeries.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JaapvanEkris authored Nov 27, 2023
1 parent a48eb2e commit bddc361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/engine/utils/FullTSQuadraticSeries.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ test('Quadratic Approximation on function y = 4 * Math.pow(x, 2) + 4 * x + 4, wi
dataSeries.push(-5, 83)
testCoefficientA(dataSeries, 3.8666666666666667)
testCoefficientB(dataSeries, 1.8666666666666742)
testCoefficientC(dataSeries, 4)
testCoefficientC(dataSeries, -4.111111111111047)
dataSeries.push(-4, 53)
testCoefficientA(dataSeries, 4)
testCoefficientB(dataSeries, 4)
Expand Down Expand Up @@ -285,7 +285,7 @@ test('Quadratic Approximation on function y = 4 * Math.pow(x, 2) + 4 * x + 4, wi
dataSeries.push(-2, 3) // SECOND SPIKE -9
testCoefficientA(dataSeries, 3.9714285714285715)
testCoefficientB(dataSeries, 3.78571428571429) // Coefficient B seems to take a hit anyway
testCoefficientC(dataSeries, 5.9999999999999964) // We get a 5.9999999999999964 instead of 4, which is quite acceptable (especially since ORM ignores the C)
testCoefficientC(dataSeries, 5.09047619047621) // We get a 5.9999999999999964 instead of 4, which is quite acceptable (especially since ORM ignores the C)
dataSeries.push(-1, 3)
testCoefficientA(dataSeries, 4)
testCoefficientB(dataSeries, 4)
Expand Down

0 comments on commit bddc361

Please sign in to comment.