Example of an OCaml script, written in the dialect “miniml”.
- It requires the OCaml-Camlboot app for the Numworks, to run this code on your calculator.
- See https://github.com/Ekdohibs/camlboot for more information about the miniml subset.
- License: MIT License, Lilian Besson (Naereen) (c) 2025
- See https://github.com/stevenvar/OMicroB/issues/36 for the ongoing discussion about this OCaml-Camlboot app for the numworks.
(* Example of an OCaml script to use with the OCaml-Numworks app *) let rec fibonacci n = if n <= 1 then n else fibonacci (n-1) + fibonacci (n-2) in fibonacci, fibonacci 15;;