The first error in factorial

4 次查看(过去 30 天)
Avinash
Avinash 2015-9-8
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
Okay, done.

类别

Help CenterFile Exchange 中查找有关 Encryption / Cryptography 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by