Average Error: 1.9 → 0.7
Time: 2.3m
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{\frac{{z}^{y}}{{a}^{\left(1.0 - t\right)}}}{\frac{y \cdot e^{b}}{x}} \le -2.7435541320658977 \cdot 10^{-95}:\\ \;\;\;\;\frac{\frac{\left({a}^{t} \cdot {z}^{y}\right) \cdot x}{{a}^{1.0} \cdot e^{b}}}{y}\\ \mathbf{if}\;\frac{\frac{{z}^{y}}{{a}^{\left(1.0 - t\right)}}}{\frac{y \cdot e^{b}}{x}} \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 (/ (/ (pow z y) (pow a (- 1.0 t))) (/ (* y (exp b)) x)) < -2.7435541320658977e-95

    1. Initial program 6.6

      \[\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-neg6.6

      \[\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-sum6.6

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

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

      \[\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-sub1.6

      \[\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/1.6

      \[\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-times1.6

      \[\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/1.5

      \[\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 simplify1.5

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

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

    1. Initial program 2.3

      \[\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.3

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

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

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

    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.3m)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))