Tests (10)
- elm / FloatEdgeTestFloat edge cases: `round` on halves, NaN in equality, `min` and `compare`, `truncate` of NaN, and an Int power beyond 2^32.
- elm / InfixAssocRightPowTest`^` associates to the right.
- elm / InfixNegatedOperandTestA negation symbol in an operator chain negates the atomic expression after it, and no more.
- elm / InfixPrecApplicationFirstTestApplication binds more tightly than any operator.
- elm / InfixPrecPowOverMulTest`^` (precedence 8) binds more tightly than `*` (precedence 7).
- elm-core / CoreIssue960PowNegativeExponentIntTest`(^)` on two `Int`s with a negative exponent returns a fraction typed as `Int`.
- elm-core / FloatPowTest`^` on Floats computes powers with positive, zero and negative exponents.
- elm-core / IntPowTestChecks integer exponentiation `^`, including a zero exponent and a negative base with an odd exponent.
- elm-core / StandardA43PowNegativeTestInt `^` with a negative exponent: `1 ^ n` is `1`, `(-1) ^ n` is `1` or `-1` by the parity of `n`, and any other base gives `0`.
- elm-core / StandardA65PowOneTestFloat `1 ^ y` is `1` for every `y`, and `(-1) ^ y` is `1` for an infinite `y`.
Discussions
Discuss this basis entry·Search the discussions on GitHub
Discussions are on GitHub; one about this basis entry has [b:Basics.pow] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.