Subject: | intersection does not hold open intervals correctly |
hi,
in the attached code I would expect the intersection to return FALSE,
since point 2 does not belong to neither $itv1 nor $itv2
thanks
-Gianluca
Subject: | provaint.pl |
use Number::Interval;
my $itv1 = new Number::Interval(Min => 1, Max => 2, IncMax => 0);
my $itv2 = new Number::Interval(Min => 2, IncMin => 0, Max => 3);
print "problem\n" if $itv2->intersection($itv1);