logoalt Hacker News

anthktoday at 7:04 AM0 repliesview on HN

That's an exercise under SICP (an infamous Scheme course) it works best with either Racket with

       #lang sicp 
at the top of the SCM file, or with Chicken Scheme 5 once you run these commands in a terminal:

      chicken-install srfi-203
      chicken-install srfi-216

Then set this ~/.csirc file:

   (import scheme)
   (import (srfi 203))
   (import (srfi 216))
Try it, because under SICP you will learn Calculus by literally learning the rules of derivation, integration and squared and cubic roots as an example of recursion.

Online, interactive SICP in the browser, you don't need to install anything:

https://iain-s.github.io/isicp/