
Time bar (total: 2.7s)
| 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)
| 442.0ms | 8 256× | 0 | valid |
ival-acosh: 193.0ms (80% of total)ival->=: 35.0ms (14.5% of total)exact: 6.0ms (2.5% of total)ival-assert: 4.0ms (1.7% of total)adjust: 3.0ms (1.2% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 129 | 0 | - | 0 | - | (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))) |
| 2 | 0 | - | 0 | - | (log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
| 0 | 0 | - | 0 | - | (-.f32 (*.f32 x x) #s(literal 1 binary32)) |
| 0 | 0 | - | 0 | - | (*.f32 x x) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary32) |
| 0 | 0 | - | 0 | - | (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f32 | (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))) | oflow-rescue | 129 | 0 |
| ↳ | (*.f32 x x) | overflow | 129 | |
| ↳ | (-.f32 (*.f32 x x) #s(literal 1 binary32)) | overflow | 129 | |
log.f32 | (log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) | oflow-rescue | 2 | 0 |
| ↳ | (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) | overflow | 2 | |
| ↳ | (*.f32 x x) | overflow | 129 | |
| ↳ | (-.f32 (*.f32 x x) #s(literal 1 binary32)) | overflow | 129 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 129 | 0 |
| - | 0 | 127 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 129 | 0 | 0 |
| - | 0 | 0 | 127 |
| number | freq |
|---|---|
| 0 | 127 |
| 1 | 127 |
| 2 | 2 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 59.0ms | 512× | 0 | valid |
Compiled 79 to 25 computations (68.4% saved)
ival-log: 35.0ms (73.1% of total)ival-mult: 4.0ms (8.4% of total)ival-sub: 3.0ms (6.3% of total)ival-sqrt: 3.0ms (6.3% of total)ival-add: 2.0ms (4.2% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| 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.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
| Outputs |
|---|
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
(log.f32 (+.f32 (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) x)) |
Compiled 9 to 7 computations (22.2% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 52.8% | (log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
Compiled 9 to 7 computations (22.2% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))) | |
| cost-diff | 0 | (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) | |
| cost-diff | 0 | (log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) | |
| cost-diff | 1 | (-.f32 (*.f32 x x) #s(literal 1 binary32)) |
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.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) |
x |
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))) |
(-.f32 (*.f32 x x) #s(literal 1 binary32)) |
(*.f32 x x) |
#s(literal 1 binary32) |
| Outputs |
|---|
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
(log.f32 (+.f32 (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) x)) |
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) |
(+.f32 (sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) x) |
x |
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))) |
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) |
(-.f32 (*.f32 x x) #s(literal 1 binary32)) |
(fma.f32 x x #s(literal -1 binary32)) |
(*.f32 x x) |
#s(literal 1 binary32) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.00390625 | (-.f32 (*.f32 x x) #s(literal 1 binary32)) | |
| accuracy | 0.03125 | (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) | |
| accuracy | 0.2337977767045218 | (log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) | |
| accuracy | 13.96359580965167 | (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))) |
| 14.0ms | 256× | 0 | valid |
Compiled 35 to 9 computations (74.3% saved)
ival-mult: 2.0ms (22.6% of total)ival-log: 2.0ms (22.6% of total)ival-sqrt: 2.0ms (22.6% of total)ival-add: 1.0ms (11.3% of total)ival-sub: 1.0ms (11.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)| Inputs |
|---|
(-.f32 (*.f32 x x) #s(literal 1 binary32)) |
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) |
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))) |
| 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))) |
| 1.0ms | x | @ | -inf | ((- (* x x) 1) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (sqrt (- (* x x) 1))) |
| 1.0ms | x | @ | inf | ((- (* x x) 1) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (sqrt (- (* x x) 1))) |
| 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 binary32) |
(- (pow x 2) 1) |
(fma.f32 x x #s(literal -1 binary32)) |
(log (sqrt -1)) |
(log.f32 (sqrt.f32 #s(literal -1 binary32))) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32)))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(fma.f32 (/.f32 (fma.f32 #s(literal 1/6 binary32) (*.f32 x x) #s(literal 1 binary32)) (sqrt.f32 #s(literal -1 binary32))) x (log.f32 (sqrt.f32 #s(literal -1 binary32)))) |
(+ (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.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (*.f32 #s(literal 3/40 binary32) x) (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) (/.f32 #s(literal 1/6 binary32) (sqrt.f32 #s(literal -1 binary32)))) (+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32))))) |
(sqrt -1) |
(sqrt.f32 #s(literal -1 binary32)) |
(+ x (sqrt -1)) |
(+.f32 (sqrt.f32 #s(literal -1 binary32)) x) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(fma.f32 (fma.f32 #s(literal 1/2 binary32) (/.f32 x (sqrt.f32 #s(literal -1 binary32))) #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(fma.f32 (fma.f32 (/.f32 (fma.f32 #s(literal 1/8 binary32) (*.f32 x x) #s(literal 1/2 binary32)) (sqrt.f32 #s(literal -1 binary32))) x #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32))) |
(+ (sqrt -1) (* 1/2 (/ (pow x 2) (sqrt -1)))) |
(fma.f32 (*.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) x) #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32))) |
(+ (sqrt -1) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))) |
(fma.f32 (/.f32 (fma.f32 #s(literal 1/8 binary32) (*.f32 x x) #s(literal 1/2 binary32)) (sqrt.f32 #s(literal -1 binary32))) (*.f32 x x) (sqrt.f32 #s(literal -1 binary32))) |
(+ (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.f32 (pow.f32 x #s(literal 4 binary32)) (fma.f32 (*.f32 #s(literal 1/16 binary32) x) (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) (/.f32 #s(literal 1/8 binary32) (sqrt.f32 #s(literal -1 binary32)))) (fma.f32 (*.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) x) #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32)))) |
(pow x 2) |
(*.f32 x x) |
(* (pow x 2) (- 1 (/ 1 (pow x 2)))) |
(*.f32 (*.f32 (-.f32 #s(literal 1 binary32) (/.f32 #s(literal 1 binary32) (*.f32 x x))) x) x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 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)))) |
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 (-.f32 (/.f32 #s(literal 5/96 binary32) (*.f32 x x)) #s(literal -3/32 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x))) |
(* 2 x) |
(*.f32 #s(literal 2 binary32) x) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(*.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(*.f32 (-.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(*.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal 1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal 2 binary32))) x) |
x |
(* x (- 1 (* 1/2 (/ 1 (pow x 2))))) |
(fma.f32 (/.f32 #s(literal -1/2 binary32) (*.f32 x x)) x x) |
(* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(fma.f32 (/.f32 x x) (/.f32 (-.f32 (/.f32 #s(literal -1/8 binary32) (*.f32 x x)) #s(literal 1/2 binary32)) x) x) |
(* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(fma.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal 1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x x) |
(+ (log -1/2) (log (/ -1 x))) |
(+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(-.f32 (-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal -5/96 binary32) (pow.f32 x #s(literal 6 binary32)))) |
(/ 1/2 x) |
(/.f32 #s(literal 1/2 binary32) x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(/.f32 (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(/.f32 (+.f32 (/.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) x) x) #s(literal 1/2 binary32)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
(/.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -5/128 binary32) (*.f32 x x)) #s(literal 1/16 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32))) (neg.f32 x)) |
(* -1 x) |
(neg.f32 x) |
(* -1 (* x (- 1 (* 1/2 (/ 1 (pow x 2)))))) |
(*.f32 (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32)) x) |
(* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2)))))) |
(*.f32 (-.f32 (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32)) (/.f32 #s(literal -1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) x) |
(* -1 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2)))))) |
(*.f32 (+.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (+.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal -1 binary32))) x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 28 |
| 0 | 12 | 15 |
| 1 | 53 | 15 |
| 0 | 400 | 14 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(-.f32 (*.f32 x x) #s(literal 1 binary32)) |
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
(+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) |
(sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))) |
| Outputs |
|---|
(expm1.f32 (*.f32 (log.f32 x) #s(literal 2 binary32))) |
(*.f32 (+.f32 (neg.f32 x) #s(literal 1 binary32)) (-.f32 (neg.f32 x) #s(literal 1 binary32))) |
(*.f32 (+.f32 (fabs.f32 x) #s(literal 1 binary32)) (-.f32 (fabs.f32 x) #s(literal 1 binary32))) |
(*.f32 (neg.f32 (sinh.f32 (acosh.f32 x))) (neg.f32 (sinh.f32 (acosh.f32 x)))) |
(*.f32 (fabs.f32 (sinh.f32 (acosh.f32 x))) (fabs.f32 (sinh.f32 (acosh.f32 x)))) |
(*.f32 (-.f32 x #s(literal 1 binary32)) (-.f32 x #s(literal -1 binary32))) |
(*.f32 (-.f32 x #s(literal -1 binary32)) (-.f32 x #s(literal 1 binary32))) |
(*.f32 (sinh.f32 (acosh.f32 x)) (sinh.f32 (acosh.f32 x))) |
(sqrt.f32 (*.f32 (fma.f32 x x #s(literal -1 binary32)) (fma.f32 x x #s(literal -1 binary32)))) |
(/.f32 (neg.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32))) (neg.f32 (fma.f32 x x #s(literal 1 binary32)))) |
(/.f32 (neg.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32))) (neg.f32 (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32))))) |
(/.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32)) (fma.f32 x x #s(literal 1 binary32))) |
(/.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32)) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))) |
(-.f32 (/.f32 (pow.f32 x #s(literal 4 binary32)) (fma.f32 x x #s(literal 1 binary32))) (/.f32 #s(literal 1 binary32) (fma.f32 x x #s(literal 1 binary32)))) |
(-.f32 (/.f32 (pow.f32 x #s(literal 6 binary32)) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1 binary32) (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32))))) |
(-.f32 (*.f32 x x) #s(literal 1 binary32)) |
(fma.f32 (*.f32 (neg.f32 x) #s(literal 1 binary32)) (*.f32 (neg.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32)) |
(fma.f32 (*.f32 (fabs.f32 x) #s(literal 1 binary32)) (*.f32 (fabs.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32)) |
(fma.f32 (pow.f32 x #s(literal 1 binary32)) (pow.f32 x #s(literal 1 binary32)) #s(literal -1 binary32)) |
(fma.f32 (*.f32 x #s(literal 1 binary32)) (*.f32 x #s(literal 1 binary32)) #s(literal -1 binary32)) |
(fma.f32 (neg.f32 (neg.f32 x)) (neg.f32 (neg.f32 x)) #s(literal -1 binary32)) |
(fma.f32 (neg.f32 (fabs.f32 x)) (neg.f32 (fabs.f32 x)) #s(literal -1 binary32)) |
(fma.f32 (fabs.f32 (fabs.f32 x)) (fabs.f32 (fabs.f32 x)) #s(literal -1 binary32)) |
(fma.f32 (neg.f32 x) (*.f32 (neg.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32)) |
(fma.f32 (neg.f32 x) (neg.f32 x) #s(literal -1 binary32)) |
(fma.f32 (fabs.f32 x) (*.f32 (fabs.f32 x) #s(literal 1 binary32)) #s(literal -1 binary32)) |
(fma.f32 (fabs.f32 x) (fabs.f32 x) #s(literal -1 binary32)) |
(fma.f32 #s(literal 1 binary32) (*.f32 x x) #s(literal -1 binary32)) |
(fma.f32 (*.f32 x x) #s(literal 1 binary32) #s(literal -1 binary32)) |
(fma.f32 x (*.f32 x #s(literal 1 binary32)) #s(literal -1 binary32)) |
(fma.f32 x x #s(literal -1 binary32)) |
(pow.f32 (*.f32 (fma.f32 x x #s(literal -1 binary32)) (fma.f32 x x #s(literal -1 binary32))) #s(literal 1/2 binary32)) |
(pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 2 binary32)) |
(pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1 binary32)) |
(+.f32 (*.f32 x x) #s(literal -1 binary32)) |
(acosh.f32 x) |
(log.f32 (+.f32 (sinh.f32 (acosh.f32 x)) x)) |
(-.f32 (log.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (log.f32 (-.f32 x (sinh.f32 (acosh.f32 x))))) |
(-.f32 (log.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (log.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))) |
(/.f32 (-.f32 (fma.f32 x x #s(literal -1 binary32)) (*.f32 x x)) (-.f32 (sinh.f32 (acosh.f32 x)) x)) |
(/.f32 (neg.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (neg.f32 (-.f32 x (sinh.f32 (acosh.f32 x))))) |
(/.f32 (neg.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (neg.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))) |
(/.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32))) (-.f32 x (sinh.f32 (acosh.f32 x)))) |
(/.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (+.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 (*.f32 x x) (*.f32 (sinh.f32 (acosh.f32 x)) x)))) |
(/.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))) |
(-.f32 (/.f32 (*.f32 x x) (-.f32 x (sinh.f32 (acosh.f32 x)))) (/.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 x (sinh.f32 (acosh.f32 x))))) |
(fma.f32 (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) x) |
(fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x) |
(fma.f32 (pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/2 binary32)) (pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/2 binary32)) x) |
(+.f32 (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))) (/.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))) |
(+.f32 (sinh.f32 (acosh.f32 x)) x) |
(+.f32 x (sinh.f32 (acosh.f32 x))) |
(*.f32 (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32))) |
(*.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32)))) |
(*.f32 (pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/2 binary32)) (pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/2 binary32))) |
(sqrt.f32 (fma.f32 x x #s(literal -1 binary32))) |
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32))) (sqrt.f32 (fma.f32 x x #s(literal 1 binary32)))) |
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32))) (sqrt.f32 (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32))))) |
(/.f32 (-.f32 (exp.f32 (acosh.f32 x)) (exp.f32 (neg.f32 (acosh.f32 x)))) #s(literal 2 binary32)) |
(pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/2 binary32)) |
(exp.f32 (*.f32 (log.f32 (fma.f32 x x #s(literal -1 binary32))) #s(literal 1/2 binary32))) |
(sinh.f32 (acosh.f32 (neg.f32 x))) |
(sinh.f32 (acosh.f32 (fabs.f32 x))) |
(sinh.f32 (acosh.f32 x)) |
Compiled 1 699 to 485 computations (71.5% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 99 | 3 | 102 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 100 | 3 | 103 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 99.3% | (log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) |
| ▶ | 96.8% | (log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
| ▶ | 99.3% | (acosh.f32 x) |
Compiled 26 to 21 computations (19.2% saved)
| 1× | egg-herbie |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f32 x #s(literal -1 binary32)) | |
| cost-diff | 0 | (sqrt.f32 (-.f32 x #s(literal -1 binary32))) | |
| cost-diff | 0 | (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x) | |
| cost-diff | 0 | (log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) | |
| cost-diff | 0 | (*.f32 #s(literal 2 binary32) x) | |
| cost-diff | 0 | #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) | |
| cost-diff | 0 | (log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) | |
| cost-diff | 0 | (acosh.f32 x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 71 |
| 0 | 28 | 71 |
| 1 | 42 | 71 |
| 2 | 79 | 71 |
| 3 | 179 | 71 |
| 4 | 618 | 71 |
| 5 | 4153 | 71 |
| 0 | 8238 | 69 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(acosh.f32 x) |
x |
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) |
(*.f32 #s(literal 2 binary32) x) |
#s(literal 2 binary32) |
x |
(log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) |
(fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x) |
(sqrt.f32 (-.f32 x #s(literal -1 binary32))) |
(-.f32 x #s(literal -1 binary32)) |
x |
#s(literal -1 binary32) |
(sqrt.f32 (-.f32 x #s(literal 1 binary32))) |
(-.f32 x #s(literal 1 binary32)) |
#s(literal 1 binary32) |
| Outputs |
|---|
(acosh.f32 x) |
x |
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) |
(*.f32 #s(literal 2 binary32) x) |
#s(literal 2 binary32) |
x |
(log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) |
(log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal 1 binary32))) (sqrt.f32 (-.f32 x #s(literal -1 binary32))) x)) |
(fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x) |
(fma.f32 (sqrt.f32 (-.f32 x #s(literal 1 binary32))) (sqrt.f32 (-.f32 x #s(literal -1 binary32))) x) |
(sqrt.f32 (-.f32 x #s(literal -1 binary32))) |
(-.f32 x #s(literal -1 binary32)) |
x |
#s(literal -1 binary32) |
(sqrt.f32 (-.f32 x #s(literal 1 binary32))) |
(-.f32 x #s(literal 1 binary32)) |
#s(literal 1 binary32) |
Found 8 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.00390625 | (sqrt.f32 (-.f32 x #s(literal 1 binary32))) | |
| accuracy | 0.00390625 | (sqrt.f32 (-.f32 x #s(literal -1 binary32))) | |
| accuracy | 0.07421875 | (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x) | |
| accuracy | 0.2337977767045218 | (log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) | |
| accuracy | 0.0 | (*.f32 #s(literal 2 binary32) x) | |
| accuracy | 0.2337977767045218 | (log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) | |
| accuracy | 0.9544242509920478 | #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) | |
| accuracy | 0.21484375 | (acosh.f32 x) |
| 45.0ms | 256× | 0 | valid |
Compiled 67 to 20 computations (70.1% saved)
ival-sub: 13.0ms (34.9% of total)ival-sqrt: 9.0ms (24.1% of total)ival-mult: 5.0ms (13.4% of total)ival-log: 4.0ms (10.7% of total)ival-acosh: 3.0ms (8% of total)ival-add: 2.0ms (5.4% 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.f32 x) |
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) |
(*.f32 #s(literal 2 binary32) x) |
(log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) |
(fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x) |
(sqrt.f32 (-.f32 x #s(literal -1 binary32))) |
(-.f32 x #s(literal -1 binary32)) |
(sqrt.f32 (-.f32 x #s(literal 1 binary32))) |
| 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) |
1 |
(+ 1 (* 1/2 x)) |
(+ 1 (* x (+ 1/2 (* -1/8 x)))) |
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) |
(+ 1 x) |
(+ (sqrt -1) (* 1/2 (/ x (sqrt -1)))) |
(+ (sqrt -1) (* x (+ (* -1/8 (/ x (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))) |
(+ (sqrt -1) (* x (+ (* x (- (* 1/16 (/ x (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1)))))) |
(+ (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))))) |
(sqrt x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3)))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))) |
x |
(* x (+ 1 (/ 1 x))) |
(* x (+ (sqrt (/ 1 x)) (* -1/2 (sqrt (/ 1 (pow x 3)))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (* -1/8 (sqrt (/ 1 (pow x 5))))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* -1/16 (sqrt (/ 1 (pow x 7)))))))) |
(+ (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)) |
(+ (log (- (pow (sqrt -1) 2) 1)) (* -1 (log (/ -1 x)))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (* 1/2 (/ 1 (* (pow x 2) (- (pow (sqrt -1) 2) 1)))))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (+ (* -1/24 (/ (+ (* 3 (/ 1 (* (pow (sqrt -1) 2) (- (pow (sqrt -1) 2) 1)))) (* 3 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 2)))) (pow x 4))) (/ 1/2 (* (pow x 2) (- (pow (sqrt -1) 2) 1)))))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (+ (* -1/24 (/ (+ (* 3 (/ 1 (* (pow (sqrt -1) 2) (- (pow (sqrt -1) 2) 1)))) (* 3 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 2)))) (pow x 4))) (+ (* 1/720 (/ (+ (* 45 (/ 1 (* (pow (sqrt -1) 2) (pow (- (pow (sqrt -1) 2) 1) 2)))) (+ (* 45 (/ 1 (* (pow (sqrt -1) 4) (- (pow (sqrt -1) 2) 1)))) (* 30 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 3))))) (pow x 6))) (/ 1/2 (* (pow x 2) (- (pow (sqrt -1) 2) 1))))))) |
(* -1 (* x (- (pow (sqrt -1) 2) 1))) |
(* -1 (* x (- (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2)) 1))) |
(* -1 (* x (- (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2)) (+ 1 (/ 1/8 (* (pow x 4) (pow (sqrt -1) 2))))))) |
(* -1 (* x (- (+ (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 4)))) (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2))) (+ 1 (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 2)))))))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 5.0ms | x | @ | -inf | ((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x) (log (+ (* (sqrt (- x -1)) (sqrt (- x 1))) x)) (+ (* (sqrt (- x -1)) (sqrt (- x 1))) x) (sqrt (- x -1)) (- x -1) (sqrt (- x 1))) |
| 2.0ms | x | @ | inf | ((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x) (log (+ (* (sqrt (- x -1)) (sqrt (- x 1))) x)) (+ (* (sqrt (- x -1)) (sqrt (- x 1))) x) (sqrt (- x -1)) (- x -1) (sqrt (- x 1))) |
| 1.0ms | x | @ | 0 | ((acosh x) (log (+ x (sqrt (- (* x x) 1)))) (+ x (sqrt (- (* x x) 1))) (* 2 x) (log (+ (* (sqrt (- x -1)) (sqrt (- x 1))) x)) (+ (* (sqrt (- x -1)) (sqrt (- x 1))) x) (sqrt (- x -1)) (- x -1) (sqrt (- x 1))) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 291 | 1042 |
| 1 | 911 | 837 |
| 2 | 3927 | 809 |
| 0 | 8628 | 769 |
| 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) |
1 |
(+ 1 (* 1/2 x)) |
(+ 1 (* x (+ 1/2 (* -1/8 x)))) |
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) |
(+ 1 x) |
(+ (sqrt -1) (* 1/2 (/ x (sqrt -1)))) |
(+ (sqrt -1) (* x (+ (* -1/8 (/ x (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))) |
(+ (sqrt -1) (* x (+ (* x (- (* 1/16 (/ x (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1)))))) |
(+ (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))))) |
(sqrt x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3)))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))) |
x |
(* x (+ 1 (/ 1 x))) |
(* x (+ (sqrt (/ 1 x)) (* -1/2 (sqrt (/ 1 (pow x 3)))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (* -1/8 (sqrt (/ 1 (pow x 5))))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* -1/16 (sqrt (/ 1 (pow x 7)))))))) |
(+ (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)) |
(+ (log (- (pow (sqrt -1) 2) 1)) (* -1 (log (/ -1 x)))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (* 1/2 (/ 1 (* (pow x 2) (- (pow (sqrt -1) 2) 1)))))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (+ (* -1/24 (/ (+ (* 3 (/ 1 (* (pow (sqrt -1) 2) (- (pow (sqrt -1) 2) 1)))) (* 3 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 2)))) (pow x 4))) (/ 1/2 (* (pow x 2) (- (pow (sqrt -1) 2) 1)))))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (+ (* -1/24 (/ (+ (* 3 (/ 1 (* (pow (sqrt -1) 2) (- (pow (sqrt -1) 2) 1)))) (* 3 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 2)))) (pow x 4))) (+ (* 1/720 (/ (+ (* 45 (/ 1 (* (pow (sqrt -1) 2) (pow (- (pow (sqrt -1) 2) 1) 2)))) (+ (* 45 (/ 1 (* (pow (sqrt -1) 4) (- (pow (sqrt -1) 2) 1)))) (* 30 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 3))))) (pow x 6))) (/ 1/2 (* (pow x 2) (- (pow (sqrt -1) 2) 1))))))) |
(* -1 (* x (- (pow (sqrt -1) 2) 1))) |
(* -1 (* x (- (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2)) 1))) |
(* -1 (* x (- (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2)) (+ 1 (/ 1/8 (* (pow x 4) (pow (sqrt -1) 2))))))) |
(* -1 (* x (- (+ (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 4)))) (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2))) (+ 1 (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 2)))))))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
| Outputs |
|---|
(log (sqrt -1)) |
(log.f32 (sqrt.f32 #s(literal -1 binary32))) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32)))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(fma.f32 (/.f32 (+.f32 #s(literal 1 binary32) (/.f32 (*.f32 (*.f32 x x) #s(literal -1/6 binary32)) #s(literal -1 binary32))) (sqrt.f32 #s(literal -1 binary32))) x (log.f32 (sqrt.f32 #s(literal -1 binary32)))) |
(+ (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.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (*.f32 x (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32)))) #s(literal 3/40 binary32) (/.f32 #s(literal 1/6 binary32) (sqrt.f32 #s(literal -1 binary32)))) (+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32))))) |
(sqrt -1) |
(sqrt.f32 #s(literal -1 binary32)) |
(+ x (sqrt -1)) |
(+.f32 (sqrt.f32 #s(literal -1 binary32)) x) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(fma.f32 (fma.f32 #s(literal 1/2 binary32) (/.f32 x (sqrt.f32 #s(literal -1 binary32))) #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(fma.f32 (fma.f32 (/.f32 (+.f32 #s(literal 1/2 binary32) (/.f32 (*.f32 (*.f32 #s(literal -1/8 binary32) x) x) #s(literal -1 binary32))) (sqrt.f32 #s(literal -1 binary32))) x #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32))) |
(* 2 x) |
(*.f32 #s(literal 2 binary32) x) |
1 |
#s(literal 1 binary32) |
(+ 1 (* 1/2 x)) |
(fma.f32 #s(literal 1/2 binary32) x #s(literal 1 binary32)) |
(+ 1 (* x (+ 1/2 (* -1/8 x)))) |
(fma.f32 (fma.f32 #s(literal -1/8 binary32) x #s(literal 1/2 binary32)) x #s(literal 1 binary32)) |
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) |
(fma.f32 (fma.f32 (fma.f32 #s(literal 1/16 binary32) x #s(literal -1/8 binary32)) x #s(literal 1/2 binary32)) x #s(literal 1 binary32)) |
(+ 1 x) |
(-.f32 x #s(literal -1 binary32)) |
(+ (sqrt -1) (* 1/2 (/ x (sqrt -1)))) |
(fma.f32 (/.f32 #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32))) x (sqrt.f32 #s(literal -1 binary32))) |
(+ (sqrt -1) (* x (+ (* -1/8 (/ x (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))) |
(fma.f32 (fma.f32 #s(literal 1/8 binary32) (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (/.f32 #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32)))) x (sqrt.f32 #s(literal -1 binary32))) |
(+ (sqrt -1) (* x (+ (* x (- (* 1/16 (/ x (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1)))))) |
(fma.f32 (fma.f32 (fma.f32 (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) #s(literal 1/16 binary32) (/.f32 #s(literal 1/8 binary32) (sqrt.f32 #s(literal -1 binary32)))) x (/.f32 #s(literal 1/2 binary32) (sqrt.f32 #s(literal -1 binary32)))) x (sqrt.f32 #s(literal -1 binary32))) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 (/.f32 (-.f32 (/.f32 #s(literal 3/32 binary32) (*.f32 x x)) #s(literal -1/4 binary32)) 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)))) |
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 (-.f32 (/.f32 #s(literal 5/96 binary32) (*.f32 x x)) #s(literal -3/32 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x))) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(*.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(*.f32 (-.f32 #s(literal 2 binary32) (/.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32)) x) x)) x) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(*.f32 (+.f32 (/.f32 (+.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x)))) x) |
(sqrt x) |
(sqrt.f32 x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3)))))) |
(*.f32 (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) #s(literal 1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) x))) x) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))) |
(*.f32 (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 5 binary32)))) #s(literal -1/8 binary32) (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) #s(literal 1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) x)))) x) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))) |
(*.f32 (+.f32 (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 7 binary32)))) #s(literal 1/16 binary32) (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 5 binary32)))) #s(literal -1/8 binary32) (*.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) #s(literal 1/2 binary32)))) (sqrt.f32 (/.f32 #s(literal 1 binary32) x))) x) |
x |
(* x (+ 1 (/ 1 x))) |
(-.f32 x #s(literal -1 binary32)) |
(* x (+ (sqrt (/ 1 x)) (* -1/2 (sqrt (/ 1 (pow x 3)))))) |
(*.f32 (fma.f32 #s(literal -1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) (sqrt.f32 (/.f32 #s(literal 1 binary32) x))) x) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (* -1/8 (sqrt (/ 1 (pow x 5))))))) |
(*.f32 (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 5 binary32)))) #s(literal -1/8 binary32) (fma.f32 #s(literal -1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) (sqrt.f32 (/.f32 #s(literal 1 binary32) x)))) x) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* -1/16 (sqrt (/ 1 (pow x 7)))))))) |
(*.f32 (+.f32 (fma.f32 #s(literal -1/16 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 7 binary32)))) (fma.f32 #s(literal -1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) (*.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 5 binary32)))) #s(literal -1/8 binary32)))) (sqrt.f32 (/.f32 #s(literal 1 binary32) x))) x) |
(+ (log -1/2) (log (/ -1 x))) |
(+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(+.f32 (+.f32 (/.f32 #s(literal 3/32 binary32) (pow.f32 x #s(literal 4 binary32))) (-.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (/.f32 #s(literal -1/4 binary32) (*.f32 x x)))) (log.f32 #s(literal -1/2 binary32))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(+.f32 (-.f32 (+.f32 (/.f32 #s(literal 3/32 binary32) (pow.f32 x #s(literal 4 binary32))) (-.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (/.f32 #s(literal -1/4 binary32) (*.f32 x x)))) (/.f32 #s(literal -5/96 binary32) (pow.f32 x #s(literal 6 binary32)))) (log.f32 #s(literal -1/2 binary32))) |
(/ 1/2 x) |
(/.f32 #s(literal 1/2 binary32) x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(/.f32 (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(/.f32 (+.f32 (/.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) x) x) #s(literal 1/2 binary32)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
(/.f32 (-.f32 (/.f32 (+.f32 (/.f32 #s(literal -5/128 binary32) (*.f32 x x)) #s(literal -1/16 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32))) (neg.f32 x)) |
(+ (log (- (pow (sqrt -1) 2) 1)) (* -1 (log (/ -1 x)))) |
(-.f32 (log.f32 #s(literal -2 binary32)) (log.f32 (/.f32 #s(literal -1 binary32) x))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (* 1/2 (/ 1 (* (pow x 2) (- (pow (sqrt -1) 2) 1)))))) |
(-.f32 (-.f32 (log.f32 #s(literal -2 binary32)) (log.f32 (/.f32 #s(literal -1 binary32) x))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (+ (* -1/24 (/ (+ (* 3 (/ 1 (* (pow (sqrt -1) 2) (- (pow (sqrt -1) 2) 1)))) (* 3 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 2)))) (pow x 4))) (/ 1/2 (* (pow x 2) (- (pow (sqrt -1) 2) 1)))))) |
(+.f32 (+.f32 (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal -1/4 binary32) (*.f32 x x)) (log.f32 (/.f32 #s(literal -1 binary32) x)))) (log.f32 #s(literal -2 binary32))) |
(+ (log (- (pow (sqrt -1) 2) 1)) (+ (* -1 (log (/ -1 x))) (+ (* -1/24 (/ (+ (* 3 (/ 1 (* (pow (sqrt -1) 2) (- (pow (sqrt -1) 2) 1)))) (* 3 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 2)))) (pow x 4))) (+ (* 1/720 (/ (+ (* 45 (/ 1 (* (pow (sqrt -1) 2) (pow (- (pow (sqrt -1) 2) 1) 2)))) (+ (* 45 (/ 1 (* (pow (sqrt -1) 4) (- (pow (sqrt -1) 2) 1)))) (* 30 (/ 1 (pow (- (pow (sqrt -1) 2) 1) 3))))) (pow x 6))) (/ 1/2 (* (pow x 2) (- (pow (sqrt -1) 2) 1))))))) |
(+.f32 (-.f32 (-.f32 (-.f32 (/.f32 #s(literal -5/96 binary32) (pow.f32 x #s(literal 6 binary32))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x))) (/.f32 #s(literal 3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (log.f32 (/.f32 #s(literal -1 binary32) x))) (log.f32 #s(literal -2 binary32))) |
(* -1 (* x (- (pow (sqrt -1) 2) 1))) |
(*.f32 #s(literal 2 binary32) x) |
(* -1 (* x (- (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2)) 1))) |
(*.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x) |
(* -1 (* x (- (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2)) (+ 1 (/ 1/8 (* (pow x 4) (pow (sqrt -1) 2))))))) |
(*.f32 (+.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) (/.f32 #s(literal -1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) x) |
(* -1 (* x (- (+ (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 4)))) (+ (* 1/2 (/ 1 (pow x 2))) (pow (sqrt -1) 2))) (+ 1 (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 2)))))))) |
(*.f32 (neg.f32 x) (+.f32 (/.f32 #s(literal 1/16 binary32) (pow.f32 x #s(literal 6 binary32))) (-.f32 (+.f32 #s(literal -2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) (/.f32 #s(literal -1/8 binary32) (pow.f32 x #s(literal 4 binary32)))))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(*.f32 (sqrt.f32 x) #s(literal 1 binary32)) |
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(*.f32 (fma.f32 #s(literal -1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) (sqrt.f32 (/.f32 #s(literal 1 binary32) x))) x) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(*.f32 (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 5 binary32)))) #s(literal -1/8 binary32) (fma.f32 #s(literal -1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) (sqrt.f32 (/.f32 #s(literal 1 binary32) x)))) x) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
(*.f32 (fma.f32 #s(literal -1/16 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 7 binary32)))) (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 5 binary32)))) #s(literal -1/8 binary32) (fma.f32 #s(literal -1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) (*.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) x)) #s(literal 1 binary32))))) x) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(*.f32 (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) #s(literal 1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) x))) x) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(*.f32 (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 5 binary32)))) #s(literal -1/8 binary32) (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) #s(literal 1/2 binary32) (sqrt.f32 (/.f32 #s(literal 1 binary32) x)))) x) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
(*.f32 (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 5 binary32)))) #s(literal -1/8 binary32) (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) x)) #s(literal 1 binary32) (fma.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 7 binary32)))) #s(literal 1/16 binary32) (*.f32 (sqrt.f32 (/.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32)))) #s(literal 1/2 binary32))))) x) |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 62 |
| 0 | 28 | 47 |
| 1 | 101 | 42 |
| 0 | 846 | 42 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(acosh.f32 x) |
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) |
(*.f32 #s(literal 2 binary32) x) |
(log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) |
(fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x) |
(sqrt.f32 (-.f32 x #s(literal -1 binary32))) |
(-.f32 x #s(literal -1 binary32)) |
(sqrt.f32 (-.f32 x #s(literal 1 binary32))) |
| Outputs |
|---|
(acosh.f32 x) |
(log.f32 (+.f32 (sinh.f32 (acosh.f32 x)) x)) |
(-.f32 (log.f32 (-.f32 (fma.f32 x x #s(literal -1 binary32)) (*.f32 x x))) (log.f32 (-.f32 (sinh.f32 (acosh.f32 x)) x))) |
(-.f32 (log.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (log.f32 (-.f32 x (sinh.f32 (acosh.f32 x))))) |
(-.f32 (log.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (log.f32 (fma.f32 x (-.f32 x (sinh.f32 (acosh.f32 x))) (fma.f32 x x #s(literal -1 binary32))))) |
(-.f32 (log.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (log.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))) |
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) |
(*.f32 #s(literal 2 binary32) x) |
(*.f32 x #s(literal 2 binary32)) |
(/.f32 (-.f32 (*.f32 x x) (*.f32 x x)) (-.f32 x x)) |
(/.f32 (+.f32 (pow.f32 x #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (fma.f32 x x (-.f32 (*.f32 x x) (*.f32 x x)))) |
(+.f32 x x) |
(acosh.f32 x) |
(log.f32 (+.f32 (sinh.f32 (acosh.f32 x)) x)) |
(-.f32 (log.f32 (-.f32 (fma.f32 x x #s(literal -1 binary32)) (*.f32 x x))) (log.f32 (-.f32 (sinh.f32 (acosh.f32 x)) x))) |
(-.f32 (log.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (log.f32 (-.f32 x (sinh.f32 (acosh.f32 x))))) |
(-.f32 (log.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (log.f32 (fma.f32 x (-.f32 x (sinh.f32 (acosh.f32 x))) (fma.f32 x x #s(literal -1 binary32))))) |
(-.f32 (log.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (log.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))) |
(/.f32 (neg.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32)))) (neg.f32 (-.f32 x (sinh.f32 (acosh.f32 x))))) |
(/.f32 (neg.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (neg.f32 (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))) |
(/.f32 (neg.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32)))) (neg.f32 (fma.f32 x (-.f32 x (sinh.f32 (acosh.f32 x))) (fma.f32 x x #s(literal -1 binary32))))) |
(/.f32 (neg.f32 (-.f32 (fma.f32 x x #s(literal -1 binary32)) (*.f32 x x))) (neg.f32 (-.f32 (sinh.f32 (acosh.f32 x)) x))) |
(/.f32 (-.f32 (*.f32 x x) (fma.f32 x x #s(literal -1 binary32))) (-.f32 x (sinh.f32 (acosh.f32 x)))) |
(/.f32 (-.f32 (fma.f32 x x #s(literal -1 binary32)) (*.f32 x x)) (-.f32 (sinh.f32 (acosh.f32 x)) x)) |
(/.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))) |
(/.f32 (+.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (pow.f32 x #s(literal 3 binary32))) (fma.f32 x (-.f32 x (sinh.f32 (acosh.f32 x))) (fma.f32 x x #s(literal -1 binary32)))) |
(-.f32 (/.f32 (*.f32 x x) (-.f32 x (sinh.f32 (acosh.f32 x)))) (/.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 x (sinh.f32 (acosh.f32 x))))) |
(-.f32 (/.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 (sinh.f32 (acosh.f32 x)) x)) (/.f32 (*.f32 x x) (-.f32 (sinh.f32 (acosh.f32 x)) x))) |
(-.f32 x (*.f32 (neg.f32 (sqrt.f32 (-.f32 x #s(literal 1 binary32)))) (sqrt.f32 (-.f32 x #s(literal -1 binary32))))) |
(-.f32 x (*.f32 (neg.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32)))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))))) |
(fma.f32 (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (fma.f32 x x #s(literal -1 binary32)) #s(literal 1/4 binary32)) x) |
(fma.f32 (sqrt.f32 (-.f32 x #s(literal 1 binary32))) (sqrt.f32 (-.f32 x #s(literal -1 binary32))) x) |
(fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x) |
(+.f32 (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x))) (/.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (fma.f32 (sinh.f32 (acosh.f32 x)) (-.f32 (sinh.f32 (acosh.f32 x)) x) (*.f32 x x)))) |
(+.f32 (/.f32 (pow.f32 (sinh.f32 (acosh.f32 x)) #s(literal 3 binary32)) (fma.f32 x (-.f32 x (sinh.f32 (acosh.f32 x))) (fma.f32 x x #s(literal -1 binary32)))) (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 x (-.f32 x (sinh.f32 (acosh.f32 x))) (fma.f32 x x #s(literal -1 binary32))))) |
(+.f32 (sinh.f32 (acosh.f32 x)) x) |
(+.f32 x (sinh.f32 (acosh.f32 x))) |
(*.f32 (pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/4 binary32))) |
(sqrt.f32 (-.f32 x #s(literal -1 binary32))) |
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 3 binary32)) #s(literal -1 binary32))) (sqrt.f32 (fma.f32 x x (fma.f32 #s(literal -1 binary32) x #s(literal 1 binary32))))) |
(/.f32 (sinh.f32 (acosh.f32 x)) (sqrt.f32 (-.f32 x #s(literal 1 binary32)))) |
(pow.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1/2 binary32)) |
(exp.f32 (*.f32 (log1p.f32 x) #s(literal 1/2 binary32))) |
(*.f32 (-.f32 x #s(literal -1 binary32)) (/.f32 (-.f32 x #s(literal 1 binary32)) (-.f32 x #s(literal 1 binary32)))) |
(*.f32 (-.f32 x #s(literal -1 binary32)) #s(literal 1 binary32)) |
(*.f32 #s(literal 1 binary32) (-.f32 x #s(literal -1 binary32))) |
(/.f32 (-.f32 #s(literal 1 binary32) (*.f32 x x)) (-.f32 #s(literal 1 binary32) x)) |
(/.f32 (+.f32 #s(literal 1 binary32) (pow.f32 x #s(literal 3 binary32))) (+.f32 #s(literal 1 binary32) (-.f32 (*.f32 x x) x))) |
(/.f32 (+.f32 (pow.f32 x #s(literal 3 binary32)) #s(literal 1 binary32)) (fma.f32 x x (-.f32 #s(literal 1 binary32) x))) |
(/.f32 (neg.f32 (-.f32 (pow.f32 x #s(literal 3 binary32)) #s(literal -1 binary32))) (neg.f32 (fma.f32 x x (fma.f32 #s(literal -1 binary32) x #s(literal 1 binary32))))) |
(/.f32 (neg.f32 (fma.f32 x x #s(literal -1 binary32))) (neg.f32 (-.f32 x #s(literal 1 binary32)))) |
(/.f32 (-.f32 (pow.f32 x #s(literal 4 binary32)) #s(literal 1 binary32)) (*.f32 (fma.f32 x x #s(literal 1 binary32)) (-.f32 x #s(literal 1 binary32)))) |
(/.f32 (-.f32 (pow.f32 x #s(literal 3 binary32)) #s(literal -1 binary32)) (fma.f32 x x (fma.f32 #s(literal -1 binary32) x #s(literal 1 binary32)))) |
(/.f32 (-.f32 (pow.f32 x #s(literal 6 binary32)) #s(literal 1 binary32)) (*.f32 (+.f32 (fma.f32 x x #s(literal 1 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 x #s(literal 1 binary32)))) |
(/.f32 (fma.f32 x x #s(literal -1 binary32)) (-.f32 x #s(literal 1 binary32))) |
(-.f32 (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 x x (fma.f32 #s(literal -1 binary32) x #s(literal 1 binary32)))) (/.f32 #s(literal -1 binary32) (fma.f32 x x (fma.f32 #s(literal -1 binary32) x #s(literal 1 binary32))))) |
(-.f32 (/.f32 (*.f32 x x) (-.f32 x #s(literal 1 binary32))) (/.f32 #s(literal 1 binary32) (-.f32 x #s(literal 1 binary32)))) |
(-.f32 #s(literal 1 binary32) (*.f32 (neg.f32 x) #s(literal 1 binary32))) |
(-.f32 x #s(literal -1 binary32)) |
(+.f32 #s(literal 1 binary32) x) |
(+.f32 x #s(literal 1 binary32)) |
(*.f32 (pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/4 binary32)) (pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/4 binary32))) |
(sqrt.f32 (-.f32 x #s(literal 1 binary32))) |
(/.f32 (sqrt.f32 (-.f32 (pow.f32 x #s(literal 3 binary32)) #s(literal 1 binary32))) (sqrt.f32 (fma.f32 x x (-.f32 x #s(literal -1 binary32))))) |
(/.f32 (sinh.f32 (acosh.f32 x)) (sqrt.f32 (-.f32 x #s(literal -1 binary32)))) |
(pow.f32 (-.f32 x #s(literal 1 binary32)) #s(literal 1/2 binary32)) |
(exp.f32 (*.f32 (log.f32 (-.f32 x #s(literal 1 binary32))) #s(literal 1/2 binary32))) |
Compiled 2 346 to 553 computations (76.4% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 115 | 1 | 116 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 0 | 0 | 0 |
| Total | 116 | 3 | 119 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.3% | (log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) |
| ▶ | 96.8% | (log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))) |
| ✓ | 99.3% | (acosh.f32 x) |
Compiled 26 to 20 computations (23.1% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f32 x x) | |
| cost-diff | 0 | #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)) | |
| cost-diff | 0 | (log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 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.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)) |
(+.f32 x x) |
x |
| Outputs |
|---|
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))) |
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) |
(+.f32 x x) |
(*.f32 #s(literal 2 binary32) x) |
x |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f32 x x) | |
| accuracy | 0.2337977767045218 | (log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))) | |
| accuracy | 0.9544242509920478 | #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)) |
| 19.0ms | 256× | 0 | valid |
Compiled 23 to 10 computations (56.5% saved)
ival-mult: 5.0ms (35.8% of total)ival-log: 3.0ms (21.5% of total)ival-add: 2.0ms (14.3% of total)ival-sqrt: 2.0ms (14.3% of total)ival-sub: 1.0ms (7.2% of total)adjust: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)) |
(+.f32 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.f32 (sqrt.f32 #s(literal -1 binary32))) |
(+ (log (sqrt -1)) (/ x (sqrt -1))) |
(+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32)))) |
(+ (log (sqrt -1)) (* x (+ (* -1/6 (/ (pow x 2) (pow (sqrt -1) 3))) (/ 1 (sqrt -1))))) |
(fma.f32 (/.f32 (fma.f32 #s(literal 1/6 binary32) (*.f32 x x) #s(literal 1 binary32)) (sqrt.f32 #s(literal -1 binary32))) x (log.f32 (sqrt.f32 #s(literal -1 binary32)))) |
(+ (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.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 (*.f32 #s(literal 3/40 binary32) x) (/.f32 x (pow.f32 (sqrt.f32 #s(literal -1 binary32)) #s(literal 5 binary32))) (/.f32 #s(literal 1/6 binary32) (sqrt.f32 #s(literal -1 binary32)))) (+.f32 (/.f32 x (sqrt.f32 #s(literal -1 binary32))) (log.f32 (sqrt.f32 #s(literal -1 binary32))))) |
(sqrt -1) |
(sqrt.f32 #s(literal -1 binary32)) |
(+ x (sqrt -1)) |
(+.f32 (sqrt.f32 #s(literal -1 binary32)) x) |
(+ (sqrt -1) (* x (+ 1 (* 1/2 (/ x (sqrt -1)))))) |
(fma.f32 (fma.f32 #s(literal 1/2 binary32) (/.f32 x (sqrt.f32 #s(literal -1 binary32))) #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32))) |
(+ (sqrt -1) (* x (+ 1 (* x (+ (* -1/8 (/ (pow x 2) (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1)))))))) |
(fma.f32 (fma.f32 (/.f32 (fma.f32 #s(literal 1/8 binary32) (*.f32 x x) #s(literal 1/2 binary32)) (sqrt.f32 #s(literal -1 binary32))) x #s(literal 1 binary32)) x (sqrt.f32 #s(literal -1 binary32))) |
(* 2 x) |
(*.f32 #s(literal 2 binary32) x) |
(+ (log 2) (* -1 (log (/ 1 x)))) |
(+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) |
(- (+ (log 2) (* -1 (log (/ 1 x)))) (* 1/4 (/ 1 (pow x 2)))) |
(-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x))) |
(+ (log 2) (+ (* -1 (log (/ 1 x))) (* -1 (/ (+ 1/4 (* 3/32 (/ 1 (pow x 2)))) (pow x 2))))) |
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 #s(literal 3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 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)))) |
(-.f32 (-.f32 (+.f32 (log.f32 x) (log.f32 #s(literal 2 binary32))) (/.f32 (-.f32 (/.f32 #s(literal 5/96 binary32) (*.f32 x x)) #s(literal -3/32 binary32)) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/4 binary32) (*.f32 x x))) |
(* x (- 2 (* 1/2 (/ 1 (pow x 2))))) |
(*.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x) |
(* x (+ 2 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) (pow x 2))))) |
(*.f32 (-.f32 (-.f32 #s(literal 2 binary32) (/.f32 #s(literal 1/8 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal 1/2 binary32) (*.f32 x x))) x) |
(* x (- (+ 2 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 4)))) (* 1/2 (/ 1 (pow x 2))))) |
(*.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -1/16 binary32) (*.f32 x x)) #s(literal 1/8 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/2 binary32) (*.f32 x x)) #s(literal 2 binary32))) x) |
(+ (log -1/2) (log (/ -1 x))) |
(+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) |
(+ (log -1/2) (+ (log (/ -1 x)) (* 1/4 (/ 1 (pow x 2))))) |
(-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (* 1/4 (/ 1 (pow x 2)))))) |
(-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) |
(+ (log -1/2) (+ (log (/ -1 x)) (+ (/ 3/32 (pow x 4)) (+ (* 1/4 (/ 1 (pow x 2))) (* 5/96 (/ 1 (pow x 6))))))) |
(-.f32 (-.f32 (-.f32 (+.f32 (log.f32 (/.f32 #s(literal -1 binary32) x)) (log.f32 #s(literal -1/2 binary32))) (/.f32 #s(literal -1/4 binary32) (*.f32 x x))) (/.f32 #s(literal -3/32 binary32) (pow.f32 x #s(literal 4 binary32)))) (/.f32 #s(literal -5/96 binary32) (pow.f32 x #s(literal 6 binary32)))) |
(/ 1/2 x) |
(/.f32 #s(literal 1/2 binary32) x) |
(/ (+ 1/2 (* 1/8 (/ 1 (pow x 2)))) x) |
(/.f32 (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/8 (* 1/16 (/ 1 (pow x 2)))) (pow x 2))) 1/2) x)) |
(/.f32 (+.f32 (/.f32 (/.f32 (-.f32 (/.f32 #s(literal 1/16 binary32) (*.f32 x x)) #s(literal -1/8 binary32)) x) x) #s(literal 1/2 binary32)) x) |
(* -1 (/ (- (* -1 (/ (+ 1/16 (* 5/128 (/ 1 (pow x 2)))) (pow x 4))) (+ 1/2 (* 1/8 (/ 1 (pow x 2))))) x)) |
(/.f32 (-.f32 (/.f32 (-.f32 (/.f32 #s(literal -5/128 binary32) (*.f32 x x)) #s(literal 1/16 binary32)) (pow.f32 x #s(literal 4 binary32))) (-.f32 (/.f32 #s(literal 1/8 binary32) (*.f32 x x)) #s(literal -1/2 binary32))) (neg.f32 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.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x)) |
(+.f32 x x) |
| Outputs |
|---|
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
#s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x)) |
(*.f32 #s(literal 2 binary32) x) |
(*.f32 x #s(literal 2 binary32)) |
(/.f32 (neg.f32 (*.f32 #s(literal 2 binary32) (pow.f32 x #s(literal 3 binary32)))) (neg.f32 (fma.f32 x x #s(literal 0 binary32)))) |
(/.f32 (*.f32 #s(literal 2 binary32) (pow.f32 x #s(literal 3 binary32))) (fma.f32 x x #s(literal 0 binary32))) |
(/.f32 #s(literal 0 binary32) #s(literal 0 binary32)) |
(-.f32 (/.f32 (*.f32 x x) #s(literal 0 binary32)) (/.f32 (*.f32 x x) #s(literal 0 binary32))) |
(+.f32 (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 x x #s(literal 0 binary32))) (/.f32 (pow.f32 x #s(literal 3 binary32)) (fma.f32 x x #s(literal 0 binary32)))) |
(+.f32 x x) |
Compiled 713 to 174 computations (75.6% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 34 | 0 | 34 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 34 | 3 | 37 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.3% | (log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) |
| ✓ | 96.8% | (log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))) |
| ✓ | 99.3% | (acosh.f32 x) |
Compiled 74 to 47 computations (36.5% saved)
Total -15.7b remaining (-7306.7%)
Threshold costs -15.7b (-7306.7%)
| Inputs |
|---|
(acosh.f32 x) |
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (+.f32 x x))) |
(log.f32 #s(approx (+ x (sqrt (- (* x x) 1))) (*.f32 #s(literal 2 binary32) x))) |
(log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
(log.f32 (fma.f32 (sqrt.f32 (-.f32 x #s(literal -1 binary32))) (sqrt.f32 (-.f32 x #s(literal 1 binary32))) x)) |
| Outputs |
|---|
(acosh.f32 x) |
3 calls:
| 4.0ms | (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) |
| 2.0ms | x |
| 2.0ms | (log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.3% | 1 | (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32)))) |
| 99.3% | 1 | (log.f32 (+.f32 x (sqrt.f32 (-.f32 (*.f32 x x) #s(literal 1 binary32))))) |
| 99.3% | 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.f32 x) |
| Outputs |
|---|
(acosh.f32 x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 28 |
| 0 | 12 | 15 |
| 1 | 53 | 15 |
| 0 | 400 | 14 |
| 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...