Factorial for large number and its division to another large factorial number

조회 수: 6 (최근 30일)
Hello everyone,
I have been trying to solve a complicated problem for probability with some permutation rules . Anyway, I am stuck to solve the following formula:
(365!/(365-30)!) / 365 ^ 30
I have used Stirling's formula to solve factorial for a large number but I got nothing. In addition, I have used the bigfactorial function and got answers for each number (365! and 340!). However when I divide it I got inf. or Nan
Please anyone helps me with many thanks.

채택된 답변

Matt J
Matt J 2013년 9월 7일
편집: Matt J 2013년 9월 7일
>> prod( (336:365)./365 )
ans =
0.2937
  댓글 수: 2
ABDULAZIZ
ABDULAZIZ 2013년 9월 7일
That is an intelligent way to solve it. Thanks Matt.
Rod R. Warlick
Rod R. Warlick 2017년 11월 25일
Your answer kept my large factorial terms from blowing up... thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by