The first error in factorial

조회 수: 5 (최근 30일)
Avinash
Avinash 2015년 9월 8일
답변: Walter Roberson 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