
Time bar (total: 7.3s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 1 |
| 100% | 100% | 0% | 0% | 0% | 0% | 0% | 2 |
Compiled 8 to 7 computations (12.5% saved)
| 731.0ms | 8 256× | 0 | valid |
ival-mult: 112.0ms (56.6% of total)ival-sqrt: 72.0ms (36.4% of total)ival-true: 5.0ms (2.5% of total)exact: 4.0ms (2% of total)adjust: 2.0ms (1% of total)ival-assert: 2.0ms (1% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 132 | 0 | - | 2 | (-8.548364568892834e-157) | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| 0 | 0 | - | 0 | - | #s(literal 2 binary64) |
| 0 | 0 | - | 0 | - | (*.f64 x x) |
| 0 | 0 | - | 0 | - | (*.f64 #s(literal 2 binary64) (*.f64 x x)) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) | uflow-rescue | 72 | 0 |
| ↳ | (*.f64 #s(literal 2 binary64) (*.f64 x x)) | underflow | 72 | |
| ↳ | (*.f64 x x) | underflow | 72 | |
sqrt.f64 | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) | oflow-rescue | 58 | 0 |
| ↳ | (*.f64 #s(literal 2 binary64) (*.f64 x x)) | overflow | 58 | |
| ↳ | (*.f64 x x) | overflow | 58 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 130 | 2 |
| - | 0 | 124 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 130 | 0 | 2 |
| - | 0 | 0 | 124 |
| number | freq |
|---|---|
| 0 | 126 |
| 1 | 130 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 22.0ms | 512× | 0 | valid |
Compiled 42 to 19 computations (54.8% saved)
ival-mult: 7.0ms (60.4% of total)ival-sqrt: 3.0ms (25.9% 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)| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 13 |
| 1 | 22 | 13 |
| 2 | 88 | 13 |
| 3 | 188 | 13 |
| 4 | 582 | 13 |
| 5 | 1434 | 13 |
| 6 | 5100 | 13 |
| 0 | 5 | 6 |
| 0 | 8 | 6 |
| 1 | 18 | 6 |
| 2 | 61 | 6 |
| 3 | 182 | 6 |
| 4 | 501 | 6 |
| 5 | 1233 | 6 |
| 6 | 4737 | 6 |
| 7 | 7909 | 6 |
| 0 | 8489 | 3 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| Outputs |
|---|
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
(hypot.f64 x x) |
(abs x)
Compiled 6 to 5 computations (16.7% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 52.5% | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
Compiled 6 to 5 computations (16.7% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | (*.f64 #s(literal 2 binary64) (*.f64 x x)) | |
| cost-diff | 3 | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 16 |
| 0 | 8 | 16 |
| 1 | 18 | 16 |
| 2 | 61 | 16 |
| 3 | 182 | 16 |
| 4 | 501 | 16 |
| 5 | 1233 | 16 |
| 6 | 4737 | 16 |
| 7 | 7909 | 16 |
| 0 | 8489 | 13 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
#s(literal 2 binary64) |
(*.f64 x x) |
x |
| Outputs |
|---|
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
(hypot.f64 x x) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
#s(literal 2 binary64) |
(*.f64 x x) |
x |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 x x) | |
| accuracy | 0.0078125 | (*.f64 #s(literal 2 binary64) (*.f64 x x)) | |
| accuracy | 30.362378548852618 | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| 222.0ms | 256× | 0 | valid |
Compiled 18 to 7 computations (61.1% saved)
ival-mult: 49.0ms (95.1% of total)ival-sqrt: 2.0ms (3.9% 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 |
|---|
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
(*.f64 #s(literal 2 binary64) (*.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 (* 2 (* x x))) (* 2 (* x x)) (* x x)) |
| 1.0ms | x | @ | 0 | ((sqrt (* 2 (* x x))) (* 2 (* x x)) (* x x)) |
| 1.0ms | x | @ | -inf | ((sqrt (* 2 (* x x))) (* 2 (* x x)) (* x x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 17 |
| 1 | 18 | 17 |
| 2 | 50 | 17 |
| 3 | 125 | 17 |
| 4 | 398 | 17 |
| 5 | 1308 | 17 |
| 6 | 4904 | 17 |
| 0 | 8014 | 17 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(* x (sqrt 2)) |
(* 2 (pow x 2)) |
(pow x 2) |
(* -1 (* x (sqrt 2))) |
| Outputs |
|---|
(* x (sqrt 2)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(* 2 (pow x 2)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(pow x 2) |
(*.f64 x x) |
(* -1 (* x (sqrt 2))) |
(*.f64 x (neg.f64 (sqrt.f64 #s(literal 2 binary64)))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 14 |
| 0 | 8 | 14 |
| 1 | 24 | 13 |
| 0 | 122 | 11 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(*.f64 x x) |
| Outputs |
|---|
(*.f64 (pow.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (pow.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1/4 binary64))) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(*.f64 (pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/2 binary64)) (pow.f64 x #s(literal 1/2 binary64))) |
(*.f64 (fabs.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (fabs.f64 x)) |
(pow.f64 (*.f64 (*.f64 x x) #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
(sqrt.f64 (*.f64 (*.f64 x x) #s(literal 2 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 x)) |
(hypot.f64 (neg.f64 (neg.f64 x)) (neg.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)) (fabs.f64 x)) |
(hypot.f64 (neg.f64 (fabs.f64 x)) (neg.f64 x)) |
(hypot.f64 (neg.f64 (fabs.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) (fabs.f64 x)) |
(hypot.f64 (fabs.f64 x) (neg.f64 x)) |
(hypot.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) (fabs.f64 x)) |
(hypot.f64 (neg.f64 x) (neg.f64 x)) |
(hypot.f64 (neg.f64 x) x) |
(hypot.f64 x (neg.f64 (neg.f64 x))) |
(hypot.f64 x (neg.f64 (fabs.f64 x))) |
(hypot.f64 x (fabs.f64 x)) |
(hypot.f64 x (neg.f64 x)) |
(hypot.f64 x x) |
(exp.f64 (*.f64 (log.f64 (*.f64 (*.f64 x x) #s(literal 2 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 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 2 binary64))) |
(*.f64 (fabs.f64 x) (+.f64 (fabs.f64 x) (fabs.f64 x))) |
(*.f64 (*.f64 x #s(literal 2 binary64)) 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 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x (*.f64 x #s(literal 2 binary64))) |
(*.f64 #s(literal 2 binary64) (*.f64 x x)) |
(/.f64 (-.f64 (*.f64 (*.f64 x x) (*.f64 x x)) (*.f64 (*.f64 x x) (*.f64 x x))) (-.f64 (*.f64 x x) (*.f64 x x))) |
(/.f64 (+.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) (pow.f64 (*.f64 x x) #s(literal 3 binary64))) (fma.f64 (*.f64 x x) (*.f64 x x) (-.f64 (*.f64 (*.f64 x x) (*.f64 x x)) (*.f64 (*.f64 x x) (*.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 x x)) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) (*.f64 x x)) |
(fma.f64 (fabs.f64 x) x (*.f64 x x)) |
(fma.f64 #s(literal 1 binary64) (*.f64 x x) (*.f64 #s(literal 1 binary64) (*.f64 x x))) |
(fma.f64 (neg.f64 x) (neg.f64 x) (*.f64 x x)) |
(fma.f64 (*.f64 x x) #s(literal 1 binary64) (*.f64 (*.f64 x x) #s(literal 1 binary64))) |
(fma.f64 x x (*.f64 x x)) |
(-.f64 (*.f64 x x) (*.f64 x (neg.f64 x))) |
(-.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 #s(literal 1 binary64) (*.f64 x x)) (*.f64 #s(literal 1 binary64) (*.f64 x x))) |
(+.f64 (*.f64 (*.f64 x x) #s(literal 1 binary64)) (*.f64 (*.f64 x x) #s(literal 1 binary64))) |
(+.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 (fabs.f64 x) (fabs.f64 x)) |
(*.f64 (fabs.f64 x) x) |
(*.f64 (neg.f64 x) (neg.f64 x)) |
(*.f64 x x) |
(pow.f64 (fabs.f64 x) #s(literal 2 binary64)) |
(pow.f64 (neg.f64 x) #s(literal 2 binary64)) |
(pow.f64 x #s(literal 2 binary64)) |
(neg.f64 (*.f64 x (neg.f64 x))) |
(neg.f64 (*.f64 (neg.f64 x) x)) |
(fabs.f64 (*.f64 x x)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
Compiled 625 to 176 computations (71.8% saved)
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 74 | 3 | 77 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 74 | 4 | 78 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (hypot.f64 x x) |
| ▶ | 99.4% | (*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
| ✓ | 52.5% | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| ▶ | 99.4% | #s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
Compiled 27 to 22 computations (18.5% saved)
| 1× | egg-herbie |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (hypot.f64 x x) | |
| cost-diff | 0 | (sqrt.f64 x) | |
| cost-diff | 0 | (*.f64 x #s(literal 2 binary64)) | |
| cost-diff | 0 | (sqrt.f64 (*.f64 x #s(literal 2 binary64))) | |
| cost-diff | 0 | (*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) | |
| cost-diff | 0 | (sqrt.f64 #s(literal 2 binary64)) | |
| cost-diff | 0 | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) | |
| cost-diff | 0 | #s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 41 |
| 0 | 21 | 38 |
| 1 | 37 | 38 |
| 2 | 85 | 38 |
| 3 | 210 | 38 |
| 4 | 439 | 38 |
| 5 | 1196 | 38 |
| 6 | 5172 | 38 |
| 0 | 8083 | 38 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
x |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(sqrt.f64 (*.f64 x #s(literal 2 binary64))) |
(*.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
(sqrt.f64 x) |
(hypot.f64 x x) |
x |
| Outputs |
|---|
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
x |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 x #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 x #s(literal 2 binary64))) |
(*.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
(sqrt.f64 x) |
(hypot.f64 x x) |
x |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.015625 | (hypot.f64 x x) | |
| accuracy | 0.0 | (*.f64 x #s(literal 2 binary64)) | |
| accuracy | 0.0 | (sqrt.f64 (*.f64 x #s(literal 2 binary64))) | |
| accuracy | 0.0 | (sqrt.f64 x) | |
| accuracy | 0.37109375 | (*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) | |
| accuracy | 0.0 | (sqrt.f64 #s(literal 2 binary64)) | |
| accuracy | 0.0 | #s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) | |
| accuracy | 0.3984375 | (*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
| 42.0ms | 256× | 0 | valid |
Compiled 43 to 14 computations (67.4% saved)
ival-mult: 8.0ms (43.9% of total)ival-sqrt: 6.0ms (32.9% of total)ival-hypot: 4.0ms (21.9% 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 (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(sqrt.f64 #s(literal 2 binary64)) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(sqrt.f64 (*.f64 x #s(literal 2 binary64))) |
(*.f64 x #s(literal 2 binary64)) |
(sqrt.f64 x) |
(hypot.f64 x x) |
| Outputs |
|---|
(* x (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(sqrt x) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | x | @ | -inf | ((sqrt (* 2 (* x x))) (* x (sqrt 2)) (sqrt 2) (* (sqrt (* x 2)) (sqrt x)) (sqrt (* x 2)) (* x 2) (sqrt x) (sqrt (+ (* x x) (* x x)))) |
| 1.0ms | x | @ | 0 | ((sqrt (* 2 (* x x))) (* x (sqrt 2)) (sqrt 2) (* (sqrt (* x 2)) (sqrt x)) (sqrt (* x 2)) (* x 2) (sqrt x) (sqrt (+ (* x x) (* x x)))) |
| 1.0ms | x | @ | inf | ((sqrt (* 2 (* x x))) (* x (sqrt 2)) (sqrt 2) (* (sqrt (* x 2)) (sqrt x)) (sqrt (* x 2)) (* x 2) (sqrt x) (sqrt (+ (* x x) (* x x)))) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 20 | 38 |
| 1 | 49 | 38 |
| 2 | 142 | 38 |
| 0 | 354 | 38 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(* x (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(sqrt x) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
| Outputs |
|---|
(* x (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* 2 x) |
(*.f64 x #s(literal 2 binary64)) |
(sqrt x) |
(sqrt.f64 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) (* (sqrt -2) (sqrt -1)))) |
(*.f64 (neg.f64 (sqrt.f64 #s(literal -2 binary64))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 36 |
| 0 | 21 | 27 |
| 1 | 57 | 26 |
| 0 | 323 | 26 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 x (sqrt.f64 #s(literal 2 binary64))) |
(sqrt.f64 #s(literal 2 binary64)) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(sqrt.f64 (*.f64 x #s(literal 2 binary64))) |
(*.f64 x #s(literal 2 binary64)) |
(sqrt.f64 x) |
(hypot.f64 x x) |
| Outputs |
|---|
#s(approx (sqrt (* 2 (* 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))) |
(*.f64 (fabs.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 x #s(literal 2 binary64)))) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (fabs.f64 x)) |
(pow.f64 #s(literal 2 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)))) (hypot.f64 #s(literal 0 binary64) (*.f64 x x))) |
(sqrt.f64 #s(literal 2 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 #s(literal 1 binary64) #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) (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 (log1p.f64 #s(literal 1 binary64)) #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))) |
(*.f64 (fabs.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 x #s(literal 2 binary64)))) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (fabs.f64 x)) |
(pow.f64 #s(literal 2 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)))) (hypot.f64 #s(literal 0 binary64) (*.f64 x x))) |
(sqrt.f64 #s(literal 2 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 #s(literal 1 binary64) #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) (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 (log1p.f64 #s(literal 1 binary64)) #s(literal 1/2 binary64))) |
(*.f64 (pow.f64 (*.f64 x #s(literal 2 binary64)) #s(literal 1/4 binary64)) (pow.f64 (*.f64 x #s(literal 2 binary64)) #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 x #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
(sqrt.f64 (*.f64 x #s(literal 2 binary64))) |
(exp.f64 (*.f64 (log.f64 (*.f64 x #s(literal 2 binary64))) #s(literal 1/2 binary64))) |
(*.f64 x #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) x) |
(/.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)) |
(fma.f64 #s(literal 1 binary64) x (*.f64 #s(literal 1 binary64) x)) |
(fma.f64 x #s(literal 1 binary64) (*.f64 x #s(literal 1 binary64))) |
(+.f64 (*.f64 #s(literal 1 binary64) x) (*.f64 #s(literal 1 binary64) x)) |
(+.f64 (*.f64 x #s(literal 1 binary64)) (*.f64 x #s(literal 1 binary64))) |
(+.f64 x x) |
(*.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 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) |
(*.f64 (fabs.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 x #s(literal 2 binary64)))) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (fabs.f64 x)) |
(pow.f64 #s(literal 2 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)))) (hypot.f64 #s(literal 0 binary64) (*.f64 x x))) |
(sqrt.f64 #s(literal 2 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 #s(literal 1 binary64) #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) (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 (log1p.f64 #s(literal 1 binary64)) #s(literal 1/2 binary64))) |
Compiled 812 to 215 computations (73.5% saved)
4 alts after pruning (1 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 63 | 1 | 64 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 0 | 1 | 1 |
| Total | 64 | 4 | 68 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ▶ | 99.4% | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
| ✓ | 52.5% | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| ✓ | 99.4% | #s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
Compiled 27 to 21 computations (22.2% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (sqrt.f64 x) | |
| cost-diff | 0 | (+.f64 x x) | |
| cost-diff | 0 | (sqrt.f64 (+.f64 x x)) | |
| cost-diff | 0 | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 17 |
| 0 | 9 | 17 |
| 1 | 12 | 17 |
| 2 | 15 | 17 |
| 3 | 22 | 17 |
| 4 | 40 | 17 |
| 5 | 79 | 17 |
| 6 | 283 | 17 |
| 7 | 1740 | 17 |
| 0 | 8132 | 17 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(sqrt.f64 (+.f64 x x)) |
(+.f64 x x) |
x |
(sqrt.f64 x) |
| Outputs |
|---|
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(sqrt.f64 (+.f64 x x)) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(+.f64 x x) |
(*.f64 #s(literal 2 binary64) x) |
x |
(sqrt.f64 x) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 x x) | |
| accuracy | 0.0 | (sqrt.f64 (+.f64 x x)) | |
| accuracy | 0.0 | (sqrt.f64 x) | |
| accuracy | 0.37109375 | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
| 12.0ms | 256× | 0 | valid |
Compiled 19 to 7 computations (63.2% saved)
ival-sqrt: 3.0ms (47.8% of total)ival-mult: 2.0ms (31.9% of total)ival-add: 1.0ms (15.9% of total)ival-true: 0.0ms (0% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(sqrt.f64 (+.f64 x x)) |
(+.f64 x x) |
(sqrt.f64 x) |
| Outputs |
|---|
(* x (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(sqrt x) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((* (sqrt (+ x x)) (sqrt x)) (sqrt (+ x x)) (+ x x) (sqrt x)) |
| 1.0ms | x | @ | inf | ((* (sqrt (+ x x)) (sqrt x)) (sqrt (+ x x)) (+ x x) (sqrt x)) |
| 1.0ms | x | @ | 0 | ((* (sqrt (+ x x)) (sqrt x)) (sqrt (+ x x)) (+ x x) (sqrt x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 33 |
| 1 | 45 | 33 |
| 2 | 128 | 33 |
| 0 | 323 | 33 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(* x (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(sqrt x) |
(* -1 (* x (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
| Outputs |
|---|
(* x (sqrt 2)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(* (sqrt x) (sqrt 2)) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(sqrt x) |
(sqrt.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) (* (sqrt -2) (sqrt -1)))) |
(*.f64 (neg.f64 (sqrt.f64 #s(literal -2 binary64))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 16 |
| 0 | 9 | 15 |
| 1 | 26 | 15 |
| 0 | 131 | 15 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(sqrt.f64 (+.f64 x x)) |
(+.f64 x x) |
(sqrt.f64 x) |
| Outputs |
|---|
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 #s(literal 2 binary64) x))) |
(*.f64 (sqrt.f64 (*.f64 #s(literal 2 binary64) x)) (sqrt.f64 x)) |
(pow.f64 (*.f64 (*.f64 #s(literal 2 binary64) x) x) #s(literal 1/2 binary64)) |
(sqrt.f64 (*.f64 (*.f64 #s(literal 2 binary64) 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 (pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64)) (sqrt.f64 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)))) (hypot.f64 #s(literal 0 binary64) x)) |
(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 (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))) |
(-.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 x x) |
(*.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))) |
Compiled 314 to 101 computations (67.8% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 30 | 0 | 30 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 3 | 3 |
| Total | 30 | 4 | 34 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ✓ | 99.4% | (*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
| ✓ | 52.5% | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| ✓ | 99.4% | #s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
Compiled 61 to 41 computations (32.8% saved)
| Inputs |
|---|
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
(hypot.f64 x x) |
| Outputs |
|---|
(hypot.f64 x x) |
4 calls:
| 12.0ms | (*.f64 x x) |
| 2.0ms | x |
| 2.0ms | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| 2.0ms | (*.f64 #s(literal 2 binary64) (*.f64 x x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | (*.f64 x x) |
| 100.0% | 1 | (*.f64 #s(literal 2 binary64) (*.f64 x x)) |
| 100.0% | 1 | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| 100.0% | 1 | x |
Compiled 15 to 12 computations (20% saved)
| Inputs |
|---|
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
(*.f64 (sqrt.f64 (*.f64 x #s(literal 2 binary64))) (sqrt.f64 x)) |
| Outputs |
|---|
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
4 calls:
| 2.0ms | x |
| 1.0ms | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| 1.0ms | (*.f64 #s(literal 2 binary64) (*.f64 x x)) |
| 1.0ms | (*.f64 x x) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.4% | 1 | (*.f64 x x) |
| 99.4% | 1 | (*.f64 #s(literal 2 binary64) (*.f64 x x)) |
| 99.4% | 1 | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| 99.4% | 1 | x |
Compiled 15 to 12 computations (20% saved)
Total -30.2b remaining (-7568.6%)
Threshold costs -30.2b (-7568.6%)
| Inputs |
|---|
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| Outputs |
|---|
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
4 calls:
| 1.0ms | x |
| 1.0ms | (*.f64 #s(literal 2 binary64) (*.f64 x x)) |
| 1.0ms | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| 1.0ms | (*.f64 x x) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.4% | 1 | (*.f64 x x) |
| 99.4% | 1 | (*.f64 #s(literal 2 binary64) (*.f64 x x)) |
| 99.4% | 1 | (sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x))) |
| 99.4% | 1 | x |
Compiled 15 to 12 computations (20% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 21 |
| 1 | 23 | 21 |
| 2 | 66 | 21 |
| 3 | 188 | 21 |
| 4 | 528 | 21 |
| 5 | 2665 | 21 |
| 1× | node limit |
| Inputs |
|---|
(hypot.f64 x x) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
| Outputs |
|---|
(hypot.f64 x x) |
(*.f64 (sqrt.f64 (+.f64 x x)) (sqrt.f64 x)) |
#s(approx (sqrt (* 2 (* x x))) (*.f64 x (sqrt.f64 #s(literal 2 binary64)))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 17 |
| 1 | 18 | 17 |
| 2 | 50 | 17 |
| 3 | 125 | 17 |
| 4 | 398 | 17 |
| 5 | 1308 | 17 |
| 6 | 4904 | 17 |
| 0 | 8014 | 17 |
| 0 | 13 | 36 |
| 0 | 21 | 27 |
| 1 | 57 | 26 |
| 0 | 323 | 26 |
| 0 | 5 | 14 |
| 0 | 8 | 14 |
| 1 | 24 | 13 |
| 0 | 122 | 11 |
| 1× | done |
| 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 |
| 1× | iter limit |
| 1× | node limit |
Compiled 21 to 14 computations (33.3% saved)
(abs x)
Compiled 60 to 42 computations (30% saved)
Loading profile data...