vpa(factorial(27)) = 10888869450418351940239884288
...
no trailing zeros
factorial(27) = 1.088886945041835e+28
...
vpa(factorial(27)) - 1.088886945041835e+28 - 2.199023255552000e+12 = 0
I don't get it.
if vpa(factorial) = 10888869450418351940239884288
then there are no trailing zeros...
vpa(factorial(11)) = 39916800
two trailing, like in your problem statement...
am I crazy?
Highphi, any factorial equal to or greater than 5! has to have trailing zeros because it will have one or more pairs of 2 and 5 in its factors. I think factorial(vpa(27)) will give the correct value.
Swap the first and last columns
12426 Solvers
Remove any row in which a NaN appears
6829 Solvers
Find relatively common elements in matrix rows
865 Solvers
733 Solvers
Find last zero for each column
239 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!