How does a calculator calculate square roots and stuff like sin(10)? Does it do it mathamaticaly?