Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
先生,
是否可以使用变量的值进行替换?
例子:
x = 符号(“x”)
c = IndexedBase("c")
eq1 = c[0] + c[1]*x+c[2]*x**2
x1 = 2
eq1.subs(x,x1)
没变化。我们如何使用 x1 的值,这里是 2 ?
真挚地。