How can I use the ( nchoosek ) for the following case :- nchoosek(80,64) ???
조회 수: 8 (최근 30일)
이전 댓글 표시
I get the following warning message:
Warning: Result may not be exact. Coefficient is greater than 9.007199e+15 and is
only accurate to 15 digits.
댓글 수: 0
채택된 답변
Walter Roberson
2022년 7월 19일
nchoosek(sym(80),64)
nchoosek(uint64(80),64)
result is 26958221130508525 which is 17 digits
I didn't expect uint64 to work but it does for this case
댓글 수: 5
Walter Roberson
2022년 7월 20일
x = 64:80;
y = 64;
C = arrayfun(@(X) nchoosek(uint64(X), y), x.')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!