如何在 Sage 中简化以下表达式?

问题描述 投票:0回答:1

通过对 0 处的函数求导,我在 Sage 中得到了以下方程。

(b - f(0))*(c - f(0))*D[0](f)(0) - 1 == 0

如何制作鼠尾草

  1. 代入 f(0) = b+c

  2. 简化并求解 D[0](f)(0)?

我试过了

equation = (b - f(0))*(c - f(0))*D[0](f)(0) - 1 == 0
new_equation = equation.subs({f(0): b+c})
solve(new_equation, D[0](f)(0))

我收到以下错误

Substitution using function-call syntax and unnamed arguments has been removed. You can use named arguments instead, like EXPR(x=..., y=...)
python symbolic-math sage
1个回答
0
投票

无论是SageMath 10.2还是SageMath 10.4,输入以下内容

b, c = SR.var('b, c')
f = function('f')
equation = (b - f(0))*(c - f(0))*D[0](f)(0) - 1 == 0
new_equation = equation.subs({f(0): b + c})
solve(new_equation, D[0](f)(0))

给出以下输出

[D[0](f)(0) == 1/(b*c)]

您在使用哪个版本的 SageMath 时遇到问题?

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.