Guest User

Untitled

a guest
Dec 6th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.25 KB | None | 0 0
  1. let iters1 max_iter xc yc =
  2.   let rec aux count x y =
  3.     if count = max_iter then max_iter else begin
  4.       if x *. x  +. y *. y >= 4.0 then count else
  5.       aux (count+1) (x *. x -. y *. y +. xc) (2.0 *. x *. y +. yc)
  6.     end in
  7.   aux 0 xc yc
Advertisement
Add Comment
Please, Sign In to add comment