Average Error: 0.3 → 0.3
Time: 1.1m
Precision: 64
Internal Precision: 576
\[\left(\left(\log \left(x + y\right) + \log z\right) - t\right) + \left(a - 0.5\right) \cdot \log t\]
\[\left((\left(\log t\right) \cdot a + \left(\log z\right))_* - (0.5 \cdot \left(\log t\right) + t)_*\right) + \log \left(x + y\right)\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Derivation

  1. Initial program 0.3

    \[\left(\left(\log \left(x + y\right) + \log z\right) - t\right) + \left(a - 0.5\right) \cdot \log t\]
  2. Initial simplification0.3

    \[\leadsto \log \left(y + x\right) + \left((\left(a - 0.5\right) \cdot \left(\log t\right) + \left(\log z\right))_* - t\right)\]
  3. Taylor expanded around inf 0.3

    \[\leadsto \log \left(y + x\right) + \color{blue}{\left(0.5 \cdot \log \left(\frac{1}{t}\right) - \left(t + \left(\log \left(\frac{1}{z}\right) + a \cdot \log \left(\frac{1}{t}\right)\right)\right)\right)}\]
  4. Simplified0.3

    \[\leadsto \log \left(y + x\right) + \color{blue}{\left((\left(\log t\right) \cdot a + \left(\log z\right))_* - (0.5 \cdot \left(\log t\right) + t)_*\right)}\]
  5. Using strategy rm
  6. Applied add-cube-cbrt0.9

    \[\leadsto \log \left(y + x\right) + \left((\left(\log t\right) \cdot a + \left(\log z\right))_* - \color{blue}{\left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right) \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}}\right)\]
  7. Applied add-sqr-sqrt32.6

    \[\leadsto \log \left(y + x\right) + \left(\color{blue}{\sqrt{(\left(\log t\right) \cdot a + \left(\log z\right))_*} \cdot \sqrt{(\left(\log t\right) \cdot a + \left(\log z\right))_*}} - \left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right) \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right)\]
  8. Applied prod-diff32.6

    \[\leadsto \log \left(y + x\right) + \color{blue}{\left((\left(\sqrt{(\left(\log t\right) \cdot a + \left(\log z\right))_*}\right) \cdot \left(\sqrt{(\left(\log t\right) \cdot a + \left(\log z\right))_*}\right) + \left(-\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right)\right))_* + (\left(-\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right) \cdot \left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right) + \left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right)\right))_*\right)}\]
  9. Simplified0.3

    \[\leadsto \log \left(y + x\right) + \left(\color{blue}{(\left(\log t\right) \cdot \left(a - 0.5\right) + \left(\log z - t\right))_*} + (\left(-\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right) \cdot \left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right) + \left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \left(\sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*} \cdot \sqrt[3]{(0.5 \cdot \left(\log t\right) + t)_*}\right)\right))_*\right)\]
  10. Simplified0.3

    \[\leadsto \log \left(y + x\right) + \left((\left(\log t\right) \cdot \left(a - 0.5\right) + \left(\log z - t\right))_* + \color{blue}{0}\right)\]
  11. Taylor expanded around inf 0.3

    \[\leadsto \log \left(y + x\right) + \left(\color{blue}{\left(0.5 \cdot \log \left(\frac{1}{t}\right) - \left(t + \left(\log \left(\frac{1}{z}\right) + a \cdot \log \left(\frac{1}{t}\right)\right)\right)\right)} + 0\right)\]
  12. Simplified0.3

    \[\leadsto \log \left(y + x\right) + \left(\color{blue}{\left((\left(\log t\right) \cdot a + \left(\log z\right))_* - (0.5 \cdot \left(\log t\right) + t)_*\right)} + 0\right)\]
  13. Final simplification0.3

    \[\leadsto \left((\left(\log t\right) \cdot a + \left(\log z\right))_* - (0.5 \cdot \left(\log t\right) + t)_*\right) + \log \left(x + y\right)\]

Runtime

Time bar (total: 1.1m)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.30.30.10.20%
herbie shell --seed 2018339 +o rules:numerics
(FPCore (x y z t a)
  :name "Numeric.SpecFunctions:logGammaL from math-functions-0.1.5.2"
  (+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))))