Skip to content

definition of fmod #39

@farteryhr

Description

@farteryhr

i'm quite unsure if i'm misunderstanding something... modulo, the '%' operator

the example says:

Interval.fmod(
Interval(5, 7),
Interval(2, 3)
) // Interval(2, 5)
// explanation: [5, 7] - [2, 3] * 1 = [2, 5]

if we pick 6 in [5,7], 3 in [2,3], we get 6%3==0 out of the result interval [2,5].

"for a fixed integral quotient"..? but what if the quotient is variable? maybe we need a function under another name?

btw, consider interval gcd, also pow of negative number with rational exponent, seems they all depend on the fmod.

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