From d984fca8eb5e53acd9411d05ff3eaed457f8ea36 Mon Sep 17 00:00:00 2001 From: snowy Date: Thu, 29 Aug 2024 19:00:01 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=96=B0=E5=A2=9E=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=9F=AF=E9=87=8C=E5=8C=96=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mbcp/mp_math/equation.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mbcp/mp_math/equation.py b/mbcp/mp_math/equation.py index 869f9bc..0a9f719 100644 --- a/mbcp/mp_math/equation.py +++ b/mbcp/mp_math/equation.py @@ -73,7 +73,14 @@ def get_partial_derivative_func(func: MultiVarsFunc, var: int | tuple[int, ...], return partial_derivative_func elif isinstance(var, tuple): def high_order_partial_derivative_func(*args: Var) -> Var: - """@litedoc-hide""" + """ + @litedoc-hide + 求高阶偏导函数 + Args: + *args: 参数 + Returns: + 高阶偏导数值 + """ result_func = func for v in var: result_func = get_partial_derivative_func(result_func, v, epsilon)