add partial derivative

This commit is contained in:
2024-08-26 00:11:02 +08:00
parent cc06c34967
commit d9c41cd311
3 changed files with 15 additions and 13 deletions

View File

@ -20,7 +20,7 @@ class TestPartialDerivative:
from mbcp.mp_math.utils import Approx
from mbcp.mp_math.equation import get_partial_derivative_func
partial_derivative_func = get_partial_derivative_func(three_var_func, (0,))
partial_derivative_func = get_partial_derivative_func(three_var_func, 0)
# assert partial_derivative_func(1, 2, 3) == 4.0
def df_dx(x, y):