shithub: femtolisp

ref: 1f1b5db795dea6a0edc8cda12caff1a7b61655ec
dir: /test/pisum.lsp/

View raw version
(define (pisum)
  (dotimes (j 500)
    ((label sumloop
            (λ (i sum)
              (if (> i 10000)
                  sum
                (sumloop (+ i 1) (+ sum (/ (* i i)))))))
     1.0 0.0)))