The first error in factorial

5 visualizaciones (últimos 30 días)
Avinash
Avinash el 8 de Sept. de 2015
Respondida: Walter Roberson el 8 de Sept. de 2015
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!

Respuestas (1)

Walter Roberson
Walter Roberson el 8 de Sept. de 2015
Okay, done.

Categorías

Más información sobre Encryption / Cryptography en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by