1: /// -------- ToujoursEnBeta
2: /// Author & Copyright : Peter Luschny
3: /// License: LGPL version 3.0 or (at your option)
4: /// Creative Commons Attribution-ShareAlike 3.0
5: /// Comments mail to: peter(at)luschny.de
6: /// Created: 2010-03-01
7:
8: namespace Sharith.Math.Factorial
9: {
10: using XInt = Sharith.Arithmetic.XInt;
11:
12: /// <summary> An interface for the factorial function
13: /// n! = 1*2*3*...*n
14: /// for nonnegative integer values n.
15: /// </summary>
16: public interface IFactorialFunction
17: {
18: string Name { get; }
19: XInt Factorial(int n);
20: }
21:
22: } // endOfIFactorialFunction