Calculators don't have brains. It can't outsmart humans in theory. However, how does calculators find the solution for something like sin(21.3)? Also, how can it find the square root of a number?

Does it have a chart with all the possible values? Or does it use some advanced equation?

I heard some people say that it uses Taylor series, but what exactly is that? Some explanations and theories would be helpful.