Average Error: 1.9 → 0.7
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}\;\frac{1}{e^{b} \cdot \frac{\frac{\frac{y}{x}}{{z}^{y}}}{{a}^{\left(t - 1.0\right)}}} \le 1.5183379026880107 \cdot 10^{+299}:\\ \;\;\;\;\frac{{z}^{y} \cdot {a}^{\left(-1.0\right)}}{\left(\frac{y}{x} \cdot e^{b}\right) \cdot {a}^{\left(-t\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

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 2 regimes
  2. if (/ 1 (* (exp b) (/ (/ (/ y x) (pow z y)) (pow a (- t 1.0))))) < 1.5183379026880107e+299

    1. Initial program 2.8

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

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

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

    if 1.5183379026880107e+299 < (/ 1 (* (exp b) (/ (/ (/ y x) (pow z y)) (pow a (- t 1.0)))))

    1. Initial program 0.2

      \[\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-identity0.2

      \[\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-prod0.2

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

      \[\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: 2.5m)Debug logProfile

herbie shell --seed '#(1072967564 1937075727 894099792 790700740 1036514779 1027793188)' +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))