Topic: Computers Mandelbrot

(link)

11:58am, Monday 22 March 2004

[Mandelbrot] I found a web page describing how someone did ray-tracing on his 1980's pocket calculator. I have a calculator just like that, so I taught it to calculate a Mandelbrot set.

Here's the code (public domain, blah blah):

Prog 1

-1->Y:Lbl 4:-1.5->X:Lbl 0:Prg 2:C>=10=>Goto 8:".",Goto 7:Lbl 8:
"#",Lbl 7:X+0.1->X:X<0.8=>Goto 0:"X",Y+0.1->Y:Y<1=>Goto 4
Prog 2
0->R:0->S:0->C:Lbl 0:Isz C:R^2-S^2+x->P:2xRxS+Y->Q:P->R:Q->S:
./(R^2+S^2)>=2=>Goto 9:C>=10=>Goto 9:Goto 0:Lbl 9

back to main

<-
 Topic:    
->

Powered by Personal Weblog.

March 2024
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr

[RSS]

 


 


Dave Holland <dave@biff.org.uk>
$Id: index.php,v 1.75 2010-07-09 22:15:04 dave Exp $