Skip to content

What to do with mod? #129

Open
Open
@dpsanders

Description

@dpsanders

How should we deal with functions like mod acting on intervals?

E.g.

  • mod(0.8..1.2, 1) should give (0..0.2) ∪ (0.8..1);
    mod(0.8..2.2, 1) should give 0..1?

One solution is to define an interval union type; see e.g.
https://link.springer.com/article/10.1007/s10543-016-0632-y

Really the correct solution is probably to use contractors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions