summaryrefslogtreecommitdiff
path: root/tests/mandel_local.bth
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mandel_local.bth')
-rw-r--r--tests/mandel_local.bth16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/mandel_local.bth b/tests/mandel_local.bth
index 2cfa814..5b7fb9b 100644
--- a/tests/mandel_local.bth
+++ b/tests/mandel_local.bth
@@ -11,13 +11,13 @@
nzre 0
nzim 0)
(while (< i 25)
- (set nzre (+ cre (- (* zre zre) (* zim zim))))
- (set nzim (+ cim (* 2 (* zre zim))))
- (set zre nzre)
- (set zim nzim)
- (set mag (+ (* zre zre) (* zim zim)))
- (set i (if (< mag 4) (+ i 1) 999)))
+ (set! nzre (+ cre (- (* zre zre) (* zim zim))))
+ (set! nzim (+ cim (* 2 (* zre zim))))
+ (set! zre nzre)
+ (set! zim nzim)
+ (set! mag (+ (* zre zre) (* zim zim)))
+ (set! i (if (< mag 4) (+ i 1) 999)))
(write (if (< mag 4) "#" "."))
- (set pxx (+ pxx 1)))))
+ (set! pxx (+ pxx 1)))))
(say "")
- (set pxy (+ pxy 1))))
+ (set! pxy (+ pxy 1))))