summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/bc/Test/sqrt1.b
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-06-29 00:19:07 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-06-29 00:19:07 +0000
commitb0594c55ee89492c0a1d4b8ef6425955998d168c (patch)
treed7231f13dae2de4fa0af9a9aba0f81d3632777f5 /gnu/usr.bin/bc/Test/sqrt1.b
parente038c1555f2e165a35c68bb94f24b03bf9ecc49c (diff)
GNU bc 1.05a
Diffstat (limited to 'gnu/usr.bin/bc/Test/sqrt1.b')
-rw-r--r--gnu/usr.bin/bc/Test/sqrt1.b13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/usr.bin/bc/Test/sqrt1.b b/gnu/usr.bin/bc/Test/sqrt1.b
new file mode 100644
index 00000000000..c3ca2698fcc
--- /dev/null
+++ b/gnu/usr.bin/bc/Test/sqrt1.b
@@ -0,0 +1,13 @@
+for (j=0; j<10; j++) {
+ a = .9;
+ b = .9+j;
+ scale = 2;
+ for (i=0; i<90; i++) {
+ scale += 1;
+ a /= 10;
+ b += a;
+ x = sqrt(b);
+ }
+ x;
+}
+quit