Average Error: 0.0 → 0.0
Time: 3.6s
Precision: 64
\[\frac{2.30753 + x \cdot 0.27061000000000002}{1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)} - x\]
\[\mathsf{fma}\left(0.27061000000000002, x, 2.30753\right) \cdot \frac{1}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)} - x\]
\frac{2.30753 + x \cdot 0.27061000000000002}{1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)} - x
\mathsf{fma}\left(0.27061000000000002, x, 2.30753\right) \cdot \frac{1}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)} - x
double code(double x) {
	return (((2.30753 + (x * 0.27061)) / (1.0 + (x * (0.99229 + (x * 0.04481))))) - x);
}
double code(double x) {
	return ((fma(0.27061, x, 2.30753) * (1.0 / fma(x, fma(0.04481, x, 0.99229), 1.0))) - x);
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{2.30753 + x \cdot 0.27061000000000002}{1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)} - x\]
  2. Using strategy rm
  3. Applied add-cbrt-cube0.0

    \[\leadsto \frac{2.30753 + x \cdot 0.27061000000000002}{\color{blue}{\sqrt[3]{\left(\left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right) \cdot \left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right)\right) \cdot \left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right)}}} - x\]
  4. Applied add-cbrt-cube21.5

    \[\leadsto \frac{\color{blue}{\sqrt[3]{\left(\left(2.30753 + x \cdot 0.27061000000000002\right) \cdot \left(2.30753 + x \cdot 0.27061000000000002\right)\right) \cdot \left(2.30753 + x \cdot 0.27061000000000002\right)}}}{\sqrt[3]{\left(\left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right) \cdot \left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right)\right) \cdot \left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right)}} - x\]
  5. Applied cbrt-undiv21.5

    \[\leadsto \color{blue}{\sqrt[3]{\frac{\left(\left(2.30753 + x \cdot 0.27061000000000002\right) \cdot \left(2.30753 + x \cdot 0.27061000000000002\right)\right) \cdot \left(2.30753 + x \cdot 0.27061000000000002\right)}{\left(\left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right) \cdot \left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right)\right) \cdot \left(1 + x \cdot \left(0.992290000000000005 + x \cdot 0.044810000000000003\right)\right)}}} - x\]
  6. Simplified0.0

    \[\leadsto \sqrt[3]{\color{blue}{{\left(\frac{\mathsf{fma}\left(0.27061000000000002, x, 2.30753\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)}\right)}^{3}}} - x\]
  7. Using strategy rm
  8. Applied div-inv0.0

    \[\leadsto \sqrt[3]{{\color{blue}{\left(\mathsf{fma}\left(0.27061000000000002, x, 2.30753\right) \cdot \frac{1}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)}\right)}}^{3}} - x\]
  9. Applied unpow-prod-down21.5

    \[\leadsto \sqrt[3]{\color{blue}{{\left(\mathsf{fma}\left(0.27061000000000002, x, 2.30753\right)\right)}^{3} \cdot {\left(\frac{1}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)}\right)}^{3}}} - x\]
  10. Applied cbrt-prod21.5

    \[\leadsto \color{blue}{\sqrt[3]{{\left(\mathsf{fma}\left(0.27061000000000002, x, 2.30753\right)\right)}^{3}} \cdot \sqrt[3]{{\left(\frac{1}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)}\right)}^{3}}} - x\]
  11. Simplified0.0

    \[\leadsto \color{blue}{\mathsf{fma}\left(0.27061000000000002, x, 2.30753\right)} \cdot \sqrt[3]{{\left(\frac{1}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)}\right)}^{3}} - x\]
  12. Simplified0.0

    \[\leadsto \mathsf{fma}\left(0.27061000000000002, x, 2.30753\right) \cdot \color{blue}{\frac{1}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)}} - x\]
  13. Final simplification0.0

    \[\leadsto \mathsf{fma}\left(0.27061000000000002, x, 2.30753\right) \cdot \frac{1}{\mathsf{fma}\left(x, \mathsf{fma}\left(0.044810000000000003, x, 0.992290000000000005\right), 1\right)} - x\]

Reproduce

herbie shell --seed 2020105 +o rules:numerics
(FPCore (x)
  :name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, C"
  :precision binary64
  (- (/ (+ 2.30753 (* x 0.27061)) (+ 1 (* x (+ 0.99229 (* x 0.04481))))) x))