how to write a python program to integrate ax^2+bx+c from 0 to 1

Register or Login to View the Solution or Ask a Question

Question : Write a python program to integrate ax^2+bx+c from 0 to 1Solution :import scipy from scipy.integrate import quad def f(x): return a*x**2+b*x+c a=1 b=2 c=1 Answer = scipy.integrate.quad(f,0,1) print("Integral of ax^2+bx+c from 0 to 1 = ", Answer)OutputIntegral of…

This Question has been answered. 

Please Subscribe to See Answer or To Get Homework Help


Register or Login to View the Solution or Ask a Question