
Time bar (total: 3.1s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 0 |
| 100% | 99.9% | 0% | 0.1% | 0% | 0% | 0% | 1 |
Compiled 10 to 5 computations (50% saved)
| 451.0ms | 8 256× | 0 | valid |
ival-hypot: 192.0ms (94.4% of total)ival-true: 6.0ms (2.9% of total)ival-assert: 3.0ms (1.5% of total)adjust: 2.0ms (1% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 103 | 0 | - | 0 | - | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 0 | 0 | - | 0 | - | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 0 | 0 | - | 0 | - | (*.f64 re re) |
| 0 | 0 | - | 0 | - | re |
| 0 | 0 | - | 0 | - | (*.f64 im im) |
| 0 | 0 | - | 0 | - | im |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) | oflow-rescue | 95 | 0 |
| ↳ | (+.f64 (*.f64 re re) (*.f64 im im)) | overflow | 95 | |
| ↳ | (*.f64 re re) | overflow | 59 | |
| ↳ | (*.f64 im im) | overflow | 54 | |
sqrt.f64 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) | uflow-rescue | 8 | 0 |
| ↳ | (+.f64 (*.f64 re re) (*.f64 im im)) | underflow | 8 | |
| ↳ | (*.f64 re re) | underflow | 58 | |
| ↳ | (*.f64 im im) | underflow | 49 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 103 | 0 |
| - | 0 | 153 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 103 | 0 | 0 |
| - | 0 | 0 | 153 |
| number | freq |
|---|---|
| 0 | 153 |
| 1 | 103 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 33.0ms | 512× | 0 | valid |
Compiled 58 to 22 computations (62.1% saved)
ival-hypot: 9.0ms (46.2% of total)ival-mult: 7.0ms (35.9% of total)ival-add: 2.0ms (10.3% of total)ival-true: 0.0ms (0% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 16 | 42 |
| 1 | 42 | 42 |
| 2 | 92 | 42 |
| 3 | 117 | 42 |
| 4 | 155 | 42 |
| 0 | 6 | 8 |
| 0 | 10 | 8 |
| 1 | 21 | 8 |
| 2 | 60 | 8 |
| 3 | 117 | 8 |
| 4 | 154 | 8 |
| 0 | 154 | 3 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(hypot.f64 im re) |
(abs im)
(abs re)
(sort re im)
Compiled 8 to 6 computations (25% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 62.7% | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
Compiled 8 to 6 computations (25% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 im im) | |
| cost-diff | 0 | (*.f64 re re) | |
| cost-diff | 1 | (+.f64 (*.f64 re re) (*.f64 im im)) | |
| cost-diff | 4 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 23 |
| 0 | 10 | 23 |
| 1 | 21 | 23 |
| 2 | 60 | 23 |
| 3 | 117 | 23 |
| 4 | 154 | 23 |
| 0 | 154 | 17 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(*.f64 re re) |
re |
(*.f64 im im) |
im |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(hypot.f64 im re) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(*.f64 re re) |
re |
(*.f64 im im) |
im |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 (*.f64 re re) (*.f64 im im)) | |
| accuracy | 0.0 | (*.f64 re re) | |
| accuracy | 0.0 | (*.f64 im im) | |
| accuracy | 23.893038109698477 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 39.0ms | 256× | 0 | valid |
Compiled 25 to 8 computations (68% saved)
ival-hypot: 5.0ms (53.8% of total)ival-mult: 3.0ms (32.3% of total)ival-add: 1.0ms (10.8% of total)ival-true: 0.0ms (0% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(*.f64 re re) |
(*.f64 im im) |
| Outputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(pow im 2) |
(+ (pow im 2) (pow re 2)) |
(pow re 2) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* (pow re 2) (+ 1 (/ (pow im 2) (pow re 2)))) |
(* -1 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* (pow im 2) (+ 1 (/ (pow re 2) (pow im 2)))) |
(* -1 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | re | @ | 0 | ((sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* re re) (* im im)) |
| 1.0ms | re | @ | inf | ((sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* re re) (* im im)) |
| 1.0ms | im | @ | inf | ((sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* re re) (* im im)) |
| 1.0ms | re | @ | -inf | ((sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* re re) (* im im)) |
| 1.0ms | im | @ | 0 | ((sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* re re) (* im im)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 104 | 441 |
| 1 | 323 | 441 |
| 2 | 1323 | 435 |
| 3 | 6816 | 435 |
| 0 | 8219 | 396 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(pow im 2) |
(+ (pow im 2) (pow re 2)) |
(pow re 2) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* (pow re 2) (+ 1 (/ (pow im 2) (pow re 2)))) |
(* -1 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* (pow im 2) (+ 1 (/ (pow re 2) (pow im 2)))) |
(* -1 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
| Outputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) im) im) (*.f64 re re) #s(literal 1/2 binary64)) im) (*.f64 re re) im) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(fma.f64 (pow.f64 re #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) re) (/.f64 re (pow.f64 im #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 3 binary64)))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(pow im 2) |
(*.f64 im im) |
(+ (pow im 2) (pow re 2)) |
(fma.f64 im im (*.f64 re re)) |
(pow re 2) |
(*.f64 re re) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(fma.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) im) (/.f64 (/.f64 im re) re) re) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 im re)) (/.f64 im re) #s(literal 1 binary64))) re) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 re #s(literal 6 binary64))) (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 im re)) (/.f64 im re) #s(literal 1 binary64)))) re) |
(* (pow re 2) (+ 1 (/ (pow im 2) (pow re 2)))) |
(*.f64 (fma.f64 (/.f64 (/.f64 im re) re) im #s(literal 1 binary64)) (*.f64 re re)) |
(* -1 re) |
(neg.f64 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64)) re) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(*.f64 (fma.f64 (/.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64))) re) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(*.f64 (fma.f64 #s(literal -1/16 binary64) (/.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (fma.f64 (/.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64)))) re) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) re) (*.f64 im im) re) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) re) re) (*.f64 im im) #s(literal 1/2 binary64)) re) (*.f64 im im) re) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) im) (/.f64 im (pow.f64 re #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 3 binary64)))) (*.f64 im im) (/.f64 #s(literal 1/2 binary64) re)) (*.f64 im im) re) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(*.f64 (fma.f64 (/.f64 (/.f64 (*.f64 re re) im) im) #s(literal 1/2 binary64) #s(literal 1 binary64)) im) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(*.f64 (fma.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) #s(literal -1/8 binary64) (fma.f64 (/.f64 (/.f64 (*.f64 re re) im) im) #s(literal 1/2 binary64) #s(literal 1 binary64))) im) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(*.f64 (fma.f64 (pow.f64 re #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 im #s(literal 6 binary64))) (fma.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) #s(literal -1/8 binary64) (fma.f64 (/.f64 (/.f64 (*.f64 re re) im) im) #s(literal 1/2 binary64) #s(literal 1 binary64)))) im) |
(* (pow im 2) (+ 1 (/ (pow re 2) (pow im 2)))) |
(*.f64 (fma.f64 (/.f64 (/.f64 (*.f64 re re) im) im) im im) im) |
(* -1 im) |
(neg.f64 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) im) (/.f64 (*.f64 re re) im) #s(literal -1 binary64)) im) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(*.f64 (fma.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) im) (/.f64 (*.f64 re re) im) #s(literal -1 binary64))) im) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(*.f64 (fma.f64 #s(literal -1/16 binary64) (/.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 6 binary64))) (fma.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) im) (/.f64 (*.f64 re re) im) #s(literal -1 binary64)))) im) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 21 |
| 0 | 10 | 21 |
| 1 | 39 | 21 |
| 0 | 346 | 15 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(*.f64 re re) |
(*.f64 im im) |
| Outputs |
|---|
(*.f64 (pow.f64 (fma.f64 im im (*.f64 re re)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 im im (*.f64 re re)) #s(literal 1/4 binary64))) |
(pow.f64 (fma.f64 im im (*.f64 re re)) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) (sqrt.f64 (*.f64 (+.f64 re im) (-.f64 re im)))) |
(/.f64 (hypot.f64 (pow.f64 im #s(literal 3 binary64)) (pow.f64 re #s(literal 3 binary64))) (sqrt.f64 (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64))))) |
(sqrt.f64 (fma.f64 im im (*.f64 re re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 re)) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (fabs.f64 re)) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) re) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 im)) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (fabs.f64 im)) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) im) |
(hypot.f64 (neg.f64 (neg.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 im)) |
(hypot.f64 (neg.f64 (neg.f64 re)) (fabs.f64 im)) |
(hypot.f64 (neg.f64 (neg.f64 re)) im) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 im)) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (fabs.f64 im)) |
(hypot.f64 (neg.f64 (fabs.f64 re)) im) |
(hypot.f64 (neg.f64 (neg.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 re)) |
(hypot.f64 (neg.f64 (neg.f64 im)) (fabs.f64 re)) |
(hypot.f64 (neg.f64 (neg.f64 im)) re) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 re)) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (fabs.f64 re)) |
(hypot.f64 (neg.f64 (fabs.f64 im)) re) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 im)) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 im)) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) im) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 re)) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 re)) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) re) |
(hypot.f64 (neg.f64 im) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 im) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 im) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 im) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 im) (neg.f64 re)) |
(hypot.f64 (neg.f64 im) (fabs.f64 re)) |
(hypot.f64 (neg.f64 im) re) |
(hypot.f64 (neg.f64 re) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 re) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 re) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 re) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 re) (neg.f64 im)) |
(hypot.f64 (neg.f64 re) (fabs.f64 im)) |
(hypot.f64 (neg.f64 re) im) |
(hypot.f64 (fabs.f64 im) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 im) (neg.f64 (neg.f64 re))) |
(hypot.f64 (fabs.f64 im) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 im) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 im) (neg.f64 re)) |
(hypot.f64 (fabs.f64 im) (fabs.f64 re)) |
(hypot.f64 (fabs.f64 im) re) |
(hypot.f64 (fabs.f64 re) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 re) (neg.f64 (neg.f64 im))) |
(hypot.f64 (fabs.f64 re) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 re) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 re) (neg.f64 im)) |
(hypot.f64 (fabs.f64 re) (fabs.f64 im)) |
(hypot.f64 (fabs.f64 re) im) |
(hypot.f64 im (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 im (neg.f64 (neg.f64 re))) |
(hypot.f64 im (neg.f64 (fabs.f64 re))) |
(hypot.f64 im (fabs.f64 (fabs.f64 re))) |
(hypot.f64 im (neg.f64 re)) |
(hypot.f64 im (fabs.f64 re)) |
(hypot.f64 im re) |
(hypot.f64 re (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 re (neg.f64 (neg.f64 im))) |
(hypot.f64 re (neg.f64 (fabs.f64 im))) |
(hypot.f64 re (fabs.f64 (fabs.f64 im))) |
(hypot.f64 re (neg.f64 im)) |
(hypot.f64 re (fabs.f64 im)) |
(hypot.f64 re im) |
(exp.f64 (*.f64 (log.f64 (fma.f64 im im (*.f64 re re))) #s(literal 1/2 binary64))) |
(/.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) (-.f64 (*.f64 im im) (*.f64 re re))) |
(/.f64 (-.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 im) im) #s(literal 3 binary64))) (+.f64 (pow.f64 re #s(literal 4 binary64)) (+.f64 (pow.f64 im #s(literal 4 binary64)) (*.f64 (*.f64 re re) (*.f64 (neg.f64 im) im))))) |
(/.f64 (neg.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) (neg.f64 (*.f64 (+.f64 re im) (-.f64 re im)))) |
(/.f64 (neg.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64)))) (neg.f64 (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64))))) |
(/.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (*.f64 (+.f64 re im) (-.f64 re im))) |
(/.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (+.f64 (pow.f64 im #s(literal 4 binary64)) (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))))) |
(/.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64)))) |
(fma.f64 (pow.f64 im #s(literal 1 binary64)) (pow.f64 im #s(literal 1 binary64)) (*.f64 re re)) |
(fma.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64)) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64)) (*.f64 im im)) |
(fma.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 re)) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 re)) (*.f64 im im)) |
(fma.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 re)) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 re)) (*.f64 im im)) |
(fma.f64 (neg.f64 (neg.f64 im)) (neg.f64 (neg.f64 im)) (*.f64 re re)) |
(fma.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 im)) (*.f64 re re)) |
(fma.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 re)) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 re)) (*.f64 im im)) |
(fma.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 im)) (*.f64 re re)) |
(fma.f64 (neg.f64 im) (neg.f64 im) (*.f64 re re)) |
(fma.f64 (neg.f64 re) (neg.f64 re) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (neg.f64 re) (neg.f64 re) (*.f64 im im)) |
(fma.f64 (fabs.f64 im) (fabs.f64 im) (*.f64 re re)) |
(fma.f64 (fabs.f64 re) (fabs.f64 re) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (fabs.f64 re) (fabs.f64 re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(fma.f64 re re (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 re re (*.f64 im im)) |
(-.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (*.f64 (+.f64 re im) (-.f64 re im))) (/.f64 (pow.f64 im #s(literal 4 binary64)) (*.f64 (+.f64 re im) (-.f64 re im)))) |
(-.f64 (*.f64 im im) (*.f64 (neg.f64 (neg.f64 re)) (neg.f64 re))) |
(-.f64 (*.f64 im im) (*.f64 (neg.f64 (fabs.f64 re)) (fabs.f64 re))) |
(-.f64 (*.f64 im im) (*.f64 (neg.f64 re) re)) |
(-.f64 (*.f64 im im) (*.f64 re (neg.f64 re))) |
(-.f64 (*.f64 re re) (*.f64 (neg.f64 (neg.f64 im)) (neg.f64 im))) |
(-.f64 (*.f64 re re) (*.f64 (neg.f64 (fabs.f64 im)) (fabs.f64 im))) |
(-.f64 (*.f64 re re) (*.f64 (neg.f64 im) im)) |
(+.f64 (/.f64 (pow.f64 re #s(literal 6 binary64)) (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64)))) (/.f64 (pow.f64 im #s(literal 6 binary64)) (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64))))) |
(+.f64 (*.f64 im im) (*.f64 re re)) |
(+.f64 (*.f64 re re) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(*.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64))) |
(*.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 re))) |
(*.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 re))) |
(*.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 re))) |
(*.f64 (neg.f64 re) (neg.f64 re)) |
(*.f64 (fabs.f64 re) (fabs.f64 re)) |
(*.f64 re re) |
(pow.f64 (neg.f64 re) #s(literal 2 binary64)) |
(pow.f64 (fabs.f64 re) #s(literal 2 binary64)) |
(pow.f64 re #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 re) re)) |
(neg.f64 (*.f64 re (neg.f64 re))) |
(fabs.f64 (*.f64 re re)) |
(exp.f64 (*.f64 (log.f64 re) #s(literal 2 binary64))) |
(*.f64 (pow.f64 im #s(literal 1 binary64)) (pow.f64 im #s(literal 1 binary64))) |
(*.f64 (neg.f64 (neg.f64 im)) (neg.f64 (neg.f64 im))) |
(*.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 im))) |
(*.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 im))) |
(*.f64 (neg.f64 im) (neg.f64 im)) |
(*.f64 (fabs.f64 im) (fabs.f64 im)) |
(*.f64 im im) |
(pow.f64 (neg.f64 im) #s(literal 2 binary64)) |
(pow.f64 (fabs.f64 im) #s(literal 2 binary64)) |
(pow.f64 im #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 im) im)) |
(fabs.f64 (*.f64 im im)) |
(exp.f64 (*.f64 (log.f64 im) #s(literal 2 binary64))) |
Compiled 2 070 to 446 computations (78.5% saved)
5 alts after pruning (5 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 191 | 5 | 196 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 192 | 5 | 197 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (hypot.f64 re im) |
| ▶ | 62.7% | (sqrt.f64 (fma.f64 re re (*.f64 im im))) |
| ▶ | 62.2% | (sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
| ▶ | 93.0% | #s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
| ▶ | 1.8% | #s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
Compiled 100 to 70 computations (30% saved)
| 1× | egg-herbie |
Found 13 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 re re) | |
| cost-diff | 0 | (/.f64 #s(literal 1/2 binary64) im) | |
| cost-diff | 0 | (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) | |
| cost-diff | 0 | (*.f64 im im) | |
| cost-diff | 0 | (fma.f64 re re (*.f64 im im)) | |
| cost-diff | 4 | (sqrt.f64 (fma.f64 re re (*.f64 im im))) | |
| cost-diff | 0 | (*.f64 im im) | |
| cost-diff | 0 | #s(approx (+ (* re re) (* im im)) (*.f64 im im)) | |
| cost-diff | 0 | (sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) | |
| cost-diff | 0 | (neg.f64 re) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) | |
| cost-diff | 0 | (hypot.f64 re im) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 82 |
| 0 | 28 | 82 |
| 1 | 44 | 82 |
| 2 | 114 | 82 |
| 3 | 276 | 82 |
| 4 | 493 | 82 |
| 5 | 650 | 82 |
| 6 | 674 | 82 |
| 0 | 674 | 82 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(hypot.f64 re im) |
re |
im |
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(neg.f64 re) |
re |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (+ (* re re) (* im im)) (*.f64 im im)) |
(*.f64 im im) |
im |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
(fma.f64 re re (*.f64 im im)) |
re |
(*.f64 im im) |
im |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(/.f64 #s(literal 1/2 binary64) im) |
#s(literal 1/2 binary64) |
im |
(*.f64 re re) |
re |
| Outputs |
|---|
(hypot.f64 re im) |
(hypot.f64 im re) |
re |
im |
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(neg.f64 re) |
re |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (+ (* re re) (* im im)) (*.f64 im im)) |
(*.f64 im im) |
im |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
(hypot.f64 im re) |
(fma.f64 re re (*.f64 im im)) |
re |
(*.f64 im im) |
im |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 re re) (/.f64 #s(literal 1/2 binary64) im) im)) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(fma.f64 (*.f64 re re) (/.f64 #s(literal 1/2 binary64) im) im) |
(/.f64 #s(literal 1/2 binary64) im) |
#s(literal 1/2 binary64) |
im |
(*.f64 re re) |
re |
Found 13 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (/.f64 #s(literal 1/2 binary64) im) | |
| accuracy | 0.0 | (*.f64 re re) | |
| accuracy | 0.24891111047018818 | #s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) | |
| accuracy | 4.220252537594762 | (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) | |
| accuracy | 0.0 | (fma.f64 re re (*.f64 im im)) | |
| accuracy | 0.0 | (*.f64 im im) | |
| accuracy | 23.893038109698477 | (sqrt.f64 (fma.f64 re re (*.f64 im im))) | |
| accuracy | 0.0 | (*.f64 im im) | |
| accuracy | 0.3378522272758019 | #s(approx (+ (* re re) (* im im)) (*.f64 im im)) | |
| accuracy | 23.893038109698477 | (sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) | |
| accuracy | 0.0 | (neg.f64 re) | |
| accuracy | 62.87124598366688 | #s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) | |
| accuracy | 0.0 | (hypot.f64 re im) |
| 46.0ms | 256× | 0 | valid |
Compiled 88 to 13 computations (85.2% saved)
ival-mult: 5.0ms (26.3% of total)ival-hypot: 5.0ms (26.3% of total)ival-neg: 5.0ms (26.3% of total)ival-div: 2.0ms (10.5% of total)ival-add: 2.0ms (10.5% 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 |
|---|
(hypot.f64 re im) |
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(neg.f64 re) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (+ (* re re) (* im im)) (*.f64 im im)) |
(*.f64 im im) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
(fma.f64 re re (*.f64 im im)) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(/.f64 #s(literal 1/2 binary64) im) |
(*.f64 re re) |
| Outputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(* -1 re) |
(pow im 2) |
(+ (pow im 2) (pow re 2)) |
(pow re 2) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* (pow re 2) (+ 1 (/ (pow im 2) (pow re 2)))) |
(* 1/2 (/ (pow re 2) im)) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(/ 1/2 im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* (pow im 2) (+ 1 (/ (pow re 2) (pow im 2)))) |
(* -1 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | re | @ | inf | ((sqrt (+ (* re re) (* im im))) (sqrt (+ (* re re) (* im im))) (neg re) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* im im) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (/ 1/2 im) (* re re)) |
| 1.0ms | im | @ | -inf | ((sqrt (+ (* re re) (* im im))) (sqrt (+ (* re re) (* im im))) (neg re) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* im im) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (/ 1/2 im) (* re re)) |
| 1.0ms | im | @ | inf | ((sqrt (+ (* re re) (* im im))) (sqrt (+ (* re re) (* im im))) (neg re) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* im im) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (/ 1/2 im) (* re re)) |
| 1.0ms | im | @ | 0 | ((sqrt (+ (* re re) (* im im))) (sqrt (+ (* re re) (* im im))) (neg re) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* im im) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (/ 1/2 im) (* re re)) |
| 1.0ms | re | @ | -inf | ((sqrt (+ (* re re) (* im im))) (sqrt (+ (* re re) (* im im))) (neg re) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (* im im) (sqrt (+ (* re re) (* im im))) (+ (* re re) (* im im)) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (/ 1/2 im) (* re re)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 116 | 478 |
| 1 | 349 | 478 |
| 2 | 1401 | 460 |
| 3 | 5767 | 459 |
| 0 | 8119 | 421 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(* -1 re) |
(pow im 2) |
(+ (pow im 2) (pow re 2)) |
(pow re 2) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* (pow re 2) (+ 1 (/ (pow im 2) (pow re 2)))) |
(* 1/2 (/ (pow re 2) im)) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(/ 1/2 im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* (pow im 2) (+ 1 (/ (pow re 2) (pow im 2)))) |
(* -1 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
| Outputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) im) im) (*.f64 re re) #s(literal 1/2 binary64)) im) (*.f64 re re) im) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(fma.f64 (pow.f64 re #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) re) (/.f64 re (pow.f64 im #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 3 binary64)))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(* -1 re) |
(neg.f64 re) |
(pow im 2) |
(*.f64 im im) |
(+ (pow im 2) (pow re 2)) |
(fma.f64 im im (*.f64 re re)) |
(pow re 2) |
(*.f64 re re) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(fma.f64 (/.f64 re re) (*.f64 (/.f64 (*.f64 im im) re) #s(literal 1/2 binary64)) re) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) re) im) re) im #s(literal 1 binary64))) re) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 re #s(literal 6 binary64))) (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) re) im) re) im #s(literal 1 binary64)))) re) |
(* (pow re 2) (+ 1 (/ (pow im 2) (pow re 2)))) |
(*.f64 (fma.f64 (/.f64 im re) (/.f64 im re) #s(literal 1 binary64)) (*.f64 re re)) |
(* 1/2 (/ (pow re 2) im)) |
(*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(*.f64 (*.f64 (-.f64 (/.f64 im (*.f64 re re)) (/.f64 #s(literal -1/2 binary64) im)) re) re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64)) re) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(*.f64 (fma.f64 (/.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64))) re) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 re #s(literal 6 binary64))) (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) re) im) re) im #s(literal 1 binary64)))) (neg.f64 re)) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) re) (*.f64 im im) re) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) re) re) (*.f64 im im) #s(literal 1/2 binary64)) re) (*.f64 im im) re) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) im) (/.f64 im (pow.f64 re #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 3 binary64)))) (*.f64 im im) (/.f64 #s(literal 1/2 binary64) re)) (*.f64 im im) re) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(/ 1/2 im) |
(/.f64 #s(literal 1/2 binary64) im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(fma.f64 (*.f64 (pow.f64 re #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 4 binary64)))) im (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(fma.f64 (fma.f64 (pow.f64 re #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 im #s(literal 6 binary64))) (fma.f64 (pow.f64 re #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 4 binary64))) #s(literal 1 binary64))) im (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) |
(* (pow im 2) (+ 1 (/ (pow re 2) (pow im 2)))) |
(fma.f64 (/.f64 (*.f64 re re) im) im (*.f64 im im)) |
(* -1 im) |
(neg.f64 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 re re) im) (neg.f64 im)) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(neg.f64 (fma.f64 (*.f64 (pow.f64 re #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 4 binary64)))) im (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(fma.f64 (fma.f64 (pow.f64 re #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 im #s(literal 6 binary64))) (fma.f64 (pow.f64 re #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 4 binary64))) #s(literal 1 binary64))) (neg.f64 im) (*.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 re re) im))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 70 |
| 0 | 28 | 70 |
| 1 | 76 | 70 |
| 0 | 566 | 70 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(hypot.f64 re im) |
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(neg.f64 re) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (+ (* re re) (* im im)) (*.f64 im im)) |
(*.f64 im im) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
(fma.f64 re re (*.f64 im im)) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(/.f64 #s(literal 1/2 binary64) im) |
(*.f64 re re) |
| Outputs |
|---|
(*.f64 (pow.f64 (fma.f64 re re (*.f64 im im)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 re re (*.f64 im im)) #s(literal 1/4 binary64))) |
(pow.f64 (fma.f64 re re (*.f64 im im)) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) (sqrt.f64 (*.f64 (+.f64 re im) (-.f64 re im)))) |
(/.f64 (hypot.f64 (pow.f64 re #s(literal 3 binary64)) (pow.f64 im #s(literal 3 binary64))) (sqrt.f64 (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64))))) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (fabs.f64 re)) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 re)) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) re) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 im)) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (fabs.f64 im)) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) im) |
(hypot.f64 (neg.f64 (neg.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (fabs.f64 re)) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 re)) |
(hypot.f64 (neg.f64 (neg.f64 im)) re) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (fabs.f64 re)) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 re)) |
(hypot.f64 (neg.f64 (fabs.f64 im)) re) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 im)) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (fabs.f64 im)) |
(hypot.f64 (neg.f64 (fabs.f64 re)) im) |
(hypot.f64 (neg.f64 (neg.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 im)) |
(hypot.f64 (neg.f64 (neg.f64 re)) (fabs.f64 im)) |
(hypot.f64 (neg.f64 (neg.f64 re)) im) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 re)) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 re)) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) re) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 im)) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 im)) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) im) |
(hypot.f64 (neg.f64 im) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 im) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 im) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 im) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 im) (fabs.f64 re)) |
(hypot.f64 (neg.f64 im) (neg.f64 re)) |
(hypot.f64 (neg.f64 im) re) |
(hypot.f64 (fabs.f64 im) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 im) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 im) (neg.f64 (neg.f64 re))) |
(hypot.f64 (fabs.f64 im) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 im) (fabs.f64 re)) |
(hypot.f64 (fabs.f64 im) (neg.f64 re)) |
(hypot.f64 (fabs.f64 im) re) |
(hypot.f64 (fabs.f64 re) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 re) (neg.f64 (neg.f64 im))) |
(hypot.f64 (fabs.f64 re) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 re) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 re) (neg.f64 im)) |
(hypot.f64 (fabs.f64 re) (fabs.f64 im)) |
(hypot.f64 (fabs.f64 re) im) |
(hypot.f64 (neg.f64 re) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 re) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 re) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 re) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 re) (neg.f64 im)) |
(hypot.f64 (neg.f64 re) (fabs.f64 im)) |
(hypot.f64 (neg.f64 re) im) |
(hypot.f64 im (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 im (neg.f64 (fabs.f64 re))) |
(hypot.f64 im (neg.f64 (neg.f64 re))) |
(hypot.f64 im (fabs.f64 (fabs.f64 re))) |
(hypot.f64 im (fabs.f64 re)) |
(hypot.f64 im (neg.f64 re)) |
(hypot.f64 im re) |
(hypot.f64 re (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 re (neg.f64 (neg.f64 im))) |
(hypot.f64 re (neg.f64 (fabs.f64 im))) |
(hypot.f64 re (fabs.f64 (fabs.f64 im))) |
(hypot.f64 re (neg.f64 im)) |
(hypot.f64 re (fabs.f64 im)) |
(hypot.f64 re im) |
(exp.f64 (*.f64 (log.f64 (fma.f64 re re (*.f64 im im))) #s(literal 1/2 binary64))) |
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(neg.f64 re) |
(*.f64 (pow.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im)) #s(literal 1/4 binary64)) (pow.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im)) #s(literal 1/4 binary64))) |
(pow.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im)) #s(literal 1/2 binary64)) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
(exp.f64 (*.f64 (log.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) #s(literal 1/2 binary64))) |
#s(approx (+ (* re re) (* im im)) (*.f64 im im)) |
(*.f64 (pow.f64 im #s(literal 1 binary64)) (pow.f64 im #s(literal 1 binary64))) |
(*.f64 (neg.f64 (neg.f64 im)) (neg.f64 (neg.f64 im))) |
(*.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 im))) |
(*.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 im))) |
(*.f64 (neg.f64 im) (neg.f64 im)) |
(*.f64 (fabs.f64 im) (fabs.f64 im)) |
(*.f64 im im) |
(pow.f64 (neg.f64 im) #s(literal 2 binary64)) |
(pow.f64 (fabs.f64 im) #s(literal 2 binary64)) |
(pow.f64 im #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 im) im)) |
(fabs.f64 (*.f64 im im)) |
(exp.f64 (*.f64 (log.f64 im) #s(literal 2 binary64))) |
(*.f64 (pow.f64 (fma.f64 re re (*.f64 im im)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 re re (*.f64 im im)) #s(literal 1/4 binary64))) |
(pow.f64 (fma.f64 re re (*.f64 im im)) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) (sqrt.f64 (*.f64 (+.f64 re im) (-.f64 re im)))) |
(/.f64 (hypot.f64 (pow.f64 re #s(literal 3 binary64)) (pow.f64 im #s(literal 3 binary64))) (sqrt.f64 (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64))))) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (fabs.f64 re)) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) (neg.f64 re)) |
(hypot.f64 (pow.f64 im #s(literal 1 binary64)) re) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (neg.f64 im)) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) (fabs.f64 im)) |
(hypot.f64 (pow.f64 re #s(literal 1 binary64)) im) |
(hypot.f64 (neg.f64 (neg.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (neg.f64 im)) (fabs.f64 re)) |
(hypot.f64 (neg.f64 (neg.f64 im)) (neg.f64 re)) |
(hypot.f64 (neg.f64 (neg.f64 im)) re) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (fabs.f64 re)) |
(hypot.f64 (neg.f64 (fabs.f64 im)) (neg.f64 re)) |
(hypot.f64 (neg.f64 (fabs.f64 im)) re) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (neg.f64 im)) |
(hypot.f64 (neg.f64 (fabs.f64 re)) (fabs.f64 im)) |
(hypot.f64 (neg.f64 (fabs.f64 re)) im) |
(hypot.f64 (neg.f64 (neg.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 (neg.f64 re)) (neg.f64 im)) |
(hypot.f64 (neg.f64 (neg.f64 re)) (fabs.f64 im)) |
(hypot.f64 (neg.f64 (neg.f64 re)) im) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 (neg.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 re)) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) (neg.f64 re)) |
(hypot.f64 (fabs.f64 (fabs.f64 im)) re) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 (neg.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (neg.f64 im)) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 im)) |
(hypot.f64 (fabs.f64 (fabs.f64 re)) im) |
(hypot.f64 (neg.f64 im) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 im) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 im) (neg.f64 (neg.f64 re))) |
(hypot.f64 (neg.f64 im) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (neg.f64 im) (fabs.f64 re)) |
(hypot.f64 (neg.f64 im) (neg.f64 re)) |
(hypot.f64 (neg.f64 im) re) |
(hypot.f64 (fabs.f64 im) (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 im) (neg.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 im) (neg.f64 (neg.f64 re))) |
(hypot.f64 (fabs.f64 im) (fabs.f64 (fabs.f64 re))) |
(hypot.f64 (fabs.f64 im) (fabs.f64 re)) |
(hypot.f64 (fabs.f64 im) (neg.f64 re)) |
(hypot.f64 (fabs.f64 im) re) |
(hypot.f64 (fabs.f64 re) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (fabs.f64 re) (neg.f64 (neg.f64 im))) |
(hypot.f64 (fabs.f64 re) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 re) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (fabs.f64 re) (neg.f64 im)) |
(hypot.f64 (fabs.f64 re) (fabs.f64 im)) |
(hypot.f64 (fabs.f64 re) im) |
(hypot.f64 (neg.f64 re) (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 (neg.f64 re) (neg.f64 (neg.f64 im))) |
(hypot.f64 (neg.f64 re) (neg.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 re) (fabs.f64 (fabs.f64 im))) |
(hypot.f64 (neg.f64 re) (neg.f64 im)) |
(hypot.f64 (neg.f64 re) (fabs.f64 im)) |
(hypot.f64 (neg.f64 re) im) |
(hypot.f64 im (pow.f64 re #s(literal 1 binary64))) |
(hypot.f64 im (neg.f64 (fabs.f64 re))) |
(hypot.f64 im (neg.f64 (neg.f64 re))) |
(hypot.f64 im (fabs.f64 (fabs.f64 re))) |
(hypot.f64 im (fabs.f64 re)) |
(hypot.f64 im (neg.f64 re)) |
(hypot.f64 im re) |
(hypot.f64 re (pow.f64 im #s(literal 1 binary64))) |
(hypot.f64 re (neg.f64 (neg.f64 im))) |
(hypot.f64 re (neg.f64 (fabs.f64 im))) |
(hypot.f64 re (fabs.f64 (fabs.f64 im))) |
(hypot.f64 re (neg.f64 im)) |
(hypot.f64 re (fabs.f64 im)) |
(hypot.f64 re im) |
(exp.f64 (*.f64 (log.f64 (fma.f64 re re (*.f64 im im))) #s(literal 1/2 binary64))) |
(/.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) (-.f64 (*.f64 im im) (*.f64 re re))) |
(/.f64 (-.f64 (pow.f64 re #s(literal 6 binary64)) (pow.f64 (*.f64 (neg.f64 im) im) #s(literal 3 binary64))) (+.f64 (pow.f64 re #s(literal 4 binary64)) (+.f64 (pow.f64 im #s(literal 4 binary64)) (*.f64 (*.f64 re re) (*.f64 (neg.f64 im) im))))) |
(/.f64 (neg.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64)))) (neg.f64 (*.f64 (+.f64 re im) (-.f64 re im)))) |
(/.f64 (neg.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64)))) (neg.f64 (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64))))) |
(/.f64 (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (*.f64 (+.f64 re im) (-.f64 re im))) |
(/.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (+.f64 (pow.f64 im #s(literal 4 binary64)) (-.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))))) |
(/.f64 (+.f64 (pow.f64 im #s(literal 6 binary64)) (pow.f64 re #s(literal 6 binary64))) (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64)))) |
(fma.f64 (pow.f64 im #s(literal 1 binary64)) (pow.f64 im #s(literal 1 binary64)) (*.f64 re re)) |
(fma.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64)) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64)) (*.f64 im im)) |
(fma.f64 (neg.f64 (neg.f64 im)) (neg.f64 (neg.f64 im)) (*.f64 re re)) |
(fma.f64 (neg.f64 (fabs.f64 im)) (neg.f64 (fabs.f64 im)) (*.f64 re re)) |
(fma.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 re)) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 re)) (*.f64 im im)) |
(fma.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 re)) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 re)) (*.f64 im im)) |
(fma.f64 (fabs.f64 (fabs.f64 im)) (fabs.f64 (fabs.f64 im)) (*.f64 re re)) |
(fma.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 re)) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 re)) (*.f64 im im)) |
(fma.f64 (neg.f64 im) (neg.f64 im) (*.f64 re re)) |
(fma.f64 (fabs.f64 im) (fabs.f64 im) (*.f64 re re)) |
(fma.f64 (fabs.f64 re) (fabs.f64 re) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (fabs.f64 re) (fabs.f64 re) (*.f64 im im)) |
(fma.f64 (neg.f64 re) (neg.f64 re) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 (neg.f64 re) (neg.f64 re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(fma.f64 re re (*.f64 (neg.f64 (neg.f64 im)) im)) |
(fma.f64 re re (*.f64 im im)) |
(-.f64 (/.f64 (pow.f64 re #s(literal 4 binary64)) (*.f64 (+.f64 re im) (-.f64 re im))) (/.f64 (pow.f64 im #s(literal 4 binary64)) (*.f64 (+.f64 re im) (-.f64 re im)))) |
(-.f64 (*.f64 re re) (*.f64 (neg.f64 (neg.f64 im)) (neg.f64 im))) |
(-.f64 (*.f64 re re) (*.f64 (neg.f64 (fabs.f64 im)) (fabs.f64 im))) |
(-.f64 (*.f64 re re) (*.f64 (neg.f64 im) im)) |
(-.f64 (*.f64 im im) (*.f64 (neg.f64 (fabs.f64 re)) (fabs.f64 re))) |
(-.f64 (*.f64 im im) (*.f64 (neg.f64 (neg.f64 re)) (neg.f64 re))) |
(-.f64 (*.f64 im im) (*.f64 (neg.f64 re) re)) |
(-.f64 (*.f64 im im) (*.f64 re (neg.f64 re))) |
(+.f64 (/.f64 (pow.f64 re #s(literal 6 binary64)) (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64)))) (/.f64 (pow.f64 im #s(literal 6 binary64)) (+.f64 (-.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 (*.f64 re im) #s(literal 2 binary64))) (pow.f64 re #s(literal 4 binary64))))) |
(+.f64 (*.f64 re re) (*.f64 (neg.f64 (neg.f64 im)) im)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(+.f64 (*.f64 im im) (*.f64 re re)) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 re re) (/.f64 #s(literal 1/2 binary64) im) im)) |
(/.f64 (-.f64 (*.f64 im im) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64))) (-.f64 im (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64)) (*.f64 im im))) (neg.f64 (-.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) im))) |
(/.f64 (neg.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) im) #s(literal 3 binary64)) (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 3 binary64)))) (neg.f64 (fma.f64 im (-.f64 im (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64))))) |
(/.f64 (-.f64 (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64)) (*.f64 im im)) (-.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) im)) |
(/.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) im) #s(literal 3 binary64)) (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 3 binary64))) (fma.f64 im im (-.f64 (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64)) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) (*.f64 re im))))) |
(/.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) im) #s(literal 3 binary64)) (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 3 binary64))) (fma.f64 im (-.f64 im (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64)))) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (fabs.f64 re)) (fabs.f64 re) im) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (neg.f64 re)) (neg.f64 re) im) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im) |
(fma.f64 (fabs.f64 re) (*.f64 (fabs.f64 re) (/.f64 #s(literal 1/2 binary64) im)) im) |
(fma.f64 (*.f64 re re) (/.f64 #s(literal 1/2 binary64) im) im) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(fma.f64 #s(literal 1/2 binary64) (/.f64 (*.f64 re re) im) im) |
(fma.f64 (neg.f64 re) (*.f64 (neg.f64 re) (/.f64 #s(literal 1/2 binary64) im)) im) |
(fma.f64 re (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) im) |
(-.f64 (/.f64 (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64)) (-.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) im)) (/.f64 (*.f64 im im) (-.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) im))) |
(-.f64 im (*.f64 (neg.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re)) re)) |
(-.f64 im (*.f64 (neg.f64 (*.f64 re re)) (/.f64 #s(literal 1/2 binary64) im))) |
(-.f64 im (*.f64 (neg.f64 (/.f64 #s(literal 1/2 binary64) im)) (*.f64 re re))) |
(+.f64 (/.f64 (*.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) im) #s(literal 3 binary64)) (pow.f64 re #s(literal 6 binary64))) (fma.f64 im (-.f64 im (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64)))) (/.f64 (pow.f64 im #s(literal 3 binary64)) (fma.f64 im (-.f64 im (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) (pow.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) #s(literal 2 binary64))))) |
(+.f64 (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) im) |
(+.f64 im (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) |
(/.f64 #s(literal -1/2 binary64) (neg.f64 im)) |
(/.f64 #s(literal 1/2 binary64) (neg.f64 (neg.f64 im))) |
(/.f64 #s(literal 1/2 binary64) im) |
(neg.f64 (/.f64 #s(literal -1/2 binary64) im)) |
(neg.f64 (/.f64 #s(literal 1/2 binary64) (neg.f64 im))) |
(*.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64))) |
(*.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 re))) |
(*.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 re))) |
(*.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 re))) |
(*.f64 (fabs.f64 re) (fabs.f64 re)) |
(*.f64 (neg.f64 re) (neg.f64 re)) |
(*.f64 re re) |
(pow.f64 (fabs.f64 re) #s(literal 2 binary64)) |
(pow.f64 (neg.f64 re) #s(literal 2 binary64)) |
(pow.f64 re #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 re) re)) |
(neg.f64 (*.f64 re (neg.f64 re))) |
(fabs.f64 (*.f64 re re)) |
(exp.f64 (*.f64 (log.f64 re) #s(literal 2 binary64))) |
Compiled 3 238 to 574 computations (82.3% saved)
6 alts after pruning (2 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 244 | 2 | 246 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 4 | 5 |
| Done | 0 | 0 | 0 |
| Total | 245 | 6 | 251 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 re im) |
| ✓ | 62.7% | (sqrt.f64 (fma.f64 re re (*.f64 im im))) |
| ✓ | 62.2% | (sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
| ▶ | 99.6% | #s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
| ✓ | 1.8% | #s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
| ▶ | 3.9% | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
Compiled 76 to 51 computations (32.9% saved)
| 1× | egg-herbie |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (/.f64 #s(literal 1/2 binary64) im) | |
| cost-diff | 0 | (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) | |
| cost-diff | 0 | (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) | |
| cost-diff | 0 | (/.f64 (*.f64 re re) im) | |
| cost-diff | 0 | (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) | |
| cost-diff | 0 | #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 97 |
| 0 | 26 | 95 |
| 1 | 51 | 95 |
| 2 | 133 | 95 |
| 3 | 304 | 95 |
| 4 | 528 | 95 |
| 5 | 653 | 95 |
| 6 | 662 | 95 |
| 0 | 662 | 85 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) |
(*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) |
(/.f64 (*.f64 re re) im) |
(*.f64 re re) |
re |
im |
#s(literal 1/2 binary64) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
(/.f64 #s(literal 1/2 binary64) im) |
#s(literal 1/2 binary64) |
im |
re |
| Outputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 re im) (*.f64 #s(literal 1/2 binary64) re)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 re im) (*.f64 #s(literal 1/2 binary64) re))) |
(*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) |
(*.f64 (/.f64 re im) (*.f64 #s(literal 1/2 binary64) re)) |
(/.f64 (*.f64 re re) im) |
(*.f64 re re) |
re |
im |
#s(literal 1/2 binary64) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 re im) (*.f64 #s(literal 1/2 binary64) re) im)) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im) |
(fma.f64 (/.f64 re im) (*.f64 #s(literal 1/2 binary64) re) im) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
(/.f64 #s(literal 1/2 binary64) im) |
#s(literal 1/2 binary64) |
im |
re |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im) | |
| accuracy | 0.0 | (/.f64 #s(literal 1/2 binary64) im) | |
| accuracy | 0.2265625 | (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) | |
| accuracy | 0.24891111047018818 | #s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) | |
| accuracy | 0.0 | (*.f64 re re) | |
| accuracy | 0.24891111047018818 | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) | |
| accuracy | 7.389555136764294 | (/.f64 (*.f64 re re) im) | |
| accuracy | 61.55891673594043 | #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) |
| 27.0ms | 256× | 0 | valid |
Compiled 65 to 15 computations (76.9% saved)
ival-mult: 7.0ms (39.8% of total)ival-hypot: 5.0ms (28.4% of total)ival-div: 3.0ms (17.1% of total)ival-add: 2.0ms (11.4% of total)ival-true: 0.0ms (0% of total)adjust: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) |
(*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) |
(/.f64 (*.f64 re re) im) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
(/.f64 #s(literal 1/2 binary64) im) |
(*.f64 re re) |
| Outputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(* 1/2 (/ (pow re 2) im)) |
(/ (pow re 2) im) |
(* 1/2 (/ re im)) |
(pow re 2) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(* -1 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(/ 1/2 im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | im | @ | inf | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (/ (* re re) im) 1/2) (/ (* re re) im) (sqrt (+ (* re re) (* im im))) (+ (* (* (/ 1/2 im) re) re) im) (* (/ 1/2 im) re) (/ 1/2 im) (* re re)) |
| 2.0ms | re | @ | inf | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (/ (* re re) im) 1/2) (/ (* re re) im) (sqrt (+ (* re re) (* im im))) (+ (* (* (/ 1/2 im) re) re) im) (* (/ 1/2 im) re) (/ 1/2 im) (* re re)) |
| 2.0ms | re | @ | -inf | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (/ (* re re) im) 1/2) (/ (* re re) im) (sqrt (+ (* re re) (* im im))) (+ (* (* (/ 1/2 im) re) re) im) (* (/ 1/2 im) re) (/ 1/2 im) (* re re)) |
| 1.0ms | im | @ | -inf | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (/ (* re re) im) 1/2) (/ (* re re) im) (sqrt (+ (* re re) (* im im))) (+ (* (* (/ 1/2 im) re) re) im) (* (/ 1/2 im) re) (/ 1/2 im) (* re re)) |
| 1.0ms | im | @ | 0 | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (/ (* re re) im) 1/2) (/ (* re re) im) (sqrt (+ (* re re) (* im im))) (+ (* (* (/ 1/2 im) re) re) im) (* (/ 1/2 im) re) (/ 1/2 im) (* re re)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 113 | 457 |
| 1 | 332 | 457 |
| 2 | 1346 | 437 |
| 3 | 6764 | 437 |
| 0 | 8626 | 402 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(* 1/2 (/ (pow re 2) im)) |
(/ (pow re 2) im) |
(* 1/2 (/ re im)) |
(pow re 2) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(* -1 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(/ 1/2 im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
| Outputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 (*.f64 re re) im) im) #s(literal -1/8 binary64) #s(literal 1/2 binary64)) im) (*.f64 re re) im) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(fma.f64 (pow.f64 re #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) re) (/.f64 re (pow.f64 im #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 3 binary64)))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(* 1/2 (/ (pow re 2) im)) |
(*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) |
(/ (pow re 2) im) |
(/.f64 (*.f64 re re) im) |
(* 1/2 (/ re im)) |
(*.f64 (/.f64 re im) #s(literal 1/2 binary64)) |
(pow re 2) |
(*.f64 re re) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(fma.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) im) (/.f64 im (*.f64 re re)) re) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 im re) #s(literal 1/2 binary64)) re) im #s(literal 1 binary64))) re) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 re #s(literal 6 binary64))) (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 im re) #s(literal 1/2 binary64)) re) im #s(literal 1 binary64)))) re) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(*.f64 (*.f64 (-.f64 (/.f64 im (*.f64 re re)) (/.f64 #s(literal -1/2 binary64) im)) re) re) |
(* -1 re) |
(neg.f64 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64)) re) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(*.f64 (fma.f64 (/.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64))) re) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(*.f64 (neg.f64 re) (fma.f64 (pow.f64 im #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 re #s(literal 6 binary64))) (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 im re) #s(literal 1/2 binary64)) re) im #s(literal 1 binary64))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) re) (*.f64 im im) re) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) re) re) (*.f64 im im) #s(literal 1/2 binary64)) re) (*.f64 im im) re) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) im) (/.f64 im (pow.f64 re #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 3 binary64)))) (*.f64 im im) (/.f64 #s(literal 1/2 binary64) re)) (*.f64 im im) re) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(/ 1/2 im) |
(/.f64 #s(literal 1/2 binary64) im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(fma.f64 (*.f64 #s(literal -1/8 binary64) im) (/.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(fma.f64 (fma.f64 (pow.f64 re #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 im #s(literal 6 binary64))) (fma.f64 (pow.f64 re #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 4 binary64))) #s(literal 1 binary64))) im (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) |
(* -1 im) |
(neg.f64 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 re re) im) (neg.f64 im)) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(neg.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) im) (/.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(fma.f64 (fma.f64 (pow.f64 re #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 im #s(literal 6 binary64))) (fma.f64 (pow.f64 re #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 4 binary64))) #s(literal 1 binary64))) (neg.f64 im) (*.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 re re) im))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
(neg.f64 (fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 re re) im) (neg.f64 im))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 91 |
| 0 | 26 | 89 |
| 1 | 97 | 89 |
| 0 | 620 | 79 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) |
(*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) |
(/.f64 (*.f64 re re) im) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
(/.f64 #s(literal 1/2 binary64) im) |
(*.f64 re re) |
| Outputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (neg.f64 re)) (neg.f64 re)) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (fabs.f64 re)) (fabs.f64 re)) |
(*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) |
(*.f64 (neg.f64 re) (*.f64 (neg.f64 re) (/.f64 #s(literal 1/2 binary64) im))) |
(*.f64 (fabs.f64 re) (*.f64 (fabs.f64 re) (/.f64 #s(literal 1/2 binary64) im))) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re)) |
(*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) |
(*.f64 #s(literal 1/2 binary64) (/.f64 (*.f64 re re) im)) |
(*.f64 (*.f64 re re) (/.f64 #s(literal 1/2 binary64) im)) |
(*.f64 re (*.f64 (/.f64 re im) #s(literal 1/2 binary64))) |
(*.f64 re (*.f64 (/.f64 #s(literal 1/2 binary64) im) re)) |
(/.f64 (*.f64 (*.f64 (neg.f64 re) re) #s(literal 1/2 binary64)) (neg.f64 im)) |
(/.f64 (*.f64 #s(literal -1/2 binary64) (*.f64 re re)) (neg.f64 im)) |
(/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 re) re)) (neg.f64 im)) |
(/.f64 (*.f64 (*.f64 re re) #s(literal -1/2 binary64)) (neg.f64 im)) |
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 re re))) (neg.f64 im)) |
(/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 re re)) im) |
(*.f64 (/.f64 re im) re) |
(*.f64 (neg.f64 re) (/.f64 (neg.f64 re) im)) |
(*.f64 (fabs.f64 re) (/.f64 (fabs.f64 re) im)) |
(*.f64 re (/.f64 re im)) |
(/.f64 (*.f64 (neg.f64 re) re) (neg.f64 im)) |
(/.f64 (*.f64 re re) (neg.f64 (neg.f64 im))) |
(/.f64 (*.f64 re re) im) |
(neg.f64 (/.f64 (*.f64 (neg.f64 re) re) im)) |
(neg.f64 (/.f64 (*.f64 re re) (neg.f64 im))) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im) im)) |
(/.f64 (-.f64 (*.f64 im im) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64))) (-.f64 im (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)))) |
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64)) (*.f64 im im))) (neg.f64 (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) im))) |
(/.f64 (neg.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) im) #s(literal 3 binary64)) (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 3 binary64)))) (neg.f64 (fma.f64 im (-.f64 im (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64))))) |
(/.f64 (-.f64 (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64)) (*.f64 im im)) (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) im)) |
(/.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) im) #s(literal 3 binary64)) (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 3 binary64))) (fma.f64 im im (-.f64 (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64)) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) (*.f64 re im))))) |
(/.f64 (fma.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) im) #s(literal 3 binary64)) (pow.f64 re #s(literal 6 binary64)) (pow.f64 im #s(literal 3 binary64))) (fma.f64 im (-.f64 im (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64)))) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (neg.f64 re)) (neg.f64 re) im) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (fabs.f64 re)) (fabs.f64 re) im) |
(fma.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im) im) |
(fma.f64 (neg.f64 re) (*.f64 (neg.f64 re) (/.f64 #s(literal 1/2 binary64) im)) im) |
(fma.f64 (fabs.f64 re) (*.f64 (fabs.f64 re) (/.f64 #s(literal 1/2 binary64) im)) im) |
(fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(fma.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64) im) |
(fma.f64 #s(literal 1/2 binary64) (/.f64 (*.f64 re re) im) im) |
(fma.f64 (*.f64 re re) (/.f64 #s(literal 1/2 binary64) im) im) |
(fma.f64 re (*.f64 (/.f64 re im) #s(literal 1/2 binary64)) im) |
(fma.f64 re (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) im) |
(-.f64 (/.f64 (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64)) (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) im)) (/.f64 (*.f64 im im) (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) im))) |
(-.f64 im (*.f64 (neg.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re)) re)) |
(-.f64 im (*.f64 (neg.f64 (/.f64 #s(literal 1/2 binary64) im)) (*.f64 re re))) |
(-.f64 im (*.f64 (*.f64 (neg.f64 re) re) (/.f64 #s(literal 1/2 binary64) im))) |
(-.f64 im (*.f64 (neg.f64 re) (*.f64 (/.f64 #s(literal 1/2 binary64) im) re))) |
(+.f64 (/.f64 (*.f64 (pow.f64 (/.f64 #s(literal 1/2 binary64) im) #s(literal 3 binary64)) (pow.f64 re #s(literal 6 binary64))) (fma.f64 im (-.f64 im (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64)))) (/.f64 (pow.f64 im #s(literal 3 binary64)) (fma.f64 im (-.f64 im (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) (pow.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) #s(literal 2 binary64))))) |
(+.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) im) |
(+.f64 im (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
(*.f64 #s(literal 1/2 binary64) (/.f64 re im)) |
(*.f64 re (/.f64 #s(literal 1/2 binary64) im)) |
(/.f64 (*.f64 #s(literal -1/2 binary64) re) (neg.f64 im)) |
(/.f64 (*.f64 re #s(literal -1/2 binary64)) (neg.f64 im)) |
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) re)) (neg.f64 im)) |
(/.f64 (*.f64 #s(literal 1/2 binary64) re) im) |
(/.f64 #s(literal -1/2 binary64) (neg.f64 im)) |
(/.f64 #s(literal 1/2 binary64) (neg.f64 (neg.f64 im))) |
(/.f64 #s(literal 1/2 binary64) im) |
(neg.f64 (/.f64 #s(literal -1/2 binary64) im)) |
(neg.f64 (/.f64 #s(literal 1/2 binary64) (neg.f64 im))) |
(*.f64 (pow.f64 re #s(literal 1 binary64)) (pow.f64 re #s(literal 1 binary64))) |
(*.f64 (neg.f64 (neg.f64 re)) (neg.f64 (neg.f64 re))) |
(*.f64 (neg.f64 (fabs.f64 re)) (neg.f64 (fabs.f64 re))) |
(*.f64 (fabs.f64 (fabs.f64 re)) (fabs.f64 (fabs.f64 re))) |
(*.f64 (neg.f64 re) (neg.f64 re)) |
(*.f64 (fabs.f64 re) (fabs.f64 re)) |
(*.f64 re re) |
(pow.f64 (neg.f64 re) #s(literal 2 binary64)) |
(pow.f64 (fabs.f64 re) #s(literal 2 binary64)) |
(pow.f64 re #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 re) re)) |
(fabs.f64 (*.f64 re re)) |
(exp.f64 (*.f64 (log.f64 re) #s(literal 2 binary64))) |
Compiled 2 773 to 432 computations (84.4% saved)
7 alts after pruning (2 fresh and 5 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 106 | 2 | 108 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 1 | 2 |
| Done | 0 | 4 | 4 |
| Total | 107 | 7 | 114 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 re im) |
| ✓ | 62.7% | (sqrt.f64 (fma.f64 re re (*.f64 im im))) |
| ✓ | 62.2% | (sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
| ✓ | 99.6% | #s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
| ✓ | 1.8% | #s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
| ▶ | 3.8% | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
| ▶ | 3.8% | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
Compiled 102 to 67 computations (34.3% saved)
| 1× | egg-herbie |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 (/.f64 re im) re) | |
| cost-diff | 0 | (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)) | |
| cost-diff | 0 | #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64))) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) | |
| cost-diff | 0 | (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) | |
| cost-diff | 0 | (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) | |
| cost-diff | 0 | #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 20 | 122 |
| 0 | 26 | 122 |
| 1 | 51 | 122 |
| 2 | 131 | 122 |
| 3 | 307 | 122 |
| 4 | 531 | 122 |
| 5 | 656 | 122 |
| 6 | 665 | 122 |
| 0 | 665 | 108 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
(/.f64 #s(literal 1/2 binary64) im) |
#s(literal 1/2 binary64) |
im |
re |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64))) |
(*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)) |
(*.f64 (/.f64 re im) re) |
(/.f64 re im) |
re |
im |
#s(literal 1/2 binary64) |
| Outputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) |
(*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
(/.f64 #s(literal 1/2 binary64) im) |
#s(literal 1/2 binary64) |
im |
re |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) |
(*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)) |
(*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) |
(*.f64 (/.f64 re im) re) |
(/.f64 re im) |
re |
im |
#s(literal 1/2 binary64) |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)) | |
| accuracy | 0.15234375 | (*.f64 (/.f64 re im) re) | |
| accuracy | 0.24891111047018818 | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) | |
| accuracy | 61.55891673594043 | #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64))) | |
| accuracy | 0.15234375 | (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) | |
| accuracy | 0.2265625 | (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) | |
| accuracy | 0.24891111047018818 | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) | |
| accuracy | 61.55891673594043 | #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) |
| 31.0ms | 256× | 0 | valid |
Compiled 72 to 15 computations (79.2% saved)
ival-mult: 11.0ms (51.8% of total)ival-hypot: 5.0ms (23.5% of total)ival-div: 3.0ms (14.1% of total)ival-add: 1.0ms (4.7% of total)ival-true: 0.0ms (0% of total)adjust: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64))) |
(*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)) |
(*.f64 (/.f64 re im) re) |
| Outputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(* 1/2 (/ (pow re 2) im)) |
(* 1/2 (/ re im)) |
(/ (pow re 2) im) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(* -1 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | re | @ | inf | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ 1/2 im) re) re) (* (/ 1/2 im) re) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ re im) re) 1/2) (* (/ re im) re)) |
| 1.0ms | re | @ | -inf | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ 1/2 im) re) re) (* (/ 1/2 im) re) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ re im) re) 1/2) (* (/ re im) re)) |
| 1.0ms | im | @ | -inf | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ 1/2 im) re) re) (* (/ 1/2 im) re) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ re im) re) 1/2) (* (/ re im) re)) |
| 1.0ms | im | @ | inf | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ 1/2 im) re) re) (* (/ 1/2 im) re) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ re im) re) 1/2) (* (/ re im) re)) |
| 1.0ms | re | @ | 0 | ((sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ 1/2 im) re) re) (* (/ 1/2 im) re) (sqrt (+ (* re re) (* im im))) (+ (* (/ 1/2 im) (* re re)) im) (* (* (/ re im) re) 1/2) (* (/ re im) re)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 112 | 451 |
| 1 | 332 | 451 |
| 2 | 1346 | 431 |
| 3 | 6754 | 431 |
| 0 | 8616 | 396 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(* 1/2 (/ (pow re 2) im)) |
(* 1/2 (/ re im)) |
(/ (pow re 2) im) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(* -1 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
| Outputs |
|---|
im |
(+ im (* 1/2 (/ (pow re 2) im))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(+ im (* (pow re 2) (+ (* -1/8 (/ (pow re 2) (pow im 3))) (* 1/2 (/ 1 im))))) |
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 (*.f64 re re) im) im) #s(literal -1/8 binary64) #s(literal 1/2 binary64)) im) (*.f64 re re) im) |
(+ im (* (pow re 2) (+ (* (pow re 2) (- (* 1/16 (/ (pow re 2) (pow im 5))) (* 1/8 (/ 1 (pow im 3))))) (* 1/2 (/ 1 im))))) |
(fma.f64 (pow.f64 re #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) re) (/.f64 re (pow.f64 im #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 3 binary64)))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(* 1/2 (/ (pow re 2) im)) |
(*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)) |
(* 1/2 (/ re im)) |
(*.f64 (/.f64 re im) #s(literal 1/2 binary64)) |
(/ (pow re 2) im) |
(/.f64 (*.f64 re re) im) |
re |
(* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2))))) |
(fma.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) re) im) (/.f64 im (*.f64 re re)) re) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 im re) #s(literal 1/2 binary64)) re) im #s(literal 1 binary64))) re) |
(* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(*.f64 (fma.f64 (pow.f64 im #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 re #s(literal 6 binary64))) (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 im re) #s(literal 1/2 binary64)) re) im #s(literal 1 binary64)))) re) |
(* (pow re 2) (+ (* 1/2 (/ 1 im)) (/ im (pow re 2)))) |
(*.f64 (*.f64 (-.f64 (/.f64 im (*.f64 re re)) (/.f64 #s(literal -1/2 binary64) im)) re) re) |
(* -1 re) |
(neg.f64 re) |
(* -1 (* re (+ 1 (* 1/2 (/ (pow im 2) (pow re 2)))))) |
(*.f64 (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64)) re) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (* 1/2 (/ (pow im 2) (pow re 2))))))) |
(*.f64 (fma.f64 (/.f64 (pow.f64 im #s(literal 4 binary64)) (pow.f64 re #s(literal 4 binary64))) #s(literal 1/8 binary64) (fma.f64 (/.f64 #s(literal -1/2 binary64) re) (/.f64 (*.f64 im im) re) #s(literal -1 binary64))) re) |
(* -1 (* re (+ 1 (+ (* -1/8 (/ (pow im 4) (pow re 4))) (+ (* 1/16 (/ (pow im 6) (pow re 6))) (* 1/2 (/ (pow im 2) (pow re 2)))))))) |
(*.f64 (neg.f64 re) (fma.f64 (pow.f64 im #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 re #s(literal 6 binary64))) (fma.f64 (pow.f64 im #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 4 binary64))) (fma.f64 (/.f64 (*.f64 (/.f64 im re) #s(literal 1/2 binary64)) re) im #s(literal 1 binary64))))) |
(+ re (* 1/2 (/ (pow im 2) re))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) re) (*.f64 im im) re) |
(+ re (* (pow im 2) (+ (* -1/8 (/ (pow im 2) (pow re 3))) (* 1/2 (/ 1 re))))) |
(fma.f64 (/.f64 (fma.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) re) re) (*.f64 im im) #s(literal 1/2 binary64)) re) (*.f64 im im) re) |
(+ re (* (pow im 2) (+ (* (pow im 2) (- (* 1/16 (/ (pow im 2) (pow re 5))) (* 1/8 (/ 1 (pow re 3))))) (* 1/2 (/ 1 re))))) |
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) im) (/.f64 im (pow.f64 re #s(literal 5 binary64))) (/.f64 #s(literal -1/8 binary64) (pow.f64 re #s(literal 3 binary64)))) (*.f64 im im) (/.f64 #s(literal 1/2 binary64) re)) (*.f64 im im) re) |
(/ (+ (* 1/2 (pow re 2)) (pow im 2)) im) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2))))) |
(fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(fma.f64 (*.f64 #s(literal -1/8 binary64) im) (/.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(fma.f64 (fma.f64 (pow.f64 re #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 im #s(literal 6 binary64))) (fma.f64 (pow.f64 re #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 4 binary64))) #s(literal 1 binary64))) im (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64))) |
(* -1 im) |
(neg.f64 im) |
(* -1 (* im (+ 1 (* 1/2 (/ (pow re 2) (pow im 2)))))) |
(fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 re re) im) (neg.f64 im)) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (* 1/2 (/ (pow re 2) (pow im 2))))))) |
(neg.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) im) (/.f64 (pow.f64 re #s(literal 4 binary64)) (pow.f64 im #s(literal 4 binary64))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im))) |
(* -1 (* im (+ 1 (+ (* -1/8 (/ (pow re 4) (pow im 4))) (+ (* 1/16 (/ (pow re 6) (pow im 6))) (* 1/2 (/ (pow re 2) (pow im 2)))))))) |
(fma.f64 (fma.f64 (pow.f64 re #s(literal 6 binary64)) (/.f64 #s(literal 1/16 binary64) (pow.f64 im #s(literal 6 binary64))) (fma.f64 (pow.f64 re #s(literal 4 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 im #s(literal 4 binary64))) #s(literal 1 binary64))) (neg.f64 im) (*.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 re re) im))) |
(* -1 (* im (- (* -1/2 (/ (pow re 2) (pow im 2))) 1))) |
(neg.f64 (fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 re re) im) (neg.f64 im))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 20 | 110 |
| 0 | 26 | 110 |
| 1 | 83 | 110 |
| 0 | 601 | 96 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re)) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64))) |
(*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)) |
(*.f64 (/.f64 re im) re) |
| Outputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (neg.f64 re)) (neg.f64 re)) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (fabs.f64 re)) (fabs.f64 re)) |
(*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) |
(*.f64 (neg.f64 re) (*.f64 (neg.f64 re) (/.f64 #s(literal 1/2 binary64) im))) |
(*.f64 (fabs.f64 re) (*.f64 (fabs.f64 re) (/.f64 #s(literal 1/2 binary64) im))) |
(*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)) |
(*.f64 (/.f64 re im) (*.f64 #s(literal 1/2 binary64) re)) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re)) |
(*.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 re im) re)) |
(*.f64 (*.f64 re re) (/.f64 #s(literal 1/2 binary64) im)) |
(*.f64 re (*.f64 (/.f64 re im) #s(literal 1/2 binary64))) |
(*.f64 re (*.f64 (/.f64 #s(literal 1/2 binary64) im) re)) |
(/.f64 (*.f64 #s(literal -1/2 binary64) (*.f64 re re)) (neg.f64 im)) |
(/.f64 (*.f64 (neg.f64 re) (*.f64 #s(literal 1/2 binary64) re)) (neg.f64 im)) |
(/.f64 (*.f64 (*.f64 re re) #s(literal -1/2 binary64)) (neg.f64 im)) |
(/.f64 (*.f64 re (*.f64 #s(literal 1/2 binary64) re)) im) |
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 re re))) (neg.f64 im)) |
(/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 re re)) im) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) re) |
(*.f64 #s(literal 1/2 binary64) (/.f64 re im)) |
(*.f64 re (/.f64 #s(literal 1/2 binary64) im)) |
(/.f64 (*.f64 #s(literal -1/2 binary64) re) (neg.f64 im)) |
(/.f64 (*.f64 re #s(literal -1/2 binary64)) (neg.f64 im)) |
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) re)) (neg.f64 im)) |
(/.f64 (*.f64 #s(literal 1/2 binary64) re) im) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)))) |
#s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im))) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (neg.f64 re)) (neg.f64 re)) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) (fabs.f64 re)) (fabs.f64 re)) |
(*.f64 (*.f64 #s(literal 1/2 binary64) re) (/.f64 re im)) |
(*.f64 (neg.f64 re) (*.f64 (neg.f64 re) (/.f64 #s(literal 1/2 binary64) im))) |
(*.f64 (fabs.f64 re) (*.f64 (fabs.f64 re) (/.f64 #s(literal 1/2 binary64) im))) |
(*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)) |
(*.f64 (/.f64 re im) (*.f64 #s(literal 1/2 binary64) re)) |
(*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re) |
(*.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re)) |
(*.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 re im) re)) |
(*.f64 (*.f64 re re) (/.f64 #s(literal 1/2 binary64) im)) |
(*.f64 re (*.f64 (/.f64 re im) #s(literal 1/2 binary64))) |
(*.f64 re (*.f64 (/.f64 #s(literal 1/2 binary64) im) re)) |
(/.f64 (*.f64 #s(literal -1/2 binary64) (*.f64 re re)) (neg.f64 im)) |
(/.f64 (*.f64 (neg.f64 re) (*.f64 #s(literal 1/2 binary64) re)) (neg.f64 im)) |
(/.f64 (*.f64 (*.f64 re re) #s(literal -1/2 binary64)) (neg.f64 im)) |
(/.f64 (*.f64 re (*.f64 #s(literal 1/2 binary64) re)) im) |
(/.f64 (neg.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 re re))) (neg.f64 im)) |
(/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 re re)) im) |
(*.f64 (neg.f64 re) (/.f64 (neg.f64 re) im)) |
(*.f64 (fabs.f64 re) (/.f64 (fabs.f64 re) im)) |
(*.f64 (/.f64 re im) re) |
(*.f64 re (/.f64 re im)) |
(/.f64 (*.f64 (neg.f64 re) re) (neg.f64 im)) |
(/.f64 (*.f64 re (neg.f64 re)) (neg.f64 im)) |
(/.f64 (neg.f64 (*.f64 re re)) (neg.f64 im)) |
(/.f64 (*.f64 re re) im) |
Compiled 1 659 to 268 computations (83.8% saved)
7 alts after pruning (0 fresh and 7 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 61 | 0 | 61 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 5 | 5 |
| Total | 61 | 7 | 68 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 re im) |
| ✓ | 62.7% | (sqrt.f64 (fma.f64 re re (*.f64 im im))) |
| ✓ | 62.2% | (sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
| ✓ | 99.6% | #s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
| ✓ | 1.8% | #s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
| ✓ | 3.8% | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
| ✓ | 3.8% | #s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
Compiled 255 to 107 computations (58% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(hypot.f64 re im) |
| Outputs |
|---|
(hypot.f64 re im) |
6 calls:
| 5.0ms | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 3.0ms | re |
| 3.0ms | im |
| 3.0ms | (*.f64 im im) |
| 3.0ms | (+.f64 (*.f64 re re) (*.f64 im im)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | (*.f64 im im) |
| 100.0% | 1 | (*.f64 re re) |
| 100.0% | 1 | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 100.0% | 1 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 100.0% | 1 | re |
| 100.0% | 1 | im |
Compiled 23 to 21 computations (8.7% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (/.f64 #s(literal 1/2 binary64) im) (*.f64 re re) im)) |
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| Outputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
6 calls:
| 3.0ms | re |
| 3.0ms | im |
| 3.0ms | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 3.0ms | (*.f64 im im) |
| 3.0ms | (+.f64 (*.f64 re re) (*.f64 im im)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.6% | 1 | (*.f64 im im) |
| 99.6% | 1 | (*.f64 re re) |
| 99.6% | 1 | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 99.6% | 1 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 99.6% | 1 | re |
| 99.6% | 1 | im |
Compiled 23 to 21 computations (8.7% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
| Outputs |
|---|
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
6 calls:
| 24.0ms | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 2.0ms | im |
| 2.0ms | re |
| 2.0ms | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 2.0ms | (*.f64 im im) |
| Accuracy | Segments | Branch |
|---|---|---|
| 62.7% | 1 | (*.f64 im im) |
| 62.7% | 1 | (*.f64 re re) |
| 62.7% | 1 | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 62.7% | 1 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 62.7% | 1 | re |
| 62.7% | 1 | im |
Compiled 23 to 21 computations (8.7% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (*.f64 (/.f64 re im) re) #s(literal 1/2 binary64)))) |
#s(approx (sqrt (+ (* re re) (* im im))) #s(approx (+ (* (/ 1/2 im) (* re re)) im) (*.f64 (/.f64 (*.f64 re re) im) #s(literal 1/2 binary64)))) |
| Outputs |
|---|
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
6 calls:
| 2.0ms | im |
| 2.0ms | re |
| 2.0ms | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 2.0ms | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 2.0ms | (*.f64 im im) |
| Accuracy | Segments | Branch |
|---|---|---|
| 62.2% | 1 | (*.f64 re re) |
| 62.2% | 1 | re |
| 62.2% | 1 | (*.f64 im im) |
| 62.2% | 1 | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 62.2% | 1 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 62.2% | 1 | im |
Compiled 23 to 21 computations (8.7% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
| Outputs |
|---|
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
6 calls:
| 1.0ms | im |
| 1.0ms | (*.f64 im im) |
| 1.0ms | re |
| 1.0ms | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 1.0ms | (+.f64 (*.f64 re re) (*.f64 im im)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 1.8% | 1 | (*.f64 re re) |
| 1.8% | 1 | re |
| 1.8% | 1 | (*.f64 im im) |
| 1.8% | 1 | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 1.8% | 1 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 1.8% | 1 | im |
Compiled 23 to 21 computations (8.7% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 50 |
| 1 | 34 | 50 |
| 2 | 74 | 50 |
| 3 | 131 | 50 |
| 4 | 168 | 50 |
| 1× | saturated |
| Inputs |
|---|
(hypot.f64 re im) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
| Outputs |
|---|
(hypot.f64 re im) |
#s(approx (sqrt (+ (* re re) (* im im))) (fma.f64 (*.f64 (/.f64 #s(literal 1/2 binary64) im) re) re im)) |
(sqrt.f64 (fma.f64 re re (*.f64 im im))) |
(sqrt.f64 #s(approx (+ (* re re) (* im im)) (*.f64 im im))) |
#s(approx (sqrt (+ (* re re) (* im im))) (neg.f64 re)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 104 | 441 |
| 1 | 323 | 441 |
| 2 | 1323 | 435 |
| 3 | 6816 | 435 |
| 0 | 8219 | 396 |
| 0 | 6 | 21 |
| 0 | 10 | 21 |
| 1 | 39 | 21 |
| 0 | 346 | 15 |
| 0 | 19 | 70 |
| 0 | 28 | 70 |
| 1 | 76 | 70 |
| 0 | 566 | 70 |
| 1× | done |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
Compiled 50 to 19 computations (62% saved)
(sort re im)
(abs re)
(abs im)
Compiled 134 to 68 computations (49.3% saved)
Loading profile data...