grml: ~ # wcalc Enter an expression to evaluate, q to quit, or ? for help:

-> atan 1 = 45

-> tan 1 = 0.0174551

-> tan 45 =

0.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999994-> tan -45.0000 =

-0.999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999994

-> tan 45.0001 = 1

(Thinking about the software for fluxgate compass).