{\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)}\begin{array}{l}
\mathbf{if}\;\frac{1}{n} \le -13969397.78911683:\\
\;\;\;\;2 \cdot \left(\sqrt{\log \left(\sqrt[3]{e^{{\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)}}}\right)} \cdot \sqrt{\log \left(\sqrt[3]{e^{{\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)}}}\right)}\right) + \log \left(\sqrt[3]{e^{{\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)}}}\right)\\
\mathbf{elif}\;\frac{1}{n} \le 6.7860690084179395 \cdot 10^{-19}:\\
\;\;\;\;\mathsf{fma}\left(1, \frac{1}{x \cdot n}, -\mathsf{fma}\left(0.5, \frac{1}{{x}^{2} \cdot n}, 1 \cdot \frac{\log \left(\frac{1}{x}\right)}{x \cdot {n}^{2}}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;{\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)}\\
\end{array}double f(double x, double n) {
double r70147 = x;
double r70148 = 1.0;
double r70149 = r70147 + r70148;
double r70150 = n;
double r70151 = r70148 / r70150;
double r70152 = pow(r70149, r70151);
double r70153 = pow(r70147, r70151);
double r70154 = r70152 - r70153;
return r70154;
}
double f(double x, double n) {
double r70155 = 1.0;
double r70156 = n;
double r70157 = r70155 / r70156;
double r70158 = -13969397.78911683;
bool r70159 = r70157 <= r70158;
double r70160 = 2.0;
double r70161 = x;
double r70162 = r70161 + r70155;
double r70163 = pow(r70162, r70157);
double r70164 = pow(r70161, r70157);
double r70165 = r70163 - r70164;
double r70166 = exp(r70165);
double r70167 = cbrt(r70166);
double r70168 = log(r70167);
double r70169 = sqrt(r70168);
double r70170 = r70169 * r70169;
double r70171 = r70160 * r70170;
double r70172 = r70171 + r70168;
double r70173 = 6.7860690084179395e-19;
bool r70174 = r70157 <= r70173;
double r70175 = 1.0;
double r70176 = r70161 * r70156;
double r70177 = r70175 / r70176;
double r70178 = 0.5;
double r70179 = pow(r70161, r70160);
double r70180 = r70179 * r70156;
double r70181 = r70175 / r70180;
double r70182 = r70175 / r70161;
double r70183 = log(r70182);
double r70184 = pow(r70156, r70160);
double r70185 = r70161 * r70184;
double r70186 = r70183 / r70185;
double r70187 = r70155 * r70186;
double r70188 = fma(r70178, r70181, r70187);
double r70189 = -r70188;
double r70190 = fma(r70155, r70177, r70189);
double r70191 = r70174 ? r70190 : r70165;
double r70192 = r70159 ? r70172 : r70191;
return r70192;
}



Bits error versus x



Bits error versus n
if (/ 1.0 n) < -13969397.78911683Initial program 0
rmApplied add-log-exp0
Applied add-log-exp0
Applied diff-log0
Simplified0
rmApplied add-cube-cbrt0
Applied log-prod0
Simplified0
rmApplied add-sqr-sqrt0
if -13969397.78911683 < (/ 1.0 n) < 6.7860690084179395e-19Initial program 44.7
Taylor expanded around inf 33.7
Simplified33.7
if 6.7860690084179395e-19 < (/ 1.0 n) Initial program 25.8
Final simplification23.1
herbie shell --seed 2020081 +o rules:numerics
(FPCore (x n)
:name "2nthrt (problem 3.4.6)"
:precision binary64
(- (pow (+ x 1) (/ 1 n)) (pow x (/ 1 n))))