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.
Number of 1s in the Binary Representation of a Number
Angle between two vectors
Celsius to Kelvin
Sum of series III
Smallest n, for n! to have m trailing zero digits
Equal temperament - musical notes and frequency
The last non-zero digit of a factorial
Fractal: area and perimeter of Koch snowflake
Number of paths on a 3d grid
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office