George Russell wrote:
> 
> Julian Assange wrote:
> > Once you are within a few UDP, the underlaying grainyness of the
> > representation is going to get you, so that smoothe, monotonic line
> > segment you have below, will look like an appalling zigzag at
> > best. This is my point. Near the limits of precession, the error
> > introduced by rounding is trivial compared to the error introduced by
> > the precission itself.
> No I disagree.  If you plot sin(a+x) against x for very small values of
> x it should at worst look something like a computer's attempt to pixellate
> 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.

PlotSin.hs

Reply via email to