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

Question : Write a python program to integrate ax^2+bx+c from 0 to 1 Solution : 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 = ",…

This Question has been answered. 

Please Login or Register to See The Answer