# Collection of code snippets by Arne Vajhøj 
# (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import numpy
numpy.warnings.simplefilter("ignore", RuntimeWarning)

def fac(n):
    if n <= 1:
        res = 1
    else:
        res = n * fac(n - 1)
    print('fac : n = %d res = %d' % (n, res))
    return res

print(fac(numpy.int32(50)))
