Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: [PATCH] advdomestic.c cleanup (PR#1149)
Home

[Freeciv-Dev] Re: [PATCH] advdomestic.c cleanup (PR#1149)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Chris Richards <chrisr@xxxxxxxxxxxxxxxx>
Cc: Mike Kaufman <mkaufman@xxxxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] advdomestic.c cleanup (PR#1149)
From: Petr Baudis <pasky@xxxxxxxxxxx>
Date: Sun, 23 Dec 2001 20:45:00 +0100

Dear diary, on Sun, Dec 23, 2001 at 08:41:20PM CET, I got a letter, where Chris
Richards <chrisr@xxxxxxxxxxxxxxxx> told me, that...
> My second point about the original formula and the reduced formula (i.e.,
> factoring out 64 from weight before sending it into amortize()) still
> applies.  The computed cost will be 1 less due to round off error.  You can't
> factor out the 64 from weight without getting a different amortized result
> that will not scale back by multiplying 64.  The loss of precision due to
> integer math is a real factor.
Ok, I take that :). Thanks.

-- 

                                Petr "Pasky" Baudis

UN*X programmer, UN*X administrator, hobbies = IPv6, IRC, FreeCiv hacking
.
  "A common mistake that people make, when trying to design
   something completely foolproof is to underestimate the
   ingenuity of complete fools."
     -- Douglas Adams in Mostly Harmless
.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/


[Prev in Thread] Current Thread [Next in Thread]