Fixed -- bug and incorrect display

This commit is contained in:
vegowotenks 2024-09-15 18:07:45 +02:00
parent e38576c1d8
commit 6cada53cb0
2 changed files with 3 additions and 2 deletions

View file

@ -85,6 +85,7 @@ rationalPower :: Rational -> Rational -> Rational
rationalPower a b = rationalPower' (numerator a, denominator a) (numerator b, denominator b)
where
rationalPower' (a, b) (c, 1) = a ^ c % b ^ c
rationalPower' _ _ = error "Powers with unnatural numbers are not supported yet"
term = m_parens exprparser
<|> fmap Variable m_identifier