Average Error: 1.5 → 0.6
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{1}{\left|x\right| \cdot \sqrt{\pi}} + \frac{{\left(\left|x\right|\right)}^{-5}}{\frac{\left|x\right| \cdot \left|x\right|}{\frac{\frac{15}{8}}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}}}}\right) \cdot e^{\left|x\right| \cdot \left|x\right|} + \left(\frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right| \cdot \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}}\]

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. Simplified1.3

    \[\leadsto \color{blue}{\left(\frac{1}{\sqrt{\pi} \cdot \left|x\right|} + \frac{{\left(\frac{1}{\left|x\right|}\right)}^{5}}{\frac{\left|x\right| \cdot \left|x\right|}{\frac{\frac{15}{8}}{\sqrt{\pi}}}}\right) \cdot e^{\left|x\right| \cdot \left|x\right|} + \left(\frac{\frac{3}{4}}{\left|x\right|} \cdot {\left(\frac{1}{\left|x\right|}\right)}^{4} + \frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right| \cdot \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(\frac{1}{\sqrt{\pi} \cdot \left|x\right|} + \frac{{\color{blue}{\left({\left(\left|x\right|\right)}^{-1}\right)}}^{5}}{\frac{\left|x\right| \cdot \left|x\right|}{\frac{\frac{15}{8}}{\sqrt{\pi}}}}\right) \cdot e^{\left|x\right| \cdot \left|x\right|} + \left(\frac{\frac{3}{4}}{\left|x\right|} \cdot {\left(\frac{1}{\left|x\right|}\right)}^{4} + \frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right| \cdot \left|x\right|}\right) \cdot \frac{e^{\left|x\right| \cdot \left|x\right|}}{\sqrt{\pi}}\]
  7. Applied pow-pow1.0

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

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

    \[\leadsto \left(\frac{1}{\left|x\right| \cdot \sqrt{\pi}} + \frac{{\left(\left|x\right|\right)}^{-5}}{\frac{\left|x\right| \cdot \left|x\right|}{\frac{\frac{15}{8}}{\sqrt{\sqrt{\pi}} \cdot \sqrt{\sqrt{\pi}}}}}\right) \cdot e^{\left|x\right| \cdot \left|x\right|} + \left(\frac{\frac{\frac{1}{2}}{\left|x\right|}}{\left|x\right| \cdot \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}}\]

Reproduce

herbie shell --seed 2019004 
(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.9s

Algorithm
intervals

simplify432.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

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

prune44.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 1.2b

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

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)

series33.0ms

Counts
4 → 6
Calls

4 calls. Slowest were:

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

simplify550.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

176.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))))
175.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))))
154.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.7b

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

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

series19.0ms

Counts
4 → 6
Calls

4 calls. Slowest were:

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

simplify289.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

94.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))))
90.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))))
68.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))))

prune988.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.5b

localize73.0ms

Local error

Found 4 expressions with local error:

1.1b
(pow (/ 1 (fabs x)) 5)
1.0b
(sqrt PI)
1.0b
(sqrt PI)
1.0b
(sqrt PI)

rewrite4.0ms

Algorithm
rewrite-expression-head
Counts
4 → 41
Calls

4 calls. Slowest were:

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

series30.0ms

Counts
4 → 6
Calls

4 calls. Slowest were:

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

simplify491.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

161.0ms
(+ (* (+ (/ 1 (* (sqrt PI) (fabs x))) (/ (pow (/ 1 (fabs x)) 5) (/ (* (fabs x) (fabs x)) (/ 15/8 (sqrt PI))))) (exp (* (fabs x) (fabs x)))) (* (+ (* (/ 3/4 (fabs x)) (pow (/ 1 (fabs x)) 4)) (/ (/ 1/2 (fabs x)) (* (fabs x) (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))
150.0ms
(+ (* (+ (/ 1 (* (sqrt PI) (fabs x))) (/ (pow (/ 1 (fabs x)) 5) (/ (* (fabs x) (fabs x)) (/ 15/8 (sqrt PI))))) (exp (* (fabs x) (fabs x)))) (* (+ (* (/ 3/4 (fabs x)) (pow (/ 1 (fabs x)) 4)) (/ (/ 1/2 (fabs x)) (* (fabs x) (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))
122.0ms
(+ (* (+ (/ 1 (* (sqrt PI) (fabs x))) (/ (pow (/ 1 (fabs x)) 5) (/ (* (fabs x) (fabs x)) (/ 15/8 (sqrt PI))))) (exp (* (fabs x) (fabs x)))) (* (+ (* (/ 3/4 (fabs x)) (pow (/ 1 (fabs x)) 4)) (/ (/ 1/2 (fabs x)) (* (fabs x) (fabs x)))) (/ (exp (* (fabs x) (fabs x))) (sqrt PI))))

prune1.1s

Pruning

15 alts after pruning (13 fresh and 2 done)

Merged error: 0.2b

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

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

series21.0ms

Counts
4 → 6
Calls

4 calls. Slowest were:

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

simplify45.0ms

Counts
15 → 47
Calls

15 calls. Slowest were:

15.0ms
(* (log (/ 1 (fabs x))) 4)
11.0ms
(* (- (log (fabs x))) 4)
3.0ms
(pow (* (cbrt (/ 1 (fabs x))) (cbrt (/ 1 (fabs x)))) 4)

prune978.0ms

Pruning

12 alts after pruning (9 fresh and 3 done)

Merged error: 0.2b

regimes441.0ms

Accuracy

0% (0.4b remaining)

Error of 0.6b against oracle of 0.2b and baseline of 0.6b

bsearch9.0ms

end0.0ms

sample49.6s

Algorithm
intervals