shithub: femtolisp

ref: 0cc160518d4d3653064fe3a6cd3dfd476e999f5a
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)))