Example of an OCaml script, written in the dialect “MiniCaml”, which can run on a Numworks calculator!
- Copy this script to your Numworks calculator, then…
-
How to use it? Install and launch the latest “minicaml.nwa” app from https://perso.crans.org/besson/publis/Numworks-apps/?C=M;O=D release page.
- It requires the OCaml-MiniCaml app for the Numworks, to run this code on your calculator.
- See https://github.com/ViRoLam/Mini-Caml-Interpreter for more information about the MiniCaml subset.
- License: MIT License, Lilian Besson (Naereen) (c) 2024-2025
- See https://github.com/stevenvar/OMicroB/issues/36 for the ongoing discussion about this OCaml-MiniCaml app for the numworks.
let rec fibonacci (n : int) : int = if n <= 1 then n else fibonacci (n-1) + fibonacci (n-2) in fibonacci 15