By Mark Narain Enzinger
Overview
This root claculator uses the Shifting nth root algorithm to calculate the square root of a number by calculating each of its decimal places one after the other.
This calculator can calculate up to 28 digits of a square root. The Number is limited, because of certain values, which grow and become bigger than a MaxSafeInt.
This program has also been written in Python.
Requirements
- node.js
Do:
$ npm -i
to install all dependencies
Links
Reference for testing of the sqrt(2):
Nemiroff and Bonell
GitHub: marknarain/root-calculator-typescript
Shifting nth root algorithm: Wikipedia
Leave a Reply