Details

Time bar (total: 4.7s)

analyze8.0ms (0.2%)

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
Compiler

Compiled 15 to 8 computations (46.7% saved)

sample2.8s (59.8%)

Results
1.9s4059×body1024valid
476.0ms1993×body512valid
238.0ms1779×body256valid
231.0ms425×body2048valid
1.0msbody256invalid

preprocess60.0ms (1.3%)

Algorithm
egg-herbie
Rules
720×fma-def_binary64
478×fma-neg_binary64
464×times-frac_binary64
374×associate-/r/_binary64
311×associate-/l/_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0822
12022
23522
35922
413322
533622
687822
7256922
8659222
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 15 to 8 computations (46.7% saved)

simplify41.0ms (0.9%)

Algorithm
egg-herbie
Rules
720×fma-def_binary64
478×fma-neg_binary64
464×times-frac_binary64
374×associate-/r/_binary64
311×associate-/l/_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0822
12022
23522
35922
413322
533622
687822
7256922
8659222
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))))

eval0.0ms (0%)

Compiler

Compiled 14 to 7 computations (50% saved)

prune1.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
57.9b
Counts
2 → 1
Alt Table
Click to see full alt table
StatusErrorProgram
57.9b
(/.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)

localize7.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
5.1b
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
1.5b
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
1.5b
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
5.1b
(-.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)))

rewrite105.0ms (2.2%)

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 log1p.f64 (expm1.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 expm1.f64 (log1p.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 log1p.f64 (expm1.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 tanh.f64 x)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tanh.f64 x)))))))

simplify65.0ms (1.4%)

Algorithm
egg-herbie
Rules
854×fma-neg_binary64
612×times-frac_binary64
575×fma-def_binary64
544×associate-*l*_binary64
458×associate-/l/_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
044320
1115320
2251320
3649320
41298320
52912320
64059320
76972320
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))))
(-.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))))

eval34.0ms (0.7%)

Compiler

Compiled 600 to 269 computations (55.2% saved)

prune7.0ms (0.2%)

Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New40545
Fresh000
Picked101
Done000
Total41546
Error
0b
Counts
46 → 5
Alt Table
Click to see full alt table
StatusErrorProgram
1.5b
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
1.8b
(+.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)))
0.0b
(tanh.f64 x)
2.0b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
2.4b
x
Compiler

Compiled 45 to 35 computations (22.2% saved)

localize4.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 -1/3 (pow.f64 x 3))
0.0b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
0.0b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
0.1b
(*.f64 -1/3 (pow.f64 x 3))

series4.0ms (0.1%)

Counts
2 → 3
Calls

6 calls:

TimeVariablePointExpression
1.0ms
x
@inf
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
1.0ms
x
@0
(*.f64 -1/3 (pow.f64 x 3))
1.0ms
x
@inf
(*.f64 -1/3 (pow.f64 x 3))
1.0ms
x
@-inf
(*.f64 -1/3 (pow.f64 x 3))
0.0ms
x
@-inf
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)

rewrite63.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
744×pow1_binary64
701×add-log-exp_binary64
701×log1p-expm1-u_binary64
701×expm1-log1p-u_binary64
687×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0715
115915
2191015
Stop Event
node limit
Counts
2 → 46
Calls
Call 1
Inputs
(*.f64 -1/3 (pow.f64 x 3))
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 -1/3 (pow.f64 x 3))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (cbrt.f64 -1/3)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 -1/3) (pow.f64 x 3/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 (pow.f64 x 3) 3) -1/27) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 x 6) 1/9))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 -1/3) (pow.f64 x 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (pow.f64 x 3) 3) -1/27))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 -1/3 (pow.f64 x 3) x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 (pow.f64 x 6) 1/9) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 -1/3 (pow.f64 x 3) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2) (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 (pow.f64 x 3) 3) -1/27)) (/.f64 1 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (/.f64 1 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))) (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 (pow.f64 x 3) 3) -1/27))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 (pow.f64 x 3) 3) -1/27)) (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 (pow.f64 x 3) 3) -1/27)) (+.f64 (*.f64 x x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 (pow.f64 x 3) (*.f64 -1/3 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 x 3) (*.f64 (pow.f64 (pow.f64 x 3) 3) -1/27))) (neg.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 x x) (*.f64 (pow.f64 x 6) 1/9)) (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 -1/3 (pow.f64 x 3) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x 3) -1/3 x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 x (*.f64 -1/3 (pow.f64 x 3)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 -1/3 (pow.f64 x 3)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (*.f64 x (cbrt.f64 -1/3)) 2) (*.f64 x (cbrt.f64 -1/3)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) (*.f64 -1/3 (pow.f64 x 3)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (sqrt.f64 -1/3) (pow.f64 x 3/2)) (*.f64 (sqrt.f64 -1/3) (pow.f64 x 3/2)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 -1/3 (pow.f64 x 3)))))))

simplify133.0ms (2.8%)

Algorithm
egg-herbie
Rules
1328×sqr-pow_binary64
715×pow-sqr_binary64
530×cube-prod_binary64
470×fabs-mul_binary64
438×associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0615
11515
23215
35715
411615
531515
6114315
7182815
8191515
9204815
10220615
11243615
12275815
13317915
14367915
15427415
16499615
17531515
18559915
19582115
20600115
21608315
22702315
23799715
Stop Event
node limit
Counts
49 → 48
Calls
Call 1
Inputs
x
(*.f64 -1/3 (pow.f64 x 3))
(*.f64 -1/3 (pow.f64 x 3))
Outputs
x
(*.f64 -1/3 (pow.f64 x 3))
(*.f64 -1/3 (pow.f64 x 3))

localize2.0ms (0%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(tanh.f64 x)
0.0b
(tanh.f64 x)

series3.0ms (0.1%)

Counts
1 → 12
Calls

3 calls:

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

rewrite34.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
465×pow1_binary64
459×add-sqr-sqrt_binary64
450×*-un-lft-identity_binary64
437×add-log-exp_binary64
435×log1p-expm1-u_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 (exp.f64 (*.f64 x -2)))) (/.f64 (exp.f64 (*.f64 x -2)) (+.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 (exp.f64 (*.f64 x -2))) (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 (exp.f64 (*.f64 x -2))) (-.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 (exp.f64 (*.f64 x -2))) (+.f64 1 (exp.f64 (*.f64 x -2))))))) (#(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 (exp.f64 (*.f64 x -2)))) (neg.f64 (+.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 log1p.f64 (expm1.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 expm1.f64 (log1p.f64 (tanh.f64 x)))))))

simplify52.0ms (1.1%)

Algorithm
egg-herbie
Rules
909×div-sub_binary64
830×fma-def_binary64
624×unswap-sqr_binary64
590×fma-neg_binary64
298×associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
024222
165222
2140222
3334222
4688222
51542222
62432222
73940222
86204222
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))))

localize10.0ms (0.2%)

Local error

Found 8 expressions with local error:

NewErrorProgram
0.1b
(*.f64 -17/315 (pow.f64 x 7))
0.0b
(+.f64 (*.f64 2/15 (pow.f64 x 5)) x)
0.0b
(+.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)))
0.0b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))
0.0b
(+.f64 (*.f64 2/15 (pow.f64 x 5)) x)
0.1b
(*.f64 -17/315 (pow.f64 x 7))
0.1b
(*.f64 2/15 (pow.f64 x 5))
0.1b
(*.f64 -1/3 (pow.f64 x 3))

series113.0ms (2.4%)

Counts
3 → 9
Calls

9 calls:

TimeVariablePointExpression
109.0ms
x
@-inf
(*.f64 -17/315 (pow.f64 x 7))
1.0ms
x
@0
(*.f64 -17/315 (pow.f64 x 7))
1.0ms
x
@0
(*.f64 2/15 (pow.f64 x 5))
1.0ms
x
@inf
(*.f64 2/15 (pow.f64 x 5))
1.0ms
x
@inf
(*.f64 -17/315 (pow.f64 x 7))

rewrite60.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
771×prod-diff_binary64
478×log-prod_binary64
295×pow2_binary64
269×pow-prod-down_binary64
236×fma-def_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01122
124622
2290522
Stop Event
node limit
Counts
3 → 88
Calls
Call 1
Inputs
(*.f64 2/15 (pow.f64 x 5))
(*.f64 -17/315 (pow.f64 x 7))
(+.f64 (*.f64 2/15 (pow.f64 x 5)) x)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 2/15 (pow.f64 x 5)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 2/15) (pow.f64 x 5))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 2/15) (pow.f64 x 5)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 2/15) (pow.f64 x 5)))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 2/15) (pow.f64 x 5)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 2/15 (pow.f64 x 5)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2/15 (pow.f64 x 5)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 x 10) 4/225) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 2/15 (pow.f64 x 5))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 2/15) (pow.f64 x 5/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 x 15) 8/3375) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 x 10) 4/225))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 2/15) (pow.f64 x 5)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 2/15 (pow.f64 x 5)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 x 15) 8/3375))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 2/15 (pow.f64 x 5))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (fma.f64 5 (log.f64 x) (log.f64 2/15)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (fma.f64 5 (log.f64 x) (log.f64 2/15)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 2/15 (pow.f64 x 5))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 -17/315 (pow.f64 x 7)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 -17/315) (pow.f64 x 7))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 -17/315) (pow.f64 x 7)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 -17/315) (pow.f64 x 7)))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 -17/315) (pow.f64 x 7)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 -17/315 (pow.f64 x 7)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 -17/315 (pow.f64 x 7)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 x 14) 289/99225) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 -17/315 (pow.f64 x 7)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 -17/315 (pow.f64 x 7))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 -17/315) (pow.f64 x 7/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 x 14) 289/99225))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 -17/315) (pow.f64 x 7)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 -17/315 (pow.f64 x 7)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 -17/315 (pow.f64 x 7)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 -17/315 (pow.f64 x 7))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 -17/315 (pow.f64 x 7))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 -17/315 (pow.f64 x 7))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 -17/315 (pow.f64 x 7))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (fma.f64 2/15 (pow.f64 x 5) x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 (pow.f64 x 10) 4/225) (-.f64 (*.f64 2/15 (pow.f64 x 5)) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 2/15 (pow.f64 x 5)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 2/15 (pow.f64 x 5) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 2/15 (pow.f64 x 5) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 2/15 (pow.f64 x 5) x)) (pow.f64 (cbrt.f64 (fma.f64 2/15 (pow.f64 x 5) x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 2/15 (pow.f64 x 5) x)) 2) (cbrt.f64 (fma.f64 2/15 (pow.f64 x 5) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 2/15 (pow.f64 x 5) x)) (sqrt.f64 (fma.f64 2/15 (pow.f64 x 5) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 (pow.f64 x 15) 8/3375 (pow.f64 x 3)) (/.f64 1 (fma.f64 x (-.f64 x (*.f64 2/15 (pow.f64 x 5))) (*.f64 (pow.f64 x 10) 4/225))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 (pow.f64 x 10) 4/225) (*.f64 x x)) (/.f64 1 (-.f64 (*.f64 2/15 (pow.f64 x 5)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 x (-.f64 x (*.f64 2/15 (pow.f64 x 5))) (*.f64 (pow.f64 x 10) 4/225)) (fma.f64 (pow.f64 x 15) 8/3375 (pow.f64 x 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 (*.f64 2/15 (pow.f64 x 5)) x) (-.f64 (*.f64 (pow.f64 x 10) 4/225) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 (pow.f64 x 15) 8/3375 (pow.f64 x 3)) (fma.f64 x (-.f64 x (*.f64 2/15 (pow.f64 x 5))) (*.f64 (pow.f64 x 10) 4/225)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 (pow.f64 x 15) 8/3375 (pow.f64 x 3)) (fma.f64 x x (-.f64 (*.f64 (pow.f64 x 10) 4/225) (*.f64 (pow.f64 x 5) (*.f64 2/15 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (pow.f64 x 10) 4/225) (*.f64 x x)) (-.f64 (*.f64 2/15 (pow.f64 x 5)) x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (fma.f64 (pow.f64 x 15) 8/3375 (pow.f64 x 3))) (neg.f64 (fma.f64 x (-.f64 x (*.f64 2/15 (pow.f64 x 5))) (*.f64 (pow.f64 x 10) 4/225))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (*.f64 (pow.f64 x 10) 4/225) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 2/15 (pow.f64 x 5)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 x x) (*.f64 (pow.f64 x 10) 4/225)) (-.f64 x (*.f64 2/15 (pow.f64 x 5))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 2/15 (pow.f64 x 5) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 2/15 (pow.f64 x 5) x) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 2/15 (pow.f64 x 5) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 2/15 (pow.f64 x 5) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 2/15 (pow.f64 x 5) x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 x (-.f64 x (*.f64 2/15 (pow.f64 x 5))) (*.f64 (pow.f64 x 10) 4/225)) (fma.f64 (pow.f64 x 15) 8/3375 (pow.f64 x 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (-.f64 (*.f64 2/15 (pow.f64 x 5)) x) (-.f64 (*.f64 (pow.f64 x 10) 4/225) (*.f64 x x))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 2/15 (pow.f64 x 5) x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 2/15 (pow.f64 x 5) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 2/15 (pow.f64 x 5) x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 x)) (pow.f64 (exp.f64 2/15) (pow.f64 x 5))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 x) (+.f64 1 (expm1.f64 (*.f64 2/15 (pow.f64 x 5))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 x)) (+.f64 1 (expm1.f64 (*.f64 2/15 (pow.f64 x 5))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 2/15 (pow.f64 x 5)))) (exp.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (pow.f64 (exp.f64 2/15) (pow.f64 x 5)) (+.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 2/15 (pow.f64 x 5)))) (+.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 2/15 (pow.f64 x 5) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 2/15 (pow.f64 x 5) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 2/15 (pow.f64 x 5) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (fma.f64 2/15 (pow.f64 x 5) x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 2/15 (pow.f64 x 5) x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 2/15 (pow.f64 x 5) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x 1 (*.f64 2/15 (pow.f64 x 5)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x 5) 2/15 x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 2/15 (pow.f64 x 5)) 1 x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 x (*.f64 2/15 (pow.f64 x 5)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 2/15 (pow.f64 x 5)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 x 10)) (*.f64 (pow.f64 (cbrt.f64 x) 5) 2/15) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 2/15 (pow.f64 x 5))) (cbrt.f64 (*.f64 (pow.f64 x 10) 4/225)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (pow.f64 x 10) 4/225)) (cbrt.f64 (*.f64 2/15 (pow.f64 x 5))) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 x) (pow.f64 (cbrt.f64 x) 2) (*.f64 2/15 (pow.f64 x 5)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) (*.f64 2/15 (pow.f64 x 5)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (sqrt.f64 2/15) (pow.f64 x 5/2)) (*.f64 (sqrt.f64 2/15) (pow.f64 x 5/2)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 2/15 (pow.f64 x 5)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x 5/2) (*.f64 (pow.f64 x 5/2) 2/15) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 2/15 (cbrt.f64 (pow.f64 x 10))) (pow.f64 (cbrt.f64 x) 5) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 2/15 (pow.f64 x 5/2)) (pow.f64 x 5/2) x)))))

simplify169.0ms (3.6%)

Algorithm
egg-herbie
Rules
1330×sqr-pow_binary64
715×pow-sqr_binary64
530×cube-prod_binary64
473×fabs-mul_binary64
430×associate-*l*_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0775
11463
22563
34863
410763
531663
6114163
7184663
8193363
9206563
10222363
11245563
12277763
13319863
14369863
15429363
16501563
17533663
18562063
19584663
20602663
21610863
22704863
Stop Event
node limit
Counts
97 → 91
Calls
Call 1
Inputs
x
(*.f64 2/15 (pow.f64 x 5))
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(*.f64 2/15 (pow.f64 x 5))
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
Outputs
x
(*.f64 2/15 (pow.f64 x 5))
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(fma.f64 2/15 (pow.f64 x 5) x)
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(fma.f64 2/15 (pow.f64 x 5) x)
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(fma.f64 2/15 (pow.f64 x 5) x)
(*.f64 2/15 (pow.f64 x 5))
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(fma.f64 2/15 (pow.f64 x 5) x)
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(fma.f64 2/15 (pow.f64 x 5) x)
(+.f64 x (*.f64 2/15 (pow.f64 x 5)))
(fma.f64 2/15 (pow.f64 x 5) x)

localize7.0ms (0.1%)

Local error

Found 6 expressions with local error:

NewErrorProgram
1.5b
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
0.0b
(/.f64 1 (*.f64 2 (cosh.f64 x)))
0.0b
(sinh.f64 x)
0.0b
(sinh.f64 x)
0.0b
(/.f64 1 (*.f64 2 (cosh.f64 x)))
1.5b
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))

series34.0ms (0.7%)

Counts
3 → 36
Calls

9 calls:

TimeVariablePointExpression
26.0ms
x
@-inf
(sinh.f64 x)
2.0ms
x
@0
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
2.0ms
x
@inf
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
2.0ms
x
@-inf
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
1.0ms
x
@-inf
(/.f64 1 (*.f64 2 (cosh.f64 x)))

rewrite64.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
977×pow1_binary64
904×add-log-exp_binary64
903×log1p-expm1-u_binary64
903×expm1-log1p-u_binary64
103×add-sqr-sqrt_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01023
121117
2262817
Stop Event
node limit
Counts
3 → 76
Calls
Call 1
Inputs
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
(/.f64 1 (*.f64 2 (cosh.f64 x)))
(sinh.f64 x)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 (sinh.f64 x) (cosh.f64 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 2 (/.f64 (*.f64 2 (cosh.f64 x)) (sinh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sinh.f64 x) (cosh.f64 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 1 (/.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (cbrt.f64 (*.f64 4 (pow.f64 (sinh.f64 x) 2))) (/.f64 (*.f64 2 (cosh.f64 x)) (cbrt.f64 (*.f64 2 (sinh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (/.f64 (*.f64 2 (cosh.f64 x)) (sqrt.f64 (*.f64 2 (sinh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) (*.f64 (cosh.f64 x) -2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (sinh.f64 x)) -1) (*.f64 (cosh.f64 x) -2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (*.f64 2 (sinh.f64 x)) (cosh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (*.f64 2 (sinh.f64 x)) (sqrt.f64 (*.f64 2 (cosh.f64 x)))) (sqrt.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (*.f64 2 (sinh.f64 x)) 1) (*.f64 2 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (*.f64 2 (sinh.f64 x)) (cbrt.f64 (*.f64 4 (pow.f64 (cosh.f64 x) 2)))) (cbrt.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 -1 (*.f64 2 (sinh.f64 x))) (*.f64 (cosh.f64 x) -2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 1/2 (*.f64 2 (sinh.f64 x))) (cosh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (sinh.f64 x) (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (sinh.f64 x) (cosh.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (sinh.f64 x) (cosh.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 (sinh.f64 x) (cosh.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (sinh.f64 x) (cosh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (sinh.f64 x) (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 (sinh.f64 x) (cosh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (sinh.f64 x) (cosh.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (*.f64 2 (sinh.f64 x)) 3) (pow.f64 (*.f64 2 (cosh.f64 x)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (*.f64 2 (sinh.f64 x)) 3) (pow.f64 (/.f64 1/2 (cosh.f64 x)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (/.f64 1/2 (cosh.f64 x)) 3) (pow.f64 (*.f64 2 (sinh.f64 x)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (sinh.f64 x) (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 (sinh.f64 x) (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (sinh.f64 x) (cosh.f64 x))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 1/2 (cosh.f64 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 1/2 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 1/2 (cosh.f64 x))) (pow.f64 (cbrt.f64 (/.f64 1/2 (cosh.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 1/2 (cosh.f64 x))) 2) (cbrt.f64 (/.f64 1/2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 1/2 (cosh.f64 x))) (sqrt.f64 (/.f64 1/2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1 (/.f64 1 (*.f64 (cosh.f64 x) -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (pow.f64 (cosh.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (/.f64 1 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cosh.f64 x) -1) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 4 (pow.f64 (cosh.f64 x) 2))) -1) (pow.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) -1) (pow.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (*.f64 2 (cosh.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2 (cosh.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1/2 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1/2 (cosh.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 1/2 (cosh.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 1/2 (cosh.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 1/4 (pow.f64 (cosh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 1/2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 1/2 (cosh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 1/2 (cosh.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 1/2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 1/2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 1/2 (cosh.f64 x))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (sinh.f64 x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (exp.f64 x) 2) (/.f64 (exp.f64 (neg.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sinh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (sinh.f64 x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (sinh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (sinh.f64 x)) (pow.f64 (cbrt.f64 (sinh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (sinh.f64 x)) 2) (cbrt.f64 (sinh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (sinh.f64 x)) (sqrt.f64 (sinh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 2 (sinh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 2 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) -2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sinh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (sinh.f64 x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (sinh.f64 x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (sinh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (sinh.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (sinh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (sinh.f64 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (sinh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (sinh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (sinh.f64 x)))))))

simplify106.0ms (2.2%)

Algorithm
egg-herbie
Rules
764×distribute-lft-out_binary64
677×fma-def_binary64
507×unswap-sqr_binary64
457×associate-*l*_binary64
342×associate-*r*_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
054528
1134526
2330514
3974514
42974514
54879514
67082514
Stop Event
node limit
Counts
112 → 102
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)))
1/2
(+.f64 1/2 (*.f64 -1/4 (pow.f64 x 2)))
(+.f64 1/2 (+.f64 (*.f64 -1/4 (pow.f64 x 2)) (*.f64 5/48 (pow.f64 x 4))))
(+.f64 (*.f64 -61/1440 (pow.f64 x 6)) (+.f64 1/2 (+.f64 (*.f64 -1/4 (pow.f64 x 2)) (*.f64 5/48 (pow.f64 x 4)))))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
x
(+.f64 (*.f64 1/6 (pow.f64 x 3)) x)
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 1/120 (pow.f64 x 5)) x))
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 1/5040 (pow.f64 x 7)) (+.f64 (*.f64 1/120 (pow.f64 x 5)) x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (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))))
1/2
(+.f64 1/2 (*.f64 -1/4 (pow.f64 x 2)))
(+.f64 1/2 (*.f64 -1/4 (*.f64 x x)))
(fma.f64 -1/4 (*.f64 x x) 1/2)
(fma.f64 x (*.f64 x -1/4) 1/2)
(+.f64 1/2 (+.f64 (*.f64 -1/4 (pow.f64 x 2)) (*.f64 5/48 (pow.f64 x 4))))
(+.f64 1/2 (fma.f64 -1/4 (*.f64 x x) (*.f64 5/48 (pow.f64 x 4))))
(fma.f64 x (*.f64 x -1/4) (fma.f64 5/48 (pow.f64 x 4) 1/2))
(+.f64 (*.f64 -61/1440 (pow.f64 x 6)) (+.f64 1/2 (+.f64 (*.f64 -1/4 (pow.f64 x 2)) (*.f64 5/48 (pow.f64 x 4)))))
(fma.f64 -61/1440 (pow.f64 x 6) (+.f64 1/2 (fma.f64 -1/4 (*.f64 x x) (*.f64 5/48 (pow.f64 x 4)))))
(+.f64 (fma.f64 -1/4 (*.f64 x x) (*.f64 5/48 (pow.f64 x 4))) (fma.f64 -61/1440 (pow.f64 x 6) 1/2))
(fma.f64 -61/1440 (pow.f64 x 6) (fma.f64 x (*.f64 x -1/4) (fma.f64 5/48 (pow.f64 x 4) 1/2)))
(fma.f64 x (*.f64 x -1/4) (fma.f64 5/48 (pow.f64 x 4) (fma.f64 -61/1440 (pow.f64 x 6) 1/2)))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(/.f64 1 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
x
(+.f64 (*.f64 1/6 (pow.f64 x 3)) x)
(fma.f64 1/6 (pow.f64 x 3) x)
(fma.f64 (pow.f64 x 3) 1/6 x)
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 1/120 (pow.f64 x 5)) x))
(fma.f64 1/6 (pow.f64 x 3) (fma.f64 1/120 (pow.f64 x 5) x))
(fma.f64 (pow.f64 x 3) 1/6 (fma.f64 (pow.f64 x 5) 1/120 x))
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 1/5040 (pow.f64 x 7)) (+.f64 (*.f64 1/120 (pow.f64 x 5)) x)))
(fma.f64 1/6 (pow.f64 x 3) (fma.f64 1/5040 (pow.f64 x 7) (fma.f64 1/120 (pow.f64 x 5) x)))
(fma.f64 (pow.f64 x 3) 1/6 (fma.f64 (pow.f64 x 7) 1/5040 (fma.f64 (pow.f64 x 5) 1/120 x)))
(fma.f64 (pow.f64 x 3) 1/6 (fma.f64 (pow.f64 x 5) 1/120 (fma.f64 (pow.f64 x 7) 1/5040 x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2)
(fma.f64 (exp.f64 x) 1/2 (/.f64 -1/2 (exp.f64 x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2)
(fma.f64 (exp.f64 x) 1/2 (/.f64 -1/2 (exp.f64 x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2)
(fma.f64 (exp.f64 x) 1/2 (/.f64 -1/2 (exp.f64 x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2)
(fma.f64 (exp.f64 x) 1/2 (/.f64 -1/2 (exp.f64 x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2)
(fma.f64 (exp.f64 x) 1/2 (/.f64 -1/2 (exp.f64 x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2)
(fma.f64 (exp.f64 x) 1/2 (/.f64 -1/2 (exp.f64 x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2)
(fma.f64 (exp.f64 x) 1/2 (/.f64 -1/2 (exp.f64 x)))
(*.f64 1/2 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))))
(*.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2)
(fma.f64 (exp.f64 x) 1/2 (/.f64 -1/2 (exp.f64 x)))

eval164.0ms (3.5%)

Compiler

Compiled 4768 to 3520 computations (26.2% saved)

prune36.0ms (0.8%)

Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New2893292
Fresh101
Picked101
Done123
Total2925297
Error
0b
Counts
297 → 5
Alt Table
Click to see full alt table
StatusErrorProgram
0.0b
(tanh.f64 x)
2.4b
x
30.0b
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
56.4b
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
2.0b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
Compiler

Compiled 26 to 20 computations (23.1% saved)

localize4.0ms (0.1%)

Local error

Found 6 expressions with local error:

NewErrorProgram
4.8b
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
0.0b
(tanh.f64 x)
0.0b
(+.f64 1 (tanh.f64 x))
0.0b
(+.f64 1 (tanh.f64 x))
0.0b
(tanh.f64 x)
4.8b
(-.f64 (+.f64 1 (tanh.f64 x)) 1)

series2.0ms (0%)

Counts
2 → 24
Calls

6 calls:

TimeVariablePointExpression
0.0ms
x
@inf
(+.f64 1 (tanh.f64 x))
0.0ms
x
@-inf
(+.f64 1 (tanh.f64 x))
0.0ms
x
@0
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
0.0ms
x
@inf
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
0.0ms
x
@-inf
(-.f64 (+.f64 1 (tanh.f64 x)) 1)

rewrite74.0ms (1.6%)

Algorithm
batch-egg-rewrite
Rules
845×pow1_binary64
798×add-log-exp_binary64
795×log1p-expm1-u_binary64
795×expm1-log1p-u_binary64
785×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0615
11519
222129
Stop Event
node limit
Counts
2 → 84
Calls
Call 1
Inputs
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
(+.f64 1 (tanh.f64 x))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (+.f64 (tanh.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (+.f64 (tanh.f64 x) -1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (tanh.f64 x) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (tanh.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (+.f64 1 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (tanh.f64 x) -1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (tanh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (tanh.f64 x) 1)))) (#(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 (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 3) -1) (/.f64 1 (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 2) (+.f64 (tanh.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (+.f64 (tanh.f64 x) 2) (tanh.f64 x)) (/.f64 1 (+.f64 (tanh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (+.f64 1 (tanh.f64 x))) 1) (-.f64 (sqrt.f64 (+.f64 1 (tanh.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 2) (+.f64 (tanh.f64 x) 2)) (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 3) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (tanh.f64 x) 2) (*.f64 (+.f64 (tanh.f64 x) 2) (tanh.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 (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 3) -1) (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 2) (+.f64 (tanh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 3) -1) (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 2) (-.f64 1 (*.f64 (+.f64 1 (tanh.f64 x)) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (tanh.f64 x) 2) (tanh.f64 x)) (+.f64 (tanh.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (tanh.f64 x) 2) (tanh.f64 x)) (-.f64 (+.f64 1 (tanh.f64 x)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 3) -1)) (neg.f64 (+.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 2) (+.f64 (tanh.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 (+.f64 (tanh.f64 x) 2) (tanh.f64 x))) (neg.f64 (+.f64 (tanh.f64 x) 2)))))) (#(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 /.f64 (+.f64 1 (pow.f64 (+.f64 (tanh.f64 x) -1) 3)) (+.f64 1 (-.f64 (*.f64 (+.f64 (tanh.f64 x) -1) (+.f64 (tanh.f64 x) -1)) (+.f64 (tanh.f64 x) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (*.f64 (+.f64 (tanh.f64 x) -1) (+.f64 (tanh.f64 x) -1))) (-.f64 1 (+.f64 (tanh.f64 x) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (tanh.f64 x) 1)))) (#(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 pow.f64 (pow.f64 (tanh.f64 x) 3) 1/3)))) (#(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 log1p.f64 (expm1.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 tanh.f64 x)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 1 (tanh.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 1 (tanh.f64 x))) 2) (cbrt.f64 (+.f64 1 (tanh.f64 x))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 1 (tanh.f64 x))) (sqrt.f64 (+.f64 1 (tanh.f64 x))) -1)))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (tanh.f64 x) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (-.f64 1 (tanh.f64 x))) (/.f64 (pow.f64 (tanh.f64 x) 2) (-.f64 1 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 1 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (tanh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 1 (tanh.f64 x))) (pow.f64 (cbrt.f64 (+.f64 1 (tanh.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 1 (tanh.f64 x))) 2) (cbrt.f64 (+.f64 1 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 1 (tanh.f64 x))) 2) (*.f64 (cbrt.f64 (+.f64 1 (tanh.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 1 (tanh.f64 x))) (sqrt.f64 (+.f64 1 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 1 (tanh.f64 x))) (*.f64 (sqrt.f64 (+.f64 1 (tanh.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (pow.f64 (tanh.f64 x) 3)) (/.f64 1 (+.f64 1 (-.f64 (pow.f64 (tanh.f64 x) 2) (tanh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 (tanh.f64 x) 2)) (/.f64 1 (-.f64 1 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (-.f64 (pow.f64 (tanh.f64 x) 2) (tanh.f64 x))) (+.f64 1 (pow.f64 (tanh.f64 x) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 1 (tanh.f64 x)) (-.f64 1 (pow.f64 (tanh.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (tanh.f64 x) 3)) (+.f64 1 (-.f64 (pow.f64 (tanh.f64 x) 2) (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (tanh.f64 x) 3)) (+.f64 (pow.f64 (tanh.f64 x) 2) (-.f64 1 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (tanh.f64 x) 2)) (-.f64 1 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 1 (pow.f64 (tanh.f64 x) 3))) (neg.f64 (+.f64 1 (-.f64 (pow.f64 (tanh.f64 x) 2) (tanh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 (tanh.f64 x) 2))) (neg.f64 (-.f64 1 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (tanh.f64 x) 2) 1) (+.f64 (tanh.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 1 (pow.f64 (tanh.f64 x) 3)) 1) (+.f64 1 (-.f64 (pow.f64 (tanh.f64 x) 2) (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 1 (pow.f64 (tanh.f64 x) 2)) 1) (-.f64 1 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 1 (tanh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 1 (tanh.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 1 (tanh.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 1 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 1 (tanh.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 1 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log.f64 (+.f64 (tanh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (tanh.f64 x)) 2) (cbrt.f64 (tanh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)) 1)))))

simplify58.0ms (1.2%)

Algorithm
egg-herbie
Rules
721×fma-def_binary64
674×times-frac_binary64
624×unswap-sqr_binary64
512×fma-neg_binary64
442×associate-/l*_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
034560
192456
2206456
3509456
4903456
51842456
63098456
75113456
Stop Event
node limit
Counts
108 → 102
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)))
1
(+.f64 1 x)
(+.f64 1 (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(+.f64 1 (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 x (*.f64 2/15 (pow.f64 x 5)))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (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))))
1
(+.f64 1 x)
(+.f64 x 1)
(+.f64 1 (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(+.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1)
(+.f64 x (fma.f64 -1/3 (pow.f64 x 3) 1))
(fma.f64 -1/3 (pow.f64 x 3) (+.f64 x 1))
(+.f64 1 (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 x (*.f64 2/15 (pow.f64 x 5)))))
(+.f64 (fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x)) 1)
(+.f64 (fma.f64 -1/3 (pow.f64 x 3) x) (fma.f64 2/15 (pow.f64 x 5) 1))
(+.f64 x (fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) 1)))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(+.f64 1 (-.f64 (/.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 1 (*.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))))
(+.f64 1 (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 1 (/.f64 (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(+.f64 1 (-.f64 (/.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 1 (*.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))))
(+.f64 1 (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 1 (/.f64 (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(+.f64 1 (-.f64 (/.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 1 (*.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))))
(+.f64 1 (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 1 (/.f64 (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(+.f64 1 (-.f64 (/.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 1 (*.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))))
(+.f64 1 (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 1 (/.f64 (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(+.f64 1 (-.f64 (/.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 1 (*.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))))
(+.f64 1 (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 1 (/.f64 (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(+.f64 1 (-.f64 (/.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 1 (*.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))))
(+.f64 1 (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 1 (/.f64 (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(+.f64 1 (-.f64 (/.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 1 (*.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))))
(+.f64 1 (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 1 (/.f64 (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 (+.f64 1 (/.f64 (exp.f64 x) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) (/.f64 1 (*.f64 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) (exp.f64 x))))
(+.f64 1 (-.f64 (/.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) (/.f64 1 (*.f64 (exp.f64 x) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))))
(+.f64 1 (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))
(-.f64 1 (/.f64 (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))

localize4.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
0.0b
(tanh.f64 x)
0.0b
(tanh.f64 x)
0.2b
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)

series68.0ms (1.4%)

Counts
1 → 8
Calls

3 calls:

TimeVariablePointExpression
66.0ms
x
@0
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
1.0ms
x
@inf
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
1.0ms
x
@-inf
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)

rewrite42.0ms (0.9%)

Algorithm
batch-egg-rewrite
Rules
607×pow1_binary64
570×add-log-exp_binary64
568×log1p-expm1-u_binary64
568×expm1-log1p-u_binary64
557×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
063
11393
214963
Stop Event
node limit
Counts
1 → 32
Calls
Call 1
Inputs
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
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 (exp.f64 (*.f64 x -2)))) (/.f64 (exp.f64 (*.f64 x -2)) (+.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))))) (#(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 (cbrt.f64 (tanh.f64 x)) (*.f64 (cbrt.f64 (sqrt.f64 (tanh.f64 x))) (sqrt.f64 (tanh.f64 x))))))) (#(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 (pow.f64 (tanh.f64 x) 1/4) (*.f64 (pow.f64 (tanh.f64 x) 1/4) (sqrt.f64 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 (*.f64 (sqrt.f64 (tanh.f64 x)) (pow.f64 (tanh.f64 x) 1/4)) (pow.f64 (tanh.f64 x) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (tanh.f64 x)) (cbrt.f64 (tanh.f64 x))) (cbrt.f64 (sqrt.f64 (tanh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (exp.f64 (*.f64 x -2))) (-.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 (exp.f64 (*.f64 x -2))) (+.f64 1 (exp.f64 (*.f64 x -2))))))) (#(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 (exp.f64 (*.f64 x -2)))) (neg.f64 (+.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 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 log1p.f64 (expm1.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 tanh.f64 x)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tanh.f64 x)))))))

simplify51.0ms (1.1%)

Algorithm
egg-herbie
Rules
770×fma-neg_binary64
700×div-sub_binary64
434×fma-def_binary64
370×associate-*l*_binary64
334×cancel-sign-sub-inv_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08176
118176
230176
350176
498176
5224176
6491176
71255176
84077176
Stop Event
node limit
Counts
40 → 34
Calls
Call 1
Inputs
(/.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
(/.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))))

eval75.0ms (1.6%)

Compiler

Compiled 2595 to 1794 computations (30.9% saved)

prune28.0ms (0.6%)

Pruning

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New2151216
Fresh011
Picked011
Done033
Total2156221
Error
0b
Counts
221 → 6
Alt Table
Click to see full alt table
StatusErrorProgram
0.0b
(tanh.f64 x)
2.4b
x
30.0b
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
56.4b
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
2.0b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
58.5b
(-.f64 (+.f64 1 x) 1)
Compiler

Compiled 32 to 25 computations (21.9% saved)

localize3.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
4.8b
(-.f64 (+.f64 1 x) 1)
4.8b
(-.f64 (+.f64 1 x) 1)

series1.0ms (0%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@inf
(-.f64 (+.f64 1 x) 1)
0.0ms
x
@0
(-.f64 (+.f64 1 x) 1)
0.0ms
x
@-inf
(-.f64 (+.f64 1 x) 1)

rewrite43.0ms (0.9%)

Algorithm
batch-egg-rewrite
Rules
553×pow1_binary64
521×add-log-exp_binary64
521×log1p-expm1-u_binary64
521×expm1-log1p-u_binary64
513×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
057
11151
215751
Stop Event
node limit
Counts
1 → 37
Calls
Call 1
Inputs
(-.f64 (+.f64 1 x) 1)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (+.f64 x -1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (+.f64 x -1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 x 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (+.f64 1 x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 x -1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 x)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 x 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 x) (pow.f64 (cbrt.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 x) (sqrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (+.f64 1 x) 3) -1) (/.f64 1 (+.f64 (pow.f64 (+.f64 1 x) 2) (+.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (+.f64 x 2) x) (/.f64 1 (+.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (+.f64 1 x)) 1) (-.f64 (sqrt.f64 (+.f64 1 x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (+.f64 1 x) 2) (+.f64 x 2)) (+.f64 (pow.f64 (+.f64 1 x) 3) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 x 2) (*.f64 (+.f64 x 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (+.f64 1 x) 3) -1) (+.f64 (pow.f64 (+.f64 1 x) 2) (+.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (+.f64 1 x) 3) -1) (+.f64 (pow.f64 (+.f64 1 x) 2) (-.f64 1 (*.f64 (+.f64 1 x) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 x 2) x) (+.f64 x 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 x 2) x) (-.f64 (+.f64 1 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (+.f64 1 x) 3) -1)) (neg.f64 (+.f64 (pow.f64 (+.f64 1 x) 2) (+.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 (+.f64 x 2) x)) (neg.f64 (+.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (+.f64 x -1) 3)) (+.f64 1 (-.f64 (*.f64 (+.f64 x -1) (+.f64 x -1)) (+.f64 x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (*.f64 (+.f64 x -1) (+.f64 x -1))) (-.f64 1 (+.f64 x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 x 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 x) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 x 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 x 3))))) (#(struct:change #<rule egg-rr> (2) ((x . x)))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 1 x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 1 x)) 2) (cbrt.f64 (+.f64 1 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 1 x)) (sqrt.f64 (+.f64 1 x)) -1)))))

simplify7.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0112
Stop Event
saturated
Counts
49 → 38
Calls
Call 1
Inputs
x
x
x
x
x
x
x
x
x
x
x
x
Outputs
x
x
x
x
x
x
x
x
x
x
x
x

eval9.0ms (0.2%)

Compiler

Compiled 318 to 242 computations (23.9% saved)

prune8.0ms (0.2%)

Pruning

9 alts after pruning (5 fresh and 4 done)

PrunedKeptTotal
New33538
Fresh101
Picked101
Done044
Total35944
Error
0b
Counts
44 → 9
Alt Table
Click to see full alt table
StatusErrorProgram
2.7b
(/.f64 1 (/.f64 (+.f64 x 2) (*.f64 (+.f64 x 2) x)))
2.4b
x
0.0b
(tanh.f64 x)
30.0b
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
56.4b
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
2.0b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
58.5b
(/.f64 (-.f64 1 (*.f64 (+.f64 x -1) (+.f64 x -1))) (-.f64 1 (+.f64 x -1)))
58.5b
(+.f64 (+.f64 x -1) 1)
2.4b
(/.f64 (*.f64 (+.f64 x 2) x) (+.f64 x 2))
Compiler

Compiled 70 to 54 computations (22.9% saved)

regimes16.0ms (0.3%)

Counts
15 → 1
Calls
Call 1
Inputs
x
x
x
(+.f64 (+.f64 x -1) 1)
(-.f64 (+.f64 1 x) 1)
(/.f64 (*.f64 (+.f64 x 2) x) (+.f64 x 2))
(/.f64 1 (/.f64 (+.f64 x 2) (*.f64 (+.f64 x 2) x)))
(/.f64 (-.f64 1 (*.f64 (+.f64 x -1) (+.f64 x -1))) (-.f64 1 (+.f64 x -1)))
(tanh.f64 x)
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
(+.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 x) (exp.f64 (neg.f64 x))))
Outputs
(tanh.f64 x)
Calls

2 calls:

9.0ms
x
3.0ms
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Results
ErrorSegmentsBranch
0.0b1x
0.0b1(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
Compiler

Compiled 128 to 86 computations (32.8% saved)

regimes9.0ms (0.2%)

Accuracy

Total -56.1b remaining (-2353%)

Threshold costs -56.1b (-2353%)

Counts
8 → 1
Calls
Call 1
Inputs
x
x
x
(+.f64 (+.f64 x -1) 1)
(-.f64 (+.f64 1 x) 1)
(/.f64 (*.f64 (+.f64 x 2) x) (+.f64 x 2))
(/.f64 1 (/.f64 (+.f64 x 2) (*.f64 (+.f64 x 2) x)))
(/.f64 (-.f64 1 (*.f64 (+.f64 x -1) (+.f64 x -1))) (-.f64 1 (+.f64 x -1)))
Outputs
x
Calls

1 calls:

7.0ms
x
Results
ErrorSegmentsBranch
2.4b1x
Compiler

Compiled 51 to 36 computations (29.4% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

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

end17.0ms (0.4%)

Stop Event
fuel
Compiler

Compiled 9 to 5 computations (44.4% saved)

Profiling

Loading profile data...