From 4bb99bf1056901f46518ce6b66a93206ef79101c Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 12 Dec 2017 15:23:51 +0000 Subject: [PATCH] [functional-tests] Add math-utils library --- functional-tests/math-utils.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 functional-tests/math-utils.scm diff --git a/functional-tests/math-utils.scm b/functional-tests/math-utils.scm new file mode 100644 index 0000000..130e54a --- /dev/null +++ b/functional-tests/math-utils.scm @@ -0,0 +1,10 @@ +(library + (math-utils) + + (export div-up) + + (import (chezscheme)) + + (define (div-up n d) + (/ (+ n (- d 1)) d)) + )