Advertisement
ImperfectionistCoder

Exercice Integration

Jul 4th, 2021
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. #Q10
  2. def Imoy(mesures):
  3.     n=len(mesures)
  4.     tf=[i*2 for i in range(n)]
  5.     return trapz(mesures,tf)/tf[len(tf)-1]
  6. #Q11
  7. def Iec(mesures):
  8.     Im=Imoy(mesures)
  9.     m=[(i-Im)**2 for i in mesures]
  10.     return sqrt(Imoy(m))
  11.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement