summaryrefslogtreecommitdiffhomepage
path: root/testsuite/bc_sqrt.bc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-12-12 21:41:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-12-12 21:41:40 +0100
commit9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49 (patch)
tree9b1a85084b1e046b0a5b5eb06375334ef1eb2f56 /testsuite/bc_sqrt.bc
parentd6ad3666dc51f475a6e76b07f2c59d039f69f2d4 (diff)
testsuite: add bc and dc tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/bc_sqrt.bc')
-rw-r--r--testsuite/bc_sqrt.bc18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/bc_sqrt.bc b/testsuite/bc_sqrt.bc
new file mode 100644
index 000000000..afd87ff0f
--- /dev/null
+++ b/testsuite/bc_sqrt.bc
@@ -0,0 +1,18 @@
+scale = 20
+sqrt(0)
+sqrt(2)
+sqrt(4)
+sqrt(9)
+sqrt(16)
+sqrt(25)
+sqrt(121)
+sqrt(48765)
+sqrt(9287356207356)
+sqrt(0.189274385967238956872354)
+sqrt(12389467137496823.134567829387456283946)
+sqrt(.0000000000000000000000000000123)
+sqrt(1)
+scale = 0;
+sqrt(1407)
+sqrt(79101)
+scale = 6; sqrt(88.1247699921300025847737099094480986051698668662822009535526240)