Average Error: 3.6 → 9.5
Time: 49.0s
Precision: 64
Internal Precision: 128
\[\frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \frac{2.0}{t \cdot 3.0}\right)\right)}}\]
\[\begin{array}{l} \mathbf{if}\;a \le -7.724721290750151 \cdot 10^{-15} \lor \neg \left(a \le 6.951921396237591 \cdot 10^{+158}\right):\\ \;\;\;\;\frac{x}{e^{\left(c \cdot 0.8333333333333334 - a \cdot \left(b - c\right)\right) \cdot 2.0} \cdot y + x}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot e^{2.0 \cdot \left(\frac{\sqrt{a + t} \cdot z}{t} - \left(b \cdot 0.8333333333333334 + \frac{0.6666666666666666}{t} \cdot \left(c - b\right)\right)\right)} + x}\\ \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

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 2 regimes
  2. if a < -7.724721290750151e-15 or 6.951921396237591e+158 < a

    1. Initial program 6.0

      \[\frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \frac{2.0}{t \cdot 3.0}\right)\right)}}\]
    2. Taylor expanded around -inf 6.0

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \color{blue}{\frac{0.6666666666666666}{t}}\right)\right)}}\]
    3. Taylor expanded around inf 11.3

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \color{blue}{\left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}}\]
    4. Simplified8.3

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \color{blue}{\left(0.8333333333333334 \cdot c - \left(b - c\right) \cdot a\right)}}}\]

    if -7.724721290750151e-15 < a < 6.951921396237591e+158

    1. Initial program 2.6

      \[\frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \frac{2.0}{t \cdot 3.0}\right)\right)}}\]
    2. Taylor expanded around -inf 2.6

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \color{blue}{\frac{0.6666666666666666}{t}}\right)\right)}}\]
    3. Taylor expanded around 0 11.3

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \color{blue}{\left(\left(0.6666666666666666 \cdot \frac{c}{t} + 0.8333333333333334 \cdot b\right) - 0.6666666666666666 \cdot \frac{b}{t}\right)}\right)}}\]
    4. Simplified10.1

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \color{blue}{\left(0.8333333333333334 \cdot b + \left(c - b\right) \cdot \frac{0.6666666666666666}{t}\right)}\right)}}\]
  3. Recombined 2 regimes into one program.
  4. Final simplification9.5

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \le -7.724721290750151 \cdot 10^{-15} \lor \neg \left(a \le 6.951921396237591 \cdot 10^{+158}\right):\\ \;\;\;\;\frac{x}{e^{\left(c \cdot 0.8333333333333334 - a \cdot \left(b - c\right)\right) \cdot 2.0} \cdot y + x}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{y \cdot e^{2.0 \cdot \left(\frac{\sqrt{a + t} \cdot z}{t} - \left(b \cdot 0.8333333333333334 + \frac{0.6666666666666666}{t} \cdot \left(c - b\right)\right)\right)} + x}\\ \end{array}\]

Reproduce

herbie shell --seed 2019008 
(FPCore (x y z t a b c)
  :name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2"
  (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))

Details

Time bar (total: 48.0s)Debug log

sample305.0ms

Algorithm
intervals

simplify229.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

228.0ms
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))

prune26.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 2.7b

localize85.0ms

Local error

Found 4 expressions with local error:

4.5b
(/ (* z (sqrt (+ t a))) t)
1.9b
(- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))
0.3b
(/ 2.0 (* t 3.0))
0.2b
(* z (sqrt (+ t a)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Counts
4 → 72
Calls

4 calls. Slowest were:

9.0ms
(- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))
7.0ms
(/ 2.0 (* t 3.0))
4.0ms
(/ (* z (sqrt (+ t a))) t)

series318.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

200.0ms
(- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))
58.0ms
(* z (sqrt (+ t a)))
46.0ms
(/ (* z (sqrt (+ t a))) t)
14.0ms
(/ 2.0 (* t 3.0))

simplify7.5s

Counts
57 → 84
Calls

57 calls. Slowest were:

526.0ms
(- (* (* z (sqrt (+ t a))) (* (+ (* b b) (+ (* c c) (* b c))) (+ (* (+ a (/ 5.0 6.0)) (+ a (/ 5.0 6.0))) (+ (* (/ 2.0 (* t 3.0)) (/ 2.0 (* t 3.0))) (* (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))) (* t (* (- (pow b 3) (pow c 3)) (- (pow (+ a (/ 5.0 6.0)) 3) (pow (/ 2.0 (* t 3.0)) 3)))))
489.0ms
(* t (* (+ b c) (* (- a (/ 5.0 6.0)) (* t 3.0))))
396.0ms
(- (* (* z (sqrt (+ t a))) (* (+ (* b b) (+ (* c c) (* b c))) (+ (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))) (* t (* (- (pow b 3) (pow c 3)) (- (* (+ a (/ 5.0 6.0)) (+ a (/ 5.0 6.0))) (* (/ 2.0 (* t 3.0)) (/ 2.0 (* t 3.0)))))))

prune2.1s

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.5b

localize48.0ms

Local error

Found 4 expressions with local error:

4.5b
(/ (* z (sqrt (+ t a))) t)
1.9b
(- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 0.6666666666666666 t))))
0.2b
(* z (sqrt (+ t a)))
0.1b
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 0.6666666666666666 t)))

rewrite48.0ms

Algorithm
rewrite-expression-head
Counts
4 → 100
Calls

4 calls. Slowest were:

20.0ms
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 0.6666666666666666 t)))
15.0ms
(- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 0.6666666666666666 t))))
7.0ms
(/ (* z (sqrt (+ t a))) t)

series374.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

208.0ms
(- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 0.6666666666666666 t))))
60.0ms
(/ (* z (sqrt (+ t a))) t)
59.0ms
(* z (sqrt (+ t a)))
46.0ms
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 0.6666666666666666 t)))

simplify14.6s

Counts
95 → 112
Calls

95 calls. Slowest were:

637.0ms
(- (* (* z (sqrt (+ t a))) (* (+ (* b b) (+ (* c c) (* b c))) (* (+ (* a a) (- (* (/ 5.0 6.0) (/ 5.0 6.0)) (* a (/ 5.0 6.0)))) t))) (* t (* (- (pow b 3) (pow c 3)) (- (* (+ (pow a 3) (pow (/ 5.0 6.0) 3)) t) (* (+ (* a a) (- (* (/ 5.0 6.0) (/ 5.0 6.0)) (* a (/ 5.0 6.0)))) 0.6666666666666666)))))
615.0ms
(* (- (pow b 3) (pow c 3)) (- (* (+ a (/ 5.0 6.0)) (+ a (/ 5.0 6.0))) (* (/ 0.6666666666666666 t) (/ 0.6666666666666666 t))))
573.0ms
(* (+ (* b b) (+ (* c c) (* b c))) (* (+ (* a a) (- (* (/ 5.0 6.0) (/ 5.0 6.0)) (* a (/ 5.0 6.0)))) t))

prune2.2s

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.2b

localize27.0ms

Local error

Found 4 expressions with local error:

4.5b
(/ (* z (sqrt (+ t a))) t)
1.3b
(- (/ (* z (sqrt (+ t a))) t) (+ (* 0.8333333333333334 b) (* (- c b) (/ 0.6666666666666666 t))))
0.2b
(* z (sqrt (+ t a)))
0.2b
(* (- c b) (/ 0.6666666666666666 t))

rewrite32.0ms

Algorithm
rewrite-expression-head
Counts
4 → 70
Calls

4 calls. Slowest were:

16.0ms
(- (/ (* z (sqrt (+ t a))) t) (+ (* 0.8333333333333334 b) (* (- c b) (/ 0.6666666666666666 t))))
7.0ms
(* (- c b) (/ 0.6666666666666666 t))
5.0ms
(/ (* z (sqrt (+ t a))) t)

series331.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

158.0ms
(- (/ (* z (sqrt (+ t a))) t) (+ (* 0.8333333333333334 b) (* (- c b) (/ 0.6666666666666666 t))))
77.0ms
(/ (* z (sqrt (+ t a))) t)
62.0ms
(* z (sqrt (+ t a)))
35.0ms
(* (- c b) (/ 0.6666666666666666 t))

simplify3.2s

Counts
47 → 82
Calls

47 calls. Slowest were:

414.0ms
(* (* (* (- c b) (- c b)) (- c b)) (* (* (/ 0.6666666666666666 t) (/ 0.6666666666666666 t)) (/ 0.6666666666666666 t)))
334.0ms
(* (- (* c c) (* b b)) 0.6666666666666666)
321.0ms
(- (/ (* z (sqrt (+ t a))) t) (+ (* 0.8333333333333334 b) (* (- c b) (/ 0.6666666666666666 t))))

prune2.1s

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.2b

localize33.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (- b c) a)
0.0b
(* y (exp (* 2.0 (- (* 0.8333333333333334 c) (* (- b c) a)))))
0.0b
(- (* 0.8333333333333334 c) (* (- b c) a))
0.0b
(/ x (+ x (* y (exp (* 2.0 (- (* 0.8333333333333334 c) (* (- b c) a)))))))

rewrite10.0ms

Algorithm
rewrite-expression-head
Counts
4 → 55
Calls

4 calls. Slowest were:

4.0ms
(* y (exp (* 2.0 (- (* 0.8333333333333334 c) (* (- b c) a)))))
2.0ms
(* (- b c) a)
2.0ms
(- (* 0.8333333333333334 c) (* (- b c) a))

series221.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

103.0ms
(/ x (+ x (* y (exp (* 2.0 (- (* 0.8333333333333334 c) (* (- b c) a)))))))
68.0ms
(* y (exp (* 2.0 (- (* 0.8333333333333334 c) (* (- b c) a)))))
27.0ms
(- (* 0.8333333333333334 c) (* (- b c) a))
22.0ms
(* (- b c) a)

simplify3.3s

Counts
29 → 67
Calls

29 calls. Slowest were:

330.0ms
(* (- (* b b) (* c c)) a)
254.0ms
(* (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))) y)
244.0ms
(+ (* x x) (- (* (* y (exp (* 2.0 (- (* 0.8333333333333334 c) (* (- b c) a))))) (* y (exp (* 2.0 (- (* 0.8333333333333334 c) (* (- b c) a)))))) (* x (* y (exp (* 2.0 (- (* 0.8333333333333334 c) (* (- b c) a))))))))

prune1.1s

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0.0b

regimes763.0ms

Accuracy

35.6% (9.2b remaining)

Error of 9.5b against oracle of 0.4b and baseline of 14.6b

bsearch1.7s

end0.0ms

sample7.2s

Algorithm
intervals