Details

Time bar (total: 3.6s)

analyze20.0ms (0.6%)

Algorithm
search
Search
TrueOtherFalseIter
0%100%0%0
0%100%0%1
0%100%0%2
50%50%0%3
50%25%25%4
50%12.5%37.5%5
50%6.2%43.8%6
50%3.1%46.9%7
50%1.6%48.5%8
50%1.6%48.5%9
50.4%1.2%48.5%10
50.4%1.2%48.5%11
50.4%1.1%48.6%12
50.4%1%48.6%13
50.5%0.9%48.6%14
Compiler

Compiled 15 to 8 computations (46.7% saved)

sample2.9s (81.2%)

Results
1.8s3995×body1024valid
591.0ms2048×body512valid
218.0ms422×body2048valid
190.0ms980×body256valid
88.0ms811×body128valid
0.0msbody128invalid

preprocess31.0ms (0.9%)

Algorithm
egg-herbie
Rules
720×fma-def_binary64
478×fma-neg_binary64
464×times-frac_binary64
264×associate-*l*_binary64
226×associate-*r*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0822
12022
23522
35922
413322
533622
687822
7256922
011
Stop Event
saturated
node limit
Calls
Call 1
Inputs
0
Outputs
0
Call 2
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))))
Compiler

Compiled 14 to 7 computations (50% saved)

simplify21.0ms (0.6%)

Algorithm
egg-herbie
Rules
720×fma-def_binary64
478×fma-neg_binary64
464×times-frac_binary64
264×associate-*l*_binary64
226×associate-*r*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0822
12022
23522
35922
413322
533622
687822
7256922
Stop Event
node limit
Counts
1 → 1
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))))

prune3.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
58.1b
Counts
2 → 1
Alt Table
StatusErrorProgram
58.1b
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 42 to 21 computations (50% saved)

localize6.0ms (0.2%)

Local error

Found 2 expressions with local error:

NewErrorProgram
1.7b
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
7.8b
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))

series4.0ms (0.1%)

Counts
2 → 20
Calls

6 calls:

TimeVariablePointExpression
1.0ms
x
@inf
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
1.0ms
x
@-inf
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
1.0ms
x
@0
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
0.0ms
x
@0
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
0.0ms
x
@-inf
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))

rewrite76.0ms (2.1%)

Algorithm
egg-rewrite-iter-limit
egg-rewrite
batch-egg-rewrite
Rules
99×add-sqr-sqrt_binary64
99×add-sqr-sqrt_binary64
95×*-un-lft-identity_binary64
95×pow1_binary64
95×*-un-lft-identity_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0812
118612
2369012
066
11306
221496
066
083
11863
236903
083
Stop Event
iter limit
unsound
iter limit
unsound
unsound
Counts
2 → 25
Calls
Call 1
Inputs
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 x) (neg.f64 (exp.f64 (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 2 (sinh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (*.f64 2 (sinh.f64 x))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) (cbrt.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (sqrt.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (sinh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (*.f64 (exp.f64 x) (exp.f64 x)) (+.f64 (*.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 x))) (*.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 x) (exp.f64 x)) (*.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 x)))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2 (sinh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (sinh.f64 x))) (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 2 (sinh.f64 x))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (tanh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (tanh.f64 x)) (cbrt.f64 (tanh.f64 x))) (cbrt.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (tanh.f64 x) (tanh.f64 x)) (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x tanh.f64 x)))))

simplify39.0ms (1.1%)

Algorithm
egg-herbie
Rules
575×fma-def_binary64
544×associate-*l*_binary64
354×associate-*r*_binary64
218×unswap-sqr_binary64
190×fma-neg_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
044320
1115320
2251320
3649320
41298320
52912320
64059320
Stop Event
node limit
Counts
45 → 45
Calls
Call 1
Inputs
(*.f64 2 x)
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(+.f64 (*.f64 2 x) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 1/60 (pow.f64 x 5))))
(+.f64 (*.f64 2 x) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (+.f64 (*.f64 1/2520 (pow.f64 x 7)) (*.f64 1/60 (pow.f64 x 5)))))
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
x
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))
(+.f64 (*.f64 -17/315 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
Outputs
(*.f64 2 x)
(+.f64 x x)
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 2 x))
(*.f64 x (fma.f64 x (*.f64 x 1/3) 2))
(+.f64 (*.f64 2 x) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 1/60 (pow.f64 x 5))))
(fma.f64 2 x (fma.f64 1/3 (pow.f64 x 3) (*.f64 1/60 (pow.f64 x 5))))
(fma.f64 1/3 (pow.f64 x 3) (fma.f64 2 x (*.f64 1/60 (pow.f64 x 5))))
(fma.f64 x (fma.f64 x (*.f64 x 1/3) 2) (*.f64 1/60 (pow.f64 x 5)))
(fma.f64 1/60 (pow.f64 x 5) (fma.f64 2 x (*.f64 1/3 (pow.f64 x 3))))
(+.f64 (*.f64 2 x) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (+.f64 (*.f64 1/2520 (pow.f64 x 7)) (*.f64 1/60 (pow.f64 x 5)))))
(fma.f64 2 x (fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/2520 (pow.f64 x 7) (*.f64 1/60 (pow.f64 x 5)))))
(fma.f64 2 x (fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/60 (pow.f64 x 5) (*.f64 1/2520 (pow.f64 x 7)))))
(fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/60 (pow.f64 x 5) (fma.f64 1/2520 (pow.f64 x 7) (*.f64 2 x))))
(fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/60 (pow.f64 x 5) (fma.f64 1/2520 (pow.f64 x 7) (+.f64 x x))))
(fma.f64 x (fma.f64 x (*.f64 x 1/3) 2) (fma.f64 1/60 (pow.f64 x 5) (*.f64 1/2520 (pow.f64 x 7))))
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
x
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(fma.f64 -1/3 (pow.f64 x 3) x)
(fma.f64 (pow.f64 x 3) -1/3 x)
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x))
(fma.f64 (pow.f64 x 3) -1/3 (fma.f64 (pow.f64 x 5) 2/15 x))
(fma.f64 (pow.f64 x 5) 2/15 (fma.f64 (pow.f64 x 3) -1/3 x))
(+.f64 (*.f64 -17/315 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x)))
(fma.f64 -17/315 (pow.f64 x 7) (fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x)))
(fma.f64 (pow.f64 x 7) -17/315 (fma.f64 (pow.f64 x 3) -1/3 (fma.f64 (pow.f64 x 5) 2/15 x)))
(fma.f64 (pow.f64 x 3) -1/3 (fma.f64 (pow.f64 x 7) -17/315 (fma.f64 (pow.f64 x 5) 2/15 x)))
(fma.f64 (pow.f64 x 3) -1/3 (fma.f64 (pow.f64 x 5) 2/15 (fma.f64 (pow.f64 x 7) -17/315 x)))
(fma.f64 (pow.f64 x 5) 2/15 (fma.f64 (pow.f64 x 7) -17/315 (fma.f64 (pow.f64 x 3) -1/3 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(/.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 (-.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 (-.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 (-.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 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.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 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.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 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.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 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))

prune67.0ms (1.8%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New43245
Fresh000
Picked101
Done000
Total44246
Error
0b
Counts
46 → 2
Alt Table
StatusErrorProgram
2.5b
(/.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
0.0b
(tanh.f64 x)
Compiler

Compiled 638 to 296 computations (53.6% saved)

localize2.0ms (0%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(tanh.f64 x)

series5.0ms (0.1%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
2.0ms
x
@0
(tanh.f64 x)
2.0ms
x
@-inf
(tanh.f64 x)
1.0ms
x
@inf
(tanh.f64 x)

rewrite31.0ms (0.9%)

Algorithm
batch-egg-rewrite
Rules
465×pow1_binary64
437×add-log-exp_binary64
435×log1p-expm1-u_binary64
435×expm1-log1p-u_binary64
428×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
033
1753
210793
Stop Event
node limit
Counts
1 → 31
Calls
Call 1
Inputs
(tanh.f64 x)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (tanh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 -2) x))) (/.f64 (pow.f64 (exp.f64 -2) x) (+.f64 1 (pow.f64 (exp.f64 -2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (exp.f64 2) x) (+.f64 1 (pow.f64 (exp.f64 2) x))) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (tanh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (tanh.f64 x)) (pow.f64 (cbrt.f64 (tanh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (tanh.f64 x)) 2) (cbrt.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 (exp.f64 -2) x)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 -2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 -2) x)) (-.f64 1 (pow.f64 (exp.f64 -2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)) (expm1.f64 (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (exp.f64 -2) x)) (+.f64 1 (pow.f64 (exp.f64 -2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (pow.f64 (exp.f64 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 (exp.f64 -2) x))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 -2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (expm1.f64 (*.f64 x 2))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) (neg.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (tanh.f64 x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (tanh.f64 x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (tanh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (tanh.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (tanh.f64 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (tanh.f64 x)))))))

simplify38.0ms (1%)

Algorithm
egg-herbie
Rules
830×fma-def_binary64
624×unswap-sqr_binary64
298×associate-*l*_binary64
232×*-commutative_binary64
198×associate-*r*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
024222
165222
2140222
3334222
4688222
51542222
62432222
73940222
Stop Event
node limit
Counts
43 → 40
Calls
Call 1
Inputs
x
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))
(+.f64 (*.f64 -17/315 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
Outputs
x
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(fma.f64 -1/3 (pow.f64 x 3) x)
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x))
(+.f64 (*.f64 -17/315 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x)))
(fma.f64 -17/315 (pow.f64 x 7) (fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x)))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 -17/315 (pow.f64 x 7) (fma.f64 2/15 (pow.f64 x 5) x)))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) (fma.f64 -17/315 (pow.f64 x 7) x)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))

prune22.0ms (0.6%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New40040
Fresh011
Picked011
Done000
Total40242
Error
0b
Counts
42 → 2
Alt Table
StatusErrorProgram
2.5b
(/.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
0.0b
(tanh.f64 x)
Compiler

Compiled 428 to 295 computations (31.1% saved)

localize10.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 x (*.f64 x 1/3) 2)
0.0b
(*.f64 x (fma.f64 x (*.f64 x 1/3) 2))
0.2b
(/.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
0.4b
(*.f64 x 1/3)

series10.0ms (0.3%)

Counts
4 → 48
Calls

12 calls:

TimeVariablePointExpression
2.0ms
x
@0
(*.f64 x (fma.f64 x (*.f64 x 1/3) 2))
1.0ms
x
@-inf
(/.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
1.0ms
x
@0
(/.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
1.0ms
x
@inf
(/.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
1.0ms
x
@-inf
(*.f64 x (fma.f64 x (*.f64 x 1/3) 2))

rewrite140.0ms (3.9%)

Algorithm
egg-rewrite
egg-rewrite-iter-limit
batch-egg-rewrite
Rules
641×pow1_binary64
593×add-log-exp_binary64
593×log1p-expm1-u_binary64
593×expm1-log1p-u_binary64
534×pow1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01216
125916
2443516
044
1804
28724
01219
125919
2443519
01219
0711
114211
2158911
068
11228
213238
Stop Event
node limit
node limit
iter limit
unsound
node limit
unsound
Counts
4 → 58
Calls
Call 1
Inputs
(*.f64 x 1/3)
(/.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(*.f64 x (fma.f64 x (*.f64 x 1/3) 2))
(fma.f64 x (*.f64 x 1/3) 2)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 x 1/3)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x 1/3) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 x 1/3) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 x 1/3)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 x 1/3)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 x 1/3) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 1/3) x))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 x 1/3) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 x 1/3)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 x 1/3)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 x 1/3)))))))
((#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (/.f64 1 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))) (cbrt.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2))))) (cbrt.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))) (sqrt.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2))) (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))) (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 x (/.f64 (*.f64 2 (cosh.f64 x)) (fma.f64 x (*.f64 x 1/3) 2)))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 x (*.f64 x 1/3)) x) (*.f64 2 x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x (*.f64 x (*.f64 x 1/3))) (*.f64 x 2))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (fma.f64 x (*.f64 x 1/3) 2)) x))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 x 3) (pow.f64 (fma.f64 x (*.f64 x 1/3) 2) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (fma.f64 x (*.f64 x 1/3) 2) 3) (pow.f64 x 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 2 (*.f64 x (*.f64 x 1/3)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x (*.f64 x 1/3)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 x (*.f64 x 1/3)) 1) 2)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 x (*.f64 x 1/3) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 x (*.f64 x 1/3) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 x (*.f64 x 1/3) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x (*.f64 x 1/3) 2)) (cbrt.f64 (pow.f64 (fma.f64 x (*.f64 x 1/3) 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (fma.f64 x (*.f64 x 1/3) 2) 2)) (cbrt.f64 (fma.f64 x (*.f64 x 1/3) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 x (*.f64 x 1/3) 2)) (sqrt.f64 (fma.f64 x (*.f64 x 1/3) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 x (*.f64 x 1/3)) 3) 8) (+.f64 (*.f64 (*.f64 x (*.f64 x 1/3)) (*.f64 x (*.f64 x 1/3))) (-.f64 4 (*.f64 (*.f64 x (*.f64 x 1/3)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 x (*.f64 x 1/3)) (*.f64 x (*.f64 x 1/3))) 4) (-.f64 (*.f64 x (*.f64 x 1/3)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x (*.f64 x 1/3) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x (*.f64 x 1/3) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 1/3) 2)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 x (*.f64 x 1/3) 2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 x (*.f64 x 1/3) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 x (*.f64 x 1/3) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x (*.f64 x 1/3) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 x (*.f64 x 1/3) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 x (*.f64 x 1/3) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 x (*.f64 x 1/3) 2)))))))

simplify45.0ms (1.2%)

Algorithm
egg-herbie
Rules
602×fma-def_binary64
451×unswap-sqr_binary64
335×*-commutative_binary64
330×fma-neg_binary64
246×associate-/l*_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
045564
1109546
2215546
3524546
41367474
52993474
64918474
Stop Event
node limit
Counts
106 → 82
Calls
Call 1
Inputs
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
x
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 1/8 (pow.f64 x 5)) x))
(+.f64 (*.f64 -1/20 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 1/8 (pow.f64 x 5)) x)))
(*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))))
(+.f64 (*.f64 2 (/.f64 x (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))) (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))))
(+.f64 (*.f64 2 (/.f64 x (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))) (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))))
(+.f64 (*.f64 2 (/.f64 x (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))) (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))))
(*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))))
(+.f64 (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))))
(+.f64 (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))))
(+.f64 (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))))
(*.f64 2 x)
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(*.f64 1/3 (pow.f64 x 3))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(*.f64 1/3 (pow.f64 x 3))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
2
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(*.f64 1/3 (pow.f64 x 2))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(*.f64 1/3 (pow.f64 x 2))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
Outputs
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
(*.f64 1/3 x)
x
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(fma.f64 -1/3 (pow.f64 x 3) x)
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 1/8 (pow.f64 x 5)) x))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 1/8 (pow.f64 x 5) x))
(+.f64 (*.f64 -1/20 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 1/8 (pow.f64 x 5)) x)))
(fma.f64 -1/20 (pow.f64 x 7) (fma.f64 -1/3 (pow.f64 x 3) (fma.f64 1/8 (pow.f64 x 5) x)))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 -1/20 (pow.f64 x 7) (fma.f64 1/8 (pow.f64 x 5) x)))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 1/8 (pow.f64 x 5) (fma.f64 -1/20 (pow.f64 x 7) x)))
(fma.f64 1/8 (pow.f64 x 5) (fma.f64 -1/20 (pow.f64 x 7) (fma.f64 -1/3 (pow.f64 x 3) x)))
(*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))))
(*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(/.f64 (*.f64 1/3 (pow.f64 x 3)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(+.f64 (*.f64 2 (/.f64 x (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))) (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 (*.f64 x 2) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(*.f64 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 2 (/.f64 x (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))) (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 (*.f64 x 2) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(*.f64 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 2 (/.f64 x (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))) (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 (*.f64 x 2) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(*.f64 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (fma.f64 1/3 (*.f64 x x) 2))
(*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))))
(*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(/.f64 (*.f64 1/3 (pow.f64 x 3)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(+.f64 (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 (*.f64 x 2) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(*.f64 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 (*.f64 x 2) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(*.f64 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (*.f64 2 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))
(fma.f64 1/3 (/.f64 (pow.f64 x 3) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 (*.f64 x 2) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(*.f64 (/.f64 x (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (fma.f64 1/3 (*.f64 x x) 2))
(*.f64 2 x)
(*.f64 x 2)
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
(*.f64 1/3 (pow.f64 x 3))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
(*.f64 1/3 (pow.f64 x 3))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3)))
(fma.f64 1/3 (pow.f64 x 3) (*.f64 x 2))
(*.f64 x (fma.f64 1/3 (*.f64 x x) 2))
2
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)
(*.f64 1/3 (pow.f64 x 2))
(*.f64 1/3 (*.f64 x x))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)
(*.f64 1/3 (pow.f64 x 2))
(*.f64 1/3 (*.f64 x x))
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)
(+.f64 2 (*.f64 1/3 (pow.f64 x 2)))
(+.f64 2 (*.f64 1/3 (*.f64 x x)))
(fma.f64 1/3 (*.f64 x x) 2)

prune59.0ms (1.6%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New82082
Fresh000
Picked011
Done011
Total82284
Error
0b
Counts
84 → 2
Alt Table
StatusErrorProgram
2.5b
(/.f64 (*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
0.0b
(tanh.f64 x)
Compiler

Compiled 1470 to 786 computations (46.5% saved)

regimes19.0ms (0.5%)

Accuracy

Total -1.9b remaining (-13876%)

Threshold costs -1.9b (-13876%)

Counts
20 → 1
Compiler

Compiled 237 to 132 computations (44.3% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
033
Stop Event
saturated
Calls
Call 1
Inputs
(tanh.f64 x)
Outputs
(tanh.f64 x)

end30.0ms (0.8%)

Stop Event
done
Compiler

Compiled 23 to 14 computations (39.1% saved)

Profiling

Loading profile data...