Raimondi

lisp deriv

Sep 13th, 2011
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.13 KB | None | 0 0
  1. (define (deriv f) (lambda (x) (/ (- (f (+ x 0.0000001)) (f x)) 0.0000001)) )
  2.  
  3. (define (square x) (* x x))
  4.  
  5. ((deriv square) 10)
Advertisement
Add Comment
Please, Sign In to add comment