soandos
- 166
- 0
is there a way to determine (does not need to be exact) the number of digits in x! ?
sorry if this is kind of pointless
sorry if this is kind of pointless
The discussion revolves around methods to estimate the number of digits in the factorial of a number, x!. Participants explore various mathematical approaches, including Stirling's formula and logarithmic calculations, while considering the precision of the results.
Participants present multiple approaches and methods, indicating that there is no consensus on a single best method for estimating the number of digits in x!. The discussion remains open with various competing views and techniques.
Some limitations are noted regarding the complexity of calculations for large n and the precision of results, but these aspects are not resolved within the discussion.
soandos said:is there a way to determine (does not need to be exact) the number of digits in x! ?
Gib Z said:Don't forget to then apply
[tex]D = 1 + \lfloor \log_{10} \lfloor n! \rfloor \rfloor[/tex]
after that for the number of digits.
Jarle said:If [tex]n![/tex] is hard to calculate, the series
[tex]D = 1 + \lfloor \sum^n_{i=1} \log_{10}i \rfloor[/tex]
should be easier to calculate - for integer [tex]n[/tex].