\[\sqrt[3]{x + 1} - \sqrt[3]{x}
\]
↓
\[\begin{array}{l}
t_0 := \sqrt[3]{1 + x}\\
\mathbf{if}\;t_0 - \sqrt[3]{x} \leq 3 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(0.3333333333333333, \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}, \sqrt[3]{\frac{1}{{x}^{5}}} \cdot -0.1111111111111111\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sqrt[3]{x} \cdot \left(t_0 + \sqrt[3]{x}\right) + \sqrt[3]{{\left(1 + x\right)}^{2}}}\\
\end{array}
\]
(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
↓
(FPCore (x)
:precision binary64
(let* ((t_0 (cbrt (+ 1.0 x))))
(if (<= (- t_0 (cbrt x)) 3e-9)
(fma
0.3333333333333333
(/ (cbrt (/ -1.0 x)) (cbrt (- x)))
(* (cbrt (/ 1.0 (pow x 5.0))) -0.1111111111111111))
(/ 1.0 (+ (* (cbrt x) (+ t_0 (cbrt x))) (cbrt (pow (+ 1.0 x) 2.0)))))))double code(double x) {
return cbrt((x + 1.0)) - cbrt(x);
}
↓
double code(double x) {
double t_0 = cbrt((1.0 + x));
double tmp;
if ((t_0 - cbrt(x)) <= 3e-9) {
tmp = fma(0.3333333333333333, (cbrt((-1.0 / x)) / cbrt(-x)), (cbrt((1.0 / pow(x, 5.0))) * -0.1111111111111111));
} else {
tmp = 1.0 / ((cbrt(x) * (t_0 + cbrt(x))) + cbrt(pow((1.0 + x), 2.0)));
}
return tmp;
}
function code(x)
return Float64(cbrt(Float64(x + 1.0)) - cbrt(x))
end
↓
function code(x)
t_0 = cbrt(Float64(1.0 + x))
tmp = 0.0
if (Float64(t_0 - cbrt(x)) <= 3e-9)
tmp = fma(0.3333333333333333, Float64(cbrt(Float64(-1.0 / x)) / cbrt(Float64(-x))), Float64(cbrt(Float64(1.0 / (x ^ 5.0))) * -0.1111111111111111));
else
tmp = Float64(1.0 / Float64(Float64(cbrt(x) * Float64(t_0 + cbrt(x))) + cbrt((Float64(1.0 + x) ^ 2.0))));
end
return tmp
end
code[x_] := N[(N[Power[N[(x + 1.0), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]
↓
code[x_] := Block[{t$95$0 = N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision]}, If[LessEqual[N[(t$95$0 - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision], 3e-9], N[(0.3333333333333333 * N[(N[Power[N[(-1.0 / x), $MachinePrecision], 1/3], $MachinePrecision] / N[Power[(-x), 1/3], $MachinePrecision]), $MachinePrecision] + N[(N[Power[N[(1.0 / N[Power[x, 5.0], $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] * -0.1111111111111111), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[(N[Power[x, 1/3], $MachinePrecision] * N[(t$95$0 + N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[Power[N[Power[N[(1.0 + x), $MachinePrecision], 2.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\sqrt[3]{x + 1} - \sqrt[3]{x}
↓
\begin{array}{l}
t_0 := \sqrt[3]{1 + x}\\
\mathbf{if}\;t_0 - \sqrt[3]{x} \leq 3 \cdot 10^{-9}:\\
\;\;\;\;\mathsf{fma}\left(0.3333333333333333, \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}, \sqrt[3]{\frac{1}{{x}^{5}}} \cdot -0.1111111111111111\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sqrt[3]{x} \cdot \left(t_0 + \sqrt[3]{x}\right) + \sqrt[3]{{\left(1 + x\right)}^{2}}}\\
\end{array}