www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/09/14/20:41:14

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-TCPREMOTEIP: 207.224.51.38
X-Authenticated-UID: jpd AT noqsi DOT com
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Subject: Re: [geda-user] Apollon
From: John Doty <jpd AT noqsi DOT com>
In-Reply-To: <20150914210429.5063.qmail@stuge.se>
Date: Mon, 14 Sep 2015 18:40:31 -0600
Message-Id: <627B03CA-6C5A-4937-8C6E-B9B64D22435D@noqsi.com>
References: <20150913140631 DOT 1da1b78d AT jive DOT levalinux DOT org> <201509131529 DOT t8DFTUVS022118 AT envy DOT delorie DOT com> <20150914175929 DOT 22829 DOT qmail AT stuge DOT se> <074A28AA-547E-4B71-8D81-30D2CB1B74F3 AT noqsi DOT com> <20150914210429 DOT 5063 DOT qmail AT stuge DOT se>
To: geda-user AT delorie DOT com
X-Mailer: Apple Mail (2.1878.6)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t8F0eibt014787
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sep 14, 2015, at 3:04 PM, Peter Stuge (peter AT stuge DOT se) [via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:

> John Doty wrote:
>>> I disagree very strongly with floating point, but using a fixed-size
>>> decimal is an important improvement!
>> 
>> The trouble is that common computer numerics do not actually obey the
>> same rules as mathematical numbers.
> 
> Nod.
> 
> 
>> Rational numbers fix these problems.
> ..
>> For rendering on a grid, use fixed or floating point. The rationals
>> that fall on your grid are a set of measure zero, anyway.
> 
> Output (rendering on grid) is one issue, and is easy enough to deal
> with in isolation.
> 
> But input (rotate by 60 degrees) is another issue, and less easy to
> handle, because it's very important for usability that user
> input->output and vice versa is also closed.

Unfortunately, a closed system handling rational rotation angles requires that you go to the field of algebraic numbers for translations. Mathematica has proprietary code that can perform rigorous calculations with algebraics, but I don’t know of any other system that can do this. You wind up manipulating numbers whose printed representation looks like Root[4 + 3 #1 + 2 #1^2 + #1^3 &, 1].

> 
> Fun!

Indeed!

> 
> 
> //Peter
> 

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019