shithub: femtolisp

ref: 2e8caea3fb2dc18b3a1e5f51c62ca49c841d850e
dir: /test/pisum.lsp/

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