Disclaimer: total noob here, please keep it as simple as possible My plan was to use scipy.integrate.quad() and eval() (code inection won’t be a problem in my case). This works fine when the only variable in the equation is the integration variable: Adding addtional variables works as long as they are defined: However if i try to give eval() those
Tag: numerical-integration
Plot with variable limit of integration in python
I have function f(x) and I want to integrate the function from 0 to some point x in the interval (0,2). I know how to solve the problem in mathematica, however I don’t know how to solve this problem in python. Mathematica My code in python: How can I do exactly the same in python? Answer quads inputs are f,