Determining the inverse function operation from a function definition

"Ron Foster" <rlfoster1@cox.net>
26 Apr 2005 20:43:21 -0400

          From comp.compilers

Related articles
Determining the inverse function operation from a function definition rlfoster1@cox.net (Ron Foster) (2005-04-26)
Re: Determining the inverse function operation from a function definit torbenm@diku.dk (2005-04-28)
Re: Determining the inverse function operation from a function definit mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2005-04-28)
Re: Determining the inverse function operation from a function definit lfinsto1@gwdg.de (Laurence Finston) (2005-04-28)
Re: Determining the inverse function operation from a function definit wyrmwif@tsoft.org (SM Ryan) (2005-04-28)
Re: Determining the inverse function operation from a function definit drdiettrich@compuserve.de (Dr. Diettrich) (2005-04-28)
Re: Determining the inverse function operation from a function definit nmm1@cus.cam.ac.uk (2005-04-30)
[2 later articles]
| List of all articles for this month |

From: "Ron Foster" <rlfoster1@cox.net>
Newsgroups: comp.compilers
Date: 26 Apr 2005 20:43:21 -0400
Organization: Cox Communications
Keywords: question
Posted-Date: 26 Apr 2005 20:43:21 EDT

Hi.
I am working on a small project to evaluate and execute unit conversion
expressions. I started wondering whether it was possible to determine what
the reverse conversion rules might blook like.


For example, one might want to define the classic Celsius to Fahrenheit
convesrion expression along the lines of:


F( c ) = ( 9 / 5 ) * c + 32.


It seems as though there's enough information there to deduce the inverse
Fahrenheit to Celsius conversion:


C( f ) = ( f - 32 ) / ( 5 / 9 )




It "feels" as though the inverse operation could be accomplished by
backing-out the original operation steps in reverse order, but it appears
that such an approach could also be fraught with peril.


The problem appears to lie in the domain of ( one to one ) function
inversion or maybe equation solving.


I presume that such an algorithm has been implemented a hundred or so times,
but my research is coming up dry.


I'd appreciate it if someone could point me to some relevant material.


TIA


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.