This line is supposed to give the three angles of the triangle with the three sides. I tried this in my law of cosines program, but I don't always get the correct results:

```
: Degrees
: cos⁻¹({(B²+C²-A²)/(2BC),(A²+C²-B²)/(2AC),(A²+B²-C²)/(2AB)})
```

^^ This is just the law of cosines in a list with a dim of three. I am pretty sure I got this right

`1-cos⁻¹(sin(90X))/90`

^^ This is a graph that is zigzaggy-turning on every odd number. (I added it just because I thought it was cool :)). I incorporated it to see if it make the number will stay in the domain, because of my inexperience in the law of cosine. Could you tell me how to make it so I don't get the stupid domain errors any more?

What can I do so that this will work, instead of giving me domain errors or incorrect results?

Please reply if you don't understand something, or have a solution. I am just so frustrated with it, so don't tell me how stupid I am ;).