Average Error: 1.9 → 4.7
Time: 4.9m
Precision: 64
Internal Precision: 384
\[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b}}{y}\]
\[\begin{array}{l} \mathbf{if}\;y \le -4.10216012707145 \cdot 10^{-69}:\\ \;\;\;\;\frac{x}{y} \cdot e^{\log a \cdot \left(t - 1.0\right) - \left(b - \log z \cdot y\right)}\\ \mathbf{if}\;y \le 4.764809040228486 \cdot 10^{-34}:\\ \;\;\;\;\left(\sqrt[3]{\frac{x \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}{y}} \cdot \sqrt[3]{\frac{x \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}{y}}\right) \cdot \sqrt[3]{\frac{x \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}{y}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y} \cdot e^{\log a \cdot \left(t - 1.0\right) - \left(b - \log z \cdot y\right)}\\ \end{array}\]

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

Derivation

  1. Split input into 2 regimes
  2. if y < -4.10216012707145e-69 or 4.764809040228486e-34 < y

    1. Initial program 0.4

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b}}{y}\]
    2. Applied simplify23.8

      \[\leadsto \color{blue}{\frac{x}{y} \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}\]
    3. Using strategy rm
    4. Applied pow-to-exp23.8

      \[\leadsto \frac{x}{y} \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{\color{blue}{e^{\log z \cdot y}}}}\]
    5. Applied div-exp14.3

      \[\leadsto \frac{x}{y} \cdot \frac{{a}^{\left(t - 1.0\right)}}{\color{blue}{e^{b - \log z \cdot y}}}\]
    6. Applied pow-to-exp14.5

      \[\leadsto \frac{x}{y} \cdot \frac{\color{blue}{e^{\log a \cdot \left(t - 1.0\right)}}}{e^{b - \log z \cdot y}}\]
    7. Applied div-exp0.6

      \[\leadsto \frac{x}{y} \cdot \color{blue}{e^{\log a \cdot \left(t - 1.0\right) - \left(b - \log z \cdot y\right)}}\]

    if -4.10216012707145e-69 < y < 4.764809040228486e-34

    1. Initial program 3.9

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b}}{y}\]
    2. Applied simplify21.1

      \[\leadsto \color{blue}{\frac{x}{y} \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}\]
    3. Using strategy rm
    4. Applied associate-*l/9.8

      \[\leadsto \color{blue}{\frac{x \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}{y}}\]
    5. Using strategy rm
    6. Applied add-cube-cbrt10.1

      \[\leadsto \color{blue}{\left(\sqrt[3]{\frac{x \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}{y}} \cdot \sqrt[3]{\frac{x \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}{y}}\right) \cdot \sqrt[3]{\frac{x \cdot \frac{{a}^{\left(t - 1.0\right)}}{\frac{e^{b}}{{z}^{y}}}}{y}}}\]
  3. Recombined 2 regimes into one program.
  4. Removed slow pow expressions.

Runtime

Time bar (total: 4.9m)Debug logProfile

herbie shell --seed '#(1063154770 1824007522 645063331 41291047 494775821 1237684644)' 
(FPCore (x y z t a b)
  :name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2"
  (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))