aboutsummaryrefslogtreecommitdiff
path: root/tests/bc/scripts/root.bc
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2023-04-30 17:53:26 +0000
committerStefan Eßer <se@FreeBSD.org>2023-04-30 17:53:26 +0000
commit438a1101dc1f687928cdbe02cd7817a88a24f42f (patch)
tree28ace189e16de38a1f29152e9e49b22b516a5ad4 /tests/bc/scripts/root.bc
parent0ff539eb7ca570d65a23a7ad13a91a673d89abcf (diff)
Diffstat (limited to 'tests/bc/scripts/root.bc')
-rw-r--r--tests/bc/scripts/root.bc19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bc/scripts/root.bc b/tests/bc/scripts/root.bc
new file mode 100644
index 000000000000..95210fe290e6
--- /dev/null
+++ b/tests/bc/scripts/root.bc
@@ -0,0 +1,19 @@
+scale = 30
+
+s = 1 >> 1
+
+for (i = 0; i < 100; ++i)
+{
+ cbrt(s)
+ s >>= 1
+}
+
+s = 1 >> 1
+
+for (i = 0; i < 155; ++i)
+{
+ root(s, 5)
+ s >>= 1
+}
+
+halt