Problems when 'mod' quite big number (like factorial).
3 ビュー (過去 30 日間)
古いコメントを表示
mod(factorial(22),10000)
mod(factorial(23),10000)
The answers should both be 0. However, the answers are 0 and 2864 seperately.
How to solve this problem?
Thank you very much!
0 件のコメント
採用された回答
David Hill
2022 年 5 月 5 日
編集済み: David Hill
2022 年 5 月 5 日
x=sym('23');
mod(factorial(x),10000)
x=sym('24');
mod(factorial(x),10000)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!