Details

Time bar (total: 9.9s)

sample59.0ms

Algorithm
intervals
Results
31.0ms86×body1280valid
10.0ms127×body80valid
8.0ms29×body640valid
2.0ms11×body320valid
0.0msbody160valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0196
1266
2336
3356
4416
5446
6446

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 18.4b

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot 1.0 x)
0.0b
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.9b
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
13×add-sqr-sqrt *-un-lft-identity
12×prod-diff
11×add-cube-cbrt
pow1
add-log-exp
sqrt-prod
add-exp-log expm1-log1p-u fma-neg add-cbrt-cube log1p-expm1-u
sqrt-pow1 sqrt-div associate-*r/
sub-neg hypot-udef flip3-- flip3-+ pow1/2 diff-log pow-prod-down flip-- flip-+ distribute-lft-out-- difference-of-squares
Counts
3 → 56
Calls
3 calls:
0.0ms
(hypot 1.0 x)
7.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
3.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

series678.0ms

Counts
3 → 9
Calls
3 calls:
54.0ms
(hypot 1.0 x)
270.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
354.0ms
(- 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x))))))

simplify46.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0428906
11480669
25001655

prune180.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 17.7b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot 1.0 x)
0.0b
(/ (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
0.0b
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.5b
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
21×*-un-lft-identity
13×add-sqr-sqrt add-cube-cbrt
12×times-frac
pow1
add-exp-log add-cbrt-cube
expm1-log1p-u associate-/r* log1p-expm1-u distribute-lft-out add-log-exp
associate-/l*
sqrt-pow1 flip3-+ sqrt-div associate-*r/ associate-/r/ flip-+
cbrt-undiv hypot-udef frac-2neg pow1/2 div-exp pow-prod-down clear-num sqrt-prod fma-udef div-inv
Counts
4 → 70
Calls
4 calls:
0.0ms
(hypot 1.0 x)
6.0ms
(/ (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
7.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
0.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

series1.9s

Counts
4 → 12
Calls
4 calls:
61.0ms
(hypot 1.0 x)
1.4s
(/ (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
265.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
150.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

simplify93.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (79.0ms)

IterNodesCost
08261456
137041348
250011334

prune315.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))) (+ 1.0 (* (sqrt 0.5) (sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
0.0b
(sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x))))
0.5b
(* (sqrt 0.5) (sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.5b
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

rewrite47.0ms

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt
21×*-un-lft-identity
17×add-cube-cbrt
15×sqrt-prod
10×times-frac
pow1
add-exp-log add-cbrt-cube
associate-*r*
associate-*l*
expm1-log1p-u sqrt-div log1p-expm1-u add-log-exp unswap-sqr
sqrt-pow1 flip3-+ pow1/2 pow-prod-down associate-/r* flip-+ associate-/l*
associate-*r/ associate-/r/ hypot-def distribute-lft-out
cbrt-undiv rem-sqrt-square frac-2neg sqrt-unprod div-exp prod-exp clear-num *-commutative cbrt-unprod fma-udef div-inv
Counts
4 → 96
Calls
4 calls:
4.0ms
(/ (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))) (+ 1.0 (* (sqrt 0.5) (sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
14.0ms
(sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x))))
26.0ms
(* (sqrt 0.5) (sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
0.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

series1.8s

Counts
4 → 12
Calls
4 calls:
1.2s
(/ (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))) (+ 1.0 (* (sqrt 0.5) (sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
176.0ms
(sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x))))
269.0ms
(* (sqrt 0.5) (sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
143.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

simplify112.0ms

Algorithm
egg-herbie
Counts
108 → 108
Iterations

Useful iterations: 2 (96.0ms)

IterNodesCost
09021737
144721607
250011605

prune405.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (log (exp (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
0.0b
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.5b
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.5b
(log (exp (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
40×*-un-lft-identity
28×times-frac
24×add-sqr-sqrt add-cube-cbrt log-pow
18×exp-prod
13×pow1
distribute-lft-out
associate-/l*
add-exp-log add-cbrt-cube
expm1-log1p-u log-prod associate-/r* log1p-expm1-u add-log-exp
sqrt-pow1 flip3-+ sqrt-div associate-*r/ associate-/r/ flip-+ fma-udef
cbrt-undiv frac-2neg pow1/2 div-exp rem-log-exp exp-sum pow-prod-down clear-num sqrt-prod div-inv
Counts
4 → 98
Calls
4 calls:
13.0ms
(/ (log (exp (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
7.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
0.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.0ms
(log (exp (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))

series1.8s

Counts
4 → 12
Calls
4 calls:
1.2s
(/ (log (exp (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x))))))) (+ 1.0 (sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))
266.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
150.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
145.0ms
(log (exp (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))

simplify105.0ms

Algorithm
egg-herbie
Counts
110 → 110
Iterations

Useful iterations: 2 (78.0ms)

IterNodesCost
08412149
136811968
250011957

prune382.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

regimes187.0ms

Accuracy

99.9% (0.0b remaining)

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

bsearch170.0ms

Steps
ItersRangePoint
9
2.0114125408603258e-10
0.4954286465087044
0.002698990951630782
10
-1.7081313977704333
-1.7977825652338532e-10
-0.0018031452709831514

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05859
16159
26559
36659
46659

end0.0ms

sample1.6s

Algorithm
intervals
Results
932.0ms2896×body1280valid
298.0ms4055×body80valid
165.0ms615×body640valid
55.0ms286×body320valid
21.0ms148×body160valid