Cosine Rules for angles and sides

Find missing side or angle using the cosine rule. Make sure that you input angles as radians.

Usage

import tiquations
tiquations.cosine_side_a(b,c,angle_A)
tiquations.cosine_side_b(a,c,angle_B)
tiquations.cosine_side_c(a,b,angle_C)
tiquations.cosine_angle_A(a,b,c)
tiquations.cosine_angle_B(a,b,c)
tiquations.cosine_angle_C(a,b,c)

Example

import tiquations
tiquations.cosine_angle_C(12,42,43)
>>>1.512231107844341