Created
January 5, 2019 03:16
-
-
Save DopamineDriven/7317d3679a9312a419cd49b28e230492 to your computer and use it in GitHub Desktop.
Determining the angle theta using force components Fx and Fy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
print("Solving for theta of force components x and y.") | |
x=input("input force component x:") | |
y=input("input force component y:") | |
x=float(x) | |
y=float(y) | |
z=math.atan(y/x) | |
theta=math.degrees(z) | |
print(theta) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment