\log \left(N + 1\right) - \log N
\begin{array}{l}
\mathbf{if}\;N \le 7883.767016394317579397466033697128295898:\\
\;\;\;\;\log \left(\sqrt{\frac{1 + N}{N}}\right) + \log \left(\sqrt{\frac{1 + N}{N}}\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{1}{N \cdot N}, \frac{0.3333333333333333148296162562473909929395}{N} - 0.5, \frac{1}{N}\right)\\
\end{array}double f(double N) {
double r72885 = N;
double r72886 = 1.0;
double r72887 = r72885 + r72886;
double r72888 = log(r72887);
double r72889 = log(r72885);
double r72890 = r72888 - r72889;
return r72890;
}
double f(double N) {
double r72891 = N;
double r72892 = 7883.767016394318;
bool r72893 = r72891 <= r72892;
double r72894 = 1.0;
double r72895 = r72894 + r72891;
double r72896 = r72895 / r72891;
double r72897 = sqrt(r72896);
double r72898 = log(r72897);
double r72899 = r72898 + r72898;
double r72900 = 1.0;
double r72901 = r72891 * r72891;
double r72902 = r72900 / r72901;
double r72903 = 0.3333333333333333;
double r72904 = r72903 / r72891;
double r72905 = 0.5;
double r72906 = r72904 - r72905;
double r72907 = r72894 / r72891;
double r72908 = fma(r72902, r72906, r72907);
double r72909 = r72893 ? r72899 : r72908;
return r72909;
}



Bits error versus N
if N < 7883.767016394318Initial program 0.1
Simplified0.1
rmApplied diff-log0.1
Simplified0.1
rmApplied add-sqr-sqrt0.1
Applied log-prod0.1
Simplified0.1
Simplified0.1
if 7883.767016394318 < N Initial program 59.5
Simplified59.5
rmApplied diff-log59.3
Simplified59.3
Taylor expanded around inf 0.0
Simplified0.0
Final simplification0.1
herbie shell --seed 2019196 +o rules:numerics
(FPCore (N)
:name "2log (problem 3.3.6)"
(- (log (+ N 1.0)) (log N)))