whiplk

[CODE] - Coeficiênte angular

May 15th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. a = float(input('Insira valor de x1'))
  2. b = float(input('Insira valor de y1'))
  3. c = float(input('Insira valor de x2'))
  4. d = float(input('Insira valor de y2'))
  5.  
  6. def coef_ang(x, y, x_, y_):
  7.     res = (y_ - y) / (x_ - x)
  8.     return (res)
  9.  
  10. valor_coef = coef_ang(a, b, c, d)
  11. print(valor_coef)
Advertisement
Add Comment
Please, Sign In to add comment