Faktorial
Dalam bidang matematik , faktorial bagi sebarang integer positif
n
{\displaystyle n}
, juga ditulis
n
!
{\displaystyle n!}
ialah hasil darab semua integer positif yang sama atau lebih kecil daripada n. Sebagai contoh,
5
!
=
5
×
4
×
3
×
2
×
1
=
120
{\displaystyle 5!=5\times 4\times 3\times 2\times 1=120}
0! dikira kes khas dan mempunyai nilai 1.
Takrif
Takrif faktorial secara formal ialah,
n
!
=
∏
k
=
1
n
k
{\displaystyle n!=\prod _{k=1}^{n}k\!}
atau mengikut takrif yang menggunakan rekursi,
n
!
=
{
1
jika
n
=
0
,
(
n
−
1
)
!
×
n
jika
n
>
0.
{\displaystyle n!={\begin{cases}1&{\text{jika }n=0,\\(n-1)!\times n&{\text{jika }n>0.\end{cases}
The article is a derivative under the Creative Commons Attribution-ShareAlike License .
A link to the original article can be found here and attribution parties here
By using this site, you agree to the Terms of Use . Gpedia ® is a registered trademark of the Cyberajah Pty Ltd