Date: Wed, 26 Jan 2005 12:10:53 -0800 (PST) From: Chris Landauer <cal@rush.aero.org> To: ambrisko@ambrisko.com Cc: cal@rush.aero.org Subject: bug in calcru() Message-ID: <200501262010.j0QKArWl041942@calamari.aero.org>
next in thread | raw e-mail | index | archive | help
hihi, doug - thanx for the suggestion - the notion of computing ut just with subtraction is really good, since it is likely to be the largest of the three values in most applications, but i'm a little worried that the 1024 multiplications aren't large enough when tt gets really large - i'll do the math on it and report its (provable) range of applicability and accuracy in a few days more soon, cal Chris Landauer Aerospace Integration Science Center The Aerospace Corporation cal@aero.org > Doug Ambrisko <ambrisko@ambrisko.com> wrote > ... > /* Subdivide tu. try to becareful of overflow */ > su = tu * (st * 1024 / tt) / 1024; > iu = tu * (it * 1024 / tt) / 1024; > uu = tu - (su + iu); > ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501262010.j0QKArWl041942>