From 6679bb76d053e3487da6afffad83ffa4d99bc57e Mon Sep 17 00:00:00 2001 From: Erwan Jahier <erwan.jahier@univ-grenoble-alpes.fr> Date: Mon, 10 Jul 2023 11:36:37 +0200 Subject: [PATCH] refactor: add a ref for the Sierpinski algo --- test/sierpinski/p.ml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/sierpinski/p.ml b/test/sierpinski/p.ml index bc5f0be1..5fa45cef 100644 --- a/test/sierpinski/p.ml +++ b/test/sierpinski/p.ml @@ -1,4 +1,9 @@ -(* Time-stamp: <modified the 03/07/2023 (at 16:19) by Erwan Jahier> *) +(* Time-stamp: <modified the 10/07/2023 (at 11:36) by Erwan Jahier> *) + +(* Draw the Sierpinski triangle using Wolfram cellular automata + +https://mathworld.wolfram.com/ElementaryCellularAutomaton.html +*) let rule_nb = 126 (* Sierpinski rule *) let _ = assert( 0 <= rule_nb && rule_nb <256 ) -- GitLab