Average Error: 1.9 → 0.6
Time: 2.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}\;\left(\sqrt[3]{\frac{\frac{{a}^{\left(t - 1.0\right)}}{e^{b}}}{\frac{\frac{y}{x}}{{z}^{y}}}} \cdot \sqrt[3]{\frac{\frac{{a}^{\left(t - 1.0\right)}}{e^{b}}}{\frac{\frac{y}{x}}{{z}^{y}}}}\right) \cdot \sqrt[3]{\frac{{z}^{y}}{y} \cdot \left({a}^{\left(t - 1.0\right)} \cdot \frac{x}{e^{b}}\right)} \le -9.335966708071634 \cdot 10^{-182}:\\ \;\;\;\;\frac{\frac{\left({a}^{t} \cdot {z}^{y}\right) \cdot x}{{a}^{1.0} \cdot e^{b}}}{y}\\ \mathbf{if}\;\left(\sqrt[3]{\frac{\frac{{a}^{\left(t - 1.0\right)}}{e^{b}}}{\frac{\frac{y}{x}}{{z}^{y}}}} \cdot \sqrt[3]{\frac{\frac{{a}^{\left(t - 1.0\right)}}{e^{b}}}{\frac{\frac{y}{x}}{{z}^{y}}}}\right) \cdot \sqrt[3]{\frac{{z}^{y}}{y} \cdot \left({a}^{\left(t - 1.0\right)} \cdot \frac{x}{e^{b}}\right)} \le +\infty:\\ \;\;\;\;\frac{\frac{{z}^{y}}{{a}^{\left(1.0 - t\right)}}}{\frac{y \cdot e^{b}}{x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b}}{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 3 regimes
  2. if (* (* (cbrt (/ (/ (pow a (- t 1.0)) (exp b)) (/ (/ y x) (pow z y)))) (cbrt (/ (/ (pow a (- t 1.0)) (exp b)) (/ (/ y x) (pow z y))))) (cbrt (* (/ (pow z y) y) (* (pow a (- t 1.0)) (/ x (exp b)))))) < -9.335966708071634e-182

    1. Initial program 5.8

      \[\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-neg5.8

      \[\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-sum5.8

      \[\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 simplify0.9

      \[\leadsto \frac{x \cdot \left(\color{blue}{\left({a}^{\left(t - 1.0\right)} \cdot {z}^{y}\right)} \cdot e^{-b}\right)}{y}\]
    6. Using strategy rm
    7. Applied exp-neg0.9

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

      \[\leadsto \frac{x \cdot \left(\left(\color{blue}{\frac{{a}^{t}}{{a}^{1.0}}} \cdot {z}^{y}\right) \cdot \frac{1}{e^{b}}\right)}{y}\]
    9. Applied associate-*l/0.7

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

      \[\leadsto \frac{x \cdot \color{blue}{\frac{\left({a}^{t} \cdot {z}^{y}\right) \cdot 1}{{a}^{1.0} \cdot e^{b}}}}{y}\]
    11. Applied associate-*r/0.6

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

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

    if -9.335966708071634e-182 < (* (* (cbrt (/ (/ (pow a (- t 1.0)) (exp b)) (/ (/ y x) (pow z y)))) (cbrt (/ (/ (pow a (- t 1.0)) (exp b)) (/ (/ y x) (pow z y))))) (cbrt (* (/ (pow z y) y) (* (pow a (- t 1.0)) (/ x (exp b)))))) < +inf.0

    1. Initial program 2.6

      \[\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1.0\right) \cdot \log a\right) - b}}{y}\]
    2. Taylor expanded around inf 2.6

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

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

    if +inf.0 < (* (* (cbrt (/ (/ (pow a (- t 1.0)) (exp b)) (/ (/ y x) (pow z y)))) (cbrt (/ (/ (pow a (- t 1.0)) (exp b)) (/ (/ y x) (pow z y))))) (cbrt (* (/ (pow z y) y) (* (pow a (- t 1.0)) (/ x (exp b))))))

    1. Initial program 0

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

Runtime

Time bar (total: 2.5m)Debug logProfile

herbie shell --seed '#(1071246582 2318319007 2683472949 3810440501 3233274817 2724848749)' 
(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))