Commit 2a8f4fab authored by anIzycheva's avatar anIzycheva

else-if cleanup

parent 5f62ec2f
......@@ -493,9 +493,8 @@ object RelativeErrorPhase extends DaisyPhase with Taylor with ErrorFunctions{
def compareIntervals(x: Interval, y: Interval): Int = {
// [0; 1] and [1; 2]
if (x.xlo < y.xlo) -1
else
// [0; 1] and [-1; 0]
if (x.xlo > y.xlo) 1
else if (x.xlo > y.xlo) 1
// [0; 1] and [0; 2]
else if (x.xhi < y.xhi) -1
// [0; 1] and [0; 0.5]
......@@ -568,8 +567,7 @@ object RelativeErrorPhase extends DaisyPhase with Taylor with ErrorFunctions{
copy = copy + (id -> tmp)
result = result ++ Set(copy)
}
else
if (interval.xhi.>(origInterval.xhi))
else if (interval.xhi.>(origInterval.xhi))
// upper bound of interval toExclude is greater than upper bound of originalInterval
// e.g. exclude [-0.1 ; 0.1] from [-10; 0]
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment