The Golden Ratio by m.ukai

#load "nums.cma"open Num
let rec f q p i=i=0&()=print_string(String.sub(approx_num_fix 501(q//p))1 501)||f(p+/q)q(i-1);;f(Int 8)(Int 5)9999

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page