Date: Thu, 4 Mar 1999 12:07:27 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Ambuhl cc: djgpp AT delorie DOT com Subject: Re: angle In-Reply-To: <36DD84ED.FAF5CF82@earthlink.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Wed, 3 Mar 1999, Martin Ambuhl wrote: > polar to_polar(vector v) > { > polar p; > p.r = sqrt(sqr(v.x) + sqr(v.y)); It's much better to use library function `hypot' to do this. (Hint: try the above with v.x = v.y = 1.e160 or v.x = v.y = 1.e-160.)