shithub: femtolisp

ref: 48ff4764a4a7a0a81fb04bc93a09acf8e1e718f0
dir: /tests/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)))