Average Error: 1.5 → 1.0
Time: 1.0m
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(\frac{\frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right|}}{\left|x\right|} + \frac{\frac{3}{4}}{\left|x\right|} \cdot \frac{1}{{\left(\left|x\right|\right)}^{4}}\right) \cdot \frac{e^{\left|x\right| \cdot \left|x\right|}}{\sqrt{\pi}} + \left(\left(e^{\left|x\right| \cdot \left|x\right|} \cdot \frac{\frac{15}{8}}{\sqrt{\pi}}\right) \cdot \left({\left(\left|x\right|\right)}^{-4} \cdot \frac{\frac{1}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|}\right) + e^{\left|x\right| \cdot \left|x\right|} \cdot \frac{\frac{1}{\sqrt{\pi}}}{\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. Taylor expanded around inf 1.3

    \[\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{\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|} + \color{blue}{\frac{1}{{\left(\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}}\]
  5. Using strategy rm
  6. Applied inv-pow1.3

    \[\leadsto \left(\left(\frac{\frac{1}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|} \cdot {\color{blue}{\left({\left(\left|x\right|\right)}^{-1}\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|} + \frac{1}{{\left(\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}}\]
  7. Applied pow-pow1.0

    \[\leadsto \left(\left(\frac{\frac{1}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|} \cdot \color{blue}{{\left(\left|x\right|\right)}^{\left(-1 \cdot 4\right)}}\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|} + \frac{1}{{\left(\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}}\]
  8. Final simplification1.0

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

Reproduce

herbie shell --seed 2019002 
(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: 59.7s)Debug log

sample3.5s

Algorithm
intervals

simplify477.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

477.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))))))

prune32.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 1.2b

localize115.0ms

Local error

Found 4 expressions with local error:

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

rewrite4.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)

simplify687.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

226.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))))
216.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))))
192.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

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.8b

localize88.0ms

Local error

Found 4 expressions with local error:

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

rewrite4.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)

series40.0ms

Counts
4 → 6
Calls

4 calls. Slowest were:

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

simplify312.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

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))))
88.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))))
85.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))))

prune1.1s

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.7b

localize30.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:

prune816.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.6b

localize24.0ms

Local error

Found 4 expressions with local error:

1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(sqrt PI)
0.9b
(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)

series22.0ms

Counts
4 → 6
Calls

4 calls. Slowest were:

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

simplify76.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

16.0ms
(* (log (/ 1 (fabs x))) 4)
12.0ms
(* (- (log (fabs x))) 4)
5.0ms
(pow (* (cbrt (/ 1 (fabs x))) (cbrt (/ 1 (fabs x)))) 4)

prune873.0ms

Pruning

17 alts after pruning (16 fresh and 1 done)

Merged error: 0.5b

regimes690.0ms

Accuracy

0% (0.6b remaining)

Error of 1.0b against oracle of 0.4b and baseline of 1.0b

bsearch10.0ms

end0.0ms

sample49.7s

Algorithm
intervals