Check cosine function.
 
eg.Calculator  
key x()
enter
cos
enter
*
sqrt 0.8660

See AllPairsExample.