
Time bar (total: 1.6s)
| 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)
| 370.0ms | 8 256× | 0 | valid |
ival-hypot: 176.0ms (94.1% of total)ival-true: 5.0ms (2.7% of total)ival-assert: 3.0ms (1.6% of total)adjust: 2.0ms (1.1% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 131 | 0 | - | 5 | (-1.8327966563181942e-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))) | uflow-rescue | 71 | 0 |
| ↳ | (+.f64 (*.f64 x x) (*.f64 x x)) | underflow | 71 | |
| ↳ | (*.f64 x x) | underflow | 142 | |
sqrt.f64 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) | oflow-rescue | 55 | 0 |
| ↳ | (+.f64 (*.f64 x x) (*.f64 x x)) | overflow | 55 | |
| ↳ | (*.f64 x x) | overflow | 110 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 126 | 5 |
| - | 0 | 125 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 126 | 0 | 5 |
| - | 0 | 0 | 125 |
| number | freq |
|---|---|
| 0 | 130 |
| 1 | 126 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 28.0ms | 512× | 0 | valid |
Compiled 50 to 16 computations (68% saved)
ival-hypot: 8.0ms (53.8% of total)ival-mult: 4.0ms (26.9% of total)ival-add: 2.0ms (13.5% of total)ival-true: 0.0ms (0% of total)adjust: 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 | 22 | 13 |
| 2 | 78 | 13 |
| 3 | 135 | 13 |
| 4 | 227 | 13 |
| 5 | 257 | 13 |
| 6 | 277 | 13 |
| 0 | 4 | 8 |
| 0 | 7 | 6 |
| 1 | 17 | 6 |
| 2 | 54 | 6 |
| 3 | 130 | 6 |
| 4 | 202 | 6 |
| 5 | 238 | 6 |
| 6 | 261 | 6 |
| 7 | 276 | 6 |
| 0 | 276 | 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 |
|---|---|---|
| ▶ | 52.9% | (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 | 0 | (*.f64 x x) | |
| cost-diff | 2 | (+.f64 (*.f64 x x) (*.f64 x x)) | |
| cost-diff | 3 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 19 |
| 0 | 7 | 15 |
| 1 | 17 | 15 |
| 2 | 54 | 15 |
| 3 | 130 | 15 |
| 4 | 202 | 15 |
| 5 | 238 | 15 |
| 6 | 261 | 15 |
| 7 | 276 | 15 |
| 0 | 276 | 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.0 | (*.f64 x x) | |
| accuracy | 0.0234375 | (+.f64 (*.f64 x x) (*.f64 x x)) | |
| accuracy | 30.113187198110104 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 12.0ms | 256× | 0 | valid |
Compiled 21 to 6 computations (71.4% saved)
ival-hypot: 4.0ms (56.6% of total)ival-mult: 2.0ms (28.3% of total)ival-add: 1.0ms (14.1% of total)ival-true: 0.0ms (0% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 x x) |
| Outputs |
|---|
(* x (sqrt 2)) |
(* 2 (pow x 2)) |
(pow x 2) |
(* -1 (* x (sqrt 2))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((sqrt (+ (* x x) (* x x))) (+ (* x x) (* x x)) (* x x)) |
| 1.0ms | x | @ | 0 | ((sqrt (+ (* x x) (* x x))) (+ (* x x) (* x x)) (* x x)) |
| 1.0ms | x | @ | -inf | ((sqrt (+ (* x x) (* x x))) (+ (* x x) (* x x)) (* x x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 17 |
| 1 | 18 | 17 |
| 2 | 43 | 17 |
| 3 | 92 | 17 |
| 4 | 228 | 17 |
| 5 | 437 | 17 |
| 6 | 485 | 17 |
| 0 | 485 | 17 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* x (sqrt 2)) |
(* 2 (pow x 2)) |
(pow x 2) |
(* -1 (* x (sqrt 2))) |
| Outputs |
|---|
(* x (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(* 2 (pow x 2)) |
(*.f64 (*.f64 #s(literal 2 binary64) x) x) |
(pow x 2) |
(*.f64 x 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 | 29 | 10 |
| 0 | 250 | 9 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 x x) |
| Outputs |
|---|
(*.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)) (fabs.f64 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)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 (fabs.f64 x))) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (neg.f64 x)) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) (fabs.f64 x)) |
(hypot.f64 (pow.f64 x #s(literal 1 binary64)) x) |
(hypot.f64 (neg.f64 (neg.f64 x)) (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) x) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) x) |
(hypot.f64 (fabs.f64 (fabs.f64 x)) (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x))) |
(hypot.f64 (fabs.f64 (fabs.f64 x)) (neg.f64 x)) |
(hypot.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 (fabs.f64 x)) x) |
(hypot.f64 (neg.f64 x) (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 x) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 x) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 x) (fabs.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 (fabs.f64 x) (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 x) (neg.f64 (neg.f64 x))) |
(hypot.f64 (fabs.f64 x) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (fabs.f64 x) (fabs.f64 (fabs.f64 x))) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 x (pow.f64 x #s(literal 1 binary64))) |
(hypot.f64 x (neg.f64 (neg.f64 x))) |
(hypot.f64 x (neg.f64 (fabs.f64 x))) |
(hypot.f64 x (fabs.f64 (fabs.f64 x))) |
(hypot.f64 x (neg.f64 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 (*.f64 #s(literal 2 binary64) (neg.f64 x)) (neg.f64 x)) |
(*.f64 (*.f64 #s(literal 2 binary64) (fabs.f64 x)) (fabs.f64 x)) |
(*.f64 (*.f64 #s(literal 2 binary64) x) x) |
(*.f64 (neg.f64 x) (+.f64 (neg.f64 x) (neg.f64 x))) |
(*.f64 (neg.f64 x) (-.f64 (neg.f64 x) x)) |
(*.f64 (fabs.f64 x) (+.f64 (fabs.f64 x) (fabs.f64 x))) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x (-.f64 x (neg.f64 x))) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 x) x) #s(literal 3 binary64))) (+.f64 (pow.f64 x #s(literal 4 binary64)) (+.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (*.f64 x x) (*.f64 (neg.f64 x) 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 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 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) (*.f64 x x)) |
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 x x)) |
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 x x)) |
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) (*.f64 x x)) |
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 x x)) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 x x)) |
(fma.f64 x x (*.f64 (neg.f64 (neg.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 (neg.f64 (neg.f64 x)) (neg.f64 x))) |
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x))) |
(-.f64 (*.f64 x x) (*.f64 (neg.f64 x) x)) |
(+.f64 (/.f64 (pow.f64 x #s(literal 6 binary64)) (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 (pow.f64 x #s(literal 6 binary64)) (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(+.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64))) |
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x))) |
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x))) |
(*.f64 (neg.f64 x) (neg.f64 x)) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(*.f64 x x) |
(pow.f64 (neg.f64 x) #s(literal 2 binary64)) |
(pow.f64 (fabs.f64 x) #s(literal 2 binary64)) |
(pow.f64 x #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 x) x)) |
(fabs.f64 (*.f64 x x)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
Compiled 1 053 to 257 computations (75.6% saved)
4 alts after pruning (4 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 121 | 4 | 125 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 122 | 4 | 126 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (hypot.f64 x x) |
| ▶ | 99.4% | (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
| ▶ | 52.9% | (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 | 0 | (*.f64 x x) | |
| cost-diff | 0 | (*.f64 (*.f64 x x) #s(literal 2 binary64)) | |
| cost-diff | 3 | (sqrt.f64 (*.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 | 41 | 51 |
| 2 | 80 | 51 |
| 3 | 148 | 51 |
| 4 | 224 | 51 |
| 5 | 264 | 51 |
| 6 | 292 | 51 |
| 7 | 312 | 51 |
| 0 | 312 | 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.00390625 | (hypot.f64 x x) | |
| accuracy | 0.0 | (*.f64 #s(literal 2 binary64) x) | |
| accuracy | 0.0 | (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) | |
| accuracy | 0.0 | (sqrt.f64 x) | |
| accuracy | 0.3671875 | (*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) | |
| accuracy | 0.0 | (*.f64 x x) | |
| accuracy | 0.0234375 | (*.f64 (*.f64 x x) #s(literal 2 binary64)) | |
| accuracy | 30.113187198110104 | (sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) | |
| accuracy | 0.0 | (sqrt.f64 #s(literal 2 binary64)) | |
| accuracy | 0.0 | #s(approx (sqrt (+ (* x x) (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) | |
| accuracy | 0.3828125 | (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
| 26.0ms | 256× | 0 | valid |
Compiled 61 to 14 computations (77% saved)
ival-mult: 7.0ms (39.7% of total)ival-sqrt: 6.0ms (34% of total)ival-hypot: 4.0ms (22.7% of total)ival-true: 0.0ms (0% of total)adjust: 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)) |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x x) |
(*.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) (sqrt (* (* x x) 2)) (* (* x x) 2) (* x x) (* (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) (sqrt (* (* x x) 2)) (* (* x x) 2) (* x x) (* (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) (sqrt (* (* x x) 2)) (* (* x x) 2) (* x x) (* (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 | 54 | 46 |
| 2 | 147 | 46 |
| 3 | 308 | 46 |
| 4 | 625 | 46 |
| 5 | 976 | 46 |
| 6 | 1052 | 46 |
| 7 | 1068 | 46 |
| 8 | 1068 | 46 |
| 9 | 1220 | 46 |
| 10 | 1277 | 46 |
| 11 | 1277 | 46 |
| 12 | 1293 | 46 |
| 13 | 1507 | 46 |
| 14 | 1843 | 46 |
| 15 | 2213 | 46 |
| 16 | 2666 | 46 |
| 17 | 3533 | 46 |
| 18 | 4930 | 46 |
| 19 | 7034 | 46 |
| 0 | 8095 | 46 |
| 1× | iter limit |
| 1× | node limit |
| 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 (*.f64 x x) #s(literal 2 binary64)) |
(pow x 2) |
(*.f64 x x) |
(sqrt x) |
(sqrt.f64 x) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* -1 (* x (sqrt 2))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* -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)))) |
(*.f64 (neg.f64 (sqrt.f64 #s(literal -2 binary64))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x))) |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 16 | 47 |
| 0 | 25 | 40 |
| 1 | 61 | 38 |
| 0 | 299 | 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)) |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64))) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x x) |
(*.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 (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 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) x) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) x) |
(hypot.f64 (neg.f64 x) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 x) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 (fabs.f64 x) (neg.f64 (neg.f64 x))) |
(hypot.f64 (fabs.f64 x) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 x (neg.f64 (neg.f64 x))) |
(hypot.f64 x (neg.f64 (fabs.f64 x))) |
(hypot.f64 x (neg.f64 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 (*.f64 #s(literal 2 binary64) (neg.f64 x)) (neg.f64 x)) |
(*.f64 (*.f64 #s(literal 2 binary64) (fabs.f64 x)) (fabs.f64 x)) |
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (+.f64 (neg.f64 x) (neg.f64 x))) |
(*.f64 (neg.f64 x) (-.f64 (neg.f64 x) x)) |
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 2 binary64))) |
(*.f64 (fabs.f64 x) (+.f64 (fabs.f64 x) (fabs.f64 x))) |
(*.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 x (neg.f64 x))) |
(*.f64 x (*.f64 #s(literal 2 binary64) x)) |
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 x) x) #s(literal 3 binary64))) (+.f64 (pow.f64 x #s(literal 4 binary64)) (+.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (*.f64 x x) (*.f64 (neg.f64 x) 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 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 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) (*.f64 x x)) |
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) (*.f64 x x)) |
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 x x)) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 x x)) |
(fma.f64 x x (*.f64 (neg.f64 (neg.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 (neg.f64 (neg.f64 x)) (neg.f64 x))) |
(-.f64 (*.f64 x x) (*.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x))) |
(-.f64 (*.f64 x x) (*.f64 (neg.f64 x) x)) |
(+.f64 (/.f64 (pow.f64 x #s(literal 6 binary64)) (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 (pow.f64 x #s(literal 6 binary64)) (+.f64 #s(literal 0 binary64) (pow.f64 x #s(literal 4 binary64))))) |
(+.f64 (*.f64 x x) (*.f64 (neg.f64 (neg.f64 x)) x)) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x))) |
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(*.f64 (neg.f64 x) (neg.f64 x)) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(*.f64 x x) |
(pow.f64 (neg.f64 x) #s(literal 2 binary64)) |
(pow.f64 (fabs.f64 x) #s(literal 2 binary64)) |
(pow.f64 x #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 x) x)) |
(fabs.f64 (*.f64 x x)) |
(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 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) x) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) x) |
(hypot.f64 (neg.f64 x) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 x) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 (fabs.f64 x) (neg.f64 (neg.f64 x))) |
(hypot.f64 (fabs.f64 x) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 x (neg.f64 (neg.f64 x))) |
(hypot.f64 x (neg.f64 (fabs.f64 x))) |
(hypot.f64 x (neg.f64 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 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) x) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) x) |
(hypot.f64 (neg.f64 x) (neg.f64 (neg.f64 x))) |
(hypot.f64 (neg.f64 x) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 (fabs.f64 x) (neg.f64 (neg.f64 x))) |
(hypot.f64 (fabs.f64 x) (neg.f64 (fabs.f64 x))) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 x (neg.f64 (neg.f64 x))) |
(hypot.f64 x (neg.f64 (fabs.f64 x))) |
(hypot.f64 x (neg.f64 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 962 to 268 computations (72.1% saved)
5 alts after pruning (2 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 107 | 2 | 109 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 3 | 4 |
| Done | 0 | 0 | 0 |
| Total | 108 | 5 | 113 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ▶ | 99.0% | (*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
| ▶ | 99.4% | (*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
| ✓ | 52.9% | (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 37 to 26 computations (29.7% saved)
| 1× | egg-herbie |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (sqrt.f64 #s(literal 2 binary64)) | |
| cost-diff | 0 | (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) | |
| cost-diff | 0 | (sqrt.f64 x) | |
| cost-diff | 4 | (*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) | |
| cost-diff | 0 | (+.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: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 36 |
| 0 | 16 | 36 |
| 1 | 24 | 32 |
| 2 | 33 | 32 |
| 3 | 65 | 32 |
| 4 | 128 | 32 |
| 5 | 166 | 32 |
| 6 | 194 | 32 |
| 7 | 218 | 32 |
| 8 | 233 | 32 |
| 0 | 233 | 32 |
| 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) |
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 x) |
x |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
| 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) |
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt.f64 x) |
x |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (sqrt.f64 x)) |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (sqrt.f64 x) | |
| accuracy | 0.0 | (sqrt.f64 #s(literal 2 binary64)) | |
| accuracy | 0.3671875 | (*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) | |
| accuracy | 0.45445253907376815 | (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) | |
| accuracy | 0.0 | (+.f64 x x) | |
| accuracy | 0.0 | (sqrt.f64 (+.f64 x x)) | |
| accuracy | 0.0 | (sqrt.f64 x) | |
| accuracy | 0.3671875 | (*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
| 23.0ms | 256× | 0 | valid |
Compiled 38 to 11 computations (71.1% saved)
ival-sqrt: 10.0ms (63.3% of total)ival-mult: 5.0ms (31.7% of total)ival-add: 1.0ms (6.3% of total)ival-true: 0.0ms (0% of total)adjust: 0.0ms (0% of total)exact: 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) |
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(sqrt.f64 #s(literal 2 binary64)) |
| 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)))) |
(* -1 (* x (* (pow (sqrt -1) 2) (sqrt 2)))) |
(* -1 (* (sqrt x) (* (pow (sqrt -1) 2) (sqrt 2)))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | -inf | ((* (sqrt x) (sqrt (+ x x))) (sqrt x) (sqrt (+ x x)) (+ x x) (* (sqrt x) (* (sqrt x) (sqrt 2))) (* (sqrt x) (sqrt 2)) (sqrt 2)) |
| 1.0ms | x | @ | inf | ((* (sqrt x) (sqrt (+ x x))) (sqrt x) (sqrt (+ x x)) (+ x x) (* (sqrt x) (* (sqrt x) (sqrt 2))) (* (sqrt x) (sqrt 2)) (sqrt 2)) |
| 1.0ms | x | @ | 0 | ((* (sqrt x) (sqrt (+ x x))) (sqrt x) (sqrt (+ x x)) (+ x x) (* (sqrt x) (* (sqrt x) (sqrt 2))) (* (sqrt x) (sqrt 2)) (sqrt 2)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 24 | 42 |
| 1 | 62 | 42 |
| 2 | 206 | 42 |
| 3 | 426 | 42 |
| 4 | 947 | 42 |
| 5 | 1375 | 42 |
| 6 | 1435 | 42 |
| 7 | 1439 | 42 |
| 8 | 1439 | 42 |
| 9 | 1439 | 42 |
| 10 | 1515 | 42 |
| 11 | 1666 | 42 |
| 0 | 1666 | 42 |
| 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)))) |
(* -1 (* x (* (pow (sqrt -1) 2) (sqrt 2)))) |
(* -1 (* (sqrt x) (* (pow (sqrt -1) 2) (sqrt 2)))) |
| Outputs |
|---|
(* x (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt x) |
(sqrt.f64 x) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64))) (neg.f64 x)) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64))) (neg.f64 (sqrt.f64 x))) |
(* -1 (* x (* (pow (sqrt -1) 2) (sqrt 2)))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(* -1 (* (sqrt x) (* (pow (sqrt -1) 2) (sqrt 2)))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 31 |
| 0 | 16 | 23 |
| 1 | 41 | 23 |
| 0 | 167 | 19 |
| 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) |
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(sqrt.f64 #s(literal 2 binary64)) |
| 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 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (hypot.f64 x x) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (hypot.f64 x x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(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 (neg.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (neg.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (neg.f64 (sqrt.f64 x)) (sqrt.f64 x)) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (sqrt.f64 x)) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 (sqrt.f64 x) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (sqrt.f64 x) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (sqrt.f64 x) (sqrt.f64 x)) |
(hypot.f64 x (neg.f64 x)) |
(hypot.f64 x (fabs.f64 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 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (hypot.f64 x x) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (hypot.f64 x x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(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 (neg.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (neg.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (neg.f64 (sqrt.f64 x)) (sqrt.f64 x)) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (sqrt.f64 x)) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 (sqrt.f64 x) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (sqrt.f64 x) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (sqrt.f64 x) (sqrt.f64 x)) |
(hypot.f64 x (neg.f64 x)) |
(hypot.f64 x (fabs.f64 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 (*.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 (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 (neg.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x)) x) |
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 x x)) |
(fma.f64 (fabs.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x)) x) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 x x)) |
(fma.f64 (sqrt.f64 x) (sqrt.f64 x) x) |
(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 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x x #s(literal 0 binary64))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x x #s(literal 0 binary64)))) |
(+.f64 (*.f64 x x) (*.f64 x x)) |
(+.f64 x x) |
(*.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 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (hypot.f64 x x) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (hypot.f64 x x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(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 (neg.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (neg.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (neg.f64 (sqrt.f64 x)) (sqrt.f64 x)) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (sqrt.f64 x)) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 (sqrt.f64 x) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (sqrt.f64 x) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (sqrt.f64 x) (sqrt.f64 x)) |
(hypot.f64 x (neg.f64 x)) |
(hypot.f64 x (fabs.f64 x)) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (*.f64 #s(literal 2 binary64) 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 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (hypot.f64 x x) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (hypot.f64 x x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(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 (neg.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (neg.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (neg.f64 (sqrt.f64 x)) (sqrt.f64 x)) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (fabs.f64 (sqrt.f64 x)) (sqrt.f64 x)) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.f64 (fabs.f64 x) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) x) |
(hypot.f64 (sqrt.f64 x) (neg.f64 (sqrt.f64 x))) |
(hypot.f64 (sqrt.f64 x) (fabs.f64 (sqrt.f64 x))) |
(hypot.f64 (sqrt.f64 x) (sqrt.f64 x)) |
(hypot.f64 x (neg.f64 x)) |
(hypot.f64 x (fabs.f64 x)) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (*.f64 #s(literal 2 binary64) x)) #s(literal 1/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))) |
Compiled 665 to 173 computations (74% saved)
5 alts after pruning (0 fresh and 5 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 74 | 0 | 74 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 3 | 3 |
| Total | 74 | 5 | 79 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ✓ | 99.0% | (*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
| ✓ | 99.4% | (*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
| ✓ | 52.9% | (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 89 to 49 computations (44.9% 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))) |
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(hypot.f64 x x) |
| Outputs |
|---|
(hypot.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 |
|---|---|---|
| 100.0% | 1 | (*.f64 x x) |
| 100.0% | 1 | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 100.0% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 100.0% | 1 | 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))) |
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
| Outputs |
|---|
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x))) |
4 calls:
| 34.0ms | (*.f64 x x) |
| 2.0ms | x |
| 2.0ms | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 2.0ms | (+.f64 (*.f64 x x) (*.f64 x x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.4% | 1 | (*.f64 x x) |
| 99.4% | 1 | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 99.4% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 99.4% | 1 | x |
Compiled 19 to 10 computations (47.4% saved)
Total -29.9b remaining (-7817.7%)
Threshold costs -29.9b (-7817.7%)
| 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:
| 1.0ms | x |
| 1.0ms | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 1.0ms | (*.f64 x x) |
| 1.0ms | (+.f64 (*.f64 x x) (*.f64 x x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.4% | 1 | (*.f64 x x) |
| 99.4% | 1 | (+.f64 (*.f64 x x) (*.f64 x x)) |
| 99.4% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x))) |
| 99.4% | 1 | x |
Compiled 19 to 10 computations (47.4% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 21 |
| 1 | 24 | 21 |
| 2 | 61 | 21 |
| 3 | 138 | 21 |
| 4 | 217 | 21 |
| 5 | 279 | 21 |
| 6 | 471 | 21 |
| 7 | 2267 | 21 |
| 8 | 3905 | 21 |
| 1× | node limit |
| 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))) |
#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 | 47 |
| 0 | 25 | 40 |
| 1 | 61 | 38 |
| 0 | 299 | 38 |
| 0 | 4 | 18 |
| 0 | 7 | 14 |
| 1 | 29 | 10 |
| 0 | 250 | 9 |
| 0 | 8 | 17 |
| 1 | 18 | 17 |
| 2 | 43 | 17 |
| 3 | 92 | 17 |
| 4 | 228 | 17 |
| 5 | 437 | 17 |
| 6 | 485 | 17 |
| 0 | 485 | 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 23 to 13 computations (43.5% saved)
(abs x)
Compiled 68 to 38 computations (44.1% saved)
Loading profile data...