Rational math library and calculator (calc.ratmath.com)
A rational math library in JavaScript with an accompanying web calculator. It includes a Stern-Brocot tree exploration that visualizes good rational approximations and how they tie into continued fractions and mediants; for example, typing x^2 and following the path toward x^2 = 2 yields the continued fraction representation of the square root of 2.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Rational math library and calculator (calc.ratmath.com)
A rational math library in JavaScript with an accompanying web calculator. It includes a Stern-Brocot tree exploration that visualizes good rational approximations and how they tie into continued fractions and mediants; for example, typing x^2 and following the path toward x^2 = 2 yields the continued fraction representation of the square root of 2.
Posted by @jostylr · Original source ↗
Source text · @jostylr · · Source ↗
I have been managing Claude to work on a rational math library in JavaScript: https://calc.ratmath.com I am particularly enjoying the Stern-Brocot tree exploration: https://calc.ratmath.com/stern-brocot.html#0_1