shithub: femtolisp

ref: 6e515a532e6cf52317d6cc3d26a30c4d73085395
dir: /femtolisp/pisum.lsp/

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