shithub: femtolisp

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