
Time bar (total: 1.5s)
| 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 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 3 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 4 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 5 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 6 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 7 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 8 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 9 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 10 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 11 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 12 |
Compiled 17 to 9 computations (47.1% saved)
| 546.0ms | 8 256× | 0 | valid |
ival-tan: 187.0ms (46.9% of total)ival-div: 61.0ms (15.3% of total)ival-mult: 59.0ms (14.8% of total)ival-sub: 40.0ms (10% of total)ival-add: 38.0ms (9.5% of total)ival-true: 5.0ms (1.3% of total)exact: 5.0ms (1.3% of total)ival-assert: 3.0ms (0.8% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (*.f64 (tan.f64 x) (tan.f64 x)) |
| 0 | 0 | - | 0 | - | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (tan.f64 x) |
| 0 | 0 | - | 0 | - | (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| 0 | 0 | - | 0 | - | (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| 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 |
| 37.0ms | 512× | 0 | valid |
Compiled 133 to 32 computations (75.9% saved)
ival-tan: 11.0ms (45.5% of total)ival-div: 3.0ms (12.4% of total)ival-add: 3.0ms (12.4% of total)ival-mult: 3.0ms (12.4% of total)ival-sub: 2.0ms (8.3% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| Outputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
Compiled 15 to 7 computations (53.3% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 99.4% | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
Compiled 15 to 7 computations (53.3% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (tan.f64 x) | |
| cost-diff | 0 | (*.f64 (tan.f64 x) (tan.f64 x)) | |
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) | |
| cost-diff | 0 | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| Inputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(literal 1 binary64) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
x |
(+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| Outputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(literal 1 binary64) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
x |
(+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0546875 | (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) | |
| accuracy | 0.16539003907376804 | (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) | |
| accuracy | 0.18359375 | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) | |
| accuracy | 0.3125 | (*.f64 (tan.f64 x) (tan.f64 x)) |
| 19.0ms | 256× | 0 | valid |
Compiled 78 to 16 computations (79.5% saved)
ival-tan: 6.0ms (52.7% of total)ival-mult: 2.0ms (17.6% of total)ival-sub: 1.0ms (8.8% of total)ival-div: 1.0ms (8.8% of total)ival-add: 1.0ms (8.8% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
(+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| Outputs |
|---|
1 |
(+ 1 (* -2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -17/45 (pow x 2)) 2/3)) 1))) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* (pow x 2) (+ 17/45 (* 62/315 (pow x 2)))))))) |
x |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* 2/15 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 2/15 (* 17/315 (pow x 2)))))))) |
(+ 1 (pow x 2)) |
(+ 1 (* (pow x 2) (+ 1 (* 2/3 (pow x 2))))) |
(+ 1 (* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2))))))) |
(/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ 1 (/ (pow (sin x) 2) (pow (cos x) 2)))) |
(- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
(/ (pow (sin x) 2) (pow (cos x) 2)) |
(/ (sin x) (cos x)) |
(+ 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | -inf | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x)) (tan x) (+ 1 (* (tan x) (tan x)))) |
| 2.0ms | x | @ | inf | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x)) (tan x) (+ 1 (* (tan x) (tan x)))) |
| 1.0ms | x | @ | 0 | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x)) (tan x) (+ 1 (* (tan x) (tan x)))) |
| 1× | egg-herbie |
| Inputs |
|---|
1 |
(+ 1 (* -2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -17/45 (pow x 2)) 2/3)) 1))) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* (pow x 2) (+ 17/45 (* 62/315 (pow x 2)))))))) |
x |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* 2/15 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 2/15 (* 17/315 (pow x 2)))))))) |
(+ 1 (pow x 2)) |
(+ 1 (* (pow x 2) (+ 1 (* 2/3 (pow x 2))))) |
(+ 1 (* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2))))))) |
(/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ 1 (/ (pow (sin x) 2) (pow (cos x) 2)))) |
(- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
(/ (pow (sin x) 2) (pow (cos x) 2)) |
(/ (sin x) (cos x)) |
(+ 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
| Outputs |
|---|
1 |
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(+ 1 (* -2 (pow x 2))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(tan.f64 x) |
(+ 1 (* -1 (pow x 2))) |
(+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| Inputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
(+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| Outputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
(+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
Compiled 251 to 19 computations (92.4% saved)
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 11 | 3 | 14 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 11 | 4 | 15 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.4% | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| ▶ | 59.1% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| ▶ | 7.0% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
| ▶ | 6.4% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
Compiled 77 to 38 computations (50.6% saved)
| 1× | egg-herbie |
Found 9 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (tan.f64 x) | |
| cost-diff | 0 | (*.f64 (tan.f64 x) (tan.f64 x)) | |
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) | |
| cost-diff | 0 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) | |
| cost-diff | 0 | (tan.f64 x) | |
| cost-diff | 0 | (*.f64 (tan.f64 x) (tan.f64 x)) | |
| cost-diff | 0 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) | |
| cost-diff | 0 | (tan.f64 x) | |
| cost-diff | 0 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
(tan.f64 x) |
x |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
x |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(literal 1 binary64) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
x |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
(tan.f64 x) |
x |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
x |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(literal 1 binary64) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
(tan.f64 x) |
x |
Found 9 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.00390625 | (tan.f64 x) | |
| accuracy | 0.16539003907376804 | (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) | |
| accuracy | 0.3125 | (*.f64 (tan.f64 x) (tan.f64 x)) | |
| accuracy | 26.17230104025385 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) | |
| accuracy | 0.00390625 | (tan.f64 x) | |
| accuracy | 0.3125 | (*.f64 (tan.f64 x) (tan.f64 x)) | |
| accuracy | 59.488315758504385 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) | |
| accuracy | 0.00390625 | (tan.f64 x) | |
| accuracy | 59.8842899055876 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
| 21.0ms | 256× | 0 | valid |
Compiled 163 to 23 computations (85.9% saved)
ival-tan: 7.0ms (53.4% of total)ival-mult: 2.0ms (15.3% of total)ival-sub: 1.0ms (7.6% of total)ival-div: 1.0ms (7.6% of total)ival-add: 1.0ms (7.6% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
(tan.f64 x) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| Outputs |
|---|
1 |
(+ 1 (* -2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
x |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* 2/15 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 2/15 (* 17/315 (pow x 2)))))))) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* (pow x 2) (+ 17/45 (* 62/315 (pow x 2)))))))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -17/45 (pow x 2)) 2/3)) 1))) |
(/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ 1 (/ (pow (sin x) 2) (pow (cos x) 2)))) |
(/ (sin x) (cos x)) |
(/ (pow (sin x) 2) (pow (cos x) 2)) |
(- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan x) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (* (tan x) (tan x)) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x)))) |
| 1.0ms | x | @ | -inf | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan x) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (* (tan x) (tan x)) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x)))) |
| 0.0ms | x | @ | 0 | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan x) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (* (tan x) (tan x)) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x)))) |
| 1× | egg-herbie |
| Inputs |
|---|
1 |
(+ 1 (* -2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
x |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* 2/15 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 2/15 (* 17/315 (pow x 2)))))))) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* (pow x 2) (+ 17/45 (* 62/315 (pow x 2)))))))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -17/45 (pow x 2)) 2/3)) 1))) |
(/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ 1 (/ (pow (sin x) 2) (pow (cos x) 2)))) |
(/ (sin x) (cos x)) |
(/ (pow (sin x) 2) (pow (cos x) 2)) |
(- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
| Outputs |
|---|
1 |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
(+ 1 (* -2 (pow x 2))) |
(tan.f64 x) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
x |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
(tan.f64 x) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
(tan.f64 x) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
Compiled 678 to 36 computations (94.7% saved)
6 alts after pruning (2 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 21 | 2 | 23 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 3 | 3 |
| Done | 0 | 1 | 1 |
| Total | 21 | 6 | 27 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.4% | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| ✓ | 59.1% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| ▶ | 55.2% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
| ✓ | 7.0% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
| ▶ | 7.1% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
| ✓ | 6.4% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
Compiled 137 to 67 computations (51.1% saved)
| 1× | egg-herbie |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (tan.f64 x) | |
| cost-diff | 0 | (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) | |
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) | |
| cost-diff | 0 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) | |
| cost-diff | 0 | #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) | |
| cost-diff | 0 | (tan.f64 x) | |
| cost-diff | 0 | (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) | |
| cost-diff | 0 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
x |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(literal 1 binary64) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
#s(literal 1 binary64) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
x |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
x |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(literal 1 binary64) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
#s(literal 1 binary64) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
x |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.3125 | (*.f64 (tan.f64 x) (tan.f64 x)) | |
| accuracy | 0.3125 | (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) | |
| accuracy | 26.17230104025385 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) | |
| accuracy | 59.731847152683116 | #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) | |
| accuracy | 0.3125 | (*.f64 (tan.f64 x) (tan.f64 x)) | |
| accuracy | 0.3125 | (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) | |
| accuracy | 59.488315758504385 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) | |
| accuracy | 59.731847152683116 | #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 27.0ms | 256× | 0 | valid |
Compiled 238 to 25 computations (89.5% saved)
ival-add: 8.0ms (43.5% of total)ival-tan: 6.0ms (32.7% of total)ival-mult: 2.0ms (10.9% of total)ival-sub: 1.0ms (5.4% of total)ival-div: 1.0ms (5.4% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
| Outputs |
|---|
1 |
(+ 1 (* -2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* (pow x 2) (+ 17/45 (* 62/315 (pow x 2)))))))) |
x |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* 2/15 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 2/15 (* 17/315 (pow x 2)))))))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -17/45 (pow x 2)) 2/3)) 1))) |
(/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ 1 (/ (pow (sin x) 2) (pow (cos x) 2)))) |
(/ (pow (sin x) 2) (pow (cos x) 2)) |
(/ (sin x) (cos x)) |
(- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (* (tan x) (tan x)) (tan x) (tan x) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x))) |
| 1.0ms | x | @ | -inf | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (* (tan x) (tan x)) (tan x) (tan x) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x))) |
| 0.0ms | x | @ | 0 | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (* (tan x) (tan x)) (tan x) (tan x) (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x))) |
| 1× | egg-herbie |
| Inputs |
|---|
1 |
(+ 1 (* -2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* (pow x 2) (+ 17/45 (* 62/315 (pow x 2)))))))) |
x |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* 2/15 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 2/15 (* 17/315 (pow x 2)))))))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -17/45 (pow x 2)) 2/3)) 1))) |
(/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ 1 (/ (pow (sin x) 2) (pow (cos x) 2)))) |
(/ (pow (sin x) 2) (pow (cos x) 2)) |
(/ (sin x) (cos x)) |
(- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
| Outputs |
|---|
1 |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(+ 1 (* -2 (pow x 2))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(tan.f64 x) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(pow x 2) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
Compiled 780 to 31 computations (96% saved)
7 alts after pruning (1 fresh and 6 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 23 | 1 | 24 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 4 | 4 |
| Total | 23 | 7 | 30 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.4% | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| ✓ | 59.1% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| ✓ | 55.2% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
| ▶ | 6.8% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
| ✓ | 7.0% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
| ✓ | 7.1% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
| ✓ | 6.4% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
Compiled 176 to 84 computations (52.3% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) | |
| cost-diff | 0 | #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) | |
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))))) | |
| cost-diff | 0 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
(-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))))) |
#s(literal 1 binary64) |
#s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
x |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
(-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))))) |
#s(literal 1 binary64) |
#s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
(tan.f64 x) |
x |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) |
(*.f64 (tan.f64 x) (tan.f64 x)) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.3125 | (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) | |
| accuracy | 26.17230104025385 | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) | |
| accuracy | 59.45185464220286 | #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) | |
| accuracy | 59.731847152683116 | #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 19.0ms | 256× | 0 | valid |
Compiled 196 to 26 computations (86.7% saved)
ival-tan: 6.0ms (52.4% of total)ival-mult: 2.0ms (17.5% of total)ival-sub: 1.0ms (8.7% of total)ival-div: 1.0ms (8.7% of total)ival-add: 1.0ms (8.7% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
(-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))))) |
#s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
| Outputs |
|---|
1 |
(+ 1 (* -2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -17/45 (pow x 2)) 2/3)) 1))) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* (pow x 2) (+ 17/45 (* 62/315 (pow x 2)))))))) |
x |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* 2/15 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 2/15 (* 17/315 (pow x 2)))))))) |
(/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ 1 (/ (pow (sin x) 2) (pow (cos x) 2)))) |
(- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
(/ (pow (sin x) 2) (pow (cos x) 2)) |
(/ (sin x) (cos x)) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x)) (- 1 (* (tan x) (tan x))) (tan x) (* (tan x) (tan x))) |
| 1.0ms | x | @ | inf | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x)) (- 1 (* (tan x) (tan x))) (tan x) (* (tan x) (tan x))) |
| 1.0ms | x | @ | -inf | ((/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (- 1 (* (tan x) (tan x))) (* (tan x) (tan x)) (- 1 (* (tan x) (tan x))) (tan x) (* (tan x) (tan x))) |
| 1× | egg-herbie |
| Inputs |
|---|
1 |
(+ 1 (* -2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -17/45 (pow x 2)) 2/3)) 1))) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 2/3 (pow x 2)))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* 17/45 (pow x 2)))))) |
(* (pow x 2) (+ 1 (* (pow x 2) (+ 2/3 (* (pow x 2) (+ 17/45 (* 62/315 (pow x 2)))))))) |
x |
(* x (+ 1 (* 1/3 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* 2/15 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 2/15 (* 17/315 (pow x 2)))))))) |
(/ (- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) (+ 1 (/ (pow (sin x) 2) (pow (cos x) 2)))) |
(- 1 (/ (pow (sin x) 2) (pow (cos x) 2))) |
(/ (pow (sin x) 2) (pow (cos x) 2)) |
(/ (sin x) (cos x)) |
| Outputs |
|---|
1 |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
(+ 1 (* -2 (pow x 2))) |
(-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))))) |
(+ 1 (* (pow x 2) (- (* 2/3 (pow x 2)) 2))) |
#s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/3 (* -4/45 (pow x 2)))) 2))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
(+ 1 (* -1 (pow x 2))) |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(+ 1 (* (pow x 2) (- (* -2/3 (pow x 2)) 1))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
(-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))))) |
#s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
(-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))))) |
#s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
(-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
#s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
(*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))) |
Compiled 428 to 24 computations (94.4% saved)
7 alts after pruning (0 fresh and 7 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 11 | 0 | 11 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 6 | 6 |
| Total | 11 | 7 | 18 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.4% | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| ✓ | 59.1% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| ✓ | 55.2% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
| ✓ | 6.8% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
| ✓ | 7.0% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
| ✓ | 7.1% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
| ✓ | 6.4% | #s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
Compiled 352 to 108 computations (69.3% saved)
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| Outputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
4 calls:
| 3.0ms | (tan.f64 x) |
| 3.0ms | x |
| 3.0ms | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 3.0ms | (*.f64 (tan.f64 x) (tan.f64 x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.4% | 1 | x |
| 99.4% | 1 | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 99.4% | 1 | (*.f64 (tan.f64 x) (tan.f64 x)) |
| 99.4% | 1 | (tan.f64 x) |
Compiled 23 to 13 computations (43.5% saved)
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) #s(approx (* (tan x) (tan x)) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) #s(approx (tan x) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))))))))) |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
4 calls:
| 3.0ms | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 2.0ms | (tan.f64 x) |
| 2.0ms | x |
| 2.0ms | (*.f64 (tan.f64 x) (tan.f64 x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 59.1% | 1 | x |
| 59.1% | 1 | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 59.1% | 1 | (*.f64 (tan.f64 x) (tan.f64 x)) |
| 59.1% | 1 | (tan.f64 x) |
Compiled 23 to 13 computations (43.5% saved)
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
4 calls:
| 1.0ms | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 1.0ms | (tan.f64 x) |
| 1.0ms | x |
| 1.0ms | (*.f64 (tan.f64 x) (tan.f64 x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 7.0% | 1 | x |
| 7.0% | 1 | (tan.f64 x) |
| 7.0% | 1 | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 7.0% | 1 | (*.f64 (tan.f64 x) (tan.f64 x)) |
Compiled 23 to 13 computations (43.5% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
| Outputs |
|---|
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
4 calls:
| 1.0ms | (tan.f64 x) |
| 1.0ms | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
| 1.0ms | x |
| 1.0ms | (*.f64 (tan.f64 x) (tan.f64 x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 6.4% | 1 | (*.f64 (tan.f64 x) (tan.f64 x)) |
| 6.4% | 1 | (tan.f64 x) |
| 6.4% | 1 | x |
| 6.4% | 1 | (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
Compiled 23 to 13 computations (43.5% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
| Outputs |
|---|
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x))) (+.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 x) (tan.f64 x)))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (*.f64 (tan.f64 x) (tan.f64 x))) |
#s(approx (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))) (tan.f64 x)) |
| 1× | done |
Compiled 77 to 16 computations (79.2% saved)
Compiled 184 to 46 computations (75% saved)
Loading profile data...