I'm trying to develop a program that contains a set (or list) of defined functions, such as follows:
x = ["f1(x)=x^2", "f2(x)=2x+1", ...]
Afterward, I can use matplotlib and render them, etc.
Questions
- How might I replace the string with objects? For example,
"x"
with anx
variable such that I can render the equations in matplotlib? - Are there any existing modules out there that accomplish what I'm trying to do?