Definition : It just means to multiply a series of descending natural numbers. (symbol :- ! )
For Example : 1) 3! = 3 x 2 x 1 = 6
2) 5! = 5 x 4 x 3 x 2 x 1 = 120
Note : 1! is 1 and 0! is also 1
Factorials are use in many fields of Mathematics but particularly in Permutation and Combination.
Note : We can have factorial for negative numbers as well as decimal numbers but we need to get into a subject called the "Gamma Function"
Program to Calculate Factorial of a Number
Note : The above program may show result for decimal number which is incorrect
0 Comments:
Click Here To add Comment
Post a Comment