TheAceHome

Untitled

Feb 24th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import math
  2. x=[]
  3. y=[]
  4. e=float(input())
  5. a=float(input())
  6. v=0
  7. for i in range(0,4):
  8. x.append(a+v)
  9. y.append(math.exp(a+v))
  10. v+=0.01
  11. print(x,y)
  12. q=abs((a-e)/(x[1] - x[0]))
  13. print(q)
  14. print(math.exp(e))
  15. Rx=(((y[1]-y[0])-(y[2]-y[1]))/2) * q*(q-1)
  16. print(Rx)
Advertisement
Add Comment
Please, Sign In to add comment