Skip to content

Raising interval to power zero should always give one #22

Description

@andrewburbanks

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])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions