Peque - 1 year ago 340

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`

Recommended for you: Get network issues from **WhatsUp Gold**. **Not end users.**

Recommended from our users: **Dynamic Network Monitoring from WhatsUp Gold from IPSwitch**. ** Free Download**