Sharith.Factorial.PrimeSwing.RecFactorial C# (CSharp) 메소드

RecFactorial() 개인적인 메소드

private RecFactorial ( int n ) : Sharith.Arithmetic.XInt
n int
리턴 Sharith.Arithmetic.XInt
        private XInt RecFactorial(int n)
        {
            if (n < 2) return XInt.One;

            return XInt.Pow(this.RecFactorial(n / 2), 2) * this.Swing(n);
        }