
Time bar (total: 3.2s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 100% | 100% | 0% | 0% | 0% | 0% | 0% | 1 |
Compiled 7 to 7 computations (0% saved)
| 557.0ms | 8 256× | 0 | valid |
ival-div: 138.0ms (60.4% of total)ival-sub: 74.0ms (32.4% of total)exact: 7.0ms (3.1% of total)ival-true: 5.0ms (2.2% of total)ival-assert: 3.0ms (1.3% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | #s(literal 3 binary64) |
| 0 | 0 | - | 0 | - | (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
| 0 | 0 | - | 0 | - | (/.f64 #s(literal 1 binary64) #s(literal 3 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 |
| 83.0ms | 512× | 0 | valid |
Compiled 31 to 19 computations (38.7% saved)
ival-div: 4.0ms (54.3% of total)ival-sub: 2.0ms (27.2% 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 |
| 16× | distribute-lft-neg-in |
| 14× | sub-neg |
| 12× | cancel-sign-sub-inv |
| 10× | associate--r+ |
| 10× | distribute-neg-in |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 9 |
| 1 | 18 | 9 |
| 2 | 39 | 6 |
| 3 | 63 | 6 |
| 4 | 96 | 6 |
| 5 | 104 | 6 |
| 6 | 106 | 6 |
| 0 | 5 | 3 |
| 0 | 8 | 3 |
| 1 | 13 | 3 |
| 2 | 14 | 3 |
| 0 | 14 | 3 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
| Outputs |
|---|
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
(-.f64 x #s(literal 1/3 binary64)) |
Compiled 5 to 5 computations (0% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
Compiled 5 to 5 computations (0% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) | |
| cost-diff | 704 | (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) |
| 4× | lower-+.f64 |
| 4× | lower-+.f32 |
| 2× | lift-/.f64 |
| 2× | 1-exp |
| 2× | lift--.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 7 |
| 0 | 8 | 7 |
| 1 | 13 | 7 |
| 2 | 14 | 7 |
| 0 | 14 | 7 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
x |
(/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) |
#s(literal 1 binary64) |
#s(literal 3 binary64) |
| Outputs |
|---|
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
(-.f64 x #s(literal 1/3 binary64)) |
x |
(/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) |
#s(literal 1/3 binary64) |
#s(literal 1 binary64) |
#s(literal 3 binary64) |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) | |
| accuracy | 0.00390625 | (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
| 8.0ms | 256× | 0 | valid |
Compiled 13 to 7 computations (46.2% saved)
ival-div: 2.0ms (56.7% of total)ival-sub: 1.0ms (28.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(alt (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) (patch (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) #<representation binary64>) () ()) |
#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt -1/3 (taylor 0 x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | inf | ((/ 1 3) (- x (/ 1 3))) |
| 0.0ms | x | @ | -inf | ((/ 1 3) (- x (/ 1 3))) |
| 0.0ms | x | @ | 0 | ((/ 1 3) (- x (/ 1 3))) |
| 1× | egg-herbie |
| 192× | lower-fma.f64 |
| 192× | lower-fma.f32 |
| 144× | lower-*.f64 |
| 144× | lower-*.f32 |
| 96× | times-frac |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 30 |
| 1 | 32 | 30 |
| 2 | 75 | 30 |
| 3 | 158 | 30 |
| 4 | 412 | 30 |
| 5 | 523 | 30 |
| 6 | 576 | 30 |
| 7 | 599 | 30 |
| 8 | 601 | 30 |
| 0 | 601 | 30 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
-1/3 |
(- x 1/3) |
(- x 1/3) |
(- x 1/3) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
| Outputs |
|---|
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
| 6 912× | lower-fma.f64 |
| 6 912× | lower-fma.f32 |
| 4 474× | lower-*.f64 |
| 4 474× | lower-*.f32 |
| 3 944× | lower-/.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 4 |
| 0 | 8 | 4 |
| 1 | 27 | 4 |
| 2 | 129 | 4 |
| 3 | 979 | 4 |
| 0 | 8557 | 4 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) |
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 8 097 to 759 computations (90.6% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 320 | 3 | 323 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 321 | 3 | 324 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 72.6% | (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
| ▶ | 100.0% | (-.f64 x #s(literal 1/3 binary64)) |
| ▶ | 46.4% | #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
Compiled 25 to 16 computations (36% saved)
| 1× | egg-herbie |
Found 6 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 x #s(literal -1/3 binary64)) | |
| cost-diff | 0 | (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) | |
| cost-diff | 0 | (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) | |
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | (-.f64 x #s(literal 1/3 binary64)) | |
| cost-diff | 0 | #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
| 36× | lower-+.f64 |
| 36× | lower-+.f32 |
| 30× | lower-fma.f32 |
| 26× | lower-fma.f64 |
| 26× | lower-*.f32 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 17 | 63 |
| 0 | 25 | 63 |
| 1 | 39 | 63 |
| 2 | 50 | 62 |
| 3 | 60 | 62 |
| 4 | 66 | 62 |
| 0 | 66 | 62 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
#s(literal -1/3 binary64) |
(-.f64 x #s(literal 1/3 binary64)) |
x |
#s(literal 1/3 binary64) |
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
(*.f64 x x) |
x |
(/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) |
(-.f64 x #s(literal -1/3 binary64)) |
#s(literal -1/3 binary64) |
#s(literal 1/9 binary64) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
#s(literal -1/27 binary64) |
| Outputs |
|---|
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
#s(literal -1/3 binary64) |
(-.f64 x #s(literal 1/3 binary64)) |
x |
#s(literal 1/3 binary64) |
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
(+.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64)))) |
(*.f64 x x) |
x |
(/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
(/.f64 x (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))) |
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) |
(fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64)) |
(-.f64 x #s(literal -1/3 binary64)) |
#s(literal -1/3 binary64) |
#s(literal 1/9 binary64) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))) |
#s(literal -1/27 binary64) |
Found 6 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.00390625 | (-.f64 x #s(literal -1/3 binary64)) | |
| accuracy | 0.32749183350931843 | (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) | |
| accuracy | 16.30469391107203 | (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) | |
| accuracy | 16.43482054660281 | (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) | |
| accuracy | 0.00390625 | (-.f64 x #s(literal 1/3 binary64)) | |
| accuracy | 34.318560062960444 | #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
| 40.0ms | 247× | 0 | valid |
| 2.0ms | 6× | 1 | valid |
| 1.0ms | 3× | 2 | valid |
Compiled 71 to 20 computations (71.8% saved)
const: 11.0ms (33% of total)ival-sub: 9.0ms (27% of total)ival-div: 5.0ms (15% of total)ival-mult: 5.0ms (15% of total)ival-add: 2.0ms (6% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ()) |
#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ()) |
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ()) |
#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ()) |
#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ()) |
#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ()) |
#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ()) |
#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt -1/3 (taylor 0 x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt -1/3 (taylor 0 x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* -27 x))) (taylor 0 x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) (taylor 0 x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) (taylor 0 x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt 1/9 (taylor 0 x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/9 (* 1/3 x)) (taylor 0 x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/9 (* x (+ 1/3 x))) (taylor 0 x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/9 (* x (+ 1/3 x))) (taylor 0 x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt 1/3 (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt -1/3 (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt -1/3 (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- (* x (+ 1 (* -9 (pow x 2)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (/ 1 x) (taylor inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- 1 (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) (taylor inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow x 2) (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) (taylor inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) (taylor inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (/ -1/27 (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (/ 1 x) (taylor -inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) (taylor -inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) (taylor -inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) (taylor -inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow x 2) (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) (taylor -inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) (taylor -inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (/ -1/27 (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | inf | ((- x (/ 1 3)) (- x 1/3) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (+ (* x (- x -1/3)) 1/9) (- x -1/3) (+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) |
| 2.0ms | x | @ | -inf | ((- x (/ 1 3)) (- x 1/3) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (+ (* x (- x -1/3)) 1/9) (- x -1/3) (+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) |
| 2.0ms | x | @ | 0 | ((- x (/ 1 3)) (- x 1/3) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (+ (* x (- x -1/3)) 1/9) (- x -1/3) (+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) |
| 1× | egg-herbie |
| 10 196× | lower-fma.f64 |
| 10 196× | lower-fma.f32 |
| 3 368× | lower-*.f64 |
| 3 368× | lower-*.f32 |
| 1 996× | lower--.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 122 | 482 |
| 1 | 346 | 478 |
| 2 | 846 | 470 |
| 3 | 2476 | 466 |
| 4 | 6522 | 466 |
| 0 | 8425 | 450 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
-1/3 |
(- x 1/3) |
(- x 1/3) |
(- x 1/3) |
-1/3 |
(- x 1/3) |
(- x 1/3) |
(- x 1/3) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* 9 x) |
(* x (+ 9 (* -27 x))) |
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) |
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) |
1/9 |
(+ 1/9 (* 1/3 x)) |
(+ 1/9 (* x (+ 1/3 x))) |
(+ 1/9 (* x (+ 1/3 x))) |
1/3 |
(+ 1/3 x) |
(+ 1/3 x) |
(+ 1/3 x) |
-1/3 |
(- x 1/3) |
(- x 1/3) |
(- x 1/3) |
-1/3 |
(- x 1/3) |
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3) |
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(/ 1 x) |
(/ (- 1 (* 1/3 (/ 1 x))) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 1/3 (/ 1 x)))) |
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) |
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(/ -1/27 (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(/ 1 x) |
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) |
(pow x 2) |
(* (pow x 2) (+ 1 (* 1/3 (/ 1 x)))) |
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) |
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(/ -1/27 (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) |
| Outputs |
|---|
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* x (+ 9 (* -27 x))) |
(*.f64 (fma.f64 #s(literal -27 binary64) x #s(literal 9 binary64)) x) |
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) |
(*.f64 (fma.f64 (fma.f64 #s(literal 243 binary64) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x) |
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) |
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal -729 binary64) x #s(literal 243 binary64)) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x) |
1/9 |
#s(literal 1/9 binary64) |
(+ 1/9 (* 1/3 x)) |
(fma.f64 #s(literal 1/3 binary64) x #s(literal 1/9 binary64)) |
(+ 1/9 (* x (+ 1/3 x))) |
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64)) |
(+ 1/9 (* x (+ 1/3 x))) |
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64)) |
1/3 |
#s(literal 1/3 binary64) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -9 binary64) (-.f64 x #s(literal 1/3 binary64))) |
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 27 binary64) x #s(literal -9 binary64)) (-.f64 x #s(literal 1/3 binary64))) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(/ 1 x) |
(/.f64 #s(literal 1 binary64) x) |
(/ (- 1 (* 1/3 (/ 1 x))) x) |
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(pow x 2) |
(*.f64 x x) |
(* (pow x 2) (+ 1 (* 1/3 (/ 1 x)))) |
(*.f64 (+.f64 #s(literal 1/3 binary64) x) x) |
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) |
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64)) |
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) |
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64)) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(/ -1/27 (pow x 2)) |
(/.f64 #s(literal -1/27 binary64) (*.f64 x x)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x) |
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x)) |
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x)) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(/ 1 x) |
(/.f64 #s(literal 1 binary64) x) |
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) |
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(pow x 2) |
(*.f64 x x) |
(* (pow x 2) (+ 1 (* 1/3 (/ 1 x)))) |
(*.f64 (+.f64 #s(literal 1/3 binary64) x) x) |
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) |
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64)) |
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) |
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64)) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(/ -1/27 (pow x 2)) |
(/.f64 #s(literal -1/27 binary64) (*.f64 x x)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) |
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) |
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x)) |
| 8 592× | lower-fma.f32 |
| 8 588× | lower-fma.f64 |
| 5 618× | lower-*.f32 |
| 5 616× | lower-*.f64 |
| 3 818× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 17 | 56 |
| 0 | 25 | 39 |
| 1 | 98 | 39 |
| 2 | 724 | 39 |
| 0 | 8930 | 39 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
(-.f64 x #s(literal 1/3 binary64)) |
(*.f64 x x) |
(/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) |
(-.f64 x #s(literal -1/3 binary64)) |
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 29 206 to 2 012 computations (93.1% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 952 | 1 | 953 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 0 | 0 | 0 |
| Total | 953 | 3 | 956 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 48.5% | (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
| ✓ | 100.0% | (-.f64 x #s(literal 1/3 binary64)) |
| ✓ | 46.4% | #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
Compiled 21 to 18 computations (14.3% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 #s(literal 9 binary64) x) | |
| cost-diff | 0 | #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) | |
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
| 32× | lower-+.f64 |
| 32× | lower-+.f32 |
| 30× | lower-fma.f32 |
| 26× | lower-fma.f64 |
| 26× | lower-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 16 | 64 |
| 0 | 24 | 64 |
| 1 | 34 | 64 |
| 2 | 42 | 64 |
| 3 | 51 | 64 |
| 4 | 57 | 64 |
| 0 | 57 | 64 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
(*.f64 x x) |
x |
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) |
(*.f64 #s(literal 9 binary64) x) |
#s(literal 9 binary64) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
#s(literal -1/27 binary64) |
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) |
(-.f64 x #s(literal -1/3 binary64)) |
#s(literal -1/3 binary64) |
#s(literal 1/9 binary64) |
| Outputs |
|---|
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
(fma.f64 #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (*.f64 x x) (/.f64 #s(literal -1/27 binary64) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64)))) |
(*.f64 x x) |
x |
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) |
(*.f64 #s(literal 9 binary64) x) |
#s(literal 9 binary64) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))) |
#s(literal -1/27 binary64) |
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) |
(fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64)) |
(-.f64 x #s(literal -1/3 binary64)) |
#s(literal -1/3 binary64) |
#s(literal 1/9 binary64) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.00390625 | (-.f64 x #s(literal -1/3 binary64)) | |
| accuracy | 0.32749183350931843 | (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) | |
| accuracy | 16.30469391107203 | (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) | |
| accuracy | 34.04931918856098 | #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) |
| 30.0ms | 247× | 0 | valid |
| 1.0ms | 6× | 1 | valid |
| 1.0ms | 3× | 2 | valid |
Compiled 64 to 16 computations (75% saved)
const: 9.0ms (37.2% of total)ival-mult: 7.0ms (28.9% of total)ival-div: 4.0ms (16.5% of total)ival-add: 2.0ms (8.3% of total)ival-sub: 1.0ms (4.1% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ()) |
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ()) |
#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ()) |
#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ()) |
#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ()) |
#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt -1/3 (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* -27 x))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt -1/3 (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- (* x (+ 1 (* -9 (pow x 2)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt 1/3 (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (/ 1 x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (/ (- 1 (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (/ -1/27 (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (/ 1 x) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (/ -1/27 (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (/ -1/27 (+ (* x (- x -1/3)) 1/9)) (- x -1/3)) |
| 1.0ms | x | @ | inf | ((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (/ -1/27 (+ (* x (- x -1/3)) 1/9)) (- x -1/3)) |
| 1.0ms | x | @ | 0 | ((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (/ -1/27 (+ (* x (- x -1/3)) 1/9)) (- x -1/3)) |
| 1× | egg-herbie |
| 11 306× | lower-fma.f64 |
| 11 306× | lower-fma.f32 |
| 3 488× | lower-*.f64 |
| 3 488× | lower-*.f32 |
| 1 718× | lower--.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 112 | 386 |
| 1 | 314 | 382 |
| 2 | 763 | 382 |
| 3 | 2214 | 378 |
| 4 | 6741 | 378 |
| 0 | 8114 | 369 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
-1/3 |
(- x 1/3) |
(- x 1/3) |
(- x 1/3) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* 9 x) |
(* x (+ 9 (* -27 x))) |
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) |
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
-1/3 |
(- x 1/3) |
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3) |
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) |
1/3 |
(+ 1/3 x) |
(+ 1/3 x) |
(+ 1/3 x) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(/ 1 x) |
(/ (- 1 (* 1/3 (/ 1 x))) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
(/ -1/27 (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(/ 1 x) |
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
(/ -1/27 (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
| Outputs |
|---|
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* x (+ 9 (* -27 x))) |
(*.f64 (fma.f64 #s(literal -27 binary64) x #s(literal 9 binary64)) x) |
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) |
(*.f64 (fma.f64 (fma.f64 #s(literal 243 binary64) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x) |
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) |
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal -729 binary64) x #s(literal 243 binary64)) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -9 binary64) (-.f64 x #s(literal 1/3 binary64))) |
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 27 binary64) x #s(literal -9 binary64)) (-.f64 x #s(literal 1/3 binary64))) |
1/3 |
#s(literal 1/3 binary64) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(/ 1 x) |
(/.f64 #s(literal 1 binary64) x) |
(/ (- 1 (* 1/3 (/ 1 x))) x) |
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(/ -1/27 (pow x 2)) |
(/.f64 #s(literal -1/27 binary64) (*.f64 x x)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x) |
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x)) |
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x)) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(/ 1 x) |
(/.f64 #s(literal 1 binary64) x) |
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) |
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(/ -1/27 (pow x 2)) |
(/.f64 #s(literal -1/27 binary64) (*.f64 x x)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) |
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) |
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x)) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
| 7 612× | lower-fma.f32 |
| 7 608× | lower-fma.f64 |
| 4 594× | lower-*.f32 |
| 4 590× | lower-*.f64 |
| 3 156× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 16 | 53 |
| 0 | 24 | 53 |
| 1 | 88 | 53 |
| 2 | 591 | 53 |
| 3 | 6576 | 53 |
| 0 | 8126 | 53 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
(*.f64 x x) |
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) |
(*.f64 #s(literal 9 binary64) x) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) |
(-.f64 x #s(literal -1/3 binary64)) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 9 846 to 941 computations (90.4% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 298 | 1 | 299 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 2 | 2 |
| Total | 299 | 3 | 302 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 48.5% | (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) |
| ✓ | 100.0% | (-.f64 x #s(literal 1/3 binary64)) |
| ✓ | 46.4% | #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
Compiled 20 to 18 computations (10% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 #s(literal 9 binary64) x) | |
| cost-diff | 0 | #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) | |
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) |
| 36× | lower-+.f64 |
| 36× | lower-+.f32 |
| 34× | lower-fma.f32 |
| 30× | lower-fma.f64 |
| 30× | lower-*.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 17 | 74 |
| 0 | 24 | 74 |
| 1 | 35 | 74 |
| 2 | 43 | 74 |
| 3 | 52 | 74 |
| 4 | 58 | 74 |
| 0 | 58 | 72 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) |
(*.f64 x x) |
x |
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) |
(*.f64 #s(literal 9 binary64) x) |
#s(literal 9 binary64) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) |
#s(literal -1/27 binary64) |
(fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)) |
#s(approx (- x -1/3) #s(literal 1/3 binary64)) |
#s(literal 1/3 binary64) |
#s(literal 1/9 binary64) |
| Outputs |
|---|
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) |
(fma.f64 #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (*.f64 x x) (/.f64 #s(literal -1/27 binary64) (fma.f64 #s(approx (- x -1/3) #s(literal 1/3 binary64)) x #s(literal 1/9 binary64)))) |
(*.f64 x x) |
x |
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) |
(*.f64 #s(literal 9 binary64) x) |
#s(literal 9 binary64) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 #s(approx (- x -1/3) #s(literal 1/3 binary64)) x #s(literal 1/9 binary64))) |
#s(literal -1/27 binary64) |
(fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)) |
(fma.f64 #s(approx (- x -1/3) #s(literal 1/3 binary64)) x #s(literal 1/9 binary64)) |
#s(approx (- x -1/3) #s(literal 1/3 binary64)) |
#s(literal 1/3 binary64) |
#s(literal 1/9 binary64) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.32749183350931843 | (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) | |
| accuracy | 16.30469391107203 | (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) | |
| accuracy | 34.04931918856098 | #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) | |
| accuracy | 34.11723812524532 | #s(approx (- x -1/3) #s(literal 1/3 binary64)) |
| 31.0ms | 247× | 0 | valid |
| 7.0ms | 3× | 2 | valid |
| 1.0ms | 6× | 1 | valid |
Compiled 64 to 17 computations (73.4% saved)
const: 12.0ms (38.2% of total)ival-div: 9.0ms (28.7% of total)ival-mult: 6.0ms (19.1% of total)ival-add: 2.0ms (6.4% of total)ival-sub: 1.0ms (3.2% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ()) |
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ()) |
#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ()) |
#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ()) |
#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ()) |
#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt -1/3 (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* -27 x))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt 1/3 (taylor 0 x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt -1/3 (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- (* x (+ 1 (* -9 (pow x 2)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (/ 1 x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (/ (- 1 (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (/ -1/27 (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt (/ 1 x) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ()) |
#s(alt (/ -1/27 (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (- x -1/3) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) |
| 1.0ms | x | @ | inf | ((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (- x -1/3) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) |
| 1.0ms | x | @ | 0 | ((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (- x -1/3) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) |
| 1× | egg-herbie |
| 11 306× | lower-fma.f64 |
| 11 306× | lower-fma.f32 |
| 3 488× | lower-*.f64 |
| 3 488× | lower-*.f32 |
| 1 718× | lower--.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 112 | 386 |
| 1 | 314 | 382 |
| 2 | 762 | 382 |
| 3 | 2209 | 378 |
| 4 | 6754 | 378 |
| 0 | 8127 | 369 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
-1/3 |
(- x 1/3) |
(- x 1/3) |
(- x 1/3) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* 9 x) |
(* x (+ 9 (* -27 x))) |
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) |
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
1/3 |
(+ 1/3 x) |
(+ 1/3 x) |
(+ 1/3 x) |
-1/3 |
(- x 1/3) |
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3) |
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(/ 1 x) |
(/ (- 1 (* 1/3 (/ 1 x))) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(/ -1/27 (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(/ 1 x) |
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
(* 9 x) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(/ -1/27 (pow x 2)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) |
| Outputs |
|---|
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* x (+ 9 (* -27 x))) |
(*.f64 (fma.f64 #s(literal -27 binary64) x #s(literal 9 binary64)) x) |
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) |
(*.f64 (fma.f64 (fma.f64 #s(literal 243 binary64) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x) |
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) |
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal -729 binary64) x #s(literal 243 binary64)) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
1/3 |
#s(literal 1/3 binary64) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
(+ 1/3 x) |
(+.f64 #s(literal 1/3 binary64) x) |
-1/3 |
#s(literal -1/3 binary64) |
(- x 1/3) |
(-.f64 x #s(literal 1/3 binary64)) |
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -9 binary64) (-.f64 x #s(literal 1/3 binary64))) |
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 27 binary64) x #s(literal -9 binary64)) (-.f64 x #s(literal 1/3 binary64))) |
x |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* x (- 1 (* 1/3 (/ 1 x)))) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(/ 1 x) |
(/.f64 #s(literal 1 binary64) x) |
(/ (- 1 (* 1/3 (/ 1 x))) x) |
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(/ -1/27 (pow x 2)) |
(/.f64 #s(literal -1/27 binary64) (*.f64 x x)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x) |
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x)) |
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) |
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x)) |
x |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(* -1 (* x (- (* 1/3 (/ 1 x)) 1))) |
(-.f64 x #s(literal 1/3 binary64)) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(pow x 2) |
(*.f64 x x) |
(/ 1 x) |
(/.f64 #s(literal 1 binary64) x) |
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) |
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
(* 9 x) |
(*.f64 #s(literal 9 binary64) x) |
x |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(* x (+ 1 (* 1/3 (/ 1 x)))) |
(+.f64 #s(literal 1/3 binary64) x) |
(/ -1/27 (pow x 2)) |
(/.f64 #s(literal -1/27 binary64) (*.f64 x x)) |
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) |
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) |
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x)) |
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) |
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x)) |
| 9 086× | lower-fma.f32 |
| 9 082× | lower-fma.f64 |
| 5 514× | lower-*.f32 |
| 5 510× | lower-*.f64 |
| 3 798× | lower-/.f32 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 17 | 61 |
| 0 | 24 | 61 |
| 1 | 101 | 61 |
| 2 | 727 | 61 |
| 3 | 7883 | 61 |
| 0 | 8736 | 59 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) |
(*.f64 x x) |
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) |
(*.f64 #s(literal 9 binary64) x) |
#s(approx (- x -1/3) #s(literal 1/3 binary64)) |
(/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 7 187 to 540 computations (92.5% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 229 | 0 | 229 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 229 | 3 | 232 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 48.5% | (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) |
| ✓ | 100.0% | (-.f64 x #s(literal 1/3 binary64)) |
| ✓ | 46.4% | #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
Compiled 81 to 43 computations (46.9% saved)
| Inputs |
|---|
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
(-.f64 x #s(literal 1/3 binary64)) |
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) |
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) |
| Outputs |
|---|
(-.f64 x #s(literal 1/3 binary64)) |
2 calls:
| 2.0ms | x |
| 2.0ms | (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
Compiled 6 to 6 computations (0% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
| Outputs |
|---|
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
2 calls:
| 1.0ms | x |
| 1.0ms | (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 46.4% | 1 | x |
| 46.4% | 1 | (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) |
Compiled 6 to 6 computations (0% saved)
| 1× | egg-herbie |
| 4× | +-commutative-binary64-+.f64 |
| 4× | sub-neg-binary64-neg.f64-+.f64--.f64 |
| 2× | 1-exp-binary32-exp.f32 |
| 2× | *-commutative-binary64-*.f64 |
| 2× | 1-exp-binary64-exp.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 8 |
| 1 | 14 | 8 |
| 2 | 18 | 8 |
| 3 | 20 | 8 |
| 4 | 21 | 8 |
| 1× | saturated |
| Inputs |
|---|
(-.f64 x #s(literal 1/3 binary64)) |
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
| Outputs |
|---|
(-.f64 x #s(literal 1/3 binary64)) |
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) |
| 6 912× | lower-fma.f64 |
| 6 912× | lower-fma.f32 |
| 4 474× | lower-*.f64 |
| 4 474× | lower-*.f32 |
| 3 944× | lower-/.f64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 30 |
| 1 | 32 | 30 |
| 2 | 75 | 30 |
| 3 | 158 | 30 |
| 4 | 412 | 30 |
| 5 | 523 | 30 |
| 6 | 576 | 30 |
| 7 | 599 | 30 |
| 8 | 601 | 30 |
| 0 | 601 | 30 |
| 0 | 5 | 4 |
| 0 | 8 | 4 |
| 1 | 27 | 4 |
| 2 | 129 | 4 |
| 3 | 979 | 4 |
| 0 | 8557 | 4 |
| 1× | done |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | saturated |
Compiled 14 to 14 computations (0% saved)
Compiled 20 to 20 computations (0% saved)
Loading profile data...