[Openmcl-devel] inverse function
ralex at cs.colorado.edu
Sat Feb 13 16:43:26 UTC 2010
you can find the reverse functions either numerically (e.g., storing knowns input/output patterns and potentially interpolate between them) or analytically by processing the functional representation. For the numerical approach Lisp is not really better (or worse) than most other languages. For the analytical approach you can find some good code but keep in mind that inverse functions are intrinsically tricky, i.e.. a math problem not a programming language problem, as indicated by trivial functions such as f(x) = 1
On Feb 13, 2010, at 5:20 AM, Taoufik Dachraoui wrote:
> Does someone know if there is any work done to generate an inverse of any given lisp function (if possible).
> > (defun f (x) (+ x 1))
> > (f 2)
> > (funcall (inverse #'f) 3)
> > (funcall (inverse #'f) (f 5))
> This example is very simple and serves only to describe my needs; I would like to use the inverse function
> for complex lisp defined functions.
> Thank you for your help
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
Prof. Alexander Repenning
University of Colorado
Computer Science Department
Boulder, CO 80309-430
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmcl-devel