From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 3 Oct 2011 13:41:31 +0200 From: tlaronde@polynum.com To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20111003114131.GA7326@polynum.com> References: <20111002163800.GA12773@polynum.com> <20111002175227.2D7F1B856@mail.bitblocks.com> <20111002182846.GA20646@polynum.com> <20111002190618.54195B852@mail.bitblocks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111002190618.54195B852@mail.bitblocks.com> User-Agent: Mutt/1.4.2.3i Subject: Re: [9fans] circular fonctions: precision? Topicbox-Message-UUID: 2ff57594-ead7-11e9-9d60-3106f5b1d025 On Sun, Oct 02, 2011 at 12:06:18PM -0700, Bakul Shah wrote: > > > I sometimes wonder if the more common 64bits will not someday see > > CAD or related software go back to scaled integer arithmetic =E0 la > > Intergraph dgn, where 64bits is enough for the range of coordinates > > and precision used... > > double precision seems enough for most things. ieee754-2008 > has quad precision... Symbolic math package Macsyma (& Maxima) > has had bigfloats (arbitray precision floating point) for > decades. Supposedly some Common Lisp implementation have > those as well. Mechanical CAD packages would probably get > more benefit from symbolic math capabilities than just scaled > integers (keep everything in formulas until when you > absolutely need numerical results!). To resort to algebra (infinite precision by symbol combinations) is, indeed, a general rule. For symbolic math capabilities, I have wandered around the concept for geometrical description (like METAFONT/MetaPost, where there is this distinction that is mostly blurred in programming languages---except for basic conditionnals--- : the distinction between an assignation and an equation). But to come back to programming, when calculus is the crux, the more common/known even new! programming languages are not great tools, and "portability" i.e. proved accuracy of the implementation for a wide range of hardware/software is fuzzy. And it's amazing to see how one can rapidly face errors even with very basic computations. And even with integer arithmetic, not much help is guaranteed by languages. -- Thierry Laronde http://www.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C