Loading ...
Sorry, an error occurred while loading the content.

using OCaml for large computations

Expand Messages
  • Jaques Bertrand
    Hi Folks, Thanks for the help and the encouragement. I was able to produce 78,914 digits using following steps in the toplevel. The larger example (2 ** (3 **
    Message 1 of 1 , Apr 5, 2011
    • 0 Attachment
      Hi Folks,

      Thanks for the help and the encouragement. I was able to produce 78,914 digits using following steps in the toplevel. The larger example (2 ** (3 ** 18)) was just an half a centemeter too big for my resources. The command line example does also work for the smaller number (2 ** (2 ** 18)).

      #open "dynlink.cma" ;;
      #use "topfind" ;;
      #require "pa_do.num" ;;

      let () = print_endline Num.(to_string (2 ** (2 ** 18))) ;;

      With kind regards,

      Jaques
    Your message has been successfully submitted and would be delivered to recipients shortly.