Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x=[]
- y=[]
- e=float(input())
- a=float(input())
- v=0
- for i in range(0,4):
- x.append(a+v)
- y.append(math.exp(a+v))
- v+=0.01
- print(x,y)
- q=abs((a-e)/(x[1] - x[0]))
- print(q)
- print(math.exp(e))
- Rx=(((y[1]-y[0])-(y[2]-y[1]))/2) * q*(q-1)
- print(Rx)
Advertisement
Add Comment
Please, Sign In to add comment