]> gitweb.factorcode.org Git - factor.git/commitdiff
math.factorial: reverse-factorial only undo factorial.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Nov 2016 03:01:36 +0000 (19:01 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 30 Nov 2016 03:01:36 +0000 (19:01 -0800)
The other way doesn't make sense.

extra/math/factorials/factorials.factor

index a65b20d207e57471b84290f8c0b69fe77a9c7b69..13c9e43e26af9d092a91641a88a4621e091fe8eb 100644 (file)
@@ -123,5 +123,3 @@ PRIVATE>
     1 1 [ 2over > ] [ 1 + [ * ] keep ] while [ = ] dip and ;
 
 \ factorial [ reverse-factorial ] define-inverse
-
-\ reverse-factorial [ factorial ] define-inverse