[Python-Dev] PEP239 (Rational Numbers) Reference Implementation and new issues

Greg Ewing see_reply_address at something.invalid
Thu Oct 3 21:46:21 EDT 2002


Fernando Pérez wrote:

> Chad Netzer wrote:
> 
> In expressions that go to 0/0, 
> you need to figure out which one (num/den) goes faster to 0 to be able to 
> answer. Long faded memories of calc. classes trickle in ...


My own faded memory says: L'Hopital's Rule. Differentiate top
and bottom and take the limit of that instead. Repeat until
top and bottom don't both go to 0.


There's no doubt some terribly good reason why this works,

but I can't remember it, if I ever knew...

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list