
Time bar (total: 2.0s)
| 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 19 to 11 computations (42.1% saved)
| 718.0ms | 2 838× | 2 | valid |
| 296.0ms | 4 215× | 0 | valid |
| 188.0ms | 1 203× | 1 | valid |
ival-hypot: 344.0ms (35.1% of total)ival-sqrt: 130.0ms (13.3% of total)ival-div: 126.0ms (12.8% of total)adjust: 118.0ms (12% of total)ival-mult: 97.0ms (9.9% of total)ival-sub: 77.0ms (7.9% of total)ival-add: 73.0ms (7.4% of total)exact: 8.0ms (0.8% of total)ival-true: 6.0ms (0.6% of total)ival-assert: 3.0ms (0.3% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 47 | 0 | - | 1 | (0.334452984345287) | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 0 | 0 | - | 0 | - | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (hypot.f64 #s(literal 1 binary64) x) |
| 0 | 0 | - | 0 | - | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 0 | 0 | - | 0 | - | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| 0 | 0 | - | 0 | - | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| 0 | 0 | - | 0 | - | #s(literal 1/2 binary64) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
-.f64 | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) | cancellation | 46 | 1 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 46 | 1 |
| - | 0 | 209 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 46 | 1 | 0 |
| - | 0 | 0 | 209 |
| number | freq |
|---|---|
| 0 | 210 |
| 1 | 46 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 53.0ms | 188× | 2 | valid |
| 21.0ms | 274× | 0 | valid |
| 11.0ms | 50× | 1 | valid |
Compiled 223 to 40 computations (82.1% saved)
ival-hypot: 24.0ms (39.1% of total)adjust: 7.0ms (11.4% of total)ival-div: 7.0ms (11.4% of total)ival-sqrt: 7.0ms (11.4% of total)ival-mult: 6.0ms (9.8% of total)ival-sub: 5.0ms (8.2% of total)ival-add: 4.0ms (6.5% of total)exact: 1.0ms (1.6% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| Outputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
Compiled 12 to 9 computations (25% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 82.6% | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
Compiled 12 to 9 computations (25% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| cost-diff | 0 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) | |
| cost-diff | 0 | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) | |
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| Inputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
#s(literal 1 binary64) |
(sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(literal 1/2 binary64) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
| Outputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
#s(literal 1 binary64) |
(sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(literal 1/2 binary64) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) | |
| accuracy | 0.0078125 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| accuracy | 0.0078125 | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) | |
| accuracy | 11.145211063242854 | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 25.0ms | 94× | 2 | valid |
| 20.0ms | 137× | 0 | valid |
| 4.0ms | 25× | 1 | valid |
Compiled 130 to 20 computations (84.6% saved)
ival-hypot: 11.0ms (37.7% of total)ival-div: 4.0ms (13.7% of total)ival-sqrt: 4.0ms (13.7% of total)adjust: 3.0ms (10.3% of total)ival-mult: 3.0ms (10.3% of total)ival-sub: 2.0ms (6.8% of total)ival-add: 2.0ms (6.8% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
(sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(* (sqrt 1/2) (sqrt 2)) |
(+ (* -1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2))) (* (sqrt 1/2) (sqrt 2))) |
(+ (* (sqrt 1/2) (sqrt 2)) (* (pow x 2) (+ (* -1/4 (/ (sqrt 1/2) (sqrt 2))) (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2)))))) |
(+ (* (sqrt 1/2) (sqrt 2)) (* (pow x 2) (+ (* -1/4 (/ (sqrt 1/2) (sqrt 2))) (* (pow x 2) (+ (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2)))))))) |
1 |
(+ 1 (* -1/4 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/16 (pow x 2)) 1/4))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/16 (* -5/32 (pow x 2)))) 1/4))) |
2 |
(+ 2 (* -1/2 (pow x 2))) |
(+ 2 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 2 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(- 1 (sqrt 1/2)) |
(- (+ 1 (* -1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* 1/8 (/ (sqrt 1/2) (pow x 2)))) (+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x)))) |
(- (+ 1 (* 3/16 (/ (sqrt 1/2) (pow x 3)))) (+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
(sqrt 1/2) |
(+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x))) |
(+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x)))) |
(+ (sqrt 1/2) (+ (* -3/16 (/ (sqrt 1/2) (pow x 3))) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
1/2 |
(+ 1/2 (* 1/2 (/ 1 x))) |
(- (+ 1/2 (* 1/2 (/ 1 x))) (/ 1/4 (pow x 3))) |
(- (+ 1/2 (+ (* 1/2 (/ 1 x)) (* 3/16 (/ 1 (pow x 5))))) (/ 1/4 (pow x 3))) |
(+ 1 (/ 1 x)) |
(- (+ 1 (/ 1 x)) (/ 1/2 (pow x 3))) |
(- (+ 1 (+ (/ 1 x) (* 3/8 (/ 1 (pow x 5))))) (/ 1/2 (pow x 3))) |
(/ 1 x) |
(/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x) |
(- (+ 1 (* 1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1 (/ (- (* -3/16 (/ (sqrt 1/2) x)) (* -1/8 (sqrt 1/2))) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(+ (sqrt 1/2) (* -1/2 (/ (sqrt 1/2) x))) |
(+ (sqrt 1/2) (* -1 (/ (+ (* 1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) |
(+ (sqrt 1/2) (* -1 (/ (+ (* -1 (/ (+ (* -1/8 (sqrt 1/2)) (* 3/16 (/ (sqrt 1/2) x))) x)) (* 1/2 (sqrt 1/2))) x))) |
(- 1/2 (* 1/2 (/ 1 x))) |
(+ 1/2 (* -1 (/ (- 1/2 (* 1/4 (/ 1 (pow x 2)))) x))) |
(+ 1/2 (* -1 (/ (- (+ 1/2 (/ 3/16 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))) x))) |
(- 1 (/ 1 x)) |
(+ 1 (* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x))) |
(+ 1 (* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x))) |
(/ -1 x) |
(* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x)) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | 0 | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))) (/ 1 (sqrt (+ (* 1 1) (* x x))))) |
| 1.0ms | x | @ | inf | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))) (/ 1 (sqrt (+ (* 1 1) (* x x))))) |
| 1.0ms | x | @ | -inf | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))) (/ 1 (sqrt (+ (* 1 1) (* x x))))) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(* (sqrt 1/2) (sqrt 2)) |
(+ (* -1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2))) (* (sqrt 1/2) (sqrt 2))) |
(+ (* (sqrt 1/2) (sqrt 2)) (* (pow x 2) (+ (* -1/4 (/ (sqrt 1/2) (sqrt 2))) (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2)))))) |
(+ (* (sqrt 1/2) (sqrt 2)) (* (pow x 2) (+ (* -1/4 (/ (sqrt 1/2) (sqrt 2))) (* (pow x 2) (+ (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2)))))))) |
1 |
(+ 1 (* -1/4 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/16 (pow x 2)) 1/4))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/16 (* -5/32 (pow x 2)))) 1/4))) |
2 |
(+ 2 (* -1/2 (pow x 2))) |
(+ 2 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 2 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(- 1 (sqrt 1/2)) |
(- (+ 1 (* -1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* 1/8 (/ (sqrt 1/2) (pow x 2)))) (+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x)))) |
(- (+ 1 (* 3/16 (/ (sqrt 1/2) (pow x 3)))) (+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
(sqrt 1/2) |
(+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x))) |
(+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x)))) |
(+ (sqrt 1/2) (+ (* -3/16 (/ (sqrt 1/2) (pow x 3))) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
1/2 |
(+ 1/2 (* 1/2 (/ 1 x))) |
(- (+ 1/2 (* 1/2 (/ 1 x))) (/ 1/4 (pow x 3))) |
(- (+ 1/2 (+ (* 1/2 (/ 1 x)) (* 3/16 (/ 1 (pow x 5))))) (/ 1/4 (pow x 3))) |
(+ 1 (/ 1 x)) |
(- (+ 1 (/ 1 x)) (/ 1/2 (pow x 3))) |
(- (+ 1 (+ (/ 1 x) (* 3/8 (/ 1 (pow x 5))))) (/ 1/2 (pow x 3))) |
(/ 1 x) |
(/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x) |
(- (+ 1 (* 1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1 (/ (- (* -3/16 (/ (sqrt 1/2) x)) (* -1/8 (sqrt 1/2))) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(+ (sqrt 1/2) (* -1/2 (/ (sqrt 1/2) x))) |
(+ (sqrt 1/2) (* -1 (/ (+ (* 1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) |
(+ (sqrt 1/2) (* -1 (/ (+ (* -1 (/ (+ (* -1/8 (sqrt 1/2)) (* 3/16 (/ (sqrt 1/2) x))) x)) (* 1/2 (sqrt 1/2))) x))) |
(- 1/2 (* 1/2 (/ 1 x))) |
(+ 1/2 (* -1 (/ (- 1/2 (* 1/4 (/ 1 (pow x 2)))) x))) |
(+ 1/2 (* -1 (/ (- (+ 1/2 (/ 3/16 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))) x))) |
(- 1 (/ 1 x)) |
(+ 1 (* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x))) |
(+ 1 (* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x))) |
(/ -1 x) |
(* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x)) |
| Outputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
(sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(* (sqrt 1/2) (sqrt 2)) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| Inputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
(sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
(sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
Compiled 193 to 26 computations (86.5% saved)
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 7 | 3 | 10 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 7 | 4 | 11 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 82.6% | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| ▶ | 39.3% | (-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| ▶ | 11.1% | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| ▶ | 12.0% | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
Compiled 87 to 61 computations (29.9% saved)
| 1× | egg-herbie |
Found 12 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (hypot.f64 #s(literal 1 binary64) x) | |
| cost-diff | 0 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) | |
| cost-diff | 0 | (hypot.f64 #s(literal 1 binary64) x) | |
| cost-diff | 0 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| cost-diff | 0 | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) | |
| cost-diff | 0 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| cost-diff | 0 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) | |
| cost-diff | 0 | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(literal 1/2 binary64) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(literal 1 binary64) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(literal 1 binary64) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(literal 1 binary64) |
#s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
| Outputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(literal 1/2 binary64) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(literal 1 binary64) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(literal 1 binary64) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(literal 1 binary64) |
#s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
Found 12 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (hypot.f64 #s(literal 1 binary64) x) | |
| accuracy | 0.0078125 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| accuracy | 11.145211063242854 | (-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) | |
| accuracy | 32.32190592566728 | #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| accuracy | 0.0 | (hypot.f64 #s(literal 1 binary64) x) | |
| accuracy | 0.0 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| accuracy | 0.0078125 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| accuracy | 56.92530400757449 | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) | |
| accuracy | 0.0 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| accuracy | 0.0 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) | |
| accuracy | 0.0078125 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| accuracy | 56.320881441949766 | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| 31.0ms | 94× | 2 | valid |
| 12.0ms | 137× | 0 | valid |
| 5.0ms | 25× | 1 | valid |
Compiled 317 to 33 computations (89.6% saved)
ival-hypot: 11.0ms (34.8% of total)ival-mult: 5.0ms (15.8% of total)ival-div: 4.0ms (12.6% of total)ival-sqrt: 4.0ms (12.6% of total)adjust: 3.0ms (9.5% of total)ival-sub: 2.0ms (6.3% of total)ival-add: 2.0ms (6.3% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(hypot.f64 #s(literal 1 binary64) x) |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| Outputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
1 |
(+ 1 (* -1/4 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/16 (pow x 2)) 1/4))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/16 (* -5/32 (pow x 2)))) 1/4))) |
2 |
(+ 2 (* -1/2 (pow x 2))) |
(+ 2 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 2 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(+ 1 (* 1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))) |
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))) |
(* (sqrt 1/2) (sqrt 2)) |
(+ (* -1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2))) (* (sqrt 1/2) (sqrt 2))) |
(+ (* (sqrt 1/2) (sqrt 2)) (* (pow x 2) (+ (* -1/4 (/ (sqrt 1/2) (sqrt 2))) (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2)))))) |
(+ (* (sqrt 1/2) (sqrt 2)) (* (pow x 2) (+ (* -1/4 (/ (sqrt 1/2) (sqrt 2))) (* (pow x 2) (+ (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2)))))))) |
(- 1 (sqrt 1/2)) |
(- (+ 1 (* -1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* 1/8 (/ (sqrt 1/2) (pow x 2)))) (+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x)))) |
(- (+ 1 (* 3/16 (/ (sqrt 1/2) (pow x 3)))) (+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
1/2 |
(+ 1/2 (* 1/2 (/ 1 x))) |
(- (+ 1/2 (* 1/2 (/ 1 x))) (/ 1/4 (pow x 3))) |
(- (+ 1/2 (+ (* 1/2 (/ 1 x)) (* 3/16 (/ 1 (pow x 5))))) (/ 1/4 (pow x 3))) |
(+ 1 (/ 1 x)) |
(- (+ 1 (/ 1 x)) (/ 1/2 (pow x 3))) |
(- (+ 1 (+ (/ 1 x) (* 3/8 (/ 1 (pow x 5))))) (/ 1/2 (pow x 3))) |
(/ 1 x) |
(/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x) |
x |
(* x (+ 1 (* 1/2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))) |
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))) |
(sqrt 1/2) |
(+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x))) |
(+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x)))) |
(+ (sqrt 1/2) (+ (* -3/16 (/ (sqrt 1/2) (pow x 3))) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
(- (+ 1 (* 1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1 (/ (- (* -3/16 (/ (sqrt 1/2) x)) (* -1/8 (sqrt 1/2))) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- 1/2 (* 1/2 (/ 1 x))) |
(+ 1/2 (* -1 (/ (- 1/2 (* 1/4 (/ 1 (pow x 2)))) x))) |
(+ 1/2 (* -1 (/ (- (+ 1/2 (/ 3/16 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))) x))) |
(- 1 (/ 1 x)) |
(+ 1 (* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x))) |
(+ 1 (* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x))) |
(/ -1 x) |
(* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x)) |
(* -1 x) |
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))) |
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))) |
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))) |
(+ (sqrt 1/2) (* -1/2 (/ (sqrt 1/2) x))) |
(+ (sqrt 1/2) (* -1 (/ (+ (* 1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) |
(+ (sqrt 1/2) (* -1 (/ (+ (* -1 (/ (+ (* -1/8 (sqrt 1/2)) (* 3/16 (/ (sqrt 1/2) x))) x)) (* 1/2 (sqrt 1/2))) x))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))) (/ 1 (sqrt (+ (* 1 1) (* x x)))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (+ (* 1 1) (* x x))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) |
| 1.0ms | x | @ | 0 | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))) (/ 1 (sqrt (+ (* 1 1) (* x x)))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (+ (* 1 1) (* x x))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) |
| 0.0ms | x | @ | -inf | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))) (/ 1 (sqrt (+ (* 1 1) (* x x)))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (+ (* 1 1) (* x x))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
1 |
(+ 1 (* -1/4 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/16 (pow x 2)) 1/4))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/16 (* -5/32 (pow x 2)))) 1/4))) |
2 |
(+ 2 (* -1/2 (pow x 2))) |
(+ 2 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 2 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(+ 1 (* 1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))) |
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))) |
(* (sqrt 1/2) (sqrt 2)) |
(+ (* -1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2))) (* (sqrt 1/2) (sqrt 2))) |
(+ (* (sqrt 1/2) (sqrt 2)) (* (pow x 2) (+ (* -1/4 (/ (sqrt 1/2) (sqrt 2))) (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2)))))) |
(+ (* (sqrt 1/2) (sqrt 2)) (* (pow x 2) (+ (* -1/4 (/ (sqrt 1/2) (sqrt 2))) (* (pow x 2) (+ (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2)))))))) |
(- 1 (sqrt 1/2)) |
(- (+ 1 (* -1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* 1/8 (/ (sqrt 1/2) (pow x 2)))) (+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x)))) |
(- (+ 1 (* 3/16 (/ (sqrt 1/2) (pow x 3)))) (+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
1/2 |
(+ 1/2 (* 1/2 (/ 1 x))) |
(- (+ 1/2 (* 1/2 (/ 1 x))) (/ 1/4 (pow x 3))) |
(- (+ 1/2 (+ (* 1/2 (/ 1 x)) (* 3/16 (/ 1 (pow x 5))))) (/ 1/4 (pow x 3))) |
(+ 1 (/ 1 x)) |
(- (+ 1 (/ 1 x)) (/ 1/2 (pow x 3))) |
(- (+ 1 (+ (/ 1 x) (* 3/8 (/ 1 (pow x 5))))) (/ 1/2 (pow x 3))) |
(/ 1 x) |
(/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x) |
x |
(* x (+ 1 (* 1/2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))) |
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))) |
(sqrt 1/2) |
(+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x))) |
(+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x)))) |
(+ (sqrt 1/2) (+ (* -3/16 (/ (sqrt 1/2) (pow x 3))) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
(- (+ 1 (* 1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1 (/ (- (* -3/16 (/ (sqrt 1/2) x)) (* -1/8 (sqrt 1/2))) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- 1/2 (* 1/2 (/ 1 x))) |
(+ 1/2 (* -1 (/ (- 1/2 (* 1/4 (/ 1 (pow x 2)))) x))) |
(+ 1/2 (* -1 (/ (- (+ 1/2 (/ 3/16 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))) x))) |
(- 1 (/ 1 x)) |
(+ 1 (* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x))) |
(+ 1 (* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x))) |
(/ -1 x) |
(* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x)) |
(* -1 x) |
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))) |
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))) |
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))) |
(+ (sqrt 1/2) (* -1/2 (/ (sqrt 1/2) x))) |
(+ (sqrt 1/2) (* -1 (/ (+ (* 1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) |
(+ (sqrt 1/2) (* -1 (/ (+ (* -1 (/ (+ (* -1/8 (sqrt 1/2)) (* 3/16 (/ (sqrt 1/2) x))) x)) (* 1/2 (sqrt 1/2))) x))) |
| Outputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
1 |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+ 1 (* -1/4 (pow x 2))) |
(hypot.f64 #s(literal 1 binary64) x) |
(+ 1 (* (pow x 2) (- (* 3/16 (pow x 2)) 1/4))) |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/16 (* -5/32 (pow x 2)))) 1/4))) |
#s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(hypot.f64 #s(literal 1 binary64) x) |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| Outputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(hypot.f64 #s(literal 1 binary64) x) |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
Compiled 599 to 32 computations (94.7% saved)
5 alts after pruning (2 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 17 | 2 | 19 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 0 | 1 | 1 |
| Total | 18 | 5 | 23 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 82.6% | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| ✓ | 39.3% | (-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| ▶ | 4.7% | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| ✓ | 12.0% | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| ▶ | 4.7% | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
Compiled 121 to 76 computations (37.2% saved)
| 1× | egg-herbie |
Found 6 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (hypot.f64 #s(literal 1 binary64) x) | |
| cost-diff | 0 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| cost-diff | 0 | (hypot.f64 #s(literal 1 binary64) x) | |
| cost-diff | 0 | #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
#s(literal 1 binary64) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
| Outputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
#s(literal 1 binary64) |
(hypot.f64 #s(literal 1 binary64) x) |
x |
Found 6 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (hypot.f64 #s(literal 1 binary64) x) | |
| accuracy | 0.0078125 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) | |
| accuracy | 60.99484500671133 | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) | |
| accuracy | 0.0 | (hypot.f64 #s(literal 1 binary64) x) | |
| accuracy | 32.33202850075382 | #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x)) | |
| accuracy | 56.320881441949766 | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
| 26.0ms | 94× | 2 | valid |
| 11.0ms | 137× | 0 | valid |
| 4.0ms | 25× | 1 | valid |
Compiled 172 to 29 computations (83.1% saved)
ival-hypot: 10.0ms (33.7% of total)ival-div: 4.0ms (13.5% of total)ival-sqrt: 4.0ms (13.5% of total)adjust: 3.0ms (10.1% of total)ival-mult: 3.0ms (10.1% of total)ival-sub: 2.0ms (6.7% of total)ival-add: 2.0ms (6.7% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
1 |
(+ 1 (* -1/4 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/16 (pow x 2)) 1/4))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/16 (* -5/32 (pow x 2)))) 1/4))) |
(+ 1 (* 1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))) |
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))) |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(- 1 (sqrt 1/2)) |
(- (+ 1 (* -1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* 1/8 (/ (sqrt 1/2) (pow x 2)))) (+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x)))) |
(- (+ 1 (* 3/16 (/ (sqrt 1/2) (pow x 3)))) (+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
1/2 |
(+ 1/2 (* 1/2 (/ 1 x))) |
(- (+ 1/2 (* 1/2 (/ 1 x))) (/ 1/4 (pow x 3))) |
(- (+ 1/2 (+ (* 1/2 (/ 1 x)) (* 3/16 (/ 1 (pow x 5))))) (/ 1/4 (pow x 3))) |
x |
(* x (+ 1 (* 1/2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))) |
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))) |
(/ 1 x) |
(/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x) |
(- (+ 1 (* 1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1 (/ (- (* -3/16 (/ (sqrt 1/2) x)) (* -1/8 (sqrt 1/2))) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- 1/2 (* 1/2 (/ 1 x))) |
(+ 1/2 (* -1 (/ (- 1/2 (* 1/4 (/ 1 (pow x 2)))) x))) |
(+ 1/2 (* -1 (/ (- (+ 1/2 (/ 3/16 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))) x))) |
(* -1 x) |
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))) |
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))) |
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))) |
(/ -1 x) |
(* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x)) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (sqrt (+ (* 1 1) (* x x))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/ 1 (sqrt (+ (* 1 1) (* x x))))) |
| 0.0ms | x | @ | inf | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (sqrt (+ (* 1 1) (* x x))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/ 1 (sqrt (+ (* 1 1) (* x x))))) |
| 0.0ms | x | @ | -inf | ((- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (sqrt (+ (* 1 1) (* x x))) (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/ 1 (sqrt (+ (* 1 1) (* x x))))) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
1 |
(+ 1 (* -1/4 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/16 (pow x 2)) 1/4))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/16 (* -5/32 (pow x 2)))) 1/4))) |
(+ 1 (* 1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (+ 1/2 (* -1/8 (pow x 2))))) |
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/16 (pow x 2)) 1/8))))) |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* 3/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 3/8 (* -5/16 (pow x 2)))) 1/2))) |
(- 1 (sqrt 1/2)) |
(- (+ 1 (* -1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* 1/8 (/ (sqrt 1/2) (pow x 2)))) (+ (sqrt 1/2) (* 1/2 (/ (sqrt 1/2) x)))) |
(- (+ 1 (* 3/16 (/ (sqrt 1/2) (pow x 3)))) (+ (sqrt 1/2) (+ (* -1/8 (/ (sqrt 1/2) (pow x 2))) (* 1/2 (/ (sqrt 1/2) x))))) |
1/2 |
(+ 1/2 (* 1/2 (/ 1 x))) |
(- (+ 1/2 (* 1/2 (/ 1 x))) (/ 1/4 (pow x 3))) |
(- (+ 1/2 (+ (* 1/2 (/ 1 x)) (* 3/16 (/ 1 (pow x 5))))) (/ 1/4 (pow x 3))) |
x |
(* x (+ 1 (* 1/2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4)))) |
(* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4)))) |
(/ 1 x) |
(/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x) |
(/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x) |
(- (+ 1 (* 1/2 (/ (sqrt 1/2) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1/8 (/ (sqrt 1/2) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- (+ 1 (* -1 (/ (- (* -1 (/ (- (* -3/16 (/ (sqrt 1/2) x)) (* -1/8 (sqrt 1/2))) x)) (* 1/2 (sqrt 1/2))) x))) (sqrt 1/2)) |
(- 1/2 (* 1/2 (/ 1 x))) |
(+ 1/2 (* -1 (/ (- 1/2 (* 1/4 (/ 1 (pow x 2)))) x))) |
(+ 1/2 (* -1 (/ (- (+ 1/2 (/ 3/16 (pow x 4))) (* 1/4 (/ 1 (pow x 2)))) x))) |
(* -1 x) |
(* -1 (* x (+ 1 (* 1/2 (/ 1 (pow x 2)))))) |
(* -1 (* x (- (+ 1 (* 1/2 (/ 1 (pow x 2)))) (/ 1/8 (pow x 4))))) |
(* -1 (* x (- (+ 1 (+ (* 1/2 (/ 1 (pow x 2))) (* 1/16 (/ 1 (pow x 6))))) (/ 1/8 (pow x 4))))) |
(/ -1 x) |
(* -1 (/ (- 1 (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (* 1/2 (/ 1 (pow x 2)))) x)) |
(* -1 (/ (- (+ 1 (/ 3/8 (pow x 4))) (+ (* 1/2 (/ 1 (pow x 2))) (* 5/16 (/ 1 (pow x 6))))) x)) |
| Outputs |
|---|
(- 1 (* (sqrt 1/2) (sqrt 2))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
(- (+ 1 (* 1/4 (/ (* (pow x 2) (sqrt 1/2)) (sqrt 2)))) (* (sqrt 1/2) (sqrt 2))) |
#s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x)) |
(- (+ 1 (* (pow x 2) (- (* -1/2 (/ (* (pow x 2) (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))))) (sqrt 2))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
(hypot.f64 #s(literal 1 binary64) x) |
(- (+ 1 (* (pow x 2) (- (* (pow x 2) (- (* 1/2 (/ (* (pow x 2) (* (sqrt 1/2) (+ 5/16 (* -1/4 (/ (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2)))) (pow (sqrt 2) 2)))))) (sqrt 2))) (* 1/2 (/ (* (sqrt 1/2) (- 3/8 (* 1/16 (/ 1 (pow (sqrt 2) 2))))) (sqrt 2))))) (* -1/4 (/ (sqrt 1/2) (sqrt 2)))))) (* (sqrt 1/2) (sqrt 2))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
1 |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x)) |
(hypot.f64 #s(literal 1 binary64) x) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
(/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
Compiled 331 to 23 computations (93.1% saved)
5 alts after pruning (0 fresh and 5 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 10 | 0 | 10 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 3 | 3 |
| Total | 10 | 5 | 15 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 82.6% | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| ✓ | 39.3% | (-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| ✓ | 4.7% | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| ✓ | 12.0% | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| ✓ | 4.7% | #s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
Compiled 267 to 103 computations (61.4% saved)
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| Outputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
7 calls:
| 3.0ms | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| 2.0ms | x |
| 2.0ms | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 2.0ms | (hypot.f64 #s(literal 1 binary64) x) |
| 2.0ms | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 82.6% | 1 | x |
| 82.6% | 1 | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 82.6% | 1 | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| 82.6% | 1 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| 82.6% | 1 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| 82.6% | 1 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 82.6% | 1 | (hypot.f64 #s(literal 1 binary64) x) |
Compiled 47 to 37 computations (21.3% saved)
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| Outputs |
|---|
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
7 calls:
| 2.0ms | x |
| 2.0ms | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 2.0ms | (hypot.f64 #s(literal 1 binary64) x) |
| 2.0ms | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 2.0ms | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 39.3% | 1 | x |
| 39.3% | 1 | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 39.3% | 1 | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| 39.3% | 1 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| 39.3% | 1 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| 39.3% | 1 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 39.3% | 1 | (hypot.f64 #s(literal 1 binary64) x) |
Compiled 47 to 37 computations (21.3% saved)
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| Outputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
7 calls:
| 3.0ms | x |
| 2.0ms | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 1.0ms | (hypot.f64 #s(literal 1 binary64) x) |
| 1.0ms | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 1.0ms | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 11.1% | 1 | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| 11.1% | 1 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| 11.1% | 1 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| 11.1% | 1 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 11.1% | 1 | x |
| 11.1% | 1 | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 11.1% | 1 | (hypot.f64 #s(literal 1 binary64) x) |
Compiled 47 to 37 computations (21.3% saved)
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| Outputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
7 calls:
| 1.0ms | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 1.0ms | x |
| 1.0ms | (hypot.f64 #s(literal 1 binary64) x) |
| 1.0ms | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 1.0ms | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 4.7% | 1 | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| 4.7% | 1 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| 4.7% | 1 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
| 4.7% | 1 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 4.7% | 1 | x |
| 4.7% | 1 | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 4.7% | 1 | (hypot.f64 #s(literal 1 binary64) x) |
Compiled 47 to 37 computations (21.3% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
| Outputs |
|---|
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
7 calls:
| 2.0ms | x |
| 1.0ms | (hypot.f64 #s(literal 1 binary64) x) |
| 1.0ms | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 1.0ms | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 1.0ms | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 4.7% | 1 | (-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
| 4.7% | 1 | (hypot.f64 #s(literal 1 binary64) x) |
| 4.7% | 1 | x |
| 4.7% | 1 | (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)) |
| 4.7% | 1 | (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))))) |
| 4.7% | 1 | (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
| 4.7% | 1 | (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
Compiled 47 to 37 computations (21.3% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
| Outputs |
|---|
(-.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 #s(literal 1/2 binary64) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))))) |
(-.f64 #s(literal 1 binary64) #s(approx (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x)))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) (/.f64 #s(literal 1 binary64) (hypot.f64 #s(literal 1 binary64) x))) |
#s(approx (- 1 (sqrt (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))))) #s(approx (* 1/2 (+ 1 (/ 1 (sqrt (+ (* 1 1) (* x x)))))) (hypot.f64 #s(literal 1 binary64) x))) |
| 1× | done |
Compiled 119 to 26 computations (78.2% saved)
Compiled 262 to 70 computations (73.3% saved)
Loading profile data...