
Time bar (total: 1.2s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 100% | 100% | 0% | 0% | 0% | 0% | 0% | 1 |
Compiled 10 to 4 computations (60% saved)
| 379.0ms | 8 256× | 0 | valid |
ival-hypot: 229.0ms (96.2% of total)ival-true: 6.0ms (2.5% of total)ival-assert: 3.0ms (1.3% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 135 | 0 | - | 3 | (7.502041364649721e-162) | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 0 | 0 | - | 0 | - | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 0 | 0 | - | 0 | - | (*.f64 x x) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) | oflow-rescue | 77 | 0 |
| ↳ | (+.f64 (*.f64 x x) (*.f64 x x)) | overflow | 77 | |
| ↳ | (*.f64 x x) | overflow | 154 | |
sqrt.f64 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) | uflow-rescue | 55 | 0 |
| ↳ | (+.f64 (*.f64 x x) (*.f64 x x)) | underflow | 55 | |
| ↳ | (*.f64 x x) | underflow | 110 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 132 | 3 |
| - | 0 | 121 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 132 | 0 | 3 |
| - | 0 | 0 | 121 |
| number | freq |
|---|---|
| 0 | 124 |
| 1 | 132 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 35.0ms | 512× | 0 | valid |
Compiled 69 to 20 computations (71% saved)
ival-hypot: 13.0ms (64.8% of total)ival-mult: 4.0ms (19.9% of total)ival-add: 2.0ms (10% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 13 |
| 1 | 21 | 13 |
| 2 | 66 | 13 |
| 3 | 166 | 13 |
| 4 | 247 | 13 |
| 5 | 256 | 13 |
| 6 | 258 | 13 |
| 0 | 4 | 8 |
| 0 | 7 | 6 |
| 1 | 11 | 6 |
| 2 | 14 | 6 |
| 3 | 17 | 6 |
| 0 | 17 | 3 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
(hypot.f64 x x) |
(abs x)
Compiled 8 to 4 computations (50% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 51.5% | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
Compiled 8 to 4 computations (50% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | -5184 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) | |
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 192 | (+.f64 (*.f64 x x) (*.f64 x x)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 19 |
| 0 | 7 | 15 |
| 1 | 11 | 15 |
| 2 | 14 | 15 |
| 3 | 17 | 15 |
| 0 | 17 | 12 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 x x) |
x |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
(hypot.f64 x x) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 x x) |
x |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (*.f64 x x) | |
| accuracy | 0.0078125 | (+.f64 (*.f64 x x) (*.f64 x x)) | |
| accuracy | 31.02478614614777 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 12.0ms | 256× | 0 | valid |
Compiled 40 to 10 computations (75% saved)
ival-hypot: 4.0ms (54% of total)ival-mult: 2.0ms (27% of total)ival-add: 1.0ms (13.5% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 x x) |
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| Outputs |
|---|
(* 2 (pow x 2)) |
(pow x 2) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((+ (* x x) (* x x)) (* x x) (sqrt (+ (* x x) (* x x)))) |
| 1.0ms | x | @ | 0 | ((+ (* x x) (* x x)) (* x x) (sqrt (+ (* x x) (* x x)))) |
| 1.0ms | x | @ | -inf | ((+ (* x x) (* x x)) (* x x) (sqrt (+ (* x x) (* x x)))) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 17 |
| 1 | 15 | 17 |
| 2 | 32 | 17 |
| 3 | 37 | 17 |
| 4 | 41 | 17 |
| 5 | 53 | 17 |
| 6 | 65 | 17 |
| 7 | 76 | 17 |
| 8 | 96 | 17 |
| 9 | 101 | 17 |
| 0 | 101 | 17 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* 2 (pow x 2)) |
(pow x 2) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
| Outputs |
|---|
(* 2 (pow x 2)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(pow x 2) |
(*.f64 x x) |
(* x (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(* -1 (* x (sqrt 2))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 18 |
| 0 | 7 | 14 |
| 1 | 23 | 10 |
| 0 | 160 | 9 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 x x) |
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| Outputs |
|---|
(*.f64 (*.f64 #s(literal 2 binary64) x) x) |
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64))) |
(*.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64))))) |
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) |
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64)))) (neg.f64 (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) |
(/.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64))) (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64)))) |
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 x x)) |
(fma.f64 x x (*.f64 x x)) |
(-.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 0 binary64)) (/.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 0 binary64))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64))) |
(*.f64 x x) |
(pow.f64 x #s(literal 2 binary64)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 (*.f64 x x))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) (pow.f64 (*.f64 x x) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 x #s(literal 1/2 binary64)) (pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/2 binary64))) |
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64)))) (sqrt.f64 (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(sqrt.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x) |
(hypot.f64 x (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #s(literal 1/2 binary64))) |
Compiled 370 to 110 computations (70.3% saved)
4 alts after pruning (4 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 38 | 4 | 42 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 39 | 4 | 43 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (hypot.f64 x x) |
| ▶ | 99.5% | (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
| ▶ | 51.5% | (sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
| ▶ | 99.4% | #s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
Compiled 29 to 21 computations (27.6% saved)
| 1× | egg-herbie |
Found 11 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (hypot.f64 x x) | |
| cost-diff | 0 | (*.f64 #s(literal 2 binary64) x) | |
| cost-diff | 0 | (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) | |
| cost-diff | 0 | (sqrt.f64 x) | |
| cost-diff | 0 | (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) | |
| cost-diff | -5184 | (sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) | |
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | (*.f64 (*.f64 x x) #s(literal 2 binary64)) | |
| cost-diff | 0 | (sqrt.f64 #s(literal 2 binary64)) | |
| cost-diff | 0 | (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 16 | 54 |
| 0 | 25 | 51 |
| 1 | 33 | 51 |
| 2 | 34 | 51 |
| 0 | 34 | 51 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
x |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x x) |
x |
#s(literal 2 binary64) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(sqrt.f64 x) |
x |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
#s(literal 2 binary64) |
(hypot.f64 x x) |
x |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
x |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(hypot.f64 x x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 x x) |
x |
#s(literal 2 binary64) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(*.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) (sqrt.f64 x)) |
(sqrt.f64 x) |
x |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
#s(literal 2 binary64) |
(hypot.f64 x x) |
x |
Found 11 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.01171875 | (hypot.f64 x x) | |
| accuracy | 0 | (*.f64 #s(literal 2 binary64) x) | |
| accuracy | 0 | (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) | |
| accuracy | 0 | (sqrt.f64 x) | |
| accuracy | 0.32421875 | (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) | |
| accuracy | 0 | (*.f64 x x) | |
| accuracy | 0.0078125 | (*.f64 (*.f64 x x) #s(literal 2 binary64)) | |
| accuracy | 31.02478614614777 | (sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) | |
| accuracy | 0 | (sqrt.f64 #s(literal 2 binary64)) | |
| accuracy | 0 | #s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) | |
| accuracy | 0.40625 | (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
| 44.0ms | 256× | 0 | valid |
Compiled 120 to 30 computations (75% saved)
ival-hypot: 13.0ms (40% of total)ival-mult: 12.0ms (36.9% of total)ival-sqrt: 6.0ms (18.5% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt.f64 #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x x) |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(sqrt.f64 x) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
(hypot.f64 x x) |
| Outputs |
|---|
(* x (sqrt 2)) |
(* 2 (pow x 2)) |
(pow x 2) |
(sqrt x) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | x | @ | -inf | ((sqrt (+ (* x x) (* x x))) (* (sqrt 2) x) (sqrt 2) (* (* x x) 2) (* x x) (sqrt (* (* x x) 2)) (* (sqrt x) (sqrt (* 2 x))) (sqrt x) (sqrt (* 2 x)) (* 2 x) (sqrt (+ (* x x) (* x x)))) |
| 1.0ms | x | @ | inf | ((sqrt (+ (* x x) (* x x))) (* (sqrt 2) x) (sqrt 2) (* (* x x) 2) (* x x) (sqrt (* (* x x) 2)) (* (sqrt x) (sqrt (* 2 x))) (sqrt x) (sqrt (* 2 x)) (* 2 x) (sqrt (+ (* x x) (* x x)))) |
| 1.0ms | x | @ | 0 | ((sqrt (+ (* x x) (* x x))) (* (sqrt 2) x) (sqrt 2) (* (* x x) 2) (* x x) (sqrt (* (* x x) 2)) (* (sqrt x) (sqrt (* 2 x))) (sqrt x) (sqrt (* 2 x)) (* 2 x) (sqrt (+ (* x x) (* x x)))) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 22 | 46 |
| 1 | 50 | 46 |
| 2 | 136 | 46 |
| 3 | 263 | 46 |
| 4 | 491 | 46 |
| 5 | 809 | 46 |
| 6 | 1420 | 46 |
| 7 | 1546 | 46 |
| 8 | 1601 | 46 |
| 9 | 1639 | 46 |
| 10 | 1822 | 46 |
| 11 | 2036 | 46 |
| 12 | 2080 | 46 |
| 13 | 2108 | 46 |
| 14 | 2112 | 46 |
| 15 | 2112 | 46 |
| 16 | 2253 | 46 |
| 17 | 2437 | 46 |
| 18 | 3518 | 46 |
| 19 | 3636 | 46 |
| 20 | 3660 | 46 |
| 21 | 3668 | 46 |
| 22 | 3672 | 46 |
| 23 | 3676 | 46 |
| 24 | 3788 | 46 |
| 25 | 3836 | 46 |
| 26 | 3836 | 46 |
| 27 | 4001 | 46 |
| 0 | 4001 | 46 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* x (sqrt 2)) |
(* 2 (pow x 2)) |
(pow x 2) |
(sqrt x) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
| Outputs |
|---|
(* x (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(* 2 (pow x 2)) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(pow x 2) |
(*.f64 x x) |
(sqrt x) |
(sqrt.f64 x) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* -1 (* x (sqrt 2))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(*.f64 (neg.f64 x) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(neg.f64 (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64))) (sqrt.f64 x))) |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 16 | 47 |
| 0 | 25 | 40 |
| 1 | 53 | 38 |
| 0 | 203 | 38 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt.f64 #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x x) |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(sqrt.f64 x) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
(hypot.f64 x x) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) |
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) |
(sqrt.f64 #s(literal 2 binary64)) |
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64))) |
(*.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(*.f64 (*.f64 #s(literal 2 binary64) x) x) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64)))) (neg.f64 (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64))))) |
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) |
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) |
(/.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64))) (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64)))) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 x x)) |
(fma.f64 x x (*.f64 x x)) |
(-.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 0 binary64)) (/.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 0 binary64))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(*.f64 x x) |
(pow.f64 x #s(literal 2 binary64)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64))) |
(*.f64 (fabs.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (fabs.f64 x)) |
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64)))) (sqrt.f64 (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(sqrt.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 x (fabs.f64 x)) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64))) |
(*.f64 (fabs.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (fabs.f64 x)) |
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64)))) (sqrt.f64 (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(sqrt.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 x (fabs.f64 x)) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (pow.f64 x #s(literal 1/4 binary64))) |
(pow.f64 x #s(literal 1/2 binary64)) |
(sqrt.f64 x) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/4 binary64)) (pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/4 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/2 binary64)) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(exp.f64 (*.f64 (log.f64 (*.f64 #s(literal 2 binary64) x)) #s(literal 1/2 binary64))) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 x #s(literal 2 binary64)) |
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 #s(literal 0 binary64) (-.f64 x x)) |
(+.f64 x x) |
(*.f64 (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64)) (pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/4 binary64))) |
(*.f64 (fabs.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (fabs.f64 x)) |
(pow.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 6 binary64)))) (sqrt.f64 (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(sqrt.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 x (fabs.f64 x)) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) #s(literal 1/2 binary64))) |
Compiled 584 to 173 computations (70.4% saved)
4 alts after pruning (1 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 62 | 1 | 63 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 3 | 4 |
| Done | 0 | 0 | 0 |
| Total | 63 | 4 | 67 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ▶ | 99.5% | (*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
| ✓ | 51.5% | (sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
| ✓ | 99.4% | #s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
Compiled 29 to 20 computations (31% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | -128 | (+.f64 x x) | |
| cost-diff | 0 | (sqrt.f64 (+.f64 x x)) | |
| cost-diff | 0 | (sqrt.f64 x) | |
| cost-diff | 0 | (*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 17 |
| 0 | 9 | 17 |
| 1 | 12 | 17 |
| 2 | 13 | 17 |
| 0 | 13 | 17 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(sqrt.f64 x) |
x |
(sqrt.f64 (+.f64 x x)) |
(+.f64 x x) |
| Outputs |
|---|
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(*.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) (sqrt.f64 x)) |
(sqrt.f64 x) |
x |
(sqrt.f64 (+.f64 x x)) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(+.f64 x x) |
(*.f64 #s(literal 2 binary64) x) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (+.f64 x x) | |
| accuracy | 0 | (sqrt.f64 (+.f64 x x)) | |
| accuracy | 0 | (sqrt.f64 x) | |
| accuracy | 0.32421875 | (*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
| 12.0ms | 256× | 0 | valid |
Compiled 36 to 12 computations (66.7% saved)
ival-sqrt: 4.0ms (57.7% of total)ival-mult: 2.0ms (28.9% of total)ival-add: 1.0ms (14.4% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(sqrt.f64 x) |
(sqrt.f64 (+.f64 x x)) |
(+.f64 x x) |
| Outputs |
|---|
(* x (sqrt 2)) |
(sqrt x) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((* (sqrt x) (sqrt (+ x x))) (sqrt x) (sqrt (+ x x)) (+ x x)) |
| 1.0ms | x | @ | inf | ((* (sqrt x) (sqrt (+ x x))) (sqrt x) (sqrt (+ x x)) (+ x x)) |
| 1.0ms | x | @ | 0 | ((* (sqrt x) (sqrt (+ x x))) (sqrt x) (sqrt (+ x x)) (+ x x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 33 |
| 1 | 42 | 33 |
| 2 | 116 | 33 |
| 3 | 240 | 33 |
| 4 | 472 | 33 |
| 5 | 783 | 33 |
| 6 | 1268 | 33 |
| 7 | 1387 | 33 |
| 8 | 1435 | 33 |
| 9 | 1467 | 33 |
| 10 | 1609 | 33 |
| 11 | 1800 | 33 |
| 12 | 1840 | 33 |
| 13 | 1868 | 33 |
| 14 | 1872 | 33 |
| 15 | 1872 | 33 |
| 16 | 2101 | 33 |
| 17 | 2205 | 33 |
| 18 | 2740 | 33 |
| 19 | 3067 | 33 |
| 20 | 3079 | 33 |
| 0 | 3079 | 33 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* x (sqrt 2)) |
(sqrt x) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
| Outputs |
|---|
(* x (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt x) |
(sqrt.f64 x) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(*.f64 (neg.f64 x) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(neg.f64 (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64))) (sqrt.f64 x))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 16 |
| 0 | 9 | 13 |
| 1 | 26 | 13 |
| 0 | 137 | 11 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(sqrt.f64 x) |
(sqrt.f64 (+.f64 x x)) |
(+.f64 x x) |
| Outputs |
|---|
(*.f64 (pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/4 binary64)) (pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/4 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) (sqrt.f64 x)) |
(*.f64 (hypot.f64 x x) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (hypot.f64 x x)) |
(pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (fma.f64 x x #s(literal 0 binary64)))) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (*.f64 #s(literal 2 binary64) x)) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (pow.f64 x #s(literal 1/4 binary64))) |
(pow.f64 x #s(literal 1/2 binary64)) |
(sqrt.f64 x) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/4 binary64)) (pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/4 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) (sqrt.f64 x)) |
(*.f64 (hypot.f64 x x) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (hypot.f64 x x)) |
(pow.f64 (*.f64 #s(literal 2 binary64) x) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 #s(literal 0 binary64)) (sqrt.f64 #s(literal 0 binary64))) |
(/.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (fma.f64 x x #s(literal 0 binary64)))) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (*.f64 #s(literal 2 binary64) x)) #s(literal 1/2 binary64))) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64))) |
(*.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64))) (/.f64 #s(literal 1 binary64) (fma.f64 x x #s(literal 0 binary64)))) |
(*.f64 (*.f64 #s(literal 2 binary64) x) x) |
(*.f64 x #s(literal 2 binary64)) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(/.f64 (*.f64 x (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64)))) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 #s(literal 1 binary64) (/.f64 (fma.f64 x x #s(literal 0 binary64)) (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64))))) |
(/.f64 #s(literal 1 binary64) (*.f64 #s(literal 2 binary64) x)) |
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64)))) (neg.f64 (fma.f64 x x #s(literal 0 binary64)))) |
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) |
(/.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 0 binary64))) |
(fma.f64 x x (*.f64 x x)) |
(-.f64 (/.f64 (*.f64 x x) #s(literal 0 binary64)) (/.f64 (*.f64 x x) #s(literal 0 binary64))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(+.f64 x x) |
Compiled 364 to 119 computations (67.3% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 37 | 0 | 37 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 3 | 3 |
| Total | 37 | 4 | 41 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ✓ | 99.5% | (*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
| ✓ | 51.5% | (sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
| ✓ | 99.4% | #s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
Compiled 73 to 41 computations (43.8% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(hypot.f64 x x) |
| Outputs |
|---|
(hypot.f64 x x) |
4 calls:
| 3.0ms | x |
| 2.0ms | (*.f64 x x) |
| 2.0ms | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 2.0ms | (+.f64 (*.f64 x x) (*.f64 x x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 100.0% | 1 | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 100.0% | 1 | (*.f64 x x) |
Compiled 19 to 10 computations (47.4% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
| Outputs |
|---|
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
4 calls:
| 2.0ms | x |
| 2.0ms | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 2.0ms | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 2.0ms | (*.f64 x x) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.5% | 1 | x |
| 99.5% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 99.5% | 1 | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 99.5% | 1 | (*.f64 x x) |
Compiled 19 to 10 computations (47.4% saved)
Total -30.8b remaining (-7578.1%)
Threshold costs -30.8b (-7578.1%)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
4 calls:
| 21.0ms | (*.f64 x x) |
| 2.0ms | x |
| 2.0ms | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 2.0ms | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.4% | 1 | x |
| 99.4% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 99.4% | 1 | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 99.4% | 1 | (*.f64 x x) |
Compiled 19 to 10 computations (47.4% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 23 |
| 1 | 15 | 23 |
| 1× | saturated |
| Inputs |
|---|
(hypot.f64 x x) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
| Outputs |
|---|
(hypot.f64 x x) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
#s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 18 |
| 0 | 7 | 14 |
| 1 | 23 | 10 |
| 0 | 160 | 9 |
| 0 | 16 | 47 |
| 0 | 25 | 40 |
| 1 | 53 | 38 |
| 0 | 203 | 38 |
| 0 | 8 | 17 |
| 1 | 15 | 17 |
| 2 | 32 | 17 |
| 3 | 37 | 17 |
| 4 | 41 | 17 |
| 5 | 53 | 17 |
| 6 | 65 | 17 |
| 7 | 76 | 17 |
| 8 | 96 | 17 |
| 9 | 101 | 17 |
| 0 | 101 | 17 |
| 1× | done |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
Compiled 67 to 40 computations (40.3% saved)
(abs x)
Compiled 74 to 42 computations (43.2% saved)
Loading profile data...