Average Error: 1.5 → 1.2
Time: 1.1m
Precision: 64
Internal Precision: 128
\[\left(\frac{1}{\sqrt{\pi}} \cdot e^{\left|x\right| \cdot \left|x\right|}\right) \cdot \left(\left(\left(\frac{1}{\left|x\right|} + \frac{1}{2} \cdot \left(\left(\frac{1}{\left|x\right|} \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right)\right) + \frac{3}{4} \cdot \left(\left(\left(\left(\frac{1}{\left|x\right|} \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right)\right) + \frac{15}{8} \cdot \left(\left(\left(\left(\left(\left(\frac{1}{\left|x\right|} \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right)\right)\]
\[\left(\left({\left(\frac{1}{\left|x\right|}\right)}^{4} \cdot \frac{\frac{1}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|}\right) \cdot \left(e^{\left|x\right| \cdot \left|x\right|} \cdot \frac{\frac{15}{8}}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}}\right) + e^{\left|x\right| \cdot \left|x\right|} \cdot \frac{\frac{1}{\sqrt{\pi}}}{\left|x\right|}\right) + \frac{e^{\left|x\right| \cdot \left|x\right|}}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}} \cdot \left(\frac{\frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right|}}{\left|x\right|} + {\left(\frac{1}{\left|x\right|}\right)}^{4} \cdot \frac{\frac{3}{4}}{\left|x\right|}\right)\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 1.5

    \[\left(\frac{1}{\sqrt{\pi}} \cdot e^{\left|x\right| \cdot \left|x\right|}\right) \cdot \left(\left(\left(\frac{1}{\left|x\right|} + \frac{1}{2} \cdot \left(\left(\frac{1}{\left|x\right|} \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right)\right) + \frac{3}{4} \cdot \left(\left(\left(\left(\frac{1}{\left|x\right|} \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right)\right) + \frac{15}{8} \cdot \left(\left(\left(\left(\left(\left(\frac{1}{\left|x\right|} \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right) \cdot \frac{1}{\left|x\right|}\right)\right)\]
  2. Simplified1.4

    \[\leadsto \color{blue}{\left(\left(\left(\frac{15}{8} \cdot \frac{1}{\sqrt{\pi}}\right) \cdot e^{\left|x\right| \cdot \left|x\right|}\right) \cdot \left({\left(\frac{1}{\left|x\right|}\right)}^{3} \cdot {\left(\frac{1}{\left|x\right|}\right)}^{4}\right) + e^{\left|x\right| \cdot \left|x\right|} \cdot \left(\frac{1}{\sqrt{\pi}} \cdot \frac{1}{\left|x\right|}\right)\right) + \left(\left(\frac{3}{4} \cdot \frac{1}{\left|x\right|}\right) \cdot {\left(\frac{1}{\left|x\right|}\right)}^{4} + \frac{\frac{1}{\left|x\right|} \cdot \frac{1}{\left|x\right|}}{2 \cdot \left|x\right|}\right) \cdot \frac{e^{\left|x\right| \cdot \left|x\right|}}{\sqrt{\pi}}}\]
  3. Simplified1.3

    \[\leadsto \color{blue}{\left(\left(\frac{\frac{1}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|} \cdot {\left(\frac{1}{\left|x\right|}\right)}^{4}\right) \cdot \left(\frac{\frac{15}{8}}{\sqrt{\pi}} \cdot e^{\left|x\right| \cdot \left|x\right|}\right) + \frac{\frac{1}{\sqrt{\pi}}}{\left|x\right|} \cdot e^{\left|x\right| \cdot \left|x\right|}\right) + \left(\frac{\frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right|}}{\left|x\right|} + {\left(\frac{1}{\left|x\right|}\right)}^{4} \cdot \frac{\frac{3}{4}}{\left|x\right|}\right) \cdot \frac{e^{\left|x\right| \cdot \left|x\right|}}{\sqrt{\pi}}}\]
  4. Using strategy rm
  5. Applied add-sqr-sqrt1.2

    \[\leadsto \left(\left(\frac{\frac{1}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|} \cdot {\left(\frac{1}{\left|x\right|}\right)}^{4}\right) \cdot \left(\frac{\frac{15}{8}}{\color{blue}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}}} \cdot e^{\left|x\right| \cdot \left|x\right|}\right) + \frac{\frac{1}{\sqrt{\pi}}}{\left|x\right|} \cdot e^{\left|x\right| \cdot \left|x\right|}\right) + \left(\frac{\frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right|}}{\left|x\right|} + {\left(\frac{1}{\left|x\right|}\right)}^{4} \cdot \frac{\frac{3}{4}}{\left|x\right|}\right) \cdot \frac{e^{\left|x\right| \cdot \left|x\right|}}{\sqrt{\pi}}\]
  6. Using strategy rm
  7. Applied add-sqr-sqrt1.2

    \[\leadsto \left(\left(\frac{\frac{1}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|} \cdot {\left(\frac{1}{\left|x\right|}\right)}^{4}\right) \cdot \left(\frac{\frac{15}{8}}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}} \cdot e^{\left|x\right| \cdot \left|x\right|}\right) + \frac{\frac{1}{\sqrt{\pi}}}{\left|x\right|} \cdot e^{\left|x\right| \cdot \left|x\right|}\right) + \left(\frac{\frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right|}}{\left|x\right|} + {\left(\frac{1}{\left|x\right|}\right)}^{4} \cdot \frac{\frac{3}{4}}{\left|x\right|}\right) \cdot \frac{e^{\left|x\right| \cdot \left|x\right|}}{\color{blue}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}}}\]
  8. Final simplification1.2

    \[\leadsto \left(\left({\left(\frac{1}{\left|x\right|}\right)}^{4} \cdot \frac{\frac{1}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|}\right) \cdot \left(e^{\left|x\right| \cdot \left|x\right|} \cdot \frac{\frac{15}{8}}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}}\right) + e^{\left|x\right| \cdot \left|x\right|} \cdot \frac{\frac{1}{\sqrt{\pi}}}{\left|x\right|}\right) + \frac{e^{\left|x\right| \cdot \left|x\right|}}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}} \cdot \left(\frac{\frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right|}}{\left|x\right|} + {\left(\frac{1}{\left|x\right|}\right)}^{4} \cdot \frac{\frac{3}{4}}{\left|x\right|}\right)\]

Reproduce

herbie shell --seed 2019005 
(FPCore (x)
  :name "Jmat.Real.erfi, branch x greater than or equal to 5"
  (* (* (/ 1 (sqrt PI)) (exp (* (fabs x) (fabs x)))) (+ (+ (+ (/ 1 (fabs x)) (* (/ 1 2) (* (* (/ 1 (fabs x)) (/ 1 (fabs x))) (/ 1 (fabs x))))) (* (/ 3 4) (* (* (* (* (/ 1 (fabs x)) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))))) (* (/ 15 8) (* (* (* (* (* (* (/ 1 (fabs x)) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x)))))))

Details

Time bar (total: 1.0m)Debug log

sample3.5s

Algorithm
intervals

simplify469.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

469.0ms
(* (* (/ 1 (sqrt PI)) (exp (* (fabs x) (fabs x)))) (+ (+ (+ (/ 1 (fabs x)) (* (/ 1 2) (* (* (/ 1 (fabs x)) (/ 1 (fabs x))) (/ 1 (fabs x))))) (* (/ 3 4) (* (* (* (* (/ 1 (fabs x)) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))))) (* (/ 15 8) (* (* (* (* (* (* (/ 1 (fabs x)) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))) (/ 1 (fabs x))))))

prune35.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 1.3b

localize112.0ms

Local error

Found 4 expressions with local error:

1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(pow (/ 1 (fabs x)) 4)

rewrite2.0ms

Algorithm
rewrite-expression-head
Counts
4 → 41
Calls

4 calls. Slowest were:

2.0ms
(pow (/ 1 (fabs x)) 4)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)

series30.0ms

Counts
4 → 6
Calls

4 calls. Slowest were:

30.0ms
(pow (/ 1 (fabs x)) 4)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)

simplify639.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

218.0ms
(+ (+ (* (* (* 15/8 (/ 1 (sqrt PI))) (exp (* (fabs x) (fabs x)))) (* (pow (/ 1 (fabs x)) 3) (pow (/ 1 (fabs x)) 4))) (* (exp (* (fabs x) (fabs x))) (* (/ 1 (sqrt PI)) (/ 1 (fabs x))))) (* (+ (* (* 3/4 (/ 1 (fabs x))) (pow (/ 1 (fabs x)) 4)) (/ (* (/ 1 (fabs x)) (/ 1 (fabs x))) (* 2 (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))
180.0ms
(+ (+ (* (* (* 15/8 (/ 1 (sqrt PI))) (exp (* (fabs x) (fabs x)))) (* (pow (/ 1 (fabs x)) 3) (pow (/ 1 (fabs x)) 4))) (* (exp (* (fabs x) (fabs x))) (* (/ 1 (sqrt PI)) (/ 1 (fabs x))))) (* (+ (* (* 3/4 (/ 1 (fabs x))) (pow (/ 1 (fabs x)) 4)) (/ (* (/ 1 (fabs x)) (/ 1 (fabs x))) (* 2 (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))
169.0ms
(+ (+ (* (* (* 15/8 (/ 1 (sqrt PI))) (exp (* (fabs x) (fabs x)))) (* (pow (/ 1 (fabs x)) 3) (pow (/ 1 (fabs x)) 4))) (* (exp (* (fabs x) (fabs x))) (* (/ 1 (sqrt PI)) (/ 1 (fabs x))))) (* (+ (* (* 3/4 (/ 1 (fabs x))) (pow (/ 1 (fabs x)) 4)) (/ (* (/ 1 (fabs x)) (/ 1 (fabs x))) (* 2 (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))

prune1.1s

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.8b

localize99.0ms

Local error

Found 4 expressions with local error:

1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(pow (/ 1 (fabs x)) 4)

rewrite5.0ms

Algorithm
rewrite-expression-head
Counts
4 → 41
Calls

4 calls. Slowest were:

3.0ms
(pow (/ 1 (fabs x)) 4)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)

series32.0ms

Counts
4 → 6
Calls

4 calls. Slowest were:

32.0ms
(pow (/ 1 (fabs x)) 4)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)

simplify367.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

125.0ms
(+ (+ (* (* (/ (/ 1 (fabs x)) (* (fabs x) (fabs x))) (pow (/ 1 (fabs x)) 4)) (* (/ 15/8 (sqrt PI)) (exp (* (fabs x) (fabs x))))) (* (/ (/ 1 (sqrt PI)) (fabs x)) (exp (* (fabs x) (fabs x))))) (* (+ (/ (/ (/ 1/2 (fabs x)) (fabs x)) (fabs x)) (* (pow (/ 1 (fabs x)) 4) (/ 3/4 (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))
95.0ms
(+ (+ (* (* (/ (/ 1 (fabs x)) (* (fabs x) (fabs x))) (pow (/ 1 (fabs x)) 4)) (* (/ 15/8 (sqrt PI)) (exp (* (fabs x) (fabs x))))) (* (/ (/ 1 (sqrt PI)) (fabs x)) (exp (* (fabs x) (fabs x))))) (* (+ (/ (/ (/ 1/2 (fabs x)) (fabs x)) (fabs x)) (* (pow (/ 1 (fabs x)) 4) (/ 3/4 (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))
89.0ms
(+ (+ (* (* (/ (/ 1 (fabs x)) (* (fabs x) (fabs x))) (pow (/ 1 (fabs x)) 4)) (* (/ 15/8 (sqrt PI)) (exp (* (fabs x) (fabs x))))) (* (/ (/ 1 (sqrt PI)) (fabs x)) (exp (* (fabs x) (fabs x))))) (* (+ (/ (/ (/ 1/2 (fabs x)) (fabs x)) (fabs x)) (* (pow (/ 1 (fabs x)) 4) (/ 3/4 (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))

prune932.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.6b

localize41.0ms

Local error

Found 4 expressions with local error:

1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(sqrt PI)

rewrite1.0ms

Algorithm
rewrite-expression-head
Counts
4 → 32
Calls

4 calls. Slowest were:

0.0ms
(sqrt PI)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)

series0.0ms

Counts
4 → 4
Calls

4 calls. Slowest were:

0.0ms
(sqrt PI)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)

simplify2.0ms

Counts
0 → 36
Calls

0 calls. Slowest were:

prune942.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.5b

localize33.0ms

Local error

Found 4 expressions with local error:

1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(sqrt PI)

rewrite2.0ms

Algorithm
rewrite-expression-head
Counts
4 → 32
Calls

4 calls. Slowest were:

0.0ms
(sqrt PI)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)

series0.0ms

Counts
4 → 4
Calls

4 calls. Slowest were:

0.0ms
(sqrt PI)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)
0.0ms
(sqrt PI)

simplify3.0ms

Counts
0 → 36
Calls

0 calls. Slowest were:

prune879.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.5b

regimes387.0ms

Accuracy

0% (0.7b remaining)

Error of 1.2b against oracle of 0.5b and baseline of 1.2b

bsearch8.0ms

end0.0ms

sample51.7s

Algorithm
intervals