Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think you're misunderstanding the example.

An anti-derivative of 1/x is ln |x| (very different from |ln x|) when the domain excludes x=0. By the fundamental theorem of calculus, you can use it to integrate over intervals that exclude x=0. (On positive-real intervals F(x)=ln(x) works, and on negative-real intervals F(x)=ln(-x) works. In either case, F(x)=ln|x| is an equivalent formula. If you try a domain that includes x=0, you risk not just a problem with technicalities but also the practical problem that F(x)=ln|x| and G(x)=ln|x|+sgn(x) look no different...)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: