Skip to content

Commit

Permalink
Don't need constants for power.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescrake-merani committed Oct 10, 2024
1 parent 5e1294f commit 7356e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sasdata/quantities/operations_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_d_xyz_by_components_should_be_1():

@pytest.mark.parametrize("f, expected_derivative", [
(Mul(x, x), Mul(Constant(2), x)),
(Add(Mul(Constant(2), Pow(x, Constant(2))), Add(Mul(Constant(5), x), Constant(3))),
(Add(Mul(Constant(2), Pow(x, 2)), Add(Mul(Constant(5), x), Constant(3))),
Add(Mul(Constant(4), x), Constant(5)))
])
def test_expected_derivative(f: Operation, expected_derivative: Operation):
Expand Down

0 comments on commit 7356e94

Please sign in to comment.