- Main: -
texttable
- install viapip install texttable
orpip install -r requirements.txt
- Tested on python 3.10.5
- From alternating_harmonic_series_reimann/src run:
python harmonic_series.py
for the next input: n = 10000 p = 1 q = 2
The output should be:
+-------+---------------------+---------------------+---------------------+
| n | Sum of the series | ln 2 | Rearranged sum |
+=======+=====================+=====================+=====================+
| 10000 | ~0.6930971830599583 | ~0.6931471805599453 | ~0.3465235952799728 |
+-------+---------------------+---------------------+---------------------+