Skip to content

Instantly share code, notes, and snippets.

@DopamineDriven
Created January 5, 2019 03:16
Show Gist options
  • Save DopamineDriven/7317d3679a9312a419cd49b28e230492 to your computer and use it in GitHub Desktop.
Save DopamineDriven/7317d3679a9312a419cd49b28e230492 to your computer and use it in GitHub Desktop.
Determining the angle theta using force components Fx and Fy
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