Viewing a single comment thread. View all comments

FearlessFaa t1_j2455m7 wrote

Although partial sums of Taylor series use basic arithmetic operations so one could post an answer that calculates partial sums of Taylor series. We could then compare that with the average method described by other answers.

2

cthulhu944 t1_j24ssd7 wrote

You can use the average method to compute a square root, but the question was how a calculator computes it. That is definitely done by using a taylor series.

1

FearlessFaa t1_j24vms7 wrote

I think to the question it is unrelevant how physical calculators do it since physical calculators are not used much anymore. We are interested how to calculate square root i.e. different algorithms (=methods) used to calculate square root. It’s unrelevant what specific method calculators use.

1

cthulhu944 t1_j2a8kps wrote

Maybe I should clarify my point then. Taylor series is the way pretty much every system (calculator, computer, cell phone, etc) computes a square root. You can look into the c stadard library and find the the sqrt funtion is implemented with a taylor series. This is because it is computationally efficient and provides a predictable level of accuracy. The estimation algorithm that every other person on this thread has mentioned is really only used by people wanting to do a manual computation, or as an exercise in an introductory computer science class.

1