Ilya Zakharevich on Wed, 30 Jun 1999 16:26:51 -0400

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Recursive plot

On Tue, Jun 29, 1999 at 02:59:29PM +0200, Karim BELABAS wrote:
> > ? ploth(x=-20,20,sin(x),2)
> > 
> > [ nice picture, completely wrong in the center ]

> > Possible solution: instead of checking consecuitive pairs of intervals
> > (1st and 2nd, then 3rd and 4th, then 5th and 6th, etc), check all the
> > adjacent pairs of intervals (1st and 2nd, then 2nd and 3rd, then 3rd
> > and 4th, etc).
> Other solution:
>   ploth(x=-20,21,sin(x),2)

Sorry, I consider this as a complete <insert your favorite
expletive>.  If a user can do it, why will not PARI do the same?

If a solution is possible (*and* cheap, *and* very reliable [X]) in
program-land, any movement of the solution to the user-land is just
putting dust under the carpet.


[X]  To beat my solution, you need 14 coincidences - as opposed to 1
     with the current scheme.  Well, I forgot one additional
     safeguard: the sizes of two consequent intervals should not
     differ more than 2x.