[Openmcl-devel] inverse function
Nicolas Neuss
neuss at math.uni-karlsruhe.de
Sat Feb 13 05:33:53 PST 2010
Taoufik Dachraoui <taoufik at mazeboard.com> writes:
> Dear,
>
> Does someone know if there is any work done to generate an inverse of
> any given lisp function (if possible).
>
> Example:
>
>> (defun f (x) (+ x 1))
>> (f 2)
> 3
>> (funcall (inverse #'f) 3)
> 2
>> (funcall (inverse #'f) (f 5))
> 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
>
> Taoufik
BTW, since this question is not implementation-specific, it would fit
perfectly in the comp.lang.lisp newsgroup:-)
Nicolas
More information about the Openmcl-devel
mailing list