src/Tools/SML/factorial.sml
author hoelzl
Fri, 30 Sep 2016 15:35:37 +0200
changeset 63971 da89140186e2
parent 56276 9e2d5e3debd3
permissions -rw-r--r--
HOL-Analysis: move Product_Vector and Inner_Product from Library

fun factorial 0 = 1
  | factorial n = n * factorial (n - 1);

factorial 10;
factorial 100;
factorial 1000;