The first error in factorial

The first error in factorial
Using the data type double together with the function factorial can lead to errors. A simple way to demonstrate numerical errors is to calculate
n!/(n-1)! - n
The true value of this term is zero.
Q: Find the smallest number n, for which this term is not exactly zero, when calculated in MATLAB! Do not enter leading or trailing zeros or blanks!

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 9 月 8 日

0 投票

Okay, done.

カテゴリ

ヘルプ センター および File ExchangeEncryption / Cryptography についてさらに検索

質問済み:

2015 年 9 月 8 日

回答済み:

2015 年 9 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by