
Time bar (total: 3.6s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 25% | 75% | 0% | 0% | 0% | 0 |
| 100% | 25% | 0% | 75% | 0% | 0% | 0% | 1 |
Compiled 6 to 5 computations (16.7% saved)
| 1.1s | 8 256× | 0 | valid |
ival-acosh: 831.0ms (95.7% of total)ival->=: 24.0ms (2.8% of total)exact: 7.0ms (0.8% of total)ival-assert: 4.0ms (0.5% of total)adjust: 3.0ms (0.3% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 121 | 0 | - | 0 | - | (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))) |
| 0 | 0 | - | 0 | - | (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
| 0 | 0 | - | 0 | - | (*.f64 x x) |
| 0 | 0 | - | 0 | - | (-.f64 (*.f64 x x) #s(literal 1 binary64)) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))) | oflow-rescue | 121 | 0 |
| ↳ | (-.f64 (*.f64 x x) #s(literal 1 binary64)) | overflow | 121 | |
| ↳ | (*.f64 x x) | overflow | 121 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 121 | 0 |
| - | 0 | 135 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 121 | 0 | 0 |
| - | 0 | 0 | 135 |
| number | freq |
|---|---|
| 0 | 135 |
| 1 | 121 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 48.0ms | 512× | 0 | valid |
Compiled 79 to 25 computations (68.4% saved)
ival-add: 13.0ms (35.9% of total)ival-log: 12.0ms (33.1% of total)ival-mult: 4.0ms (11% of total)ival-sub: 3.0ms (8.3% of total)ival-sqrt: 3.0ms (8.3% 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)| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 7 |
| 0 | 7 | 9 |
| 0 | 12 | 9 |
| 1 | 22 | 9 |
| 2 | 49 | 9 |
| 3 | 121 | 9 |
| 4 | 383 | 9 |
| 5 | 2335 | 9 |
| 6 | 7889 | 9 |
| 0 | 8019 | 8 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
| Outputs |
|---|
(log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
(log.f64 (+.f64 (sqrt.f64 (fma.f64 x x #s(literal -1 binary64))) x)) |
Compiled 9 to 7 computations (22.2% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 54.2% | (log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
Compiled 9 to 7 computations (22.2% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))) | |
| cost-diff | 0 | (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) | |
| cost-diff | 0 | (log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) | |
| cost-diff | 1 | (-.f64 (*.f64 x x) #s(literal 1 binary64)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 33 |
| 0 | 12 | 33 |
| 1 | 22 | 33 |
| 2 | 49 | 33 |
| 3 | 121 | 33 |
| 4 | 383 | 33 |
| 5 | 2335 | 33 |
| 6 | 7889 | 33 |
| 0 | 8019 | 29 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
(+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) |
x |
(sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))) |
(-.f64 (*.f64 x x) #s(literal 1 binary64)) |
(*.f64 x x) |
#s(literal 1 binary64) |
| Outputs |
|---|
(log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
(log.f64 (+.f64 (sqrt.f64 (fma.f64 x x #s(literal -1 binary64))) x)) |
(+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) |
(+.f64 (sqrt.f64 (fma.f64 x x #s(literal -1 binary64))) x) |
x |
(sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))) |
(sqrt.f64 (fma.f64 x x #s(literal -1 binary64))) |
(-.f64 (*.f64 x x) #s(literal 1 binary64)) |
(fma.f64 x x #s(literal -1 binary64)) |
(*.f64 x x) |
#s(literal 1 binary64) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 x x) | |
| accuracy | 0.0 | (log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) | |
| accuracy | 0.0078125 | (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) | |
| accuracy | 28.138364931096433 | (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))) |
| 19.0ms | 256× | 0 | valid |
Compiled 35 to 9 computations (74.3% saved)
ival-log: 3.0ms (31.9% of total)ival-mult: 2.0ms (21.3% of total)ival-sqrt: 2.0ms (21.3% of total)ival-add: 1.0ms (10.6% of total)ival-sub: 1.0ms (10.6% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
(-.f64 (*.f64 x x) #s(literal 1 binary64)) |
(log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
(+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) |
(sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))) |
(*.f64 x x) |
| Outputs |
|---|
-1 |
(- (pow x 2) 1) |
(log (sqrt -1)) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(sqrt -1) |
(+ x (sqrt -1)) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1)))) |
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))) |
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1)))))) |
(pow x 2) |
(* (pow x 2) (- 1 (/ 1 (pow x 2)))) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(* 2 x) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
x |
(* x (- 1 (* 1/2 (/ 1 (pow x 2))))) |
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(+ (log -1/2) (log (/ -1 x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(/ 1/2 x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
(* -1 x) |
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2)))))) |
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))) |
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | 0 | ((- (* x x) 1) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (sqrt (- (* x x) 1)) (* x x)) |
| 1.0ms | x | @ | -inf | ((- (* x x) 1) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (sqrt (- (* x x) 1)) (* x x)) |
| 1.0ms | x | @ | inf | ((- (* x x) 1) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (sqrt (- (* x x) 1)) (* x x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 150 | 525 |
| 1 | 470 | 499 |
| 2 | 1771 | 482 |
| 0 | 7736 | 463 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
-1 |
(- (pow x 2) 1) |
(log (sqrt -1)) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(sqrt -1) |
(+ x (sqrt -1)) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1)))) |
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))) |
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1)))))) |
(pow x 2) |
(* (pow x 2) (- 1 (/ 1 (pow x 2)))) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(* 2 x) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
x |
(* x (- 1 (* 1/2 (/ 1 (pow x 2))))) |
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(+ (log -1/2) (log (/ -1 x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(/ 1/2 x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
(* -1 x) |
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2)))))) |
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))) |
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))) |
| Outputs |
|---|
-1 |
#s(literal -1 binary64) |
(- (pow x 2) 1) |
(fma.f64 x x #s(literal -1 binary64)) |
(log (sqrt -1)) |
(log.f64 (sqrt.f64 #s(literal -1 binary64))) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) (log.f64 (sqrt.f64 #s(literal -1 binary64)))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(fma.f64 (/.f64 (fma.f64 #s(literal 1/6 binary64) (*.f64 x x) #s(literal 1 binary64)) (sqrt.f64 #s(literal -1 binary64))) x (log.f64 (sqrt.f64 #s(literal -1 binary64)))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (*.f64 #s(literal 3/40 binary64) x) (/.f64 x (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (/.f64 #s(literal 1/6 binary64) (sqrt.f64 #s(literal -1 binary64)))) (+.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) (log.f64 (sqrt.f64 #s(literal -1 binary64))))) |
(sqrt -1) |
(sqrt.f64 #s(literal -1 binary64)) |
(+ x (sqrt -1)) |
(+.f64 (sqrt.f64 #s(literal -1 binary64)) x) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(fma.f64 (fma.f64 #s(literal 1/2 binary64) (/.f64 x (sqrt.f64 #s(literal -1 binary64))) #s(literal 1 binary64)) x (sqrt.f64 #s(literal -1 binary64))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(fma.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) (*.f64 x x) #s(literal 1/2 binary64)) (sqrt.f64 #s(literal -1 binary64))) x #s(literal 1 binary64)) x (sqrt.f64 #s(literal -1 binary64))) |
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1)))) |
(fma.f64 (*.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) x) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))) |
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))) |
(fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) (*.f64 x x) #s(literal 1/2 binary64)) (sqrt.f64 #s(literal -1 binary64))) (*.f64 x x) (sqrt.f64 #s(literal -1 binary64))) |
(+ (sqrt -1) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1)))))) |
(fma.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (/.f64 x (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (/.f64 #s(literal 1/8 binary64) (sqrt.f64 #s(literal -1 binary64)))) (fma.f64 (*.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) x) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64)))) |
(pow x 2) |
(*.f64 x x) |
(* (pow x 2) (- 1 (/ 1 (pow x 2)))) |
(*.f64 (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (*.f64 x x))) x) x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(-.f64 (-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 #s(literal 3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f64 (-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 (-.f64 (/.f64 #s(literal 5/96 binary64) (*.f64 x x)) #s(literal -3/32 binary64)) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(*.f64 (-.f64 #s(literal 2 binary64) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) x) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(*.f64 (-.f64 (-.f64 #s(literal 2 binary64) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) x) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal -1/16 binary64) (*.f64 x x)) #s(literal 1/8 binary64)) (pow.f64 x #s(literal 4 binary64))) (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal 2 binary64))) x) |
x |
(* x (- 1 (* 1/2 (/ 1 (pow x 2))))) |
(fma.f64 (/.f64 #s(literal -1/2 binary64) (*.f64 x x)) x x) |
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(fma.f64 (/.f64 x x) (/.f64 (-.f64 (/.f64 #s(literal -1/8 binary64) (*.f64 x x)) #s(literal 1/2 binary64)) x) x) |
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(fma.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal -1/16 binary64) (*.f64 x x)) #s(literal 1/8 binary64)) (pow.f64 x #s(literal 4 binary64))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) x x) |
(+ (log -1/2) (log (/ -1 x))) |
(+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(-.f64 (-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) (/.f64 #s(literal -3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(-.f64 (-.f64 (-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) (/.f64 #s(literal -3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal -5/96 binary64) (pow.f64 x #s(literal 6 binary64)))) |
(/ 1/2 x) |
(/.f64 #s(literal 1/2 binary64) x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(/.f64 (-.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 x x)) #s(literal -1/2 binary64)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(/.f64 (+.f64 (/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/16 binary64) (*.f64 x x)) #s(literal -1/8 binary64)) x) x) #s(literal 1/2 binary64)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal -5/128 binary64) (*.f64 x x)) #s(literal 1/16 binary64)) (pow.f64 x #s(literal 4 binary64))) (-.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 x x)) #s(literal -1/2 binary64))) (neg.f64 x)) |
(* -1 x) |
(neg.f64 x) |
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2)))))) |
(*.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) x) |
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))) |
(*.f64 (-.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal -1 binary64)) (/.f64 #s(literal -1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) x) |
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))) |
(*.f64 (+.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/16 binary64) (*.f64 x x)) #s(literal -1/8 binary64)) (pow.f64 x #s(literal 4 binary64))) (+.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal -1 binary64))) x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 31 |
| 0 | 12 | 18 |
| 1 | 53 | 18 |
| 0 | 400 | 17 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(-.f64 (*.f64 x x) #s(literal 1 binary64)) |
(log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
(+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) |
(sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))) |
(*.f64 x x) |
| Outputs |
|---|
(*.f64 (+.f64 (neg.f64 x) #s(literal 1 binary64)) (-.f64 (neg.f64 x) #s(literal 1 binary64))) |
(*.f64 (+.f64 (fabs.f64 x) #s(literal 1 binary64)) (-.f64 (fabs.f64 x) #s(literal 1 binary64))) |
(*.f64 (neg.f64 (sinh.f64 (acosh.f64 x))) (neg.f64 (sinh.f64 (acosh.f64 x)))) |
(*.f64 (fabs.f64 (sinh.f64 (acosh.f64 x))) (fabs.f64 (sinh.f64 (acosh.f64 x)))) |
(*.f64 (-.f64 x #s(literal 1 binary64)) (-.f64 x #s(literal -1 binary64))) |
(*.f64 (-.f64 x #s(literal -1 binary64)) (-.f64 x #s(literal 1 binary64))) |
(*.f64 (sinh.f64 (acosh.f64 x)) (sinh.f64 (acosh.f64 x))) |
(pow.f64 (*.f64 (fma.f64 x x #s(literal -1 binary64)) (fma.f64 x x #s(literal -1 binary64))) #s(literal 1/2 binary64)) |
(pow.f64 (sinh.f64 (acosh.f64 x)) #s(literal 2 binary64)) |
(pow.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal 1 binary64)) |
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64))) (neg.f64 (fma.f64 x x #s(literal 1 binary64)))) |
(/.f64 (neg.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) #s(literal 1 binary64))) (neg.f64 (+.f64 (fma.f64 x x #s(literal 1 binary64)) (pow.f64 x #s(literal 4 binary64))))) |
(/.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64)) (fma.f64 x x #s(literal 1 binary64))) |
(/.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) #s(literal 1 binary64)) (+.f64 (fma.f64 x x #s(literal 1 binary64)) (pow.f64 x #s(literal 4 binary64)))) |
(fma.f64 (*.f64 (neg.f64 x) #s(literal 1 binary64)) (*.f64 (neg.f64 x) #s(literal 1 binary64)) #s(literal -1 binary64)) |
(fma.f64 (*.f64 (fabs.f64 x) #s(literal 1 binary64)) (*.f64 (fabs.f64 x) #s(literal 1 binary64)) #s(literal -1 binary64)) |
(fma.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)) #s(literal -1 binary64)) |
(fma.f64 (*.f64 x #s(literal 1 binary64)) (*.f64 x #s(literal 1 binary64)) #s(literal -1 binary64)) |
(fma.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)) #s(literal -1 binary64)) |
(fma.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)) #s(literal -1 binary64)) |
(fma.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)) #s(literal -1 binary64)) |
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) #s(literal 1 binary64)) #s(literal -1 binary64)) |
(fma.f64 (neg.f64 x) (neg.f64 x) #s(literal -1 binary64)) |
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 1 binary64)) #s(literal -1 binary64)) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) #s(literal -1 binary64)) |
(fma.f64 #s(literal 1 binary64) (*.f64 x x) #s(literal -1 binary64)) |
(fma.f64 (*.f64 x x) #s(literal 1 binary64) #s(literal -1 binary64)) |
(fma.f64 x (*.f64 x #s(literal 1 binary64)) #s(literal -1 binary64)) |
(fma.f64 x x #s(literal -1 binary64)) |
(expm1.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
(sqrt.f64 (*.f64 (fma.f64 x x #s(literal -1 binary64)) (fma.f64 x x #s(literal -1 binary64)))) |
(-.f64 (/.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 x x #s(literal 1 binary64))) (/.f64 #s(literal 1 binary64) (fma.f64 x x #s(literal 1 binary64)))) |
(-.f64 (/.f64 (pow.f64 x #s(literal 6 binary64)) (+.f64 (fma.f64 x x #s(literal 1 binary64)) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1 binary64) (+.f64 (fma.f64 x x #s(literal 1 binary64)) (pow.f64 x #s(literal 4 binary64))))) |
(-.f64 (*.f64 x x) #s(literal 1 binary64)) |
(+.f64 (*.f64 x x) #s(literal -1 binary64)) |
(acosh.f64 x) |
(-.f64 (log.f64 (-.f64 (*.f64 x x) (fma.f64 x x #s(literal -1 binary64)))) (log.f64 (-.f64 x (sinh.f64 (acosh.f64 x))))) |
(-.f64 (log.f64 (+.f64 (pow.f64 (sinh.f64 (acosh.f64 x)) #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64)))) (log.f64 (fma.f64 (sinh.f64 (acosh.f64 x)) (-.f64 (sinh.f64 (acosh.f64 x)) x) (*.f64 x x)))) |
(log.f64 (+.f64 (sinh.f64 (acosh.f64 x)) x)) |
(/.f64 (-.f64 (fma.f64 x x #s(literal -1 binary64)) (*.f64 x x)) (-.f64 (sinh.f64 (acosh.f64 x)) x)) |
(/.f64 (neg.f64 (-.f64 (*.f64 x x) (fma.f64 x x #s(literal -1 binary64)))) (neg.f64 (-.f64 x (sinh.f64 (acosh.f64 x))))) |
(/.f64 (neg.f64 (+.f64 (pow.f64 (sinh.f64 (acosh.f64 x)) #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64)))) (neg.f64 (fma.f64 (sinh.f64 (acosh.f64 x)) (-.f64 (sinh.f64 (acosh.f64 x)) x) (*.f64 x x)))) |
(/.f64 (-.f64 (*.f64 x x) (fma.f64 x x #s(literal -1 binary64))) (-.f64 x (sinh.f64 (acosh.f64 x)))) |
(/.f64 (+.f64 (pow.f64 (sinh.f64 (acosh.f64 x)) #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (+.f64 (fma.f64 x x #s(literal -1 binary64)) (-.f64 (*.f64 x x) (*.f64 (sinh.f64 (acosh.f64 x)) x)))) |
(/.f64 (+.f64 (pow.f64 (sinh.f64 (acosh.f64 x)) #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 (sinh.f64 (acosh.f64 x)) (-.f64 (sinh.f64 (acosh.f64 x)) x) (*.f64 x x))) |
(fma.f64 (pow.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal 1/4 binary64)) x) |
(fma.f64 (sqrt.f64 (-.f64 x #s(literal -1 binary64))) (sqrt.f64 (-.f64 x #s(literal 1 binary64))) x) |
(fma.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1/2 binary64)) (pow.f64 (-.f64 x #s(literal 1 binary64)) #s(literal 1/2 binary64)) x) |
(-.f64 (/.f64 (*.f64 x x) (-.f64 x (sinh.f64 (acosh.f64 x)))) (/.f64 (fma.f64 x x #s(literal -1 binary64)) (-.f64 x (sinh.f64 (acosh.f64 x))))) |
(+.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (sinh.f64 (acosh.f64 x)) (-.f64 (sinh.f64 (acosh.f64 x)) x) (*.f64 x x))) (/.f64 (pow.f64 (sinh.f64 (acosh.f64 x)) #s(literal 3 binary64)) (fma.f64 (sinh.f64 (acosh.f64 x)) (-.f64 (sinh.f64 (acosh.f64 x)) x) (*.f64 x x)))) |
(+.f64 (sinh.f64 (acosh.f64 x)) x) |
(+.f64 x (sinh.f64 (acosh.f64 x))) |
(*.f64 (pow.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal 1/4 binary64)) (pow.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal 1/4 binary64))) |
(*.f64 (sqrt.f64 (-.f64 x #s(literal -1 binary64))) (sqrt.f64 (-.f64 x #s(literal 1 binary64)))) |
(*.f64 (pow.f64 (-.f64 x #s(literal -1 binary64)) #s(literal 1/2 binary64)) (pow.f64 (-.f64 x #s(literal 1 binary64)) #s(literal 1/2 binary64))) |
(pow.f64 (fma.f64 x x #s(literal -1 binary64)) #s(literal 1/2 binary64)) |
(/.f64 (sqrt.f64 (-.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1 binary64))) (sqrt.f64 (fma.f64 x x #s(literal 1 binary64)))) |
(/.f64 (sqrt.f64 (-.f64 (pow.f64 x #s(literal 6 binary64)) #s(literal 1 binary64))) (sqrt.f64 (+.f64 (fma.f64 x x #s(literal 1 binary64)) (pow.f64 x #s(literal 4 binary64))))) |
(/.f64 (-.f64 (exp.f64 (acosh.f64 x)) (exp.f64 (neg.f64 (acosh.f64 x)))) #s(literal 2 binary64)) |
(sinh.f64 (acosh.f64 (neg.f64 x))) |
(sinh.f64 (acosh.f64 (fabs.f64 x))) |
(sinh.f64 (acosh.f64 x)) |
(sqrt.f64 (fma.f64 x x #s(literal -1 binary64))) |
(exp.f64 (*.f64 (log.f64 (fma.f64 x x #s(literal -1 binary64))) #s(literal 1/2 binary64))) |
(*.f64 (*.f64 (neg.f64 x) #s(literal 1 binary64)) (*.f64 (neg.f64 x) #s(literal 1 binary64))) |
(*.f64 (*.f64 (fabs.f64 x) #s(literal 1 binary64)) (*.f64 (fabs.f64 x) #s(literal 1 binary64))) |
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64))) |
(*.f64 (*.f64 x #s(literal 1 binary64)) (*.f64 x #s(literal 1 binary64))) |
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x))) |
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x))) |
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) #s(literal 1 binary64))) |
(*.f64 (neg.f64 x) (neg.f64 x)) |
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 1 binary64))) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(*.f64 #s(literal 1 binary64) (*.f64 x x)) |
(*.f64 (*.f64 x x) #s(literal 1 binary64)) |
(*.f64 x (*.f64 x #s(literal 1 binary64))) |
(*.f64 x x) |
(pow.f64 (neg.f64 x) #s(literal 2 binary64)) |
(pow.f64 (fabs.f64 x) #s(literal 2 binary64)) |
(pow.f64 x #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 x) x)) |
(neg.f64 (*.f64 x (neg.f64 x))) |
(fabs.f64 (*.f64 x x)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
Compiled 1 956 to 593 computations (69.7% saved)
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 122 | 2 | 124 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 123 | 2 | 125 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 99.5% | (log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
| ▶ | 99.7% | (acosh.f64 x) |
Compiled 15 to 12 computations (20% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 #s(literal 2 binary64) x) | |
| cost-diff | 0 | #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) | |
| cost-diff | 0 | (log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) | |
| cost-diff | 0 | (acosh.f64 x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 33 |
| 0 | 14 | 33 |
| 1 | 27 | 33 |
| 2 | 59 | 33 |
| 3 | 149 | 33 |
| 4 | 562 | 33 |
| 5 | 3969 | 33 |
| 0 | 8175 | 31 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(acosh.f64 x) |
x |
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
#s(literal 2 binary64) |
x |
| Outputs |
|---|
(acosh.f64 x) |
x |
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
#s(literal 2 binary64) |
x |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 #s(literal 2 binary64) x) | |
| accuracy | 0.0 | (log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) | |
| accuracy | 0.37960138091334755 | #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) | |
| accuracy | 0.2109375 | (acosh.f64 x) |
| 20.0ms | 256× | 0 | valid |
Compiled 27 to 12 computations (55.6% saved)
ival-acosh: 4.0ms (28.1% of total)ival-mult: 3.0ms (21.1% of total)ival-log: 2.0ms (14.1% of total)ival-sqrt: 2.0ms (14.1% of total)ival-add: 1.0ms (7% of total)ival-sub: 1.0ms (7% 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 |
|---|
(acosh.f64 x) |
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
| Outputs |
|---|
(log (sqrt -1)) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(sqrt -1) |
(+ x (sqrt -1)) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(* 2 x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(+ (log -1/2) (log (/ -1 x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(/ 1/2 x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x)) |
| 1.0ms | x | @ | inf | ((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x)) |
| 1.0ms | x | @ | 0 | ((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 124 | 339 |
| 1 | 386 | 321 |
| 2 | 1414 | 310 |
| 0 | 7718 | 301 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(log (sqrt -1)) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(sqrt -1) |
(+ x (sqrt -1)) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(* 2 x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(+ (log -1/2) (log (/ -1 x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(/ 1/2 x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
| Outputs |
|---|
(log (sqrt -1)) |
(log.f64 (sqrt.f64 #s(literal -1 binary64))) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) (log.f64 (sqrt.f64 #s(literal -1 binary64)))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(fma.f64 (/.f64 (fma.f64 #s(literal 1/6 binary64) (*.f64 x x) #s(literal 1 binary64)) (sqrt.f64 #s(literal -1 binary64))) x (log.f64 (sqrt.f64 #s(literal -1 binary64)))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (*.f64 #s(literal 3/40 binary64) x) (/.f64 x (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (/.f64 #s(literal 1/6 binary64) (sqrt.f64 #s(literal -1 binary64)))) (+.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) (log.f64 (sqrt.f64 #s(literal -1 binary64))))) |
(sqrt -1) |
(sqrt.f64 #s(literal -1 binary64)) |
(+ x (sqrt -1)) |
(+.f64 (sqrt.f64 #s(literal -1 binary64)) x) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(fma.f64 (fma.f64 #s(literal 1/2 binary64) (/.f64 x (sqrt.f64 #s(literal -1 binary64))) #s(literal 1 binary64)) x (sqrt.f64 #s(literal -1 binary64))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(fma.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) (*.f64 x x) #s(literal 1/2 binary64)) (sqrt.f64 #s(literal -1 binary64))) x #s(literal 1 binary64)) x (sqrt.f64 #s(literal -1 binary64))) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(-.f64 (-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 #s(literal 3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f64 (-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 (-.f64 (/.f64 #s(literal 5/96 binary64) (*.f64 x x)) #s(literal -3/32 binary64)) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(*.f64 (-.f64 #s(literal 2 binary64) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) x) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(*.f64 (-.f64 (-.f64 #s(literal 2 binary64) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) x) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal -1/16 binary64) (*.f64 x x)) #s(literal 1/8 binary64)) (pow.f64 x #s(literal 4 binary64))) (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal 2 binary64))) x) |
(+ (log -1/2) (log (/ -1 x))) |
(+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(-.f64 (-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) (/.f64 #s(literal -3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(-.f64 (-.f64 (-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) (/.f64 #s(literal -3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal -5/96 binary64) (pow.f64 x #s(literal 6 binary64)))) |
(/ 1/2 x) |
(/.f64 #s(literal 1/2 binary64) x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(/.f64 (-.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 x x)) #s(literal -1/2 binary64)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(/.f64 (+.f64 (/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/16 binary64) (*.f64 x x)) #s(literal -1/8 binary64)) x) x) #s(literal 1/2 binary64)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal -5/128 binary64) (*.f64 x x)) #s(literal 1/16 binary64)) (pow.f64 x #s(literal 4 binary64))) (-.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 x x)) #s(literal -1/2 binary64))) (neg.f64 x)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 30 |
| 0 | 14 | 24 |
| 1 | 57 | 24 |
| 0 | 421 | 24 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(acosh.f64 x) |
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
| Outputs |
|---|
(acosh.f64 x) |
(-.f64 (log.f64 (-.f64 (*.f64 x x) (fma.f64 x x #s(literal -1 binary64)))) (log.f64 (-.f64 x (sinh.f64 (acosh.f64 x))))) |
(-.f64 (log.f64 (+.f64 (pow.f64 (sinh.f64 (acosh.f64 x)) #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64)))) (log.f64 (fma.f64 (sinh.f64 (acosh.f64 x)) (-.f64 (sinh.f64 (acosh.f64 x)) x) (*.f64 x x)))) |
(log.f64 (+.f64 (sinh.f64 (acosh.f64 x)) x)) |
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 x #s(literal 2 binary64)) |
(/.f64 (-.f64 (*.f64 x x) (*.f64 x x)) (-.f64 x x)) |
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x (-.f64 (*.f64 x x) (*.f64 x x)))) |
(fma.f64 #s(literal 1 binary64) x (*.f64 #s(literal 1 binary64) x)) |
(fma.f64 x #s(literal 1 binary64) (*.f64 x #s(literal 1 binary64))) |
(+.f64 (*.f64 #s(literal 1 binary64) x) (*.f64 #s(literal 1 binary64) x)) |
(+.f64 (*.f64 x #s(literal 1 binary64)) (*.f64 x #s(literal 1 binary64))) |
(+.f64 x x) |
Compiled 689 to 194 computations (71.8% saved)
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 38 | 1 | 39 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 1 | 2 |
| Done | 0 | 0 | 0 |
| Total | 39 | 2 | 41 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 99.5% | (log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) |
| ✓ | 99.7% | (acosh.f64 x) |
Compiled 15 to 11 computations (26.7% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f64 x x) | |
| cost-diff | 0 | #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x)) | |
| cost-diff | 0 | (log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 29 |
| 0 | 11 | 29 |
| 1 | 23 | 29 |
| 2 | 52 | 29 |
| 3 | 130 | 29 |
| 4 | 431 | 29 |
| 5 | 2677 | 29 |
| 6 | 6902 | 29 |
| 0 | 8193 | 27 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x)) |
(+.f64 x x) |
x |
| Outputs |
|---|
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) |
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x)) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) |
(+.f64 x x) |
(*.f64 #s(literal 2 binary64) x) |
x |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 x x) | |
| accuracy | 0.0 | (log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) | |
| accuracy | 0.37960138091334755 | #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x)) |
| 19.0ms | 256× | 0 | valid |
Compiled 23 to 10 computations (56.5% saved)
ival-log: 3.0ms (29.2% of total)ival-add: 2.0ms (19.5% of total)ival-mult: 2.0ms (19.5% of total)ival-sqrt: 2.0ms (19.5% of total)ival-sub: 1.0ms (9.7% 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 |
|---|
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x)) |
(+.f64 x x) |
| Outputs |
|---|
(log (sqrt -1)) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(sqrt -1) |
(+ x (sqrt -1)) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(* 2 x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(+ (log -1/2) (log (/ -1 x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(/ 1/2 x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (+ x x)) |
| 1.0ms | x | @ | -inf | ((log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (+ x x)) |
| 0.0ms | x | @ | 0 | ((log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (+ x x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 124 | 339 |
| 1 | 386 | 321 |
| 2 | 1414 | 310 |
| 0 | 7718 | 301 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(log (sqrt -1)) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(sqrt -1) |
(+ x (sqrt -1)) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(* 2 x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(+ (log -1/2) (log (/ -1 x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(/ 1/2 x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
| Outputs |
|---|
(log (sqrt -1)) |
(log.f64 (sqrt.f64 #s(literal -1 binary64))) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) (log.f64 (sqrt.f64 #s(literal -1 binary64)))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(fma.f64 (/.f64 (fma.f64 #s(literal 1/6 binary64) (*.f64 x x) #s(literal 1 binary64)) (sqrt.f64 #s(literal -1 binary64))) x (log.f64 (sqrt.f64 #s(literal -1 binary64)))) |
(+ (log (sqrt -1)) (* x (+ (* (pow x 2) (- (* 3/40 (/ (pow x 2) (pow (sqrt -1) 5))) (* 1/6 (/ 1 (pow (sqrt -1) 3))))) (/ 1 (sqrt -1))))) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (*.f64 #s(literal 3/40 binary64) x) (/.f64 x (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (/.f64 #s(literal 1/6 binary64) (sqrt.f64 #s(literal -1 binary64)))) (+.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) (log.f64 (sqrt.f64 #s(literal -1 binary64))))) |
(sqrt -1) |
(sqrt.f64 #s(literal -1 binary64)) |
(+ x (sqrt -1)) |
(+.f64 (sqrt.f64 #s(literal -1 binary64)) x) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(fma.f64 (fma.f64 #s(literal 1/2 binary64) (/.f64 x (sqrt.f64 #s(literal -1 binary64))) #s(literal 1 binary64)) x (sqrt.f64 #s(literal -1 binary64))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(fma.f64 (fma.f64 (/.f64 (fma.f64 #s(literal 1/8 binary64) (*.f64 x x) #s(literal 1/2 binary64)) (sqrt.f64 #s(literal -1 binary64))) x #s(literal 1 binary64)) x (sqrt.f64 #s(literal -1 binary64))) |
(* 2 x) |
(*.f64 #s(literal 2 binary64) x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(-.f64 (-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 #s(literal 3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(- (+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 3/32 (* 5/96 (/ 1 (pow x 2)))) (pow x 4))))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f64 (-.f64 (+.f64 (log.f64 x) (log.f64 #s(literal 2 binary64))) (/.f64 (-.f64 (/.f64 #s(literal 5/96 binary64) (*.f64 x x)) #s(literal -3/32 binary64)) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/4 binary64) (*.f64 x x))) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(*.f64 (-.f64 #s(literal 2 binary64) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) x) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(*.f64 (-.f64 (-.f64 #s(literal 2 binary64) (/.f64 #s(literal 1/8 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) x) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(*.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal -1/16 binary64) (*.f64 x x)) #s(literal 1/8 binary64)) (pow.f64 x #s(literal 4 binary64))) (-.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal 2 binary64))) x) |
(+ (log -1/2) (log (/ -1 x))) |
(+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(-.f64 (-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) (/.f64 #s(literal -3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(-.f64 (-.f64 (-.f64 (+.f64 (log.f64 (/.f64 #s(literal -1 binary64) x)) (log.f64 #s(literal -1/2 binary64))) (/.f64 #s(literal -1/4 binary64) (*.f64 x x))) (/.f64 #s(literal -3/32 binary64) (pow.f64 x #s(literal 4 binary64)))) (/.f64 #s(literal -5/96 binary64) (pow.f64 x #s(literal 6 binary64)))) |
(/ 1/2 x) |
(/.f64 #s(literal 1/2 binary64) x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(/.f64 (-.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 x x)) #s(literal -1/2 binary64)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(/.f64 (+.f64 (/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/16 binary64) (*.f64 x x)) #s(literal -1/8 binary64)) x) x) #s(literal 1/2 binary64)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal -5/128 binary64) (*.f64 x x)) #s(literal 1/16 binary64)) (pow.f64 x #s(literal 4 binary64))) (-.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 x x)) #s(literal -1/2 binary64))) (neg.f64 x)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 28 |
| 0 | 11 | 22 |
| 1 | 59 | 22 |
| 0 | 489 | 22 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x)) |
(+.f64 x x) |
| Outputs |
|---|
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 x #s(literal 2 binary64)) |
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64)))) (neg.f64 (fma.f64 x x #s(literal 0 binary64)))) |
(/.f64 (*.f64 #s(literal 2 binary64) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 0 binary64))) |
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) |
(-.f64 (/.f64 (*.f64 x x) #s(literal 0 binary64)) (/.f64 (*.f64 x x) #s(literal 0 binary64))) |
(+.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x x #s(literal 0 binary64))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x x #s(literal 0 binary64)))) |
(+.f64 x x) |
Compiled 713 to 174 computations (75.6% saved)
2 alts after pruning (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 34 | 0 | 34 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 34 | 2 | 36 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.5% | (log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) |
| ✓ | 99.7% | (acosh.f64 x) |
Compiled 52 to 31 computations (40.4% saved)
Total -29.5b remaining (-13976%)
Threshold costs -29.5b (-13976%)
| Inputs |
|---|
(acosh.f64 x) |
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f64 x x))) |
(log.f64 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f64 #s(literal 2 binary64) x))) |
(log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
| Outputs |
|---|
(acosh.f64 x) |
3 calls:
| 2.0ms | x |
| 2.0ms | (log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
| 2.0ms | (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.7% | 1 | (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)))) |
| 99.7% | 1 | (log.f64 (+.f64 x (sqrt.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64))))) |
| 99.7% | 1 | x |
Compiled 18 to 14 computations (22.2% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 2 | 2 |
| 1× | saturated |
| Inputs |
|---|
(acosh.f64 x) |
| Outputs |
|---|
(acosh.f64 x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 31 |
| 0 | 12 | 18 |
| 1 | 53 | 18 |
| 0 | 400 | 17 |
| 1× | done |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
Compiled 2 to 2 computations (0% saved)
Compiled 46 to 36 computations (21.7% saved)
Loading profile data...