Hyperbolic tangent

Time bar (total: 7.0s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze0.0ms (0%)

Memory
0.8MiB live, 0.8MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
100%100%0%0%0%0%0%2
Compiler

Compiled 15 to 9 computations (40% saved)

sample4.1s (58.1%)

Memory
39.1MiB live, 5 491.8MiB allocated
Samples
1.3s2 888×2valid
956.0ms4 804×1valid
888.0ms7 927×0exit
36.0ms564×0valid
Precisions
Click to see histograms. Total time spent on operations: 2.5s
ival-exp: 1.8s (70.1% of total)
adjust: 184.0ms (7.4% of total)
ival-div: 182.0ms (7.3% of total)
ival-sub: 147.0ms (5.9% of total)
ival-add: 140.0ms (5.6% of total)
ival-neg: 76.0ms (3% of total)
ival-true: 13.0ms (0.5% of total)
ival-assert: 7.0ms (0.3% of total)
Bogosity

explain214.0ms (3%)

Memory
31.8MiB live, 267.2MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
2510-0-(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
30-0-(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
00-0-(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
00-0-(exp.f64 x)
00-0-(exp.f64 (neg.f64 x))
00-0-(neg.f64 x)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
-.f64(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))cancellation2510
/.f64(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))o/o30
(exp.f64 x)overflow1
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))overflow3
(exp.f64 (neg.f64 x))overflow2
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))overflow3
(exp.f64 x)overflow1
(exp.f64 (neg.f64 x))overflow2
Confusion
Predicted +Predicted -
+2540
-02
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+25400
-002
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
02
1254
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
82.0ms202×2valid
53.0ms286×1valid
2.0ms24×0valid
Compiler

Compiled 83 to 25 computations (69.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 111.0ms
ival-exp: 75.0ms (67.6% of total)
adjust: 12.0ms (10.8% of total)
ival-div: 8.0ms (7.2% of total)
ival-add: 8.0ms (7.2% of total)
ival-sub: 6.0ms (5.4% of total)
ival-neg: 3.0ms (2.7% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

preprocess89.0ms (1.3%)

Memory
-31.5MiB live, 85.9MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0927
13227
28026
319926
446826
5113026
6154726
7158526
8160426
9162326
10165726
11166926
0713
01313
12513
24213
36713
412213
527613
646213
768213
890513
9105813
10118613
11123313
0123313
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Outputs
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
Symmetry

(negabs x)

Compiler

Compiled 13 to 7 computations (46.2% saved)

eval0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
1.0MiB live, 1.0MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
8.6%
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 13 to 7 computations (46.2% saved)

simplify36.0ms (0.5%)

Memory
-2.0MiB live, 36.6MiB allocated
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(exp.f64 (neg.f64 x))
cost-diff0
(exp.f64 x)
cost-diff0
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
cost-diff0
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0733
01333
12533
24233
36733
412233
527633
646233
768233
890533
9105833
10118633
11123333
0123333
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
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
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.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)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))

localize82.0ms (1.2%)

Memory
32.0MiB live, 108.5MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0
(exp.f64 x)
accuracy0.00390625
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
accuracy0.7343832531524757
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
accuracy57.77461652084721
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
Samples
45.0ms101×2valid
25.0ms143×1valid
1.0ms12×0valid
Compiler

Compiled 35 to 9 computations (74.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 59.0ms
ival-exp: 41.0ms (69.8% of total)
adjust: 6.0ms (10.2% of total)
ival-div: 4.0ms (6.8% of total)
ival-sub: 4.0ms (6.8% of total)
ival-add: 3.0ms (5.1% of total)
ival-neg: 1.0ms (1.7% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series4.0ms (0.1%)

Memory
6.6MiB live, 6.6MiB allocated
Counts
5 → 60
Calls
Call 1
Inputs
#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())
#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())
#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())
#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())
#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())
Outputs
#s(alt x (taylor 0 x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))) (taylor 0 x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))) (taylor 0 x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (* 2 x) (taylor 0 x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 2 (* 1/3 (pow x 2)))) (taylor 0 x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 2 (* (pow x 2) (+ 1/3 (* 1/60 (pow x 2)))))) (taylor 0 x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 2 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 1/60 (* 1/2520 (pow x 2)))))))) (taylor 0 x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt 1 (taylor 0 x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (+ 1 x) (taylor 0 x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* x (+ 1 (* 1/2 x)))) (taylor 0 x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x)))))) (taylor 0 x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt 1 (taylor 0 x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* -1 x)) (taylor 0 x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* x (- (* 1/2 x) 1))) (taylor 0 x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* x (- (* x (+ 1/2 (* -1/6 x))) 1))) (taylor 0 x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt 2 (taylor 0 x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ 2 (pow x 2)) (taylor 0 x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ 2 (* (pow x 2) (+ 1 (* 1/12 (pow x 2))))) (taylor 0 x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ 2 (* (pow x 2) (+ 1 (* (pow x 2) (+ 1/12 (* 1/360 (pow x 2))))))) (taylor 0 x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (- (exp x) (exp (neg x))) (taylor inf x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (- (exp x) (exp (neg x))) (taylor inf x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (- (exp x) (exp (neg x))) (taylor inf x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (- (exp x) (exp (neg x))) (taylor inf x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (exp x) (taylor inf x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (exp x) (taylor inf x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (exp x) (taylor inf x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (exp x) (taylor inf x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (exp (neg x)) (taylor inf x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (exp (neg x)) (taylor inf x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (exp (neg x)) (taylor inf x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (exp (neg x)) (taylor inf x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (+ (exp x) (exp (neg x))) (taylor inf x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ (exp x) (exp (neg x))) (taylor inf x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ (exp x) (exp (neg x))) (taylor inf x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ (exp x) (exp (neg x))) (taylor inf x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (patch (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) #<representation binary64>) () ())) ())
#s(alt (- (exp x) (exp (* -1 x))) (taylor -inf x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (- (exp x) (exp (* -1 x))) (taylor -inf x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (- (exp x) (exp (* -1 x))) (taylor -inf x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (- (exp x) (exp (* -1 x))) (taylor -inf x) (#s(alt (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (exp x) (taylor -inf x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (exp x) (taylor -inf x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (exp x) (taylor -inf x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (exp x) (taylor -inf x) (#s(alt (exp.f64 x) (patch (exp.f64 x) #<representation binary64>) () ())) ())
#s(alt (exp (* -1 x)) (taylor -inf x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (exp (* -1 x)) (taylor -inf x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (exp (* -1 x)) (taylor -inf x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (exp (* -1 x)) (taylor -inf x) (#s(alt (exp.f64 (neg.f64 x)) (patch (exp.f64 (neg.f64 x)) #<representation binary64>) () ())) ())
#s(alt (+ (exp x) (exp (* -1 x))) (taylor -inf x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ (exp x) (exp (* -1 x))) (taylor -inf x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ (exp x) (exp (* -1 x))) (taylor -inf x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
#s(alt (+ (exp x) (exp (* -1 x))) (taylor -inf x) (#s(alt (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (patch (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (- (exp x) (exp (neg x))) (exp x) (exp (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) (exp (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) (exp (neg x)) (+ (exp x) (exp (neg x))))

simplify167.0ms (2.4%)

Memory
-22.4MiB live, 194.0MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
090425
1259424
2604414
31672414
42645414
54176414
64889414
76516414
08145386
Stop Event
iter limit
node limit
Counts
60 → 59
Calls
Call 1
Inputs
x
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
(* 2 x)
(* x (+ 2 (* 1/3 (pow x 2))))
(* x (+ 2 (* (pow x 2) (+ 1/3 (* 1/60 (pow x 2))))))
(* x (+ 2 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 1/60 (* 1/2520 (pow x 2))))))))
1
(+ 1 x)
(+ 1 (* x (+ 1 (* 1/2 x))))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 x))))))
1
(+ 1 (* -1 x))
(+ 1 (* x (- (* 1/2 x) 1)))
(+ 1 (* x (- (* x (+ 1/2 (* -1/6 x))) 1)))
2
(+ 2 (pow x 2))
(+ 2 (* (pow x 2) (+ 1 (* 1/12 (pow x 2)))))
(+ 2 (* (pow x 2) (+ 1 (* (pow x 2) (+ 1/12 (* 1/360 (pow x 2)))))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(- (exp x) (exp (neg x)))
(- (exp x) (exp (neg x)))
(- (exp x) (exp (neg x)))
(- (exp x) (exp (neg x)))
(exp x)
(exp x)
(exp x)
(exp x)
(exp (neg x))
(exp (neg x))
(exp (neg x))
(exp (neg x))
(+ (exp x) (exp (neg x)))
(+ (exp x) (exp (neg x)))
(+ (exp x) (exp (neg x)))
(+ (exp x) (exp (neg x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(- (exp x) (exp (* -1 x)))
(- (exp x) (exp (* -1 x)))
(- (exp x) (exp (* -1 x)))
(- (exp x) (exp (* -1 x)))
(exp x)
(exp x)
(exp x)
(exp x)
(exp (* -1 x))
(exp (* -1 x))
(exp (* -1 x))
(exp (* -1 x))
(+ (exp x) (exp (* -1 x)))
(+ (exp x) (exp (* -1 x)))
(+ (exp x) (exp (* -1 x)))
(+ (exp x) (exp (* -1 x)))
Outputs
x
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 2/15 binary64) (*.f64 x x) #s(literal -1/3 binary64)) x)
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) (*.f64 x x) #s(literal -1/3 binary64)) x)
(* 2 x)
(*.f64 #s(literal 2 binary64) x)
(* x (+ 2 (* 1/3 (pow x 2))))
(*.f64 (fma.f64 #s(literal 1/3 binary64) (*.f64 x x) #s(literal 2 binary64)) x)
(* x (+ 2 (* (pow x 2) (+ 1/3 (* 1/60 (pow x 2))))))
(*.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)
(* x (+ 2 (* (pow x 2) (+ 1/3 (* (pow x 2) (+ 1/60 (* 1/2520 (pow x 2))))))))
(*.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)
1
#s(literal 1 binary64)
(+ 1 x)
(-.f64 x #s(literal -1 binary64))
(+ 1 (* x (+ 1 (* 1/2 x))))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal 1 binary64)) x #s(literal 1 binary64))
(+ 1 (* x (+ 1 (* x (+ 1/2 (* 1/6 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))
1
#s(literal 1 binary64)
(+ 1 (* -1 x))
(-.f64 #s(literal 1 binary64) x)
(+ 1 (* x (- (* 1/2 x) 1)))
(fma.f64 (fma.f64 #s(literal 1/2 binary64) x #s(literal -1 binary64)) x #s(literal 1 binary64))
(+ 1 (* x (- (* x (+ 1/2 (* -1/6 x))) 1)))
(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))
2
#s(literal 2 binary64)
(+ 2 (pow x 2))
(fma.f64 x x #s(literal 2 binary64))
(+ 2 (* (pow x 2) (+ 1 (* 1/12 (pow x 2)))))
(fma.f64 (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/12 binary64) x) x #s(literal 2 binary64))
(+ 2 (* (pow x 2) (+ 1 (* (pow x 2) (+ 1/12 (* 1/360 (pow x 2)))))))
(fma.f64 (pow.f64 x #s(literal 6 binary64)) #s(literal 1/360 binary64) (fma.f64 (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/12 binary64) x) x #s(literal 2 binary64)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(- (exp x) (exp (neg x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(- (exp x) (exp (neg x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(- (exp x) (exp (neg x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(- (exp x) (exp (neg x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(exp x)
(exp.f64 x)
(exp x)
(exp.f64 x)
(exp x)
(exp.f64 x)
(exp x)
(exp.f64 x)
(exp (neg x))
(exp.f64 (neg.f64 x))
(exp (neg x))
(exp.f64 (neg.f64 x))
(exp (neg x))
(exp.f64 (neg.f64 x))
(exp (neg x))
(exp.f64 (neg.f64 x))
(+ (exp x) (exp (neg x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+ (exp x) (exp (neg x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+ (exp x) (exp (neg x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+ (exp x) (exp (neg x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(- (exp x) (exp (* -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(- (exp x) (exp (* -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(- (exp x) (exp (* -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(- (exp x) (exp (* -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(exp x)
(exp.f64 x)
(exp x)
(exp.f64 x)
(exp x)
(exp.f64 x)
(exp x)
(exp.f64 x)
(exp (* -1 x))
(exp.f64 (neg.f64 x))
(exp (* -1 x))
(exp.f64 (neg.f64 x))
(exp (* -1 x))
(exp.f64 (neg.f64 x))
(exp (* -1 x))
(exp.f64 (neg.f64 x))
(+ (exp x) (exp (* -1 x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+ (exp x) (exp (* -1 x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+ (exp x) (exp (* -1 x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+ (exp x) (exp (* -1 x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))

rewrite148.0ms (2.1%)

Memory
-9.0MiB live, 190.6MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0730
01315
15515
242415
3708015
0806215
Stop Event
iter limit
node limit
iter limit
Counts
5 → 644
Calls
Call 1
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)
(exp.f64 (neg.f64 x))
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval175.0ms (2.5%)

Memory
12.2MiB live, 132.2MiB allocated
Compiler

Compiled 17 243 to 1 765 computations (89.8% saved)

prune30.0ms (0.4%)

Memory
4.0MiB live, 41.2MiB allocated
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New7443747
Fresh000
Picked101
Done000
Total7453748
Accuracy
100.0%
Counts
748 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(/.f64 (sinh.f64 x) (cosh.f64 x))
100.0%
(tanh.f64 x)
98.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))
Compiler

Compiled 14 to 12 computations (14.3% saved)

simplify104.0ms (1.5%)

Memory
0.8MiB live, 120.1MiB allocated
Algorithm
egg-herbie
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
cost-diff0
(cosh.f64 x)
cost-diff0
(sinh.f64 x)
cost-diff7104
(/.f64 (sinh.f64 x) (cosh.f64 x))
cost-diff0
(tanh.f64 x)
cost-diff0
(pow.f64 x #s(literal 3 binary64))
cost-diff0
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
cost-diff0
#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))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01645
02331
15431
210331
316831
432631
575131
6220331
7461131
0814631
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
#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))
x
#s(literal 3 binary64)
#s(literal -1/3 binary64)
(tanh.f64 x)
x
(/.f64 (sinh.f64 x) (cosh.f64 x))
(sinh.f64 x)
x
(cosh.f64 x)
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))
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 #s(literal -1/3 binary64) (pow.f64 x #s(literal 3 binary64)) x))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(fma.f64 #s(literal -1/3 binary64) (pow.f64 x #s(literal 3 binary64)) x)
(pow.f64 x #s(literal 3 binary64))
x
#s(literal 3 binary64)
#s(literal -1/3 binary64)
(tanh.f64 x)
x
(/.f64 (sinh.f64 x) (cosh.f64 x))
(tanh.f64 x)
(sinh.f64 x)
x
(cosh.f64 x)

localize165.0ms (2.4%)

Memory
-31.3MiB live, 171.8MiB allocated
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0
(cosh.f64 x)
accuracy0.00390625
(sinh.f64 x)
accuracy0.7343832531524757
(/.f64 (sinh.f64 x) (cosh.f64 x))
accuracy0.01171875
(tanh.f64 x)
accuracy0
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
accuracy0
(pow.f64 x #s(literal 3 binary64))
accuracy1.0097682273362625
#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))
Samples
96.0ms101×2valid
53.0ms143×1valid
2.0ms12×0valid
Compiler

Compiled 41 to 18 computations (56.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 107.0ms
ival-exp: 50.0ms (46.6% of total)
ival-add: 21.0ms (19.6% of total)
adjust: 12.0ms (11.2% of total)
ival-div: 6.0ms (5.6% of total)
const: 4.0ms (3.7% of total)
ival-sub: 3.0ms (2.8% of total)
ival-pow: 3.0ms (2.8% of total)
ival-cosh: 2.0ms (1.9% of total)
ival-mult: 2.0ms (1.9% of total)
ival-tanh: 1.0ms (0.9% of total)
ival-sinh: 1.0ms (0.9% of total)
ival-neg: 1.0ms (0.9% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series12.0ms (0.2%)

Memory
26.0MiB live, 26.0MiB allocated
Counts
7 → 84
Calls
Call 1
Inputs
#s(alt #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)) (patch #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)) #<representation binary64>) () ())
#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())
#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())
#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())
#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())
#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())
#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())
Outputs
#s(alt x (taylor 0 x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))) (taylor 0 x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))) (taylor 0 x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))) (taylor 0 x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))) (taylor 0 x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))) (taylor 0 x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))) (taylor 0 x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/6 (pow x 2)))) (taylor 0 x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (+ 1/6 (* 1/120 (pow x 2)))))) (taylor 0 x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (+ 1/6 (* (pow x 2) (+ 1/120 (* 1/5040 (pow x 2)))))))) (taylor 0 x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt 1 (taylor 0 x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* 1/2 (pow x 2))) (taylor 0 x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* (pow x 2) (+ 1/2 (* 1/24 (pow x 2))))) (taylor 0 x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/720 (pow x 2))))))) (taylor 0 x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* -1/3 (pow x 3)) (taylor inf x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)) (taylor inf x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)) (taylor inf x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)) (taylor inf x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (- (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (- (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (- (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (- (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (+ (exp x) (/ 1 (exp x)))) (taylor inf x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* -1/3 (pow x 3)) (taylor -inf x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))) (taylor -inf x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))) (taylor -inf x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))) (taylor -inf x) (#s(alt (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) (patch (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (pow.f64 x #s(literal 3 binary64)) (patch (pow.f64 x #s(literal 3 binary64)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (tanh.f64 x) (patch (tanh.f64 x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (/.f64 (sinh.f64 x) (cosh.f64 x)) (patch (/.f64 (sinh.f64 x) (cosh.f64 x)) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (- (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (- (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (- (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (- (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (sinh.f64 x) (patch (sinh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
#s(alt (* 1/2 (+ (exp x) (/ 1 (exp x)))) (taylor -inf x) (#s(alt (cosh.f64 x) (patch (cosh.f64 x) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
5.0ms
x
@-inf
((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (pow x 3) -1/3) x) (pow x 3) (tanh x) (/ (sinh x) (cosh x)) (sinh x) (cosh x))
4.0ms
x
@inf
((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (pow x 3) -1/3) x) (pow x 3) (tanh x) (/ (sinh x) (cosh x)) (sinh x) (cosh x))
2.0ms
x
@0
((/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (+ (* (pow x 3) -1/3) x) (pow x 3) (tanh x) (/ (sinh x) (cosh x)) (sinh x) (cosh x))

simplify164.0ms (2.3%)

Memory
-11.0MiB live, 181.4MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
083792
1234750
2589750
31668750
43191750
56186750
09246711
Stop Event
iter limit
node limit
Counts
84 → 79
Calls
Call 1
Inputs
x
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
x
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* -1/3 (pow x 2))))
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
x
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
x
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
x
(* x (+ 1 (* 1/6 (pow x 2))))
(* x (+ 1 (* (pow x 2) (+ 1/6 (* 1/120 (pow x 2))))))
(* x (+ 1 (* (pow x 2) (+ 1/6 (* (pow x 2) (+ 1/120 (* 1/5040 (pow x 2))))))))
1
(+ 1 (* 1/2 (pow x 2)))
(+ 1 (* (pow x 2) (+ 1/2 (* 1/24 (pow x 2)))))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/720 (pow x 2)))))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(* -1/3 (pow x 3))
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(* -1/3 (pow x 3))
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
Outputs
x
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 2/15 binary64) (*.f64 x x) #s(literal -1/3 binary64)) x)
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) (*.f64 x x) #s(literal -1/3 binary64)) x)
x
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
x
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 2/15 binary64) (*.f64 x x) #s(literal -1/3 binary64)) x)
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) (*.f64 x x) #s(literal -1/3 binary64)) x)
x
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 2/15 binary64) (*.f64 x x) #s(literal -1/3 binary64)) x)
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) (*.f64 x x) #s(literal -1/3 binary64)) x)
x
(* x (+ 1 (* 1/6 (pow x 2))))
(fma.f64 #s(literal 1/6 binary64) (pow.f64 x #s(literal 3 binary64)) x)
(* x (+ 1 (* (pow x 2) (+ 1/6 (* 1/120 (pow x 2))))))
(fma.f64 (fma.f64 #s(literal 1/120 binary64) (*.f64 x x) #s(literal 1/6 binary64)) (pow.f64 x #s(literal 3 binary64)) x)
(* x (+ 1 (* (pow x 2) (+ 1/6 (* (pow x 2) (+ 1/120 (* 1/5040 (pow x 2))))))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/5040 binary64) (*.f64 x x) #s(literal 1/120 binary64)) (*.f64 x x) #s(literal 1/6 binary64)) (pow.f64 x #s(literal 3 binary64)) x)
1
#s(literal 1 binary64)
(+ 1 (* 1/2 (pow x 2)))
(fma.f64 #s(literal 1/2 binary64) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (+ 1/2 (* 1/24 (pow x 2)))))
(fma.f64 (fma.f64 #s(literal 1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/720 (pow x 2)))))))
(fma.f64 (fma.f64 (fma.f64 #s(literal 1/720 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(* -1/3 (pow x 3))
(*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #s(literal 1/2 binary64))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #s(literal 1/2 binary64))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #s(literal 1/2 binary64))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #s(literal 1/2 binary64))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(fma.f64 (exp.f64 x) #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (exp.f64 x)))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(fma.f64 (exp.f64 x) #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (exp.f64 x)))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(fma.f64 (exp.f64 x) #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (exp.f64 x)))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(fma.f64 (exp.f64 x) #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(* -1/3 (pow x 3))
(*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (/ 1 (exp x))) (+ (exp x) (/ 1 (exp x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #s(literal 1/2 binary64))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #s(literal 1/2 binary64))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #s(literal 1/2 binary64))
(* 1/2 (- (exp x) (/ 1 (exp x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) #s(literal 1/2 binary64))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(fma.f64 (exp.f64 x) #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (exp.f64 x)))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(fma.f64 (exp.f64 x) #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (exp.f64 x)))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(fma.f64 (exp.f64 x) #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (exp.f64 x)))
(* 1/2 (+ (exp x) (/ 1 (exp x))))
(fma.f64 (exp.f64 x) #s(literal 1/2 binary64) (/.f64 #s(literal 1/2 binary64) (exp.f64 x)))

rewrite193.0ms (2.7%)

Memory
0.6MiB live, 204.4MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01640
02326
110326
271326
0893726
Stop Event
iter limit
node limit
iter limit
Counts
7 → 834
Calls
Call 1
Inputs
#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))
(tanh.f64 x)
(/.f64 (sinh.f64 x) (cosh.f64 x))
(sinh.f64 x)
(cosh.f64 x)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval137.0ms (2%)

Memory
11.6MiB live, 170.4MiB allocated
Compiler

Compiled 19 857 to 1 356 computations (93.2% saved)

prune25.0ms (0.4%)

Memory
-23.1MiB live, 51.7MiB allocated
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New9121913
Fresh000
Picked123
Done000
Total9133916
Accuracy
100.0%
Counts
916 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(/.f64 (sinh.f64 x) (cosh.f64 x))
100.0%
(tanh.f64 x)
98.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))
Compiler

Compiled 16 to 12 computations (25% saved)

simplify212.0ms (3%)

Memory
23.7MiB live, 297.2MiB allocated
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff-5824
(*.f64 (*.f64 x x) x)
cost-diff0
(*.f64 x x)
cost-diff0
(fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)
cost-diff0
#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))
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01240
01640
13334
26134
39034
414734
530934
652234
781834
8121834
9229234
10452334
11602034
0801034
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
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)))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x))
#s(approx (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (fma.f64 #s(literal -1/3 binary64) (pow.f64 x #s(literal 3 binary64)) x))
(fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)
(fma.f64 #s(literal -1/3 binary64) (pow.f64 x #s(literal 3 binary64)) x)
(*.f64 (*.f64 x x) x)
(pow.f64 x #s(literal 3 binary64))
(*.f64 x x)
x
#s(literal -1/3 binary64)

localize137.0ms (1.9%)

Memory
-6.2MiB live, 193.8MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0
(fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x)
accuracy0
(*.f64 x x)
accuracy0.06640625
(*.f64 (*.f64 x x) x)
accuracy1.0097682273362625
#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))
Samples
79.0ms143×1valid
46.0ms101×2valid
1.0ms12×0valid
Compiler

Compiled 34 to 14 computations (58.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 115.0ms
ival-exp: 79.0ms (68.7% of total)
adjust: 10.0ms (8.7% of total)
ival-mult: 9.0ms (7.8% of total)
ival-add: 5.0ms (4.4% of total)
ival-div: 4.0ms (3.5% of total)
const: 4.0ms (3.5% of total)
ival-sub: 3.0ms (2.6% of total)
ival-neg: 1.0ms (0.9% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)

series4.0ms (0.1%)

Memory
8.3MiB live, 8.3MiB allocated
Counts
4 → 48
Calls
Call 1
Inputs
#s(alt #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)) (patch #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)) #<representation binary64>) () ())
#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())
Outputs
#s(alt x (taylor 0 x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3)))) (taylor 0 x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3)))) (taylor 0 x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* -1/3 (pow x 2)))) (taylor 0 x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor 0 x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x)))) (taylor inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* -1/3 (pow x 3)) (taylor inf x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)) (taylor inf x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)) (taylor inf x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 3) (- (/ 1 (pow x 2)) 1/3)) (taylor inf x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor inf x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x)))) (taylor -inf x) (#s(alt #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)) (patch #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)) #<representation binary64>) () ())) ())
#s(alt (* -1/3 (pow x 3)) (taylor -inf x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2))))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) (patch (fma.f64 (*.f64 (*.f64 x x) x) #s(literal -1/3 binary64) x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
#s(alt (pow x 3) (taylor -inf x) (#s(alt (*.f64 (*.f64 x x) x) (patch (*.f64 (*.f64 x x) x) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
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))
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))
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))

simplify124.0ms (1.8%)

Memory
-10.9MiB live, 123.6MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
044314
1113290
2260290
3788290
42025290
54578290
08137275
Stop Event
iter limit
node limit
Counts
48 → 46
Calls
Call 1
Inputs
x
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
x
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* -1/3 (pow x 2))))
(* x (+ 1 (* -1/3 (pow x 2))))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(* -1/3 (pow x 3))
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(* -1/3 (pow x 3))
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 3)
(pow x 3)
(pow x 3)
(pow x 3)
Outputs
x
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* (pow x 2) (- (* 2/15 (pow x 2)) 1/3))))
(fma.f64 (pow.f64 x #s(literal 5 binary64)) #s(literal 2/15 binary64) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 2/15 (* -17/315 (pow x 2)))) 1/3))))
(fma.f64 (pow.f64 x #s(literal 5 binary64)) (fma.f64 #s(literal -17/315 binary64) (*.f64 x x) #s(literal 2/15 binary64)) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x))
x
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* x (+ 1 (* -1/3 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (neg x))) (+ (exp x) (exp (neg x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(* -1/3 (pow x 3))
(*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* (pow x 3) (- (/ 1 (pow x 2)) 1/3))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/ (- (exp x) (exp (* -1 x))) (+ (exp x) (exp (* -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(* -1/3 (pow x 3))
(*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64))
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(* -1 (* (pow x 3) (- 1/3 (/ 1 (pow x 2)))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/3 binary64) x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))
(pow x 3)
(pow.f64 x #s(literal 3 binary64))

rewrite174.0ms (2.5%)

Memory
1.5MiB live, 158.7MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01238
01621
17521
258821
0855521
Stop Event
iter limit
node limit
iter limit
Counts
4 → 87
Calls
Call 1
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 x x)
(*.f64 (*.f64 x x) x)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval14.0ms (0.2%)

Memory
17.4MiB live, 17.4MiB allocated
Compiler

Compiled 2 518 to 360 computations (85.7% saved)

prune18.0ms (0.3%)

Memory
-20.0MiB live, 18.8MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New1330133
Fresh000
Picked011
Done022
Total1333136
Accuracy
100.0%
Counts
136 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
98.8%
(/.f64 (sinh.f64 x) (cosh.f64 x))
100.0%
(tanh.f64 x)
98.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))
Compiler

Compiled 52 to 32 computations (38.5% saved)

regimes4.0ms (0.1%)

Memory
10.4MiB live, 10.4MiB allocated
Counts
5 → 1
Calls
Call 1
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))
(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 (sinh.f64 x) (cosh.f64 x))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Outputs
(tanh.f64 x)
Calls

2 calls:

2.0ms
x
2.0ms
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 14 to 8 computations (42.9% saved)

regimes2.0ms (0%)

Memory
6.7MiB live, 6.7MiB allocated
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
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))
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))
Calls

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))))
Results
AccuracySegmentsBranch
98.4%1x
98.4%1(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 14 to 8 computations (42.9% saved)

simplify32.0ms (0.5%)

Memory
-27.2MiB live, 51.6MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01324
11424
Stop Event
saturated
Calls
Call 1
Inputs
(tanh.f64 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
(tanh.f64 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))

soundness389.0ms (5.5%)

Memory
9.1MiB live, 278.3MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0730
01315
15515
242415
3708015
0806215
01640
02326
110326
271326
0893726
090425
1259424
2604414
31672414
42645414
54176414
64889414
76516414
08145386
Stop Event
done
iter limit
node limit
iter limit
node limit
iter limit
iter limit
node limit
iter limit
Compiler

Compiled 39 to 26 computations (33.3% saved)

preprocess84.0ms (1.2%)

Memory
8.3MiB live, 105.6MiB allocated
Remove

(negabs x)

Compiler

Compiled 52 to 32 computations (38.5% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...