Re: Programming question

From: Christopher X. Candreva <chris_at_westnet.com>
Date: Wed Oct 27 1999 - 18:29:13 EDT

On Wed, 27 Oct 1999, Rodger Boots wrote:

> On a unit I used to be on at my Real Job they just did this:
> Take the smaller of xlength or ylength, multiply it time 3, divide
> by 2, and add the result to the larger of xlength or ylength. The
> result is a close approximation of the square root of the sum of
> the squares.

Are you sure about that ?

For say 2 and 3:
Sqrt (2^2 + 3^2) = sqrt(13) = 3.6

( (2*3) / 2 ) + 3 = 6

Or am I missing something ?

-Chris

==========================================================
Chris Candreva -- chris@westnet.com -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/
Received on Wed Oct 27 17:29:22 1999

This archive was generated by hypermail 2.1.8 : Fri Aug 01 2003 - 00:32:47 EDT