Peque - 9 months ago 131

Python Question

With SymPy, I can plot a function with:

`f, a = symbols('f a')`

f = a + 10

plot(f)

However, if I define the function as:

`f, a, b = symbols('f a b')`

f = a + b

b = 10

plot(f)

Then I get an error stating:

`ValueError: The same variable should be used in all univariate`

expressions being plotted.

How can I plot

`f`

`f = a + b`

`b`