Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Nome do aluno:João Pedro Fonseca do Amaral
- # Matrícula:96894
- # Data:22/03/2018
- # (calcula equações)
- import math
- g = 9.80665
- v0= float(input("Type the value of v0 (km/h):"))
- theta= float(input("Type the value of theta (degrees):"))
- v0= v0/ 3.6
- theta= math.radians(theta)
- Xmax= ((v0**2)*(math.sin(2*theta)))/g
- print('Maximum range = %0.3f' % Xmax, 'meters')
- Ymax= ((v0)*(math.sin(theta)))**2/(2*g)
- print('Maximum height = %0.3f' % Ymax, 'meters')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement