Advertisement
bustamam

wifi

May 27th, 2020
1,551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  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])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement