Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5693

Re: Sine/Cosine/Tangent accuracy error

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Richard Ashbery <basura@invalid.addr.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Sine/Cosine/Tangent accuracy error
Date Sat, 23 Feb 2019 20:53:46 +0000 (GMT)
Organization None
Lines 28
Message-ID <578b034766basura@invalid.addr.uk> (permalink)
References <578aeb07c9basura@invalid.addr.uk> <mpro.pne4h303a7pf301yy.news@stevefryatt.org.uk>
X-Trace individual.net qyw15kRf/YbcGYkunGppOgBEdB7USWPwPksrmVOyBQKTiLTr0n
X-Orig-Path uwclub.net!richard.ashbery
Cancel-Lock sha1:TvYCgEV/crwEWk6KQ/52hlVLWS8=
User-Agent Pluto/3.16 (RISC OS/5.25) NewsHound/v1.52-32
Xref csiph.com comp.sys.acorn.programmer:5693

Show key headers only | View raw


In article <mpro.pne4h303a7pf301yy.news@stevefryatt.org.uk>, Steve
Fryatt <news@stevefryatt.org.uk> wrote:
> On 23 Feb, Richard Ashbery wrote in message
>     <578aeb07c9basura@invalid.addr.uk>:

> > I have a very old but interesting BASIC graphic program where
> > I've made some minor changes to operate on a 1920 x 1080 res
> > monitor.
> > 
> > After program is run for some minutes it errors with "Accuracy
> > lost in Sine/Cosine/Tangent".
> > 
> > How do I stop this error from appearing?

> The error indicates that the input to SIN(), COS() or TAN() has
> fallen outside the range +/-8388608 radians (in BASIC V). You
> probably need to check the algorithm used, to make sure that it
> doesn't cause this to happen.

Many thanks Steve for your reply. I couldn't see the "wood for the
trees". I've checked it again and sure enough it exceeds the radians
limit of BASIC. The problem I now have is to edit the code without
stalling the graphic animation but there must be a way.

All the best

Richard

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Sine/Cosine/Tangent accuracy error Richard Ashbery <basura@invalid.addr.uk> - 2019-02-23 16:28 +0000
  Re: Sine/Cosine/Tangent accuracy error Steve Fryatt <news@stevefryatt.org.uk> - 2019-02-23 17:55 +0000
    Re: Sine/Cosine/Tangent accuracy error Richard Ashbery <basura@invalid.addr.uk> - 2019-02-23 20:53 +0000
      Re: Sine/Cosine/Tangent accuracy error Steve Fryatt <news@stevefryatt.org.uk> - 2019-02-24 08:25 +0000
        Re: Sine/Cosine/Tangent accuracy error Richard Ashbery <basura@invalid.addr.uk> - 2019-02-24 12:20 +0000
  Re: Sine/Cosine/Tangent accuracy error druck <news@druck.org.uk> - 2019-02-24 23:35 +0000
    Re: Sine/Cosine/Tangent accuracy error Richard Ashbery <basura@invalid.addr.uk> - 2019-02-25 17:34 +0000
      Re: Sine/Cosine/Tangent accuracy error Martin Wuerthner <spamtrap@mw-software.com> - 2019-02-26 17:17 +0100
        Re: Sine/Cosine/Tangent accuracy error jgh@mdfs.net - 2019-02-26 12:46 -0800
        Re: Sine/Cosine/Tangent accuracy error Richard Ashbery <basura@invalid.addr.uk> - 2019-02-27 16:37 +0000
        Re: Sine/Cosine/Tangent accuracy error druck <news@druck.org.uk> - 2019-02-27 20:27 +0000

csiph-web