CraigC

04-10-2004, 10:10 PM

I'm just playing with Python 2.3, trying to get re-acquainted, and i've come across an extremely dumb problem, I don't know how to un-cosine (?) an angle on anything other than my calculator :p

I'm just writing something to solve some simple geometry (yeah, I'm pretty bored...), and when writing something to solve the formula:

cos (angle) = (a.b) / (|a|*|b|)

I can't get the angle because I don't know any function in any language equivalent to what cos^-1 would do on my calculator :p

Anybody know how to do it?

I'm just writing something to solve some simple geometry (yeah, I'm pretty bored...), and when writing something to solve the formula:

cos (angle) = (a.b) / (|a|*|b|)

I can't get the angle because I don't know any function in any language equivalent to what cos^-1 would do on my calculator :p

Anybody know how to do it?