← All projects
Project record1 mention
Originally shared on Hacker News

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.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. 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