Details

Time bar (total: 9.1s)

sample30.0ms

Algorithm
intervals
Results
13.0ms86×body1280valid
4.0ms127×body80valid
4.0ms29×body640valid
1.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

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

rewrite16.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:
4.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))))))

series687.0ms

Counts
3 → 9
Calls
3 calls:
60.0ms
(hypot 1.0 x)
261.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
365.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 (37.0ms)

IterNodesCost
0428906
11480669
25001655

prune180.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 17.7b

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

rewrite20.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)))))))
12.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
1.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

series1.8s

Counts
4 → 12
Calls
4 calls:
55.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)))))))
274.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
145.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

simplify98.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (78.0ms)

IterNodesCost
08261456
137041348
250011334

prune323.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

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

rewrite45.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)))))))
11.0ms
(sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x))))
27.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)))))))
180.0ms
(sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x))))
267.0ms
(* (sqrt 0.5) (sqrt (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
153.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))

simplify121.0ms

Algorithm
egg-herbie
Counts
108 → 108
Iterations

Useful iterations: 2 (97.0ms)

IterNodesCost
09021737
144721607
250011605

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

rewrite22.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:
9.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)))))))
271.0ms
(sqrt (* 0.5 (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
153.0ms
(fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))
154.0ms
(log (exp (fma 1.0 1.0 (* (- 0.5) (+ 1.0 (/ 1.0 (hypot 1.0 x)))))))

simplify96.0ms

Algorithm
egg-herbie
Counts
110 → 110
Iterations

Useful iterations: 2 (76.0ms)

IterNodesCost
08412149
136811968
250011957

prune372.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

regimes178.0ms

Accuracy

99.9% (0.0b remaining)

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

bsearch155.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
05258
15558
25958
36058
46058

end0.0ms

sample786.0ms

Algorithm
intervals
Results
462.0ms2896×body1280valid
109.0ms4055×body80valid
75.0ms615×body640valid
24.0ms286×body320valid
8.0ms148×body160valid