Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Re: o Re: Re: Deriving pi and e

by ambrus (Abbot)
on Nov 02, 2003 at 17:36 UTC ( [id://303935] : note . print w/replies, xml ) Need Help??

in reply to Re: •Re: Re: Deriving pi and e
in thread Deriving pi and e

I agree. Actually, it's imo better to define atan2(0,-1)=-Pi, so that atan2's range would be [-Pi,Pi), not (-Pi,Pi] (not that this would matter at all). Actually, even my prof at complex functions course defined it this way: log(-1)=-i*Pi.

I use 4*atan2(1,1) instead of atan2(0,-1) or 2*atan2(1,0), because I got used to bc and basic, where you have to write 4*a(1), and 4*atn(1) resp., because there is no atan2 function.