From 7dfcc480ba1e19bd3232349fc733caef94034292 Mon Sep 17 00:00:00 2001 From: stainer_t Date: Mon, 8 Sep 2025 13:48:49 +0200 Subject: Initial commit from Polytechnique Montreal --- PyGan/data/fact.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 PyGan/data/fact.py (limited to 'PyGan/data/fact.py') diff --git a/PyGan/data/fact.py b/PyGan/data/fact.py new file mode 100644 index 0000000..cd6af4f --- /dev/null +++ b/PyGan/data/fact.py @@ -0,0 +1,13 @@ +# +# fact: non regression testing for lifo and pygan classes +# +import lifo +import cle2000 +my_lifo=lifo.new() +my_lifo.push(5) +my_lifo.push(int) +my_lifo.lib() +my_fact=cle2000.new('fact',my_lifo,1) +my_fact.exec() +print("factorial(5)=", my_lifo.node(1)) +print("test fact completed") -- cgit v1.2.3