blob: e2738e4b463058f2f80165e7da0bfe8e7b5288ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
(in-package :lizfcm.approx)
(defun compute-maceps (f a init)
(let ((h init)
(err init))
(loop collect (list a h err)
do
(setf h (/ h 2)
err (abs (- (funcall f (+ a h))
(funcall f a))))
while (> err 0))))
|