Average Error: 0.1 → 0.3
Time: 43.7s
Precision: 64
Internal precision: 128
\[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b\]
\[\left(\left(\left(x + y\right) + z\right) - {\left(\sqrt[3]{z \cdot \log t}\right)}^{3}\right) + \left(a - 0.5\right) \cdot b\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Target

Original0.1
Comparison0.3
Herbie0.3
\[ \left(\left(x + y\right) + \frac{\left(1 - {\left(\log t\right)}^2\right) \cdot z}{1 + \log t}\right) + \left(a - 0.5\right) \cdot b \]

Derivation

  1. Initial program 0.1

    \[\left(\left(\left(x + y\right) + z\right) - z \cdot \log t\right) + \left(a - 0.5\right) \cdot b\]
  2. Using strategy rm
  3. Applied add-cube-cbrt 0.3

    \[\leadsto \left(\left(\left(x + y\right) + z\right) - \color{blue}{{\left(\sqrt[3]{z \cdot \log t}\right)}^3}\right) + \left(a - 0.5\right) \cdot b\]
  4. Using strategy rm
  5. Applied pow3 0.3

    \[\leadsto \left(\left(\left(x + y\right) + z\right) - \color{blue}{{\left(\sqrt[3]{z \cdot \log t}\right)}^{3}}\right) + \left(a - 0.5\right) \cdot b\]
  6. Removed slow pow expressions

Runtime

Time bar (total: 43.7s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3661209896 2363890549 2768140330 1270948359 2836456106 3979902994)'
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, A"

  :target
  (+ (+ (+ x y) (/ (* (- 1 (sqr (log t))) z) (+ 1 (log t)))) (* (- a 0.5) b))

  (+ (- (+ (+ x y) z) (* z (log t))) (* (- a 0.5) b)))