pyinterval icon indicating copy to clipboard operation
pyinterval copied to clipboard

Raising interval to power zero should always give one

Open andrewburbanks opened this issue 7 years ago • 1 comments
trafficstars

Raising an interval X to the integer power zero should give the interval [1, 1] provided that X is not empty, even if X contains zero. However, the current version delivers [0, 1] if X contains zero.

Example:

interval[0]**0 interval([0.0, 1.0])

andrewburbanks avatar Jul 25 '18 16:07 andrewburbanks

You're right. I'll fix that as soon as I have a little time.

taschini avatar Jul 26 '18 12:07 taschini