From 1c8d0c4ef5d4a8a2d2e01c8039308049d33e1b2d Mon Sep 17 00:00:00 2001 From: Denis Chevalier Date: Mon, 10 Aug 2026 09:39:23 +0200 Subject: Add assertion to check the maths early on, and fix typos --- lib/assert_aeq.typ | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 lib/assert_aeq.typ (limited to 'lib/assert_aeq.typ') diff --git a/lib/assert_aeq.typ b/lib/assert_aeq.typ new file mode 100644 index 0000000..70b9e64 --- /dev/null +++ b/lib/assert_aeq.typ @@ -0,0 +1,3 @@ +#let assert-aeq(left, right, precision: calc.pow(10, -6)) = { + assert(calc.abs(left - right) < precision) +} -- cgit