summaryrefslogtreecommitdiff
path: root/src/test-mp-equation.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-08-26 20:19:31 +0200
committerraveit65 <[email protected]>2020-09-04 18:26:07 +0200
commit81aa78009bcb2bc07abfb6cd3953e24ae3979dd8 (patch)
tree079719b8d6d671830d4efe1796562e3df55d6440 /src/test-mp-equation.c
parentc7658b5a7c5ecbabb3390844f19ba43626825554 (diff)
downloadmate-calc-81aa78009bcb2bc07abfb6cd3953e24ae3979dd8.tar.bz2
mate-calc-81aa78009bcb2bc07abfb6cd3953e24ae3979dd8.tar.xz
fix calulation of x^q, where 1/q is a negative integer
Diffstat (limited to 'src/test-mp-equation.c')
-rw-r--r--src/test-mp-equation.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test-mp-equation.c b/src/test-mp-equation.c
index adf6c06..3e1d993 100644
--- a/src/test-mp-equation.c
+++ b/src/test-mp-equation.c
@@ -476,6 +476,7 @@ test_equations(void)
test("2^0.5", "1.414213562", 0);
test("₃√−8", "−2", 0);
test("(−8)^(1÷3)", "−2", 0);
+ test("e^-2^-5", "0.969233234", 0);
test("0 mod 7", "0", 0);
test("6 mod 7", "6", 0);