Harmonic series: Difference between revisions

Content added Content deleted
(Added rust section. This code is currently slow. The search through all the harmonic numbers when looking for when the series exceeds the different thresholds does not finish within a comfortable time frame on my laptop when the maximum threshold is 10.)
m (Now mentions which external crate the code needs)
Line 1,642: Line 1,642:


=={{header|Rust}}==
=={{header|Rust}}==
Using big rationals.
Using big rationals and big integers from the [https://docs.rs/num/latest/num/ num] crate.
<lang rust>
<lang rust>
use num::rational::Ratio;
use num::rational::Ratio;