www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/09/13/17:00:44

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: <201509132031.t8DKVH0P000824@envy.delorie.com>
Date: Sun, 13 Sep 2015 15:00:26 -0600
Message-Id: <AB671235-711B-4ECD-9015-515A5BFC6955@noqsi.com>
References: <20150913140631 DOT 1da1b78d AT jive DOT levalinux DOT org> <201509131529 DOT t8DFTUVS022118 AT envy DOT delorie DOT com> <B0EDB76E-F0DE-4A05-97FC-A405489ACA5A AT noqsi DOT com> <201509131824 DOT t8DIOCBc028428 AT envy DOT delorie DOT com> <B03281A2-123E-4F54-B3AA-CB8CCB09F1B1 AT noqsi DOT com> <201509132031 DOT t8DKVH0P000824 AT envy DOT delorie DOT com>
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 t8DL0eNR027641
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 13, 2015, at 2:31 PM, DJ Delorie <dj AT delorie DOT com> wrote:

> 
>> What I meant to say is that the rational number solution is
>> gridless. It has a base unit, but you can have coordinates like
>> 45634/1299709.
> 
> Understood, but even a common angle like 60 degrees can't be
> represented exact ly as a rational fraction.

Yes. But that’s more of a problem with floating point. What you really want in the Cartesian representation is sines and cosines, but sin( 60 degrees ) is irrational, not representable in floating point.

If you represented geometry as expressions in sympy, you could could have a closed, error free system for any displacement or rotation you can practically describe. But that might be a bit much.

> 
> I agree that storing angles as vectors makes sense, but I'm thinking
> of accumulated error and undo; storing the original angle as an angle
> might be useful too.
> 

Perfect undo is easy. Angles are represented by pairs of integers, with no roundoff error within that closed system. You only accumulate error with respect to your external expectations going forward. But how many layers of rotation do you typically have in a practical design? Maybe three, four? Within the system, all calculations are exact.

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