I know I should do my homework on my own but I simply cant get my homework to work the way I want it to:
from __future__ import division
import turtle
import math
def triangle(c,a,b,beta,gamma):
turtle.forward(c)
turtle.right(180+beta)
turtle.forward(a)
turtle.right(beta)
turtle.left(beta+gamma)
turtle.forward(b)
turtle.left(beta+gamma)
def general_abc(a,b,c):
alpha = math.degrees(math.acos(a/c))
print alpha
beta = math.degrees(math.asin(b/c))
print beta
general_abc(50,60,90)
The function general_abc is supposed to calculate the degrees of the angles when knowing all 3 sides. I am mainly searching for the math behind it. With lots of googling I just don't seem to find the right keywords to use. Please tell me the formulas I have to look into..