【问题标题】:Solve for roots of equation that includes dependent/independent variables in Python?在 Python 中求解包含因/自变量的方程的根?
【发布时间】:2013-12-10 15:37:50
【问题描述】:

我要解决Y(x):

Y(x) = A - B*x + C*ln(A/Y(x))

where A, B, and C are defined

我不知道该怎么做,Python or mathematically。我想尝试使用 fsolve 或其他东西找到根源,但我认为我不能将 x and Y(x) 视为彼此独立。

请帮忙。

【问题讨论】:

  • 看起来更像是一个数学问题。您可以尝试通过mathematica.stackexchange.com寻求帮助
  • 提示:先弄清楚数学。 然后担心在代码中表达出来。

标签: python-3.x


【解决方案1】:

这样的方程不是可以用解析方式求解的简单方程(实际上只有一小部分定义明确的方程可以得到精确的解),所以应该用数值求解以获得近似值解决方案。

【讨论】:

    猜你喜欢
    • 2018-09-15
    • 2011-05-25
    • 1970-01-01
    • 2018-04-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-07
    • 1970-01-01
    相关资源
    最近更新 更多