
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
Initial program 100.0%
expm1-log1p-u100.0%
+-commutative100.0%
fma-def100.0%
+-commutative100.0%
fma-def100.0%
+-commutative100.0%
fma-def100.0%
Applied egg-rr100.0%
Final simplification100.0%
Initial program 100.0%
Final simplification100.0%
Initial program 100.0%
Taylor expanded in x around 0 99.4%
*-commutative99.4%
Simplified99.4%
Final simplification99.4%
if x < -1.1000000000000001 or 1.19999999999999996 < x Initial program 100.0%
Taylor expanded in x around 0 99.1%
Taylor expanded in x around inf 99.4%
neg-mul-199.4%
Simplified99.4%
if -1.1000000000000001 < x < 1.19999999999999996Initial program 100.0%
Taylor expanded in x around 0 99.4%
associate--l+99.4%
+-commutative99.4%
*-un-lft-identity99.4%
distribute-rgt-out--99.4%
metadata-eval99.4%
Applied egg-rr99.4%
Taylor expanded in x around 0 98.4%
Final simplification98.9%
Initial program 100.0%
Taylor expanded in x around 0 98.8%
Final simplification98.8%
Initial program 100.0%
Taylor expanded in x around 0 57.3%
associate--l+57.3%
+-commutative57.3%
*-un-lft-identity57.3%
distribute-rgt-out--57.3%
metadata-eval57.3%
Applied egg-rr57.3%
Taylor expanded in x around 0 49.5%
Final simplification49.5%
herbie shell --seed 2023167
(FPCore (x)
:name "Numeric.SpecFunctions:invIncompleteGamma from math-functions-0.1.5.2, C"
:precision binary64
(- (/ (+ 2.30753 (* x 0.27061)) (+ 1.0 (* x (+ 0.99229 (* x 0.04481))))) x))