[OT] if or exception

Christopher T King squirrel at WPI.EDU
Fri Jul 30 09:10:30 EDT 2004


On Fri, 30 Jul 2004, Steve wrote:

> What about code for cos(x)/x? By l'Hôpital's Rule, the 
> limit as x->0 is 0.

Not to be nitpicky, but isn't l'Hôpital only valid in the case that
lim{x->0+} f(x) = lim{x->0-} f(x); i.e. the function approaches the same
value from the left and from the right?  cos(x)/x approaches infinity from
the right, but negative infinity from the left, so I think that means it's
undefined at zero.  Feel free to correct me though, it's been a couple of 
years since Calc III ;)




More information about the Python-list mailing list