Rational Numbers
summary
Dyalog adds a true rational type with literals like 12345r678, exact arithmetic, and a prime toolbox exposed as quad p. Integer multiplication uses an FFT-based multiplier (roots of unity require complex numbers) and Newton iteration for integer division; a reported benchmark multiplies two million‑digit numbers in 45 minutes vs 8 seconds (J vs Dyalog). Primality modes include probabilistic tests (repeat to lower error), factorization (two‑row and expanded lists), next/previous prime and π(n). Conference edition is functional but rough; full datatype integration is pending.
AI-written summary · about
