Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1,17 @@
(load "@lib/math.l")
(de nthRoot (N A)
(let (X1 A X2 (*/ A N))
(until (= X1 X2)
(setq
X1 X2
X2 (*/
(+
(* X1 (dec N))
(*/ A 1.0 (pow X1 (* (dec N) 1.0))) )
N ) ) )
X2 ) )
(prinl (format (nthRoot 2 2.0) *Scl))
(prinl (format (nthRoot 3 12.3) *Scl))
(prinl (format (nthRoot 4 45.6) *Scl))