
Time bar (total: 4.9s)
| 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.7s | 3 302× | 2 | valid |
| 1.1s | 4 580× | 1 | valid |
| 693.0ms | 7 898× | 0 | exit |
| 21.0ms | 374× | 0 | valid |
ival-exp: 2.0s (70.3% of total)adjust: 329.0ms (11.5% of total)ival-add!: 200.0ms (7% of total)ival-div!: 143.0ms (5% of total)ival-sub!: 105.0ms (3.7% of total)ival-neg: 71.0ms (2.5% of total)Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 7 |
| 1 | 57 | 7 |
| 2 | 213 | 7 |
| 3 | 1588 | 7 |
| 1× | node-limit |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 9.2% | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(negabs x)
Compiled 20 to 14 computations (30% 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 (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 | 125 | 490 |
| 0 | 135 | 348 |
| 1 | 749 | 337 |
| 0 | 6295 | 311 |
| 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 (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 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.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 (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))) (exp.f64 (*.f64 x #s(literal 3 binary64))))) (+.f64 (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (exp.f64 (+.f64 x x)))) |
(*.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 (exp.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (/.f64 (exp.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) (*.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 (exp.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 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(/.f64 (-.f64 (pow.f64 (/.f64 (exp.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) #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 (exp.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (/.f64 (exp.f64 x) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (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 (exp.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) (*.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 (neg.f64 (*.f64 #s(literal -2 binary64) (sinh.f64 x))) (neg.f64 (*.f64 #s(literal -2 binary64) (cosh.f64 x)))) |
(/.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 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.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 (exp.f64 (*.f64 x #s(literal 3 binary64))) (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64)))) (*.f64 (+.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) #s(literal 1 binary64)) (exp.f64 (+.f64 x x))) (*.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 (sinh.f64 x) #s(literal 2 binary64)) (*.f64 #s(literal -2 binary64) (cosh.f64 x)))) |
(neg.f64 (/.f64 (*.f64 #s(literal -2 binary64) (sinh.f64 x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(-.f64 (/.f64 (exp.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 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))) (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))))) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) |
(*.f64 (/.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))) (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))) (exp.f64 (*.f64 x #s(literal 3 binary64))))) (+.f64 (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (exp.f64 (+.f64 x x)))) |
(*.f64 (sinh.f64 x) #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) (sinh.f64 x)) |
(/.f64 (/.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))) #s(literal 2 binary64)) (cosh.f64 x)) |
(/.f64 (neg.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))))) (*.f64 #s(literal -2 binary64) (cosh.f64 x))) |
(/.f64 (neg.f64 (-.f64 (exp.f64 (*.f64 x #s(literal 3 binary64))) (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))))) (neg.f64 (+.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) #s(literal 1 binary64)) (exp.f64 (+.f64 x x))))) |
(/.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) |
(/.f64 (-.f64 (exp.f64 (*.f64 x #s(literal 3 binary64))) (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64)))) (+.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) #s(literal 1 binary64)) (exp.f64 (+.f64 x x)))) |
(-.f64 (-.f64 (exp.f64 x) (cosh.f64 x)) (sinh.f64 (neg.f64 x))) |
(-.f64 (/.f64 (exp.f64 (+.f64 x x)) (*.f64 (cosh.f64 x) #s(literal 2 binary64))) (/.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (*.f64 (cosh.f64 x) #s(literal 2 binary64)))) |
(-.f64 (/.f64 (exp.f64 (*.f64 x #s(literal 3 binary64))) (+.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) #s(literal 1 binary64)) (exp.f64 (+.f64 x x)))) (/.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))) (+.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) #s(literal 1 binary64)) (exp.f64 (+.f64 x x))))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (-.f64 (exp.f64 x) (cosh.f64 x)) (sinh.f64 x)) |
(+.f64 (sinh.f64 x) (sinh.f64 x)) |
(+.f64 (cosh.f64 x) (-.f64 (sinh.f64 x) (exp.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) (-.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 (sinh.f64 x) (cosh.f64 x)) |
(+.f64 (cosh.f64 x) (sinh.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 (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 (-.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 #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 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))) (-.f64 (exp.f64 (*.f64 x #s(literal 3 binary64))) (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))))) (+.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) #s(literal 1 binary64)) (exp.f64 (+.f64 x x)))) |
(*.f64 (/.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))) (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.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 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))) #s(literal 2 binary64)) (sinh.f64 x)) |
(/.f64 (-.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (exp.f64 (+.f64 x x))) (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(/.f64 (neg.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))) (exp.f64 (*.f64 x #s(literal 3 binary64))))) (neg.f64 (+.f64 (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (exp.f64 (+.f64 x x))))) |
(/.f64 (neg.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))))) (*.f64 #s(literal -2 binary64) (sinh.f64 x))) |
(/.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64)))) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) |
(/.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))) (exp.f64 (*.f64 x #s(literal 3 binary64)))) (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (expm1.f64 (+.f64 x x)))) |
(/.f64 (+.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))) (exp.f64 (*.f64 x #s(literal 3 binary64)))) (+.f64 (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (exp.f64 (+.f64 x x)))) |
(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 (exp.f64 (+.f64 x x)) (*.f64 (sinh.f64 x) #s(literal 2 binary64))) (/.f64 (exp.f64 (*.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 (exp.f64 (*.f64 x #s(literal 3 binary64))) (+.f64 (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (exp.f64 (+.f64 x x)))) (/.f64 (exp.f64 (*.f64 (neg.f64 x) #s(literal 3 binary64))) (+.f64 (expm1.f64 (*.f64 (neg.f64 x) #s(literal 2 binary64))) (exp.f64 (+.f64 x x))))) |
(+.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)))) (*.f64 (fma.f64 (*.f64 x x) #s(literal -1/3 binary64) #s(literal 1 binary64)) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (*.f64 (fma.f64 (-.f64 (*.f64 #s(literal 2/15 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) (*.f64 x x) #s(literal 1 binary64)) x)) |
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (*.f64 (fma.f64 (*.f64 (-.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) x #s(literal 1 binary64)) x)) |
#s(approx (- (exp x) (exp (neg x))) (+.f64 x 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 (*.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)) 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 (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 (fma.f64 #s(literal 1/12 binary64) (*.f64 x x) #s(literal 1 binary64)) (*.f64 x x) #s(literal 2 binary64))) |
#s(approx (+ (exp x) (exp (neg x))) (fma.f64 (*.f64 (fma.f64 (fma.f64 #s(literal 1/360 binary64) (*.f64 x x) #s(literal 1/12 binary64)) (*.f64 x x) #s(literal 1 binary64)) x) 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 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 1 250 to 450 computations (64% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 105 | 3 | 108 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 106 | 3 | 109 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 97.2% | (/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
| ▶ | 100.0% | (tanh.f64 x) |
| ▶ | 95.8% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
Compiled 21 to 17 computations (19% saved)
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
x |
(tanh.f64 x) |
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(expm1.f64 (+.f64 x x)) |
(+.f64 x x) |
(+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)) |
(exp.f64 (+.f64 x x)) |
#s(literal 1 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 (- (exp (+ x x)) 1) #s(hole binary64 (* 2 x))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* 2 x))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* x (+ 2 (* 4/3 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* x (+ 2 (* x (+ 4/3 (* 2/3 x))))))))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 2)) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 2 (* 2 x)))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 2 (* x (+ 2 (* 2 x)))))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 2 (* x (+ 2 (* x (+ 2 (* 4/3 x)))))))) |
#s(approx (exp (+ x x)) #s(hole binary64 1)) |
#s(approx (exp (+ x x)) #s(hole binary64 (+ 1 (* 2 x)))) |
#s(approx (exp (+ x x)) #s(hole binary64 (+ 1 (* x (+ 2 (* 2 x)))))) |
#s(approx (exp (+ x x)) #s(hole binary64 (+ 1 (* x (+ 2 (* x (+ 2 (* 4/3 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 (tanh x) #s(hole binary64 (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (exp (+ x x)) 1)) #s(hole binary64 (/ (- (exp (* 2 x)) 1) (+ 1 (exp (* 2 x)))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (- (exp (* 2 x)) 1))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 1 (exp (* 2 x))))) |
#s(approx (exp (+ x x)) #s(hole binary64 (exp (* 2 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 x)) 1) (+ (exp (+ x x)) 1)) #s(hole binary64 (/ (- (exp (neg (* -2 x))) 1) (+ 1 (exp (neg (* -2 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (- (exp (neg (* -2 x))) 1))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 1 (exp (neg (* -2 x)))))) |
#s(approx (exp (+ x x)) #s(hole binary64 (exp (neg (* -2 x))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | x | @ | 0 | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x (tanh x) (/ (- (exp (+ x x)) 1) (+ (exp (+ x x)) 1)) (- (exp (+ x x)) 1) (+ x x) (+ (exp (+ x x)) 1) (exp (+ x x)) 1) |
| 2.0ms | x | @ | -inf | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x (tanh x) (/ (- (exp (+ x x)) 1) (+ (exp (+ x x)) 1)) (- (exp (+ x x)) 1) (+ x x) (+ (exp (+ x x)) 1) (exp (+ x x)) 1) |
| 2.0ms | x | @ | inf | ((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x (tanh x) (/ (- (exp (+ x x)) 1) (+ (exp (+ x x)) 1)) (- (exp (+ x x)) 1) (+ x x) (+ (exp (+ x x)) 1) (exp (+ x x)) 1) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 111 | 504 |
| 0 | 119 | 332 |
| 0 | 644 | 310 |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | unsound |
| 1× | iter-limit |
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
x |
(tanh.f64 x) |
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(expm1.f64 (+.f64 x x)) |
(+.f64 x x) |
(+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)) |
(exp.f64 (+.f64 x x)) |
#s(literal 1 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 (- (exp (+ x x)) 1) #s(hole binary64 (* 2 x))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* 2 x))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* x (+ 2 (* 4/3 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* x (+ 2 (* x (+ 4/3 (* 2/3 x))))))))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 2)) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 2 (* 2 x)))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 2 (* x (+ 2 (* 2 x)))))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 2 (* x (+ 2 (* x (+ 2 (* 4/3 x)))))))) |
#s(approx (exp (+ x x)) #s(hole binary64 1)) |
#s(approx (exp (+ x x)) #s(hole binary64 (+ 1 (* 2 x)))) |
#s(approx (exp (+ x x)) #s(hole binary64 (+ 1 (* x (+ 2 (* 2 x)))))) |
#s(approx (exp (+ x x)) #s(hole binary64 (+ 1 (* x (+ 2 (* x (+ 2 (* 4/3 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 (tanh x) #s(hole binary64 (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (exp (+ x x)) 1)) #s(hole binary64 (/ (- (exp (* 2 x)) 1) (+ 1 (exp (* 2 x)))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (- (exp (* 2 x)) 1))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 1 (exp (* 2 x))))) |
#s(approx (exp (+ x x)) #s(hole binary64 (exp (* 2 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 x)) 1) (+ (exp (+ x x)) 1)) #s(hole binary64 (/ (- (exp (neg (* -2 x))) 1) (+ 1 (exp (neg (* -2 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (- (exp (neg (* -2 x))) 1))) |
#s(approx (+ (exp (+ x x)) 1) #s(hole binary64 (+ 1 (exp (neg (* -2 x)))))) |
#s(approx (exp (+ x x)) #s(hole binary64 (exp (neg (* -2 x))))) |
| Outputs |
|---|
#s(approx (tanh x) x) |
x |
(tanh.f64 x) |
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (sinh.f64 x))) (neg.f64 (*.f64 #s(literal 2 binary64) (cosh.f64 x)))) |
(/.f64 (neg.f64 (expm1.f64 (+.f64 x x))) (neg.f64 (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 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 #s(literal 2 binary64) (sinh.f64 x)) (*.f64 #s(literal 2 binary64) (cosh.f64 x))) |
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(-.f64 (/.f64 (exp.f64 x) (*.f64 #s(literal 2 binary64) (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 #s(literal 2 binary64) (cosh.f64 x)))) |
(-.f64 (/.f64 (exp.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)))) |
(tanh.f64 x) |
(/.f64 (neg.f64 (*.f64 #s(literal 2 binary64) (sinh.f64 x))) (neg.f64 (*.f64 #s(literal 2 binary64) (cosh.f64 x)))) |
(/.f64 (neg.f64 (expm1.f64 (+.f64 x x))) (neg.f64 (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 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 #s(literal 2 binary64) (sinh.f64 x)) (*.f64 #s(literal 2 binary64) (cosh.f64 x))) |
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(-.f64 (/.f64 (exp.f64 x) (*.f64 #s(literal 2 binary64) (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 #s(literal 2 binary64) (cosh.f64 x)))) |
(-.f64 (/.f64 (exp.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)))) |
(/.f64 (-.f64 (*.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x))) #s(literal 1 binary64)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 (+.f64 x x)) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x)) (+.f64 #s(literal 1 binary64) (*.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))))) |
(expm1.f64 (+.f64 x x)) |
(-.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)) |
(*.f64 #s(literal -2 binary64) (neg.f64 x)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 x #s(literal 2 binary64)) |
(/.f64 (-.f64 (*.f64 x x) (*.f64 x x)) (-.f64 x x)) |
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x (-.f64 (*.f64 x x) (*.f64 x x)))) |
(neg.f64 (*.f64 #s(literal -2 binary64) x)) |
(+.f64 x x) |
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x)))) (-.f64 #s(literal 1 binary64) (exp.f64 (+.f64 x x)))) |
(/.f64 (-.f64 (*.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x))) #s(literal 1 binary64)) (expm1.f64 (+.f64 x x))) |
(/.f64 (+.f64 (pow.f64 (exp.f64 (+.f64 x x)) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x)) (-.f64 #s(literal 1 binary64) (*.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))))) |
(/.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 (+.f64 x x)) #s(literal 3 binary64))) (+.f64 #s(literal 1 binary64) (-.f64 (*.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x))) (*.f64 #s(literal 1 binary64) (exp.f64 (+.f64 x x)))))) |
(fma.f64 (exp.f64 x) (exp.f64 x) #s(literal 1 binary64)) |
(+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)) |
(+.f64 #s(literal 1 binary64) (exp.f64 (+.f64 x x))) |
(*.f64 (exp.f64 x) (exp.f64 x)) |
(pow.f64 (exp.f64 #s(literal 2 binary64)) x) |
(/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) |
(-.f64 (cosh.f64 (*.f64 #s(literal -2 binary64) x)) (sinh.f64 (*.f64 #s(literal -2 binary64) x))) |
(exp.f64 (+.f64 x x)) |
(+.f64 (cosh.f64 (+.f64 x x)) (sinh.f64 (+.f64 x x))) |
#s(literal 1 binary64) |
#s(approx (tanh x) x) |
#s(approx (tanh x) (*.f64 (fma.f64 (*.f64 x x) #s(literal -1/3 binary64) #s(literal 1 binary64)) x)) |
#s(approx (tanh x) (*.f64 (fma.f64 (-.f64 (*.f64 #s(literal 2/15 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) (*.f64 x x) #s(literal 1 binary64)) x)) |
#s(approx (tanh x) (*.f64 (fma.f64 (-.f64 (*.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) (*.f64 x x)) #s(literal 1/3 binary64)) (*.f64 x x) #s(literal 1 binary64)) x)) |
#s(approx (- (exp (+ x x)) 1) (+.f64 x x)) |
#s(approx (- (exp (+ x x)) 1) (*.f64 (fma.f64 #s(literal 2 binary64) x #s(literal 2 binary64)) x)) |
#s(approx (- (exp (+ x x)) 1) (*.f64 (fma.f64 (fma.f64 #s(literal 4/3 binary64) x #s(literal 2 binary64)) x #s(literal 2 binary64)) x)) |
#s(approx (- (exp (+ x x)) 1) (*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal 2/3 binary64) x #s(literal 4/3 binary64)) x #s(literal 2 binary64)) x #s(literal 2 binary64)) x)) |
#s(approx (+ (exp (+ x x)) 1) #s(literal 2 binary64)) |
#s(approx (+ (exp (+ x x)) 1) (fma.f64 #s(literal 2 binary64) x #s(literal 2 binary64))) |
#s(approx (+ (exp (+ x x)) 1) (fma.f64 (fma.f64 #s(literal 2 binary64) x #s(literal 2 binary64)) x #s(literal 2 binary64))) |
#s(approx (+ (exp (+ x x)) 1) (fma.f64 (fma.f64 (fma.f64 #s(literal 4/3 binary64) x #s(literal 2 binary64)) x #s(literal 2 binary64)) x #s(literal 2 binary64))) |
#s(approx (exp (+ x x)) #s(literal 1 binary64)) |
#s(approx (exp (+ x x)) (fma.f64 #s(literal 2 binary64) x #s(literal 1 binary64))) |
#s(approx (exp (+ x x)) (fma.f64 (fma.f64 #s(literal 2 binary64) x #s(literal 2 binary64)) x #s(literal 1 binary64))) |
#s(approx (exp (+ x x)) (fma.f64 (fma.f64 (fma.f64 #s(literal 4/3 binary64) x #s(literal 2 binary64)) x #s(literal 2 binary64)) x #s(literal 1 binary64))) |
#s(approx (tanh x) (tanh.f64 x)) |
#s(approx (tanh x) (tanh.f64 x)) |
#s(approx (tanh x) (tanh.f64 x)) |
#s(approx (- (exp (+ x x)) 1) (expm1.f64 (+.f64 x x))) |
#s(approx (+ (exp (+ x x)) 1) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
#s(approx (exp (+ x x)) (exp.f64 (+.f64 x x))) |
#s(approx (tanh x) (tanh.f64 x)) |
#s(approx (tanh x) (tanh.f64 x)) |
#s(approx (- (exp (+ x x)) 1) (expm1.f64 (+.f64 x x))) |
#s(approx (+ (exp (+ x x)) 1) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
#s(approx (exp (+ x x)) (exp.f64 (+.f64 x x))) |
Compiled 377 to 202 computations (46.4% saved)
4 alts after pruning (1 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 45 | 1 | 46 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 3 | 3 |
| Done | 0 | 0 | 0 |
| Total | 45 | 4 | 49 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 97.2% | (/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) #s(literal 1 binary64))) |
| ✓ | 97.2% | (/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
| ✓ | 100.0% | (tanh.f64 x) |
| ✓ | 95.8% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
Compiled 31 to 27 computations (12.9% saved)
| Inputs |
|---|
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) #s(literal 1 binary64))) |
(expm1.f64 (+.f64 x x)) |
(+.f64 x x) |
x |
(+.f64 (/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) #s(literal 1 binary64)) |
(/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) |
#s(literal 1 binary64) |
(exp.f64 (*.f64 #s(literal -2 binary64) x)) |
(*.f64 #s(literal -2 binary64) x) |
#s(literal -2 binary64) |
| Outputs |
|---|
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 x)) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* 2 x))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* 2 x))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* x (+ 2 (* 4/3 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* x (+ 2 (* x (+ 4/3 (* 2/3 x))))))))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 2)) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 (+ 2 (* 2 x)))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 (+ 2 (* x (+ 2 (* 2 x)))))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 (+ 2 (* x (+ 2 (* x (+ 2 (* 4/3 x)))))))) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 1)) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 (+ 1 (* 2 x)))) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 (+ 1 (* x (+ 2 (* 2 x)))))) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 (+ 1 (* x (+ 2 (* x (+ 2 (* 4/3 x)))))))) |
#s(approx (exp (* -2 x)) #s(hole binary64 (+ 1 (* -2 x)))) |
#s(approx (exp (* -2 x)) #s(hole binary64 (+ 1 (* x (- (* 2 x) 2))))) |
#s(approx (exp (* -2 x)) #s(hole binary64 (+ 1 (* x (- (* x (+ 2 (* -4/3 x))) 2))))) |
#s(approx (* -2 x) #s(hole binary64 (* -2 x))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (/ (- (exp (* 2 x)) 1) (+ 1 (/ 1 (exp (* -2 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (- (exp (* 2 x)) 1))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 (+ 1 (/ 1 (exp (* -2 x)))))) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 (/ 1 (exp (* -2 x))))) |
#s(approx (exp (* -2 x)) #s(hole binary64 (exp (* -2 x)))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (/ (- (exp (neg (* -2 x))) 1) (+ 1 (/ 1 (exp (* -2 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (- (exp (neg (* -2 x))) 1))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | 0 | ((/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) (- (exp (+ x x)) 1) (+ x x) x (+ (/ 1 (exp (* -2 x))) 1) (/ 1 (exp (* -2 x))) 1 (exp (* -2 x)) (* -2 x) -2) |
| 2.0ms | x | @ | -inf | ((/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) (- (exp (+ x x)) 1) (+ x x) x (+ (/ 1 (exp (* -2 x))) 1) (/ 1 (exp (* -2 x))) 1 (exp (* -2 x)) (* -2 x) -2) |
| 2.0ms | x | @ | inf | ((/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) (- (exp (+ x x)) 1) (+ x x) x (+ (/ 1 (exp (* -2 x))) 1) (/ 1 (exp (* -2 x))) 1 (exp (* -2 x)) (* -2 x) -2) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 107 | 492 |
| 0 | 118 | 436 |
| 0 | 620 | 410 |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | unsound |
| 1× | iter-limit |
| Inputs |
|---|
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) #s(literal 1 binary64))) |
(expm1.f64 (+.f64 x x)) |
(+.f64 x x) |
x |
(+.f64 (/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) #s(literal 1 binary64)) |
(/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) |
#s(literal 1 binary64) |
(exp.f64 (*.f64 #s(literal -2 binary64) x)) |
(*.f64 #s(literal -2 binary64) x) |
#s(literal -2 binary64) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 x)) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (* x (+ 1 (* -1/3 (pow x 2)))))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* 2 x))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* 2 x))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* x (+ 2 (* 4/3 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (* x (+ 2 (* x (+ 2 (* x (+ 4/3 (* 2/3 x))))))))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 2)) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 (+ 2 (* 2 x)))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 (+ 2 (* x (+ 2 (* 2 x)))))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 (+ 2 (* x (+ 2 (* x (+ 2 (* 4/3 x)))))))) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 1)) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 (+ 1 (* 2 x)))) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 (+ 1 (* x (+ 2 (* 2 x)))))) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 (+ 1 (* x (+ 2 (* x (+ 2 (* 4/3 x)))))))) |
#s(approx (exp (* -2 x)) #s(hole binary64 (+ 1 (* -2 x)))) |
#s(approx (exp (* -2 x)) #s(hole binary64 (+ 1 (* x (- (* 2 x) 2))))) |
#s(approx (exp (* -2 x)) #s(hole binary64 (+ 1 (* x (- (* x (+ 2 (* -4/3 x))) 2))))) |
#s(approx (* -2 x) #s(hole binary64 (* -2 x))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (/ (- (exp (* 2 x)) 1) (+ 1 (/ 1 (exp (* -2 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (- (exp (* 2 x)) 1))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(hole binary64 (+ 1 (/ 1 (exp (* -2 x)))))) |
#s(approx (/ 1 (exp (* -2 x))) #s(hole binary64 (/ 1 (exp (* -2 x))))) |
#s(approx (exp (* -2 x)) #s(hole binary64 (exp (* -2 x)))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) #s(hole binary64 (/ (- (exp (neg (* -2 x))) 1) (+ 1 (/ 1 (exp (* -2 x))))))) |
#s(approx (- (exp (+ x x)) 1) #s(hole binary64 (- (exp (neg (* -2 x))) 1))) |
| Outputs |
|---|
(/.f64 (neg.f64 (expm1.f64 (+.f64 x x))) (neg.f64 (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)))) |
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(-.f64 (/.f64 (exp.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)))) |
(/.f64 (-.f64 (*.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x))) #s(literal 1 binary64)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 (+.f64 x x)) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x)) (+.f64 #s(literal 1 binary64) (*.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))))) |
(expm1.f64 (+.f64 x x)) |
(-.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal -2 binary64) (neg.f64 x)) |
(*.f64 x #s(literal 2 binary64)) |
(/.f64 (-.f64 (*.f64 x x) (*.f64 x x)) (-.f64 x x)) |
(/.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x (-.f64 (*.f64 x x) (*.f64 x x)))) |
(neg.f64 (*.f64 #s(literal -2 binary64) x)) |
(+.f64 x x) |
x |
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x)))) (-.f64 #s(literal 1 binary64) (exp.f64 (+.f64 x x)))) |
(/.f64 (-.f64 (*.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x))) #s(literal 1 binary64)) (expm1.f64 (+.f64 x x))) |
(/.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (exp.f64 (+.f64 x x)) #s(literal 3 binary64))) (+.f64 #s(literal 1 binary64) (-.f64 (*.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x))) (*.f64 #s(literal 1 binary64) (exp.f64 (+.f64 x x)))))) |
(/.f64 (+.f64 (pow.f64 (exp.f64 (+.f64 x x)) #s(literal 3 binary64)) #s(literal 1 binary64)) (fma.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 x x)) (-.f64 #s(literal 1 binary64) (*.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))))) |
(fma.f64 (exp.f64 x) (exp.f64 x) #s(literal 1 binary64)) |
(+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)) |
(+.f64 #s(literal 1 binary64) (exp.f64 (+.f64 x x))) |
(*.f64 (exp.f64 x) (exp.f64 x)) |
(pow.f64 (exp.f64 #s(literal 2 binary64)) x) |
(pow.f64 (exp.f64 (*.f64 #s(literal -2 binary64) x)) #s(literal -1 binary64)) |
(/.f64 #s(literal -1 binary64) (neg.f64 (exp.f64 (*.f64 #s(literal -2 binary64) x)))) |
(/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) |
(-.f64 (cosh.f64 (*.f64 #s(literal -2 binary64) x)) (sinh.f64 (*.f64 #s(literal -2 binary64) x))) |
(exp.f64 (+.f64 x x)) |
(+.f64 (cosh.f64 (+.f64 x x)) (sinh.f64 (+.f64 x x))) |
#s(literal 1 binary64) |
(pow.f64 (exp.f64 #s(literal -2 binary64)) x) |
(exp.f64 (*.f64 #s(literal -2 binary64) x)) |
(+.f64 (cosh.f64 (*.f64 #s(literal -2 binary64) x)) (sinh.f64 (*.f64 #s(literal -2 binary64) x))) |
(*.f64 #s(literal -2 binary64) x) |
(*.f64 x #s(literal -2 binary64)) |
#s(literal -2 binary64) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) x) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) (*.f64 (fma.f64 (*.f64 x x) #s(literal -1/3 binary64) #s(literal 1 binary64)) x)) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) (*.f64 (fma.f64 (-.f64 (*.f64 #s(literal 2/15 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) (*.f64 x x) #s(literal 1 binary64)) x)) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) (*.f64 (fma.f64 (-.f64 (*.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) (*.f64 x x)) #s(literal 1/3 binary64)) (*.f64 x x) #s(literal 1 binary64)) x)) |
#s(approx (- (exp (+ x x)) 1) (+.f64 x x)) |
#s(approx (- (exp (+ x x)) 1) (*.f64 (fma.f64 #s(literal 2 binary64) x #s(literal 2 binary64)) x)) |
#s(approx (- (exp (+ x x)) 1) (*.f64 (fma.f64 (fma.f64 #s(literal 4/3 binary64) x #s(literal 2 binary64)) x #s(literal 2 binary64)) x)) |
#s(approx (- (exp (+ x x)) 1) (*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal 2/3 binary64) x #s(literal 4/3 binary64)) x #s(literal 2 binary64)) x #s(literal 2 binary64)) x)) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) #s(literal 2 binary64)) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) (fma.f64 #s(literal 2 binary64) x #s(literal 2 binary64))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) (fma.f64 (fma.f64 #s(literal 2 binary64) x #s(literal 2 binary64)) x #s(literal 2 binary64))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) (fma.f64 (fma.f64 (fma.f64 #s(literal 4/3 binary64) x #s(literal 2 binary64)) x #s(literal 2 binary64)) x #s(literal 2 binary64))) |
#s(approx (/ 1 (exp (* -2 x))) #s(literal 1 binary64)) |
#s(approx (/ 1 (exp (* -2 x))) (fma.f64 #s(literal 2 binary64) x #s(literal 1 binary64))) |
#s(approx (/ 1 (exp (* -2 x))) (fma.f64 (fma.f64 #s(literal 2 binary64) x #s(literal 2 binary64)) x #s(literal 1 binary64))) |
#s(approx (/ 1 (exp (* -2 x))) (fma.f64 (fma.f64 (fma.f64 #s(literal 4/3 binary64) x #s(literal 2 binary64)) x #s(literal 2 binary64)) x #s(literal 1 binary64))) |
#s(approx (exp (* -2 x)) (fma.f64 #s(literal -2 binary64) x #s(literal 1 binary64))) |
#s(approx (exp (* -2 x)) (fma.f64 (-.f64 (+.f64 x x) #s(literal 2 binary64)) x #s(literal 1 binary64))) |
#s(approx (exp (* -2 x)) (fma.f64 (-.f64 (*.f64 (fma.f64 #s(literal -4/3 binary64) x #s(literal 2 binary64)) x) #s(literal 2 binary64)) x #s(literal 1 binary64))) |
#s(approx (* -2 x) (*.f64 #s(literal -2 binary64) x)) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) (/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)))) |
#s(approx (- (exp (+ x x)) 1) (expm1.f64 (+.f64 x x))) |
#s(approx (+ (/ 1 (exp (* -2 x))) 1) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
#s(approx (/ 1 (exp (* -2 x))) (exp.f64 (+.f64 x x))) |
#s(approx (exp (* -2 x)) (exp.f64 (*.f64 #s(literal -2 binary64) x))) |
#s(approx (/ (- (exp (+ x x)) 1) (+ (/ 1 (exp (* -2 x))) 1)) (/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64)))) |
#s(approx (- (exp (+ x x)) 1) (expm1.f64 (+.f64 x x))) |
Compiled 436 to 229 computations (47.5% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 51 | 0 | 51 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 3 | 3 |
| Total | 51 | 4 | 55 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 97.2% | (/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) #s(literal 1 binary64))) |
| ✓ | 97.2% | (/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
| ✓ | 100.0% | (tanh.f64 x) |
| ✓ | 95.8% | #s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
Compiled 65 to 54 computations (16.9% saved)
| Inputs |
|---|
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) x) |
(tanh.f64 x) |
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (exp.f64 (+.f64 x x)) #s(literal 1 binary64))) |
(/.f64 (expm1.f64 (+.f64 x x)) (+.f64 (/.f64 #s(literal 1 binary64) (exp.f64 (*.f64 #s(literal -2 binary64) x))) #s(literal 1 binary64))) |
(/.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:
| 2.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 11 to 8 computations (27.3% 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 |
|---|---|---|
| 95.8% | 1 | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 95.8% | 1 | x |
Compiled 11 to 8 computations (27.3% saved)
| 1× | done |
Compiled 12 to 9 computations (25% saved)
(negabs x)
Compiled 48 to 36 computations (25% saved)
Loading profile data...