Mar-27-2019, 01:40 PM
(This post was last modified: Mar-27-2019, 01:41 PM by gontajones.)
In fact
And it returns a Tuple:
BTW I'm just checking the code...not the math!
c
is the return of the integrate.quad()
from scipy.integrate.quad.And it returns a Tuple:
>>> c= integrate.quad(f,0,1) >>> print(c) (0.33333333333333337, 3.700743415417189e-15)So you need to get the first element of this tuple (index=0) to get only the integral of function
f
.BTW I'm just checking the code...not the math!