Average Error: 1.8 → 1.0
Time: 1.5m
Precision: 64
Internal Precision: 576
\[\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}\;\frac{e^{b} \cdot y}{{z}^{y} \cdot {a}^{\left(t - 1.0\right)}} \le -9.820079220299367 \cdot 10^{-304}:\\ \;\;\;\;\frac{x}{\frac{e^{b} \cdot y}{{z}^{y} \cdot {a}^{\left(t - 1.0\right)}}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot {e}^{\left(\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b\right)}}{y}\\ \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 (/ (* (exp b) y) (* (pow z y) (pow a (- t 1.0)))) < -9.820079220299367e-304

    1. Initial program 2.4

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b}}{y}\]
    2. Using strategy rm
    3. Applied sub-neg2.4

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

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

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

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

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

    if -9.820079220299367e-304 < (/ (* (exp b) y) (* (pow z y) (pow a (- t 1.0))))

    1. Initial program 1.5

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b}}{y}\]
    2. Using strategy rm
    3. Applied *-un-lft-identity1.5

      \[\leadsto \frac{x \cdot e^{\color{blue}{1 \cdot \left(\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b\right)}}}{y}\]
    4. Applied exp-prod1.5

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

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

Runtime

Time bar (total: 1.5m)Debug logProfile

herbie shell --seed '#(1071373924 2949776965 1885069702 3247780810 90874544 2263903749)' +o rules:numerics
(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))