How to simplify factorial before calculating the result
1 次查看(过去 30 天)
显示 更早的评论
Hi, I'm trying to calculate (2189!/(2165!*24!))/(2190!/(2165!*25!)). MathLab is telling me it's NaN because of the Inf/Inf result but i know the answer is around 1/438. Is there a way to tell MathLab to simplify the factorials before calulating their values.
1 个评论
James Tursa
2021-9-29
编辑:James Tursa
2021-9-29
Is it only this particular calculation you are interested in (which easily reduces to 25/2190 by inspection ... not close to your claimed 1/438), or is this simply an example of a more generic calculation?
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!