You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Evolve the stack value from a plain number into a closed-form symbolic
value (num/den)·√rad·πⁿ:
- Exact fractions, k·√m and rational multiples of π are preserved and
simplified (8 √ 2 × → 4√2, π 2 ÷ → π/2, √2·√2 → 2, 1/√2 → √2/2).
- Anything outside that form (√2+√3, sin, ln, overflow) falls back to a
decimal approximation, so a result is never wrongly exact.
- All arithmetic uses overflow-checked int64; π is an exact constant.
- Factorial uses gamma(n+1) for large / non-integer arguments (no more
unbounded loop).
- Host tests extended to cover the symbolic rules and factorial edges.
- Idempotent release workflow; CHANGELOG; README, landing page and
roadmap updated.
Copy file name to clipboardExpand all lines: docs/index.html
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -123,9 +123,9 @@ <h3>Stack, not lines</h3>
123
123
<p>Push numbers and let operators act on them. Fast, keystroke-efficient, and ideal for long chained calculations.</p>
124
124
</div>
125
125
<divclass="card">
126
-
<spanclass="emoji">½</span>
127
-
<h3>Exact fractions</h3>
128
-
<p><code>1/3 + 1/6</code> stays <code>1/2</code>. Arithmetic and integer powers keep exact rationals; functions give decimals.</p>
126
+
<spanclass="emoji">√</span>
127
+
<h3>Exact & symbolic</h3>
128
+
<p>Fractions, radicals and multiples of π stay exact — <code>1/2</code>, <code>4√2</code>, <code>π/2</code> — with a decimal fallback when they can't.</p>
<pclass="note">Subtraction and division are <em>level 2 (op) level 1</em>. Entered the operands in the wrong order? Press <kbd>(</kbd> to <strong>SWAP</strong> the top two.</p>
0 commit comments