python - Integration of a function of two variables -


i have function func(rp,pi) i have values. have values of rp , pi.

i need integrate function within limits of 0 pi

enter image description here

how go using quad scipy solve this? doubt have is, how quad know integral limits pi , not rp?

i tried:

from scipy.integrate import quad  integral = []  in func:     result,error = quad(lambda func:a,0,pi)     integral.append(result)  integral = np.array(integral) 

here func list has values of function. give me values, not sure if right?

here download link file rp,pi,func. first column rp, second column pi , third column func


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -