小编Ala*_*din的帖子

求解方程并用 python 绘制结果

假设我有一个方程,例如

10 * x ** 2 - 7 * x + 3 == 2 * y + y ** 2

我想求解y,然后绘制从 0 到 1的y对比图。我如何在 Python 中做到这一点?xx

我知道如何在 Mathematica 中执行此操作,但我正在迁移到 Python。在 Mathematica 中只有一行

Plot[y /. Solve[10 x^2 - 7 x + 3 == 2 y + y^2, y], {x, 0, 1}]
Run Code Online (Sandbox Code Playgroud)

python matplotlib solver sympy

1
推荐指数
1
解决办法
310
查看次数

标签 统计

matplotlib ×1

python ×1

solver ×1

sympy ×1