Answers for "calculate integral python"

0

calculate integral python

from scipy.integrate import quad 
result = quad(my_function, a, b)

"""
 quad    1-Dim function
 dblquad, tplquad, nquad 2, 3, N-Dim respectively  

 my_function is a Python-def function 
 a special function from scipy (check documentation)
 or a lambda function
 a, b: integration interval
"""
Posted by: Guest on May-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language