shithub: femtolisp

ref: e9039ef075ee2d96fbd8dd6eae191448acf43751
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)))