Bug with a^-b, b>=0.5



Fix needed.

From 601a880eae31946bffdb41550fde5fe8c000f844 Mon Sep 17 00:00:00 2001
From: "Andrew Y. Kuksov" <qxovxp gmail com>
Date: Mon, 28 Dec 2015 21:32:19 +0300
Subject: [PATCH] Added test case "4^-0.5==0.5". Now it is 5.357543036e300

---
 tests/test-equation.vala | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test-equation.vala b/tests/test-equation.vala
index 80b3898..c1c9aad 100644
--- a/tests/test-equation.vala
+++ b/tests/test-equation.vala
@@ -422,6 +422,7 @@ private void test_equations ()
     test ("Sqrt (2)", "1.414213562", 0);
     test ("Sqrt (-1)", "i", 0);
     test ("4^0.5", "2", 0);
+    test ("4^-0.5", "0.5", 0);
     test ("2^0.5", "1.414213562", 0);
     test ("₃√−8", "−2", 0);
     test ("(−8)^(1÷3)", "−2", 0);
-- 
2.5.0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]