
Time bar (total: 4.5s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 1 |
| 100% | 100% | 0% | 0% | 0% | 0% | 0% | 2 |
Compiled 15 to 9 computations (40% saved)
| 1.3s | 3 267× | 2 | valid |
| 875.0ms | 7 787× | 0 | exit |
| 763.0ms | 4 597× | 1 | valid |
| 25.0ms | 392× | 0 | valid |
ival-exp: 1.5s (70.3% of total)adjust: 229.0ms (10.9% of total)ival-div!: 190.0ms (9% of total)ival-sub!: 74.0ms (3.5% of total)ival-neg: 74.0ms (3.5% of total)ival-add!: 58.0ms (2.8% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 249 | 0 | - | 1 | (0.0054179141653440364) | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 1 | 0 | - | 0 | - | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 0 | 0 | - | 0 | - | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 0 | 0 | - | 0 | - | (exp.f64 x) |
| 0 | 2 | (234.78121702322818) | 0 | - | (exp.f64 (neg.f64 x)) |
| 0 | 0 | - | 0 | - | (neg.f64 x) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
-.f64 | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) | cancellation | 248 | 1 |
exp.f64 | (exp.f64 (neg.f64 x)) | sensitivity | 2 | 0 |
/.f64 | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) | o/o | 1 | 0 |
| ↳ | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) | overflow | 1 | |
| ↳ | (exp.f64 (neg.f64 x)) | overflow | 1 | |
| ↳ | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) | overflow | 1 | |
| ↳ | (exp.f64 (neg.f64 x)) | overflow | 1 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 249 | 1 |
| - | 2 | 4 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 249 | 1 | 0 |
| - | 2 | 0 | 4 |
| number | freq |
|---|---|
| 0 | 5 |
| 1 | 251 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 73.0ms | 180× | 2 | valid |
| 47.0ms | 310× | 1 | valid |
| 1.0ms | 22× | 0 | valid |
Compiled 83 to 25 computations (69.9% saved)
ival-exp: 75.0ms (74.3% of total)adjust: 13.0ms (12.9% of total)ival-div!: 5.0ms (5% of total)ival-add!: 3.0ms (3% of total)ival-sub!: 3.0ms (3% of total)ival-neg: 2.0ms (2% of total)Useful iterations: 4 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 39 |
| 1 | 45 | 39 |
| 2 | 104 | 39 |
| 3 | 414 | 39 |
| 4 | 4412 | 27 |
| 1× | node-limit |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 11.5% | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(negabs x)
Compiled 26 to 14 computations (46.2% saved)
| Inputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(exp.f64 x) |
x |
(exp.f64 (neg.f64 x)) |
(neg.f64 x) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| Outputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (* 2 x))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (* x (+ 2 (* 1/3 (pow x 2)))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (* x (+ 2 (* (pow x 2) (+ 1/3 (* 1/60 (pow x 2)))))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (* x (+ 2 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 1/60 (* 1/2520 (pow x 2)))))))))) |
#s(approx (exp x) #s(hole binary64 1)) |
#s(approx (exp x) #s(hole binary64 (+ 1 x))) |
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* 1/2 x)))))) |
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x)))))))) |
#s(approx x #s(hole binary64 x)) |
#s(approx (exp (neg x)) #s(hole binary64 1)) |
#s(approx (exp (neg x)) #s(hole binary64 (+ 1 (* -1 x)))) |
#s(approx (exp (neg x)) #s(hole binary64 (+ 1 (* x (- (* 1/2 x) 1))))) |
#s(approx (exp (neg x)) #s(hole binary64 (+ 1 (* x (- (* x (+ 1/2 (* -1/6 x))) 1))))) |
#s(approx (neg x) #s(hole binary64 (* -1 x))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 2)) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ 2 (pow x 2)))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ 2 (* (pow x 2) (+ 1 (* 1/12 (pow x 2))))))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ 2 (* (pow x 2) (+ 1 (* (pow x 2) (+ 1/12 (* 1/360 (pow x 2))))))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (- (exp x) (exp (neg x))))) |
#s(approx (exp x) #s(hole binary64 (exp x))) |
#s(approx (exp (neg x)) #s(hole binary64 (exp (neg x)))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ (exp x) (exp (neg x))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (- (exp x) (exp (* -1 x))))) |
#s(approx (exp (neg x)) #s(hole binary64 (exp (* -1 x)))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ (exp x) (exp (* -1 x))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (- (exp x) (exp (neg x))) (exp x) x (exp (neg x)) (neg x) (+ (exp x) (exp (neg x)))) |
| 1.0ms | x | @ | inf | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (- (exp x) (exp (neg x))) (exp x) x (exp (neg x)) (neg x) (+ (exp x) (exp (neg x)))) |
| 1.0ms | x | @ | 0 | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (- (exp x) (exp (neg x))) (exp x) x (exp (neg x)) (neg x) (+ (exp x) (exp (neg x)))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 127 | 498 |
| 0 | 140 | 356 |
| 1 | 753 | 345 |
| 0 | 6406 | 319 |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | node-limit |
| 1× | iter-limit |
| Inputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(exp.f64 x) |
x |
(exp.f64 (neg.f64 x)) |
(neg.f64 x) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (* 2 x))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (* x (+ 2 (* 1/3 (pow x 2)))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (* x (+ 2 (* (pow x 2) (+ 1/3 (* 1/60 (pow x 2)))))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (* x (+ 2 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 1/60 (* 1/2520 (pow x 2)))))))))) |
#s(approx (exp x) #s(hole binary64 1)) |
#s(approx (exp x) #s(hole binary64 (+ 1 x))) |
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* 1/2 x)))))) |
#s(approx (exp x) #s(hole binary64 (+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x)))))))) |
#s(approx x #s(hole binary64 x)) |
#s(approx (exp (neg x)) #s(hole binary64 1)) |
#s(approx (exp (neg x)) #s(hole binary64 (+ 1 (* -1 x)))) |
#s(approx (exp (neg x)) #s(hole binary64 (+ 1 (* x (- (* 1/2 x) 1))))) |
#s(approx (exp (neg x)) #s(hole binary64 (+ 1 (* x (- (* x (+ 1/2 (* -1/6 x))) 1))))) |
#s(approx (neg x) #s(hole binary64 (* -1 x))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 2)) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ 2 (pow x 2)))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ 2 (* (pow x 2) (+ 1 (* 1/12 (pow x 2))))))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ 2 (* (pow x 2) (+ 1 (* (pow x 2) (+ 1/12 (* 1/360 (pow x 2))))))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (- (exp x) (exp (neg x))))) |
#s(approx (exp x) #s(hole binary64 (exp x))) |
#s(approx (exp (neg x)) #s(hole binary64 (exp (neg x)))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ (exp x) (exp (neg x))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))))) |
#s(approx (- (exp x) (exp (neg x))) #s(hole binary64 (- (exp x) (exp (* -1 x))))) |
#s(approx (exp (neg x)) #s(hole binary64 (exp (* -1 x)))) |
#s(approx (+ (exp x) (exp (neg x))) #s(hole binary64 (+ (exp x) (exp (* -1 x))))) |
| Outputs |
|---|
(tanh.f64 x) |
(*.f64 (/.f64 (*.f64 (sinh.f64 x) #s(literal 2 binary64)) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64)))) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) |
(*.f64 (/.f64 (*.f64 (sinh.f64 x) #s(literal 2 binary64)) (+.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (exp.f64 x) #s(literal 3 binary64)))) (fma.f64 (exp.f64 x) (exp.f64 x) (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))))) |
(*.f64 #s(literal 2 binary64) (/.f64 (sinh.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(*.f64 #s(literal 1 binary64) (tanh.f64 x)) |
(/.f64 (-.f64 (*.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x))) (*.f64 (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))))) (+.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))))) |
(/.f64 (-.f64 (pow.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) #s(literal 3 binary64)) (pow.f64 (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) #s(literal 3 binary64))) (fma.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (fma.f64 (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (*.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))))))) |
(/.f64 (expm1.f64 (*.f64 #s(literal 2 binary64) x)) (fma.f64 (exp.f64 x) (exp.f64 x) #s(literal 1 binary64))) |
(/.f64 (neg.f64 (*.f64 #s(literal -2 binary64) (sinh.f64 x))) (neg.f64 (*.f64 #s(literal -2 binary64) (cosh.f64 x)))) |
(/.f64 (-.f64 (*.f64 (exp.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (exp.f64 (neg.f64 x)))) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(/.f64 (-.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) (+.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x)))) |
(/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64))) (*.f64 (fma.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (pow.f64 (exp.f64 x) #s(literal 2 binary64))) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(/.f64 (*.f64 #s(literal -2 binary64) (sinh.f64 x)) (*.f64 #s(literal -2 binary64) (cosh.f64 x))) |
(/.f64 (sinh.f64 x) (cosh.f64 x)) |
(/.f64 (*.f64 (sinh.f64 x) #s(literal 2 binary64)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) |
(neg.f64 (/.f64 (*.f64 #s(literal -2 binary64) (sinh.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(neg.f64 (/.f64 (*.f64 (sinh.f64 x) #s(literal 2 binary64)) (*.f64 #s(literal -2 binary64) (cosh.f64 x)))) |
(-.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(*.f64 (/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64)))) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) |
(*.f64 (/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (+.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (exp.f64 x) #s(literal 3 binary64)))) (fma.f64 (exp.f64 x) (exp.f64 x) (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))))) |
(*.f64 (sinh.f64 x) #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) (sinh.f64 x)) |
(/.f64 (/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) #s(literal 2 binary64)) (cosh.f64 x)) |
(/.f64 (neg.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64)))) (*.f64 #s(literal -2 binary64) (cosh.f64 x))) |
(/.f64 (neg.f64 (-.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (pow.f64 (exp.f64 x) #s(literal 2 binary64))))) |
(/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64))) (fma.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (pow.f64 (exp.f64 x) #s(literal 2 binary64)))) |
(-.f64 (-.f64 (exp.f64 x) (cosh.f64 x)) (sinh.f64 (neg.f64 x))) |
(-.f64 (/.f64 (pow.f64 (exp.f64 x) #s(literal 2 binary64)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (/.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 2 binary64)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(-.f64 (/.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (fma.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (pow.f64 (exp.f64 x) #s(literal 2 binary64)))) (/.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)) (fma.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (pow.f64 (exp.f64 x) #s(literal 2 binary64))))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (-.f64 (exp.f64 x) (cosh.f64 x)) (sinh.f64 x)) |
(+.f64 (cosh.f64 x) (-.f64 (sinh.f64 x) (exp.f64 (neg.f64 x)))) |
(+.f64 (sinh.f64 x) (sinh.f64 x)) |
(/.f64 (+.f64 (pow.f64 (cosh.f64 x) #s(literal 3 binary64)) (pow.f64 (sinh.f64 x) #s(literal 3 binary64))) (fma.f64 (cosh.f64 x) (cosh.f64 x) (-.f64 (*.f64 (sinh.f64 x) (sinh.f64 x)) (*.f64 (cosh.f64 x) (sinh.f64 x))))) |
(/.f64 #s(literal 1 binary64) (exp.f64 (neg.f64 x))) |
(exp.f64 x) |
(+.f64 (cosh.f64 x) (sinh.f64 x)) |
(+.f64 (sinh.f64 x) (cosh.f64 x)) |
x |
(*.f64 (pow.f64 (exp.f64 #s(literal -1 binary64)) (/.f64 x #s(literal 2 binary64))) (pow.f64 (exp.f64 #s(literal -1 binary64)) (/.f64 x #s(literal 2 binary64)))) |
(*.f64 #s(literal 1 binary64) (exp.f64 (neg.f64 x))) |
(pow.f64 (exp.f64 #s(literal -1 binary64)) x) |
(pow.f64 (exp.f64 x) #s(literal -1 binary64)) |
(/.f64 (-.f64 (*.f64 (cosh.f64 x) (cosh.f64 x)) (*.f64 (sinh.f64 (neg.f64 x)) (sinh.f64 (neg.f64 x)))) (-.f64 (cosh.f64 x) (sinh.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (pow.f64 (cosh.f64 x) #s(literal 3 binary64)) (pow.f64 (sinh.f64 x) #s(literal 3 binary64))) (fma.f64 (cosh.f64 x) (cosh.f64 x) (fma.f64 (sinh.f64 x) (sinh.f64 x) (*.f64 (cosh.f64 x) (sinh.f64 x))))) |
(/.f64 (+.f64 (pow.f64 (cosh.f64 x) #s(literal 3 binary64)) (pow.f64 (sinh.f64 (neg.f64 x)) #s(literal 3 binary64))) (fma.f64 (cosh.f64 x) (cosh.f64 x) (-.f64 (*.f64 (sinh.f64 (neg.f64 x)) (sinh.f64 (neg.f64 x))) (*.f64 (cosh.f64 x) (sinh.f64 (neg.f64 x)))))) |
(/.f64 #s(literal -1 binary64) (neg.f64 (exp.f64 x))) |
(/.f64 #s(literal 2 binary64) (*.f64 #s(literal 2 binary64) (exp.f64 x))) |
(/.f64 #s(literal 1 binary64) (exp.f64 x)) |
(neg.f64 (/.f64 #s(literal -1 binary64) (exp.f64 x))) |
(-.f64 (cosh.f64 x) (sinh.f64 x)) |
(exp.f64 (-.f64 #s(literal 0 binary64) x)) |
(exp.f64 (*.f64 (log.f64 (exp.f64 #s(literal -1 binary64))) x)) |
(exp.f64 (neg.f64 x)) |
(+.f64 (sinh.f64 (neg.f64 x)) (cosh.f64 x)) |
(+.f64 (cosh.f64 x) (sinh.f64 (neg.f64 x))) |
(*.f64 #s(literal -1 binary64) x) |
(*.f64 #s(literal 1 binary64) (neg.f64 x)) |
(*.f64 (neg.f64 x) #s(literal 1 binary64)) |
(*.f64 x #s(literal -1 binary64)) |
(/.f64 (*.f64 #s(literal 2 binary64) (neg.f64 x)) #s(literal 2 binary64)) |
(neg.f64 (*.f64 #s(literal -1 binary64) (neg.f64 x))) |
(neg.f64 x) |
(*.f64 (/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (-.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)))) (fma.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (pow.f64 (exp.f64 x) #s(literal 2 binary64)))) |
(*.f64 (/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64)))) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) |
(*.f64 (cosh.f64 x) #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) (cosh.f64 x)) |
(/.f64 (/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) #s(literal 2 binary64)) (sinh.f64 x)) |
(/.f64 (-.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 2 binary64)) (pow.f64 (exp.f64 x) #s(literal 2 binary64))) (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(/.f64 (neg.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (exp.f64 x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (exp.f64 x) (exp.f64 x) (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))))) |
(/.f64 (neg.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64)))) (*.f64 #s(literal -2 binary64) (sinh.f64 x))) |
(/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) |
(/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (exp.f64 x) #s(literal 3 binary64))) (+.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 2 binary64)) (expm1.f64 (*.f64 #s(literal 2 binary64) x)))) |
(/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)) (pow.f64 (exp.f64 x) #s(literal 3 binary64))) (fma.f64 (exp.f64 x) (exp.f64 x) (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))))) |
(fma.f64 (pow.f64 (exp.f64 #s(literal -1 binary64)) (/.f64 x #s(literal 2 binary64))) (pow.f64 (exp.f64 #s(literal -1 binary64)) (/.f64 x #s(literal 2 binary64))) (exp.f64 x)) |
(fma.f64 #s(literal 1 binary64) (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(-.f64 (+.f64 (exp.f64 x) (cosh.f64 x)) (sinh.f64 x)) |
(-.f64 (/.f64 (pow.f64 (exp.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (/.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64)))) |
(-.f64 (cosh.f64 x) (-.f64 (sinh.f64 x) (exp.f64 x))) |
(+.f64 (+.f64 (exp.f64 (neg.f64 x)) (cosh.f64 x)) (sinh.f64 x)) |
(+.f64 (+.f64 (exp.f64 x) (cosh.f64 x)) (sinh.f64 (neg.f64 x))) |
(+.f64 (/.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (fma.f64 (exp.f64 x) (exp.f64 x) (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))))) (/.f64 (pow.f64 (exp.f64 (neg.f64 x)) #s(literal 3 binary64)) (fma.f64 (exp.f64 x) (exp.f64 x) (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))))) |
(+.f64 (cosh.f64 x) (+.f64 (sinh.f64 (neg.f64 x)) (exp.f64 x))) |
(+.f64 (cosh.f64 x) (+.f64 (sinh.f64 x) (exp.f64 (neg.f64 x)))) |
(+.f64 (cosh.f64 x) (cosh.f64 x)) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) (-.f64 (*.f64 #s(literal 2/15 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (*.f64 #s(literal 2/15 binary64) x) x (-.f64 (*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal -17/315 binary64)) #s(literal 1/3 binary64))) x)) |
#s(approx (- (exp x) (exp (neg x))) (*.f64 #s(literal 2 binary64) x)) |
#s(approx (- (exp x) (exp (neg x))) (*.f64 (fma.f64 #s(literal 1/3 binary64) (*.f64 x x) #s(literal 2 binary64)) x)) |
#s(approx (- (exp x) (exp (neg x))) (*.f64 (fma.f64 (fma.f64 #s(literal 1/60 binary64) (*.f64 x x) #s(literal 1/3 binary64)) (*.f64 x x) #s(literal 2 binary64)) x)) |
#s(approx (- (exp x) (exp (neg x))) (*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal 1/2520 binary64) (*.f64 x x) #s(literal 1/60 binary64)) (*.f64 x x) #s(literal 1/3 binary64)) (*.f64 x x) #s(literal 2 binary64)) x)) |
#s(approx (exp x) #s(literal 1 binary64)) |
#s(approx (exp x) (-.f64 x #s(literal -1 binary64))) |
#s(approx (exp x) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 1 binary64))) |
#s(approx (exp x) (fma.f64 (fma.f64 (fma.f64 #s(literal 1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal 1 binary64)) x #s(literal 1 binary64))) |
#s(approx x x) |
#s(approx (exp (neg x)) #s(literal 1 binary64)) |
#s(approx (exp (neg x)) (-.f64 #s(literal 1 binary64) x)) |
#s(approx (exp (neg x)) (fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal -1 binary64)) x #s(literal 1 binary64))) |
#s(approx (exp (neg x)) (fma.f64 (fma.f64 (fma.f64 #s(literal -1/6 binary64) x #s(literal 1/2 binary64)) x #s(literal -1 binary64)) x #s(literal 1 binary64))) |
#s(approx (neg x) (neg.f64 x)) |
#s(approx (+ (exp x) (exp (neg x))) #s(literal 2 binary64)) |
#s(approx (+ (exp x) (exp (neg x))) (fma.f64 x x #s(literal 2 binary64))) |
#s(approx (+ (exp x) (exp (neg x))) (fma.f64 x x (fma.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1/12 binary64) #s(literal 2 binary64)))) |
#s(approx (+ (exp x) (exp (neg x))) (fma.f64 x x (fma.f64 (pow.f64 x #s(literal 4 binary64)) (fma.f64 #s(literal 1/360 binary64) (*.f64 x x) #s(literal 1/12 binary64)) #s(literal 2 binary64)))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (tanh.f64 x)) |
#s(approx (- (exp x) (exp (neg x))) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) |
#s(approx (exp x) (exp.f64 x)) |
#s(approx (exp (neg x)) (exp.f64 (neg.f64 x))) |
#s(approx (+ (exp x) (exp (neg x))) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (tanh.f64 x)) |
#s(approx (- (exp x) (exp (neg x))) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) |
#s(approx (exp (neg x)) (exp.f64 (neg.f64 x))) |
#s(approx (+ (exp x) (exp (neg x))) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) |
Compiled 3 096 to 499 computations (83.9% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 159 | 3 | 162 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 160 | 3 | 163 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (tanh.f64 x) |
| ▶ | 97.4% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
| ▶ | 97.0% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
Compiled 37 to 22 computations (40.5% saved)
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
x |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) |
(pow.f64 x #s(literal 3 binary64)) |
#s(literal 3 binary64) |
#s(literal -1/3 binary64) |
(tanh.f64 x) |
| Outputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx x #s(hole binary64 x)) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 x)) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (pow x 3) #s(hole binary64 (pow x 3))) |
#s(approx (tanh x) #s(hole binary64 x)) |
#s(approx (tanh x) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (tanh x) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (tanh x) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))))) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 (* -1/3 (pow x 3)))) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)))) |
#s(approx (tanh x) #s(hole binary64 (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))))) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 59.0ms | x | @ | 0 | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (pow x 3) -1/3) x) (pow x 3) 3 -1/3 (tanh x)) |
| 2.0ms | x | @ | inf | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (pow x 3) -1/3) x) (pow x 3) 3 -1/3 (tanh x)) |
| 2.0ms | x | @ | -inf | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (pow x 3) -1/3) x) (pow x 3) 3 -1/3 (tanh x)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 73 | 367 |
| 0 | 75 | 231 |
| 1 | 342 | 220 |
| 0 | 2333 | 214 |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | node-limit |
| 1× | iter-limit |
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
x |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) |
(pow.f64 x #s(literal 3 binary64)) |
#s(literal 3 binary64) |
#s(literal -1/3 binary64) |
(tanh.f64 x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx x #s(hole binary64 x)) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 x)) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (pow x 3) #s(hole binary64 (pow x 3))) |
#s(approx (tanh x) #s(hole binary64 x)) |
#s(approx (tanh x) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (tanh x) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (tanh x) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))))) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 (* -1/3 (pow x 3)))) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)))) |
#s(approx (tanh x) #s(hole binary64 (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))))) |
#s(approx (+ (* (pow x 3) -1/3) x) #s(hole binary64 (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))))) |
| Outputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
x |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
(*.f64 (fma.f64 (*.f64 x x) #s(literal -1/3 binary64) #s(literal 1 binary64)) x) |
(*.f64 x (fma.f64 (*.f64 x x) #s(literal -1/3 binary64) #s(literal 1 binary64))) |
(/.f64 (*.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) #s(literal 2 binary64))) x) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 x x) #s(literal -1/3 binary64)))) |
(/.f64 (*.f64 (fma.f64 #s(literal -1/27 binary64) (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1 binary64)) x) (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) (-.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) #s(literal 1 binary64)) #s(literal 1 binary64))) |
(/.f64 (*.f64 x (-.f64 #s(literal 1 binary64) (pow.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 x x) #s(literal -1/3 binary64)))) |
(/.f64 (*.f64 x (fma.f64 #s(literal -1/27 binary64) (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1 binary64))) (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) (-.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) #s(literal 1 binary64)) #s(literal 1 binary64))) |
(/.f64 (-.f64 (*.f64 x x) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64))) (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)))) |
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x))) |
(/.f64 (neg.f64 (fma.f64 (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) #s(literal -1/27 binary64) (pow.f64 x #s(literal 3 binary64)))) (neg.f64 (fma.f64 x (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64))))) |
(/.f64 (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)) (*.f64 x x)) (-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x)) |
(/.f64 (fma.f64 (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) #s(literal -1/27 binary64) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)) (*.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x)))) |
(/.f64 (fma.f64 (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) #s(literal -1/27 binary64) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)))) |
(fma.f64 (*.f64 #s(literal -1/3 binary64) (pow.f64 x #s(literal 3/2 binary64))) (pow.f64 x #s(literal 3/2 binary64)) x) |
(fma.f64 (*.f64 #s(literal -1/3 binary64) x) (*.f64 x x) x) |
(fma.f64 (*.f64 x #s(literal -1/3 binary64)) (*.f64 x x) x) |
(fma.f64 (pow.f64 x #s(literal 3/2 binary64)) (*.f64 (pow.f64 x #s(literal 3/2 binary64)) #s(literal -1/3 binary64)) x) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) |
(fma.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) x x) |
(fma.f64 (*.f64 x x) (*.f64 #s(literal -1/3 binary64) x) x) |
(fma.f64 (*.f64 x x) (*.f64 x #s(literal -1/3 binary64)) x) |
(fma.f64 #s(literal -1/3 binary64) (pow.f64 x #s(literal 3 binary64)) x) |
(fma.f64 x (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) x) |
(-.f64 (/.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)) (-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x))) |
(-.f64 x (*.f64 (neg.f64 (pow.f64 x #s(literal 3 binary64))) #s(literal -1/3 binary64))) |
(-.f64 x (*.f64 #s(literal 1/3 binary64) (pow.f64 x #s(literal 3 binary64)))) |
(-.f64 x (*.f64 (*.f64 #s(literal 1/3 binary64) (*.f64 x x)) x)) |
(-.f64 x (*.f64 (neg.f64 x) (*.f64 (*.f64 x x) #s(literal -1/3 binary64)))) |
(+.f64 (/.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 3 binary64)) (fma.f64 x (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64))))) |
(+.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x) |
(+.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) |
(*.f64 (neg.f64 (pow.f64 x #s(literal 3/2 binary64))) (neg.f64 (pow.f64 x #s(literal 3/2 binary64)))) |
(*.f64 (fabs.f64 (pow.f64 x #s(literal 3/2 binary64))) (fabs.f64 (pow.f64 x #s(literal 3/2 binary64)))) |
(*.f64 (pow.f64 x #s(literal 3/2 binary64)) (pow.f64 x #s(literal 3/2 binary64))) |
(*.f64 (*.f64 x x) x) |
(*.f64 x (*.f64 x x)) |
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 3 binary64)) |
(pow.f64 (pow.f64 x #s(literal 3/2 binary64)) #s(literal 2 binary64)) |
(pow.f64 (*.f64 x x) #s(literal 3/2 binary64)) |
(pow.f64 x #s(literal 3 binary64)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 3 binary64))) |
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 3 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 3 binary64)))) |
#s(literal 3 binary64) |
#s(literal -1/3 binary64) |
(tanh.f64 x) |
(*.f64 (/.f64 (*.f64 (sinh.f64 x) #s(literal 2 binary64)) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64)))) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) |
(*.f64 (/.f64 (*.f64 (sinh.f64 x) #s(literal 2 binary64)) (+.f64 (pow.f64 (exp.f64 x) #s(literal -3 binary64)) (pow.f64 (exp.f64 x) #s(literal 3 binary64)))) (fma.f64 (exp.f64 x) (exp.f64 x) (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))))) |
(*.f64 #s(literal 2 binary64) (/.f64 (sinh.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(*.f64 #s(literal 1 binary64) (tanh.f64 x)) |
(/.f64 (-.f64 (*.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x))) (*.f64 (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))))) (+.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))))) |
(/.f64 (-.f64 (pow.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) #s(literal 3 binary64)) (pow.f64 (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) #s(literal 3 binary64))) (fma.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (fma.f64 (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (*.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))))))) |
(/.f64 (neg.f64 (*.f64 #s(literal -2 binary64) (sinh.f64 x))) (neg.f64 (*.f64 #s(literal -2 binary64) (cosh.f64 x)))) |
(/.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 #s(literal -2 binary64)) x))) (neg.f64 (+.f64 (pow.f64 (exp.f64 #s(literal -2 binary64)) x) #s(literal 1 binary64)))) |
(/.f64 (neg.f64 (expm1.f64 (*.f64 #s(literal 2 binary64) x))) (neg.f64 (fma.f64 (exp.f64 x) (exp.f64 x) #s(literal 1 binary64)))) |
(/.f64 (-.f64 (*.f64 (exp.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (exp.f64 (neg.f64 x)))) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(/.f64 (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (*.f64 (*.f64 (cosh.f64 x) #s(literal 2 binary64)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 x) #s(literal 3 binary64)) (pow.f64 (exp.f64 x) #s(literal -3 binary64))) (*.f64 (fma.f64 (exp.f64 x) (exp.f64 x) (+.f64 (pow.f64 (exp.f64 x) #s(literal -2 binary64)) #s(literal 1 binary64))) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(/.f64 (*.f64 #s(literal -2 binary64) (sinh.f64 x)) (*.f64 #s(literal -2 binary64) (cosh.f64 x))) |
(/.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 #s(literal -2 binary64)) x)) (+.f64 (pow.f64 (exp.f64 #s(literal -2 binary64)) x) #s(literal 1 binary64))) |
(/.f64 (expm1.f64 (*.f64 #s(literal 2 binary64) x)) (fma.f64 (exp.f64 x) (exp.f64 x) #s(literal 1 binary64))) |
(/.f64 (sinh.f64 x) (cosh.f64 x)) |
(/.f64 (*.f64 (sinh.f64 x) #s(literal 2 binary64)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) |
(neg.f64 (/.f64 (*.f64 #s(literal -2 binary64) (sinh.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(neg.f64 (/.f64 (*.f64 (sinh.f64 x) #s(literal 2 binary64)) (*.f64 #s(literal -2 binary64) (cosh.f64 x)))) |
(-.f64 (/.f64 #s(literal 1 binary64) (+.f64 (pow.f64 (exp.f64 #s(literal -2 binary64)) x) #s(literal 1 binary64))) (/.f64 (pow.f64 (exp.f64 #s(literal -2 binary64)) x) (+.f64 (pow.f64 (exp.f64 #s(literal -2 binary64)) x) #s(literal 1 binary64)))) |
(-.f64 (/.f64 (pow.f64 (exp.f64 x) #s(literal 2 binary64)) (fma.f64 (exp.f64 x) (exp.f64 x) #s(literal 1 binary64))) (/.f64 #s(literal 1 binary64) (fma.f64 (exp.f64 x) (exp.f64 x) #s(literal 1 binary64)))) |
(-.f64 (/.f64 (/.f64 (exp.f64 x) #s(literal 2 binary64)) (cosh.f64 x)) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) (-.f64 (*.f64 #s(literal 2/15 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) x) x) #s(literal 1/3 binary64)) x)) |
#s(approx x x) |
#s(approx (+ (* (pow x 3) -1/3) x) x) |
#s(approx (+ (* (pow x 3) -1/3) x) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
#s(approx (pow x 3) (pow.f64 x #s(literal 3 binary64))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) (-.f64 (*.f64 #s(literal 2/15 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) x) x) #s(literal 1/3 binary64)) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (tanh.f64 x)) |
#s(approx (+ (* (pow x 3) -1/3) x) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) |
#s(approx (+ (* (pow x 3) -1/3) x) (*.f64 (-.f64 (pow.f64 x #s(literal -2 binary64)) #s(literal 1/3 binary64)) (pow.f64 x #s(literal 3 binary64)))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (tanh.f64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (tanh.f64 x)) |
#s(approx (+ (* (pow x 3) -1/3) x) (*.f64 (neg.f64 (-.f64 #s(literal 1/3 binary64) (pow.f64 x #s(literal -2 binary64)))) (pow.f64 x #s(literal 3 binary64)))) |
Compiled 1 970 to 290 computations (85.3% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 84 | 1 | 85 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 0 | 0 | 0 |
| Total | 85 | 3 | 88 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (tanh.f64 x) |
| ▶ | 97.4% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)) |
| ✓ | 97.0% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
Compiled 39 to 22 computations (43.6% saved)
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)) |
(fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) |
(*.f64 (*.f64 x x) x) |
(*.f64 x x) |
x |
#s(literal -1/3 binary64) |
| Outputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 x)) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (* (* x x) x) #s(hole binary64 (pow x 3))) |
#s(approx (* x x) #s(hole binary64 (pow x 2))) |
#s(approx x #s(hole binary64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 (* -1/3 (pow x 3)))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (* (* x x) x) -1/3) x) (* (* x x) x) (* x x) x -1/3) |
| 1.0ms | x | @ | inf | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (* (* x x) x) -1/3) x) (* (* x x) x) (* x x) x -1/3) |
| 1.0ms | x | @ | 0 | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (* (* x x) x) -1/3) x) (* (* x x) x) (* x x) x -1/3) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 66 | 301 |
| 0 | 72 | 174 |
| 1 | 327 | 167 |
| 0 | 2353 | 164 |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | node-limit |
| 1× | iter-limit |
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)) |
(fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) |
(*.f64 (*.f64 x x) x) |
(*.f64 x x) |
x |
#s(literal -1/3 binary64) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 x)) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (* (* x x) x) #s(hole binary64 (pow x 3))) |
#s(approx (* x x) #s(hole binary64 (pow x 2))) |
#s(approx x #s(hole binary64 x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 (* -1/3 (pow x 3)))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) #s(hole binary64 (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) #s(hole binary64 (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))))) |
| Outputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
(*.f64 (fma.f64 (*.f64 x x) #s(literal -1/3 binary64) #s(literal 1 binary64)) x) |
(*.f64 x (fma.f64 (*.f64 x x) #s(literal -1/3 binary64) #s(literal 1 binary64))) |
(/.f64 (*.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) #s(literal 2 binary64))) x) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 x x) #s(literal -1/3 binary64)))) |
(/.f64 (*.f64 (fma.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal -1/27 binary64) #s(literal 1 binary64)) x) (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) (-.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) #s(literal 1 binary64)) #s(literal 1 binary64))) |
(/.f64 (*.f64 x (-.f64 #s(literal 1 binary64) (pow.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) #s(literal 2 binary64)))) (-.f64 #s(literal 1 binary64) (*.f64 (*.f64 x x) #s(literal -1/3 binary64)))) |
(/.f64 (*.f64 x (fma.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal -1/27 binary64) #s(literal 1 binary64))) (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) (-.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) #s(literal 1 binary64)) #s(literal 1 binary64))) |
(/.f64 (-.f64 (*.f64 x x) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64))) (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)))) |
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x))) |
(/.f64 (neg.f64 (fma.f64 (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) #s(literal -1/27 binary64) (pow.f64 x #s(literal 3 binary64)))) (neg.f64 (fma.f64 x (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64))))) |
(/.f64 (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)) (*.f64 x x)) (-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x)) |
(/.f64 (fma.f64 (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) #s(literal -1/27 binary64) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)) (*.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x)))) |
(/.f64 (fma.f64 (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) #s(literal -1/27 binary64) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)))) |
(fma.f64 (*.f64 #s(literal -1/3 binary64) (pow.f64 x #s(literal 3/2 binary64))) (pow.f64 x #s(literal 3/2 binary64)) x) |
(fma.f64 (*.f64 #s(literal -1/3 binary64) x) (*.f64 x x) x) |
(fma.f64 (pow.f64 x #s(literal 3/2 binary64)) (*.f64 (pow.f64 x #s(literal 3/2 binary64)) #s(literal -1/3 binary64)) x) |
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) (*.f64 #s(literal -1/3 binary64) x)) x) |
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) |
(fma.f64 (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) x x) |
(fma.f64 (*.f64 x x) (*.f64 #s(literal -1/3 binary64) x) x) |
(fma.f64 #s(literal -1/3 binary64) (pow.f64 x #s(literal 3 binary64)) x) |
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) (*.f64 #s(literal -1/3 binary64) x)) x) |
(fma.f64 x (*.f64 (*.f64 x x) #s(literal -1/3 binary64)) x) |
(-.f64 (/.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)) (-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x))) |
(-.f64 x (*.f64 (*.f64 #s(literal 1/3 binary64) (*.f64 x x)) x)) |
(-.f64 x (*.f64 (neg.f64 x) (*.f64 (*.f64 x x) #s(literal -1/3 binary64)))) |
(-.f64 x (*.f64 (neg.f64 (pow.f64 x #s(literal 3 binary64))) #s(literal -1/3 binary64))) |
(-.f64 x (*.f64 (*.f64 (neg.f64 x) x) (*.f64 #s(literal -1/3 binary64) x))) |
(-.f64 x (*.f64 #s(literal 1/3 binary64) (pow.f64 x #s(literal 3 binary64)))) |
(+.f64 (/.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 3 binary64)) (fma.f64 x (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64)))) (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 x (-.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) #s(literal 2 binary64))))) |
(+.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64)) x) |
(+.f64 x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) |
(*.f64 (*.f64 x (fabs.f64 x)) (fabs.f64 x)) |
(*.f64 (neg.f64 (pow.f64 x #s(literal 3/2 binary64))) (neg.f64 (pow.f64 x #s(literal 3/2 binary64)))) |
(*.f64 (fabs.f64 (pow.f64 x #s(literal 3/2 binary64))) (fabs.f64 (pow.f64 x #s(literal 3/2 binary64)))) |
(*.f64 (pow.f64 x #s(literal 3/2 binary64)) (pow.f64 x #s(literal 3/2 binary64))) |
(*.f64 (*.f64 (neg.f64 x) x) (neg.f64 x)) |
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) x)) |
(*.f64 (*.f64 x x) x) |
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) x)) |
(*.f64 x (*.f64 x x)) |
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 3 binary64)) |
(pow.f64 (pow.f64 x #s(literal 3/2 binary64)) #s(literal 2 binary64)) |
(pow.f64 (*.f64 x x) #s(literal 3/2 binary64)) |
(pow.f64 x #s(literal 3 binary64)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 3 binary64))) |
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 3 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 3 binary64)))) |
(*.f64 (*.f64 (neg.f64 x) #s(literal -1 binary64)) x) |
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x))) |
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x))) |
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x))) |
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x))) |
(*.f64 (*.f64 (neg.f64 x) x) #s(literal -1 binary64)) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(*.f64 #s(literal -1 binary64) (*.f64 (neg.f64 x) x)) |
(*.f64 (*.f64 x x) #s(literal 1 binary64)) |
(*.f64 #s(literal 1 binary64) (*.f64 x x)) |
(*.f64 (neg.f64 x) (neg.f64 x)) |
(*.f64 x (*.f64 #s(literal -1 binary64) (neg.f64 x))) |
(*.f64 x x) |
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 2 binary64)) |
(pow.f64 (fabs.f64 x) #s(literal 2 binary64)) |
(pow.f64 (*.f64 x x) #s(literal 1 binary64)) |
(pow.f64 (neg.f64 x) #s(literal 2 binary64)) |
(pow.f64 x #s(literal 2 binary64)) |
(neg.f64 (*.f64 (neg.f64 x) x)) |
(fabs.f64 (*.f64 x x)) |
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) |
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))) |
x |
#s(literal -1/3 binary64) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) (-.f64 (*.f64 #s(literal 2/15 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) x) x) #s(literal 1/3 binary64)) x)) |
#s(approx (+ (* (* (* x x) x) -1/3) x) x) |
#s(approx (+ (* (* (* x x) x) -1/3) x) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
#s(approx (* (* x x) x) (pow.f64 x #s(literal 3 binary64))) |
#s(approx (* x x) (*.f64 x x)) |
#s(approx x x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (tanh.f64 x)) |
#s(approx (+ (* (* (* x x) x) -1/3) x) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))) |
#s(approx (+ (* (* (* x x) x) -1/3) x) (*.f64 (-.f64 (pow.f64 x #s(literal -2 binary64)) #s(literal 1/3 binary64)) (pow.f64 x #s(literal 3 binary64)))) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (tanh.f64 x)) |
#s(approx (+ (* (* (* x x) x) -1/3) x) (*.f64 (neg.f64 (-.f64 #s(literal 1/3 binary64) (pow.f64 x #s(literal -2 binary64)))) (pow.f64 x #s(literal 3 binary64)))) |
Compiled 2 304 to 330 computations (85.7% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 89 | 0 | 89 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 89 | 3 | 92 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (tanh.f64 x) |
| ✓ | 97.4% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)) |
| ✓ | 97.0% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
Compiled 111 to 46 computations (58.6% saved)
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)) |
(tanh.f64 x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
(tanh.f64 x) |
2 calls:
| 5.0ms | x |
| 1.0ms | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 100.0% | 1 | x |
Compiled 14 to 8 computations (42.9% saved)
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)) |
| Outputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)) |
2 calls:
| 1.0ms | x |
| 1.0ms | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 97.4% | 1 | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 97.4% | 1 | x |
Compiled 14 to 8 computations (42.9% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
| Outputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
2 calls:
| 1.0ms | x |
| 1.0ms | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 97.0% | 1 | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 97.0% | 1 | x |
Compiled 14 to 8 computations (42.9% saved)
| 1× | done |
Compiled 39 to 14 computations (64.1% saved)
(negabs x)
Compiled 182 to 86 computations (52.7% saved)
Loading profile data...