diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /PyGan/data/fact.py | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'PyGan/data/fact.py')
| -rw-r--r-- | PyGan/data/fact.py | 13 |
1 files changed, 13 insertions, 0 deletions
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") |
