develooper Front page | perl.perl6.language | Postings from May 2005

Re: Intervals

Thread Previous
From:
Luke Palmer
Date:
May 23, 2005 14:06
Subject:
Re: Intervals
Message ID:
7ca3f016050523140546d94fc7@mail.gmail.com
On 5/23/05, Edward Peschko <esp5@pge.com> wrote:

> They have the intent (Alan Eliasen has the intent) of implementing 'intervals'
> which match fuzzy values where you know an approximate extent of the value, but
> not the value itself. E.g
> 
>         (.5 ... .75) * (.5 ... .8) == (.25 ... .6)
> 
> Given that frink values can have units like gallons or pounds, and they intend on
> tracking accuracy inside of intervals, with different distributions, this is
> especially powerful.
> 
> Is there the intent to have intervals in perl6, or would it be better just to
> port frink to parrot and be done with it?

I think this is best left up to frink or CPAN (or a frink interface on
CPAN).  Interval arithmetic looks nice at first, but can get subtle
when dealing with powers, and insane when dealing with functions like
"sin".

Luke

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About