fork download
  1. y1=[ 9.49110000e-004, 4.74145420e-004, 1.41847155e-008, 3.33228420e-028,
  2. 3.76352289e-081, 4.48206815e-193, 0.00000000e+000, 0.00000000e+000,
  3. 0.00000000e+000, 0.00000000e+000, 0.00000000e+000]
  4.  
  5. x=[ 112., 111.97667396, 111.90666665, 111.78989038, 111.62619837,
  6. 111.41538384, 111.15717866, 110.85125168, 110.49720654, 110.09457901,
  7. 109.64283388]
  8.  
  9. from scipy.integrate import simps
  10. b= simps(y1[::-1], x[::-1])
  11.  
  12. print b
Success #stdin #stdout 0.18s 30784KB
stdin
Standard input is empty
stdout
2.45630736235e-05