Triangle, if I know angle-side-side

3 examples   (2, 1, 0  solutions):

I can draw the triangles with this JavaScript file:

I used 5.9884, that is a rounded value. The picture is correct but the values 30.00025... and 93.55640... are calculated as if 59884 were an exact value (with 5.98845 I would get 29.99993... and 93.55755..., with 5.888835 I would get 30.00056... and 93.55526...; I could deduce that the rounded values are 30.00 and 93.56).

But I can change the output:

//  base = 160 (16 quadretti/squares), altezza/height = 100 (10 qua./squa.)
//  scegli/choose K (distance of base from left edge) = 0 or 10 or 20 or ... 
//  scegli/choose M: numero per cui moltiplicare a,b,c in modo che rimangano nel box
//                   number by which to multiply a,b,c so that they remain in the box
K = 20
a = 5.9884; b = 5; c = 3
M = 20
grid="grey"        // grid="grey"   -> grid="white" per nessuna griglia  / no grid
angle="white"      // angle="green" -> angle="white" per nessuna scritta sugli angoli / no note
side="red"        // side=="blue"  -> side="white"  per nessuna scritta sui lati / no note