> > a straight line, EG for example
> > XX
> >   X
> >    XX
> >      X
> >       X
> >        XX
> >          X
> >           XX
> >             (blah blah)
> > the point being that this is a straight line with slope a 
> bit less than
> > 1/3.
> Code to test this attached.  Try (in Hugs) plotSin pi 100.  
> You should a lot
> of fairly equal numbers.


??????  Let me for a moment assume that I haven't completely
lost my mind...  (which I might have...)

Firstly, for sin with values near pi as arguments the inclination
of that plotted line should be very close to -45 degrees.

Secondly, for sin with values near pi as arguments the resolution
in "x" (the argument) is low in absolute terms compare to the
ultra-high absolute resolution in "y" (the result).  So what
you **should** get is a very close, but spotty, approximation
to a straight line at -45 degrees.

Let me try some ASCII art to roughly illustrate:
-

-        *

-
-
-                  *
=
=--------+---------+---pi----+---------+---------+
=
-
-                            *
-

-

-                                      *

-
(+ means representable argument value; note the varying
resolution in "y", which is MUCH higher than in "x")

If the argument reduction is not done properly, the
result may of course be different...

But maybe I've just lost my mind...


                Kind regards
                /kent k

Reply via email to