Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = float(input('Insira valor de x1'))
- b = float(input('Insira valor de y1'))
- c = float(input('Insira valor de x2'))
- d = float(input('Insira valor de y2'))
- def coef_ang(x, y, x_, y_):
- res = (y_ - y) / (x_ - x)
- return (res)
- valor_coef = coef_ang(a, b, c, d)
- print(valor_coef)
Advertisement
Add Comment
Please, Sign In to add comment