SHARE
TWEET

wifi

bustamam May 27th, 2020 (edited) 954 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from scipy.integrate import quad
  2. from math import pow, cos, sqrt
  3.  
  4. def func(x):
  5.     return (pow(x, 3) * cos(x/2) + 1/2) * sqrt(4 - x * x)
  6.  
  7. ans, err = quad(func, -2, 2)
  8. print("ans:" + str(ans).replace('.','')[:10])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top