
Time bar (total: 1.0s)
| 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 |
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 2 |
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 3 |
| 33.3% | 25% | 50% | 0% | 0% | 25% | 0% | 4 |
| 60% | 37.5% | 25% | 0% | 0% | 37.5% | 0% | 5 |
| 77.8% | 43.7% | 12.5% | 0% | 0% | 43.7% | 0% | 6 |
| 88.2% | 46.9% | 6.2% | 0% | 0% | 46.9% | 0% | 7 |
| 93.9% | 48.4% | 3.1% | 0% | 0% | 48.4% | 0% | 8 |
| 96.9% | 49.2% | 1.6% | 0% | 0% | 49.2% | 0% | 9 |
| 98.4% | 49.6% | 0.8% | 0% | 0% | 49.6% | 0% | 10 |
| 99.2% | 49.8% | 0.4% | 0% | 0% | 49.8% | 0% | 11 |
| 99.6% | 49.9% | 0.2% | 0% | 0% | 49.9% | 0% | 12 |
Compiled 13 to 11 computations (15.4% saved)
| 565.0ms | 8 256× | 0 | valid |
| 1.0ms | 16× | 0 | invalid |
ival-atan: 92.0ms (23% of total)ival-sqrt: 76.0ms (19% of total)ival-sub: 59.0ms (14.8% of total)ival-div: 56.0ms (14% of total)ival-mult: 53.0ms (13.3% of total)ival-add: 48.0ms (12% of total)exact: 8.0ms (2% of total)ival-true: 6.0ms (1.5% of total)ival-assert: 3.0ms (0.8% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (-.f64 #s(literal 1 binary64) x) |
| 0 | 0 | - | 0 | - | (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
| 0 | 0 | - | 0 | - | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| 0 | 0 | - | 0 | - | (+.f64 #s(literal 1 binary64) x) |
| 0 | 0 | - | 0 | - | (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
| 0 | 0 | - | 0 | - | #s(literal 2 binary64) |
| 0 | 0 | - | 0 | - | x |
| Predicted + | Predicted - | |
|---|---|---|
| + | 0 | 0 |
| - | 0 | 256 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 0 | 0 | 0 |
| - | 0 | 0 | 256 |
| number | freq |
|---|---|
| 0 | 256 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 0 | 0 | 0 |
| - | 0 | 0 | 1 |
| 35.0ms | 512× | 0 | valid |
Compiled 147 to 40 computations (72.8% saved)
ival-atan: 4.0ms (18.6% of total)ival-sqrt: 4.0ms (18.6% of total)ival-div: 3.0ms (14% of total)ival-add: 3.0ms (14% of total)ival-mult: 3.0ms (14% of total)ival-sub: 3.0ms (14% of total)exact: 1.0ms (4.7% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| Outputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
Compiled 11 to 9 computations (18.2% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
Compiled 11 to 9 computations (18.2% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) | |
| cost-diff | 0 | (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) | |
| cost-diff | 0 | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
#s(literal 2 binary64) |
(atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
(sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
(+.f64 #s(literal 1 binary64) x) |
| Outputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
#s(literal 2 binary64) |
(atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
(sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
(+.f64 #s(literal 1 binary64) x) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) | |
| accuracy | 0.00390625 | (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) | |
| accuracy | 0.015625 | (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) | |
| accuracy | 0.0234375 | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| 18.0ms | 256× | 0 | valid |
Compiled 90 to 20 computations (77.8% saved)
ival-div: 2.0ms (18.8% of total)ival-mult: 2.0ms (18.8% of total)ival-atan: 2.0ms (18.8% of total)ival-sub: 2.0ms (18.8% of total)ival-sqrt: 2.0ms (18.8% of total)ival-add: 1.0ms (9.4% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
(sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) |
(atan (sqrt (/ (- 1 x) (+ 1 x)))) |
1 |
(+ 1 (* -1 x)) |
(+ 1 (* x (- (* 1/2 x) 1))) |
(+ 1 (* x (- (* x (+ 1/2 (* -1/2 x))) 1))) |
(+ 1 (* -2 x)) |
(+ 1 (* x (- (* 2 x) 2))) |
(+ 1 (* x (- (* x (+ 2 (* -2 x))) 2))) |
(sqrt -1) |
(+ (sqrt -1) (/ 1 (* x (sqrt -1)))) |
(+ (sqrt -1) (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* (pow x 2) (sqrt -1)))) (/ 1 (* x (sqrt -1))))) |
(+ (sqrt -1) (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* (pow x 2) (sqrt -1)))) (+ (* 1/2 (/ (- 2 (* -1 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (pow (sqrt -1) 2)))) (* (pow x 3) (sqrt -1)))) (/ 1 (* x (sqrt -1)))))) |
-1 |
(- (* 2 (/ 1 x)) 1) |
(- (* 2 (/ 1 x)) (+ 1 (/ 2 (pow x 2)))) |
(- (+ (* 2 (/ 1 x)) (* 2 (/ 1 (pow x 3)))) (+ 1 (/ 2 (pow x 2)))) |
(* 2 (atan (sqrt (/ (+ 1 (* -1 x)) (- 1 (* -1 x)))))) |
(atan (sqrt (/ (+ 1 (* -1 x)) (- 1 (* -1 x))))) |
(+ (sqrt -1) (* -1 (/ (- (* 1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* x (sqrt -1)))) (/ 1 (sqrt -1))) x))) |
(+ (sqrt -1) (* -1 (/ (- (* -1 (/ (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (sqrt -1))) (* 1/2 (/ (+ 2 (+ (* 2 (/ 1 (pow (sqrt -1) 2))) (/ 1 (pow (sqrt -1) 4)))) (* x (sqrt -1))))) x)) (/ 1 (sqrt -1))) x))) |
(- (* -1 (/ (- (* 2 (/ 1 x)) 2) x)) 1) |
(- (* -1 (/ (- (* -1 (/ (- (* 2 (/ 1 x)) 2) x)) 2) x)) 1) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) (atan (sqrt (/ (- 1 x) (+ 1 x)))) (sqrt (/ (- 1 x) (+ 1 x))) (/ (- 1 x) (+ 1 x))) |
| 1.0ms | x | @ | inf | ((* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) (atan (sqrt (/ (- 1 x) (+ 1 x)))) (sqrt (/ (- 1 x) (+ 1 x))) (/ (- 1 x) (+ 1 x))) |
| 1.0ms | x | @ | 0 | ((* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) (atan (sqrt (/ (- 1 x) (+ 1 x)))) (sqrt (/ (- 1 x) (+ 1 x))) (/ (- 1 x) (+ 1 x))) |
| 1× | egg-herbie |
| Inputs |
|---|
(* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) |
(atan (sqrt (/ (- 1 x) (+ 1 x)))) |
1 |
(+ 1 (* -1 x)) |
(+ 1 (* x (- (* 1/2 x) 1))) |
(+ 1 (* x (- (* x (+ 1/2 (* -1/2 x))) 1))) |
(+ 1 (* -2 x)) |
(+ 1 (* x (- (* 2 x) 2))) |
(+ 1 (* x (- (* x (+ 2 (* -2 x))) 2))) |
(sqrt -1) |
(+ (sqrt -1) (/ 1 (* x (sqrt -1)))) |
(+ (sqrt -1) (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* (pow x 2) (sqrt -1)))) (/ 1 (* x (sqrt -1))))) |
(+ (sqrt -1) (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* (pow x 2) (sqrt -1)))) (+ (* 1/2 (/ (- 2 (* -1 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (pow (sqrt -1) 2)))) (* (pow x 3) (sqrt -1)))) (/ 1 (* x (sqrt -1)))))) |
-1 |
(- (* 2 (/ 1 x)) 1) |
(- (* 2 (/ 1 x)) (+ 1 (/ 2 (pow x 2)))) |
(- (+ (* 2 (/ 1 x)) (* 2 (/ 1 (pow x 3)))) (+ 1 (/ 2 (pow x 2)))) |
(* 2 (atan (sqrt (/ (+ 1 (* -1 x)) (- 1 (* -1 x)))))) |
(atan (sqrt (/ (+ 1 (* -1 x)) (- 1 (* -1 x))))) |
(+ (sqrt -1) (* -1 (/ (- (* 1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* x (sqrt -1)))) (/ 1 (sqrt -1))) x))) |
(+ (sqrt -1) (* -1 (/ (- (* -1 (/ (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (sqrt -1))) (* 1/2 (/ (+ 2 (+ (* 2 (/ 1 (pow (sqrt -1) 2))) (/ 1 (pow (sqrt -1) 4)))) (* x (sqrt -1))))) x)) (/ 1 (sqrt -1))) x))) |
(- (* -1 (/ (- (* 2 (/ 1 x)) 2) x)) 1) |
(- (* -1 (/ (- (* -1 (/ (- (* 2 (/ 1 x)) 2) x)) 2) x)) 1) |
| Outputs |
|---|
(* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) |
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(atan (sqrt (/ (- 1 x) (+ 1 x)))) |
(atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
1 |
(sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(+ 1 (* -1 x)) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
(sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
(sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
Compiled 127 to 26 computations (79.5% saved)
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 7 | 1 | 8 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 7 | 2 | 9 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| ▶ | 97.6% | (*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
Compiled 30 to 23 computations (23.3% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) | |
| cost-diff | 0 | (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) | |
| cost-diff | 0 | (*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
#s(literal 2 binary64) |
(atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
#s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
(+.f64 #s(literal 1 binary64) x) |
| Outputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
#s(literal 2 binary64) |
(atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
#s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
(+.f64 #s(literal 1 binary64) x) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) | |
| accuracy | 0.015625 | (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) | |
| accuracy | 0.0234375 | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) | |
| accuracy | 1.5738377608665375 | #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
| 22.0ms | 256× | 0 | valid |
Compiled 114 to 25 computations (78.1% saved)
ival-div: 2.0ms (18.9% of total)ival-mult: 2.0ms (18.9% of total)ival-atan: 2.0ms (18.9% of total)ival-sub: 2.0ms (18.9% of total)ival-sqrt: 2.0ms (18.9% of total)ival-add: 1.0ms (9.4% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
#s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) |
(atan (sqrt (/ (- 1 x) (+ 1 x)))) |
1 |
(+ 1 (* -1 x)) |
(+ 1 (* x (- (* 1/2 x) 1))) |
(+ 1 (* x (- (* x (+ 1/2 (* -1/2 x))) 1))) |
(+ 1 (* -2 x)) |
(+ 1 (* x (- (* 2 x) 2))) |
(+ 1 (* x (- (* x (+ 2 (* -2 x))) 2))) |
(sqrt -1) |
(+ (sqrt -1) (/ 1 (* x (sqrt -1)))) |
(+ (sqrt -1) (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* (pow x 2) (sqrt -1)))) (/ 1 (* x (sqrt -1))))) |
(+ (sqrt -1) (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* (pow x 2) (sqrt -1)))) (+ (* 1/2 (/ (- 2 (* -1 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (pow (sqrt -1) 2)))) (* (pow x 3) (sqrt -1)))) (/ 1 (* x (sqrt -1)))))) |
-1 |
(- (* 2 (/ 1 x)) 1) |
(- (* 2 (/ 1 x)) (+ 1 (/ 2 (pow x 2)))) |
(- (+ (* 2 (/ 1 x)) (* 2 (/ 1 (pow x 3)))) (+ 1 (/ 2 (pow x 2)))) |
(* 2 (atan (sqrt (/ (+ 1 (* -1 x)) (- 1 (* -1 x)))))) |
(atan (sqrt (/ (+ 1 (* -1 x)) (- 1 (* -1 x))))) |
(+ (sqrt -1) (* -1 (/ (- (* 1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* x (sqrt -1)))) (/ 1 (sqrt -1))) x))) |
(+ (sqrt -1) (* -1 (/ (- (* -1 (/ (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (sqrt -1))) (* 1/2 (/ (+ 2 (+ (* 2 (/ 1 (pow (sqrt -1) 2))) (/ 1 (pow (sqrt -1) 4)))) (* x (sqrt -1))))) x)) (/ 1 (sqrt -1))) x))) |
(- (* -1 (/ (- (* 2 (/ 1 x)) 2) x)) 1) |
(- (* -1 (/ (- (* -1 (/ (- (* 2 (/ 1 x)) 2) x)) 2) x)) 1) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | ((* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) (atan (sqrt (/ (- 1 x) (+ 1 x)))) (sqrt (/ (- 1 x) (+ 1 x))) (/ (- 1 x) (+ 1 x))) |
| 0.0ms | x | @ | inf | ((* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) (atan (sqrt (/ (- 1 x) (+ 1 x)))) (sqrt (/ (- 1 x) (+ 1 x))) (/ (- 1 x) (+ 1 x))) |
| 0.0ms | x | @ | -inf | ((* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) (atan (sqrt (/ (- 1 x) (+ 1 x)))) (sqrt (/ (- 1 x) (+ 1 x))) (/ (- 1 x) (+ 1 x))) |
| 1× | egg-herbie |
| Inputs |
|---|
(* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) |
(atan (sqrt (/ (- 1 x) (+ 1 x)))) |
1 |
(+ 1 (* -1 x)) |
(+ 1 (* x (- (* 1/2 x) 1))) |
(+ 1 (* x (- (* x (+ 1/2 (* -1/2 x))) 1))) |
(+ 1 (* -2 x)) |
(+ 1 (* x (- (* 2 x) 2))) |
(+ 1 (* x (- (* x (+ 2 (* -2 x))) 2))) |
(sqrt -1) |
(+ (sqrt -1) (/ 1 (* x (sqrt -1)))) |
(+ (sqrt -1) (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* (pow x 2) (sqrt -1)))) (/ 1 (* x (sqrt -1))))) |
(+ (sqrt -1) (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* (pow x 2) (sqrt -1)))) (+ (* 1/2 (/ (- 2 (* -1 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (pow (sqrt -1) 2)))) (* (pow x 3) (sqrt -1)))) (/ 1 (* x (sqrt -1)))))) |
-1 |
(- (* 2 (/ 1 x)) 1) |
(- (* 2 (/ 1 x)) (+ 1 (/ 2 (pow x 2)))) |
(- (+ (* 2 (/ 1 x)) (* 2 (/ 1 (pow x 3)))) (+ 1 (/ 2 (pow x 2)))) |
(* 2 (atan (sqrt (/ (+ 1 (* -1 x)) (- 1 (* -1 x)))))) |
(atan (sqrt (/ (+ 1 (* -1 x)) (- 1 (* -1 x))))) |
(+ (sqrt -1) (* -1 (/ (- (* 1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (* x (sqrt -1)))) (/ 1 (sqrt -1))) x))) |
(+ (sqrt -1) (* -1 (/ (- (* -1 (/ (+ (* -1/2 (/ (+ 2 (/ 1 (pow (sqrt -1) 2))) (sqrt -1))) (* 1/2 (/ (+ 2 (+ (* 2 (/ 1 (pow (sqrt -1) 2))) (/ 1 (pow (sqrt -1) 4)))) (* x (sqrt -1))))) x)) (/ 1 (sqrt -1))) x))) |
(- (* -1 (/ (- (* 2 (/ 1 x)) 2) x)) 1) |
(- (* -1 (/ (- (* -1 (/ (- (* 2 (/ 1 x)) 2) x)) 2) x)) 1) |
| Outputs |
|---|
(* 2 (atan (sqrt (/ (- 1 x) (+ 1 x))))) |
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(atan (sqrt (/ (- 1 x) (+ 1 x)))) |
(atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
1 |
#s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(+ 1 (* -1 x)) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
#s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
#s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
(/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
Compiled 164 to 23 computations (86% saved)
2 alts after pruning (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 7 | 0 | 7 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 7 | 2 | 9 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| ✓ | 97.6% | (*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
Compiled 60 to 40 computations (33.3% saved)
| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| Outputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
5 calls:
| 1.0ms | x |
| 1.0ms | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| 1.0ms | (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
| 1.0ms | (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
| 1.0ms | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| 100.0% | 1 | (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
| 100.0% | 1 | (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
| 100.0% | 1 | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
Compiled 36 to 28 computations (22.2% saved)
Total 0.0b remaining (0%)
Threshold costs 0b (0%)
| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| Outputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
5 calls:
| 1.0ms | x |
| 1.0ms | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| 1.0ms | (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
| 1.0ms | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
| 1.0ms | (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 97.6% | 1 | x |
| 97.6% | 1 | (*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| 97.6% | 1 | (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)))) |
| 97.6% | 1 | (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))) |
| 97.6% | 1 | (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x)) |
Compiled 36 to 28 computations (22.2% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| Outputs |
|---|
(*.f64 #s(literal 2 binary64) (atan.f64 (sqrt.f64 (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 2 binary64) (atan.f64 #s(approx (sqrt (/ (- 1 x) (+ 1 x))) (/.f64 (-.f64 #s(literal 1 binary64) x) (+.f64 #s(literal 1 binary64) x))))) |
| 1× | done |
Compiled 30 to 17 computations (43.3% saved)
Compiled 82 to 52 computations (36.6% saved)
Loading profile data...