From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 115aec,47cd14062de43094 X-Google-Thread: 103376,47cd14062de43094 X-Google-Attributes: gid115aec,gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!rz.uni-karlsruhe.de!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.realtime,comp.lang.ada Subject: Re: next_period = start + n*period; versus next_period = next_period+period; Date: Tue, 26 Oct 2004 19:16:54 +0200 Message-ID: <87sm81o0vt.fsf@deneb.enyo.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: albireo.enyo.de 1098811020 25204 212.9.189.171 (26 Oct 2004 17:17:00 GMT) X-Complaints-To: Cancel-Lock: sha1:puYDYERNc1n80lZBr6eQTJzUaTc= Xref: g2news1.google.com comp.realtime:518 comp.lang.ada:5726 Date: 2004-10-26T19:16:54+02:00 List-Id: * Paul Colin Gloster: > however someone I am acquainted with swears by multiplication as in > delay until Next_Period; where Next_Period := Start + Iteration*Period; > instead, and demonstrated an example where it is more accurate. The > following MATLAB excerpt illustrates this: Time_Span doesn't use floating point arithmetic in Ada, and this effect doesn't occur.