Skip to content
Snippets Groups Projects
Commit 3e0e136d authored by David Bühler's avatar David Bühler Committed by Michele Alberti
Browse files

[Eva] Subdivision: slightly changes the strategy to cut a float interval in half.

If an interval contains positive and negative floating-point values, cuts the
interval at 0. Otherwise, uses the same strategy as before: cuts the interval
at the mathematical average of its bounds.

This strategy always reaches the maximal precision in one split on e*e squares,
which is the most common pattern for subdivisions.
In the tests, it decreases the precision on computations of e-e, where a split
at 0 is useless. However, this is not a common pattern in real codes.
parent ee1dbce9
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment