Details

Time bar (total: 3.0s)

analyze6.0ms (0.2%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
0%0%100%0%0%0%0%2
50%50%50%0%0%0%0%3
66.7%50%25%0%0%0%25%4
80%50%12.5%0%0%0%37.5%5
88.9%50%6.2%0%0%0%43.7%6
94.1%50%3.1%0%0%0%46.9%7
97%50%1.6%0%0%0%48.4%8
97%50%1.6%0%0%0%48.4%9
97.7%50.4%1.2%0%0%0%48.4%10
97.7%50.4%1.2%0%0%0%48.4%11
97.9%50.4%1.1%0%0%0%48.5%12
Compiler

Compiled 15 to 8 computations (46.7% saved)

sample2.2s (75.5%)

Results
1.4s3994×body1024valid
389.0ms2006×body512valid
235.0ms1863×body256valid
201.0ms393×body2048valid
0.0msbody256unsamplable
Bogosity

preprocess57.0ms (1.9%)

Algorithm
egg-herbie
Rules
1032×associate-*r*
804×*-commutative
774×fma-def
770×times-frac
752×associate-+r+
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01043
12243
23643
36143
413043
535143
6104643
7282543
8598643
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)

simplify66.0ms (2.2%)

Algorithm
egg-herbie
Rules
1032×associate-*r*
804×*-commutative
774×fma-def
770×times-frac
752×associate-+r+
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01043
12243
23643
36143
413043
535143
6104643
7282543
8598643
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
59.1b
Counts
2 → 1
Alt Table
Click to see full alt table
StatusErrorProgram
59.1b
(/.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)

localize10.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
1.0b
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
5.9b
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
Compiler

Compiled 34 to 7 computations (79.4% saved)

series2.0ms (0.1%)

Counts
3 → 32
Calls

9 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))))
0.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)))

rewrite107.0ms (3.6%)

Algorithm
egg-rewrite-iter-limit
egg-rewrite
batch-egg-rewrite
Rules
238×add-sqr-sqrt
238×add-sqr-sqrt
230×pow1
230×*-un-lft-identity
230×pow1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01033
122633
2407433
0811
117011
2264411
0811
0105
12265
240745
0105
0811
116911
2261611
0811
Stop Event
iter limit
unsound
iter limit
unsound
iter limit
unsound
unsound
Counts
3 → 37
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))))
(+.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 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (sqrt.f64 (*.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 2 (sinh.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 /.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 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 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (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 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)))))
((#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 2 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) (sqrt.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) (cbrt.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (cosh.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 /.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 pow.f64 (*.f64 2 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (cosh.f64 x))) (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 x))))))))

simplify61.0ms (2.1%)

Algorithm
egg-herbie
Rules
860×associate--r+
792×associate-/l*
604×associate-/r*
584×associate-*r/
564×times-frac
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01441097
13601045
215241023
355231023
Stop Event
node limit
Counts
69 → 89
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))))
2
(+.f64 2 (pow.f64 x 2))
(+.f64 2 (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4))))
(+.f64 2 (+.f64 (*.f64 1/360 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4)))))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 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)))
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))
(+.f64 (exp.f64 x) (neg.f64 (exp.f64 (neg.f64 x))))
(*.f64 1 (*.f64 2 (sinh.f64 x)))
(*.f64 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (sqrt.f64 (*.f64 2 (sinh.f64 x))))
(*.f64 (*.f64 (cbrt.f64 (*.f64 2 (sinh.f64 x))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) (cbrt.f64 (*.f64 2 (sinh.f64 x))))
(*.f64 2 (sinh.f64 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))))
(/.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))))))
(pow.f64 (*.f64 2 (sinh.f64 x)) 1)
(log.f64 (exp.f64 (*.f64 2 (sinh.f64 x))))
(cbrt.f64 (*.f64 (*.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (sinh.f64 x))) (*.f64 2 (sinh.f64 x))))
(expm1.f64 (log1p.f64 (*.f64 2 (sinh.f64 x))))
(exp.f64 (log.f64 (*.f64 2 (sinh.f64 x))))
(log1p.f64 (expm1.f64 (*.f64 2 (sinh.f64 x))))
(-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x))))
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
(*.f64 1 (tanh.f64 x))
(*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))
(*.f64 (*.f64 (cbrt.f64 (tanh.f64 x)) (cbrt.f64 (tanh.f64 x))) (cbrt.f64 (tanh.f64 x)))
(pow.f64 (tanh.f64 x) 1)
(log.f64 (exp.f64 (tanh.f64 x)))
(cbrt.f64 (*.f64 (*.f64 (tanh.f64 x) (tanh.f64 x)) (tanh.f64 x)))
(expm1.f64 (log1p.f64 (tanh.f64 x)))
(exp.f64 (log.f64 (tanh.f64 x)))
(log1p.f64 (expm1.f64 (tanh.f64 x)))
(tanh.f64 x)
(*.f64 1 (*.f64 2 (cosh.f64 x)))
(*.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) (sqrt.f64 (*.f64 2 (cosh.f64 x))))
(*.f64 (*.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) (cbrt.f64 (*.f64 2 (cosh.f64 x))))
(*.f64 2 (cosh.f64 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))))
(/.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))))))
(pow.f64 (*.f64 2 (cosh.f64 x)) 1)
(log.f64 (exp.f64 (*.f64 2 (cosh.f64 x))))
(cbrt.f64 (*.f64 (*.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (cosh.f64 x))) (*.f64 2 (cosh.f64 x))))
(expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))))
(exp.f64 (log.f64 (*.f64 2 (cosh.f64 x))))
(log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 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 x x))
(+.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 1/60 (pow.f64 x 5) (+.f64 x x)))
(+.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 2 x (fma.f64 1/60 (pow.f64 x 5) (fma.f64 1/3 (pow.f64 x 3) (*.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))
(+.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)))
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))))
(tanh.f64 x)
2
(+.f64 2 (pow.f64 x 2))
(+.f64 2 (*.f64 x x))
(fma.f64 x x 2)
(+.f64 2 (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4))))
(+.f64 (+.f64 2 (*.f64 x x)) (*.f64 1/12 (pow.f64 x 4)))
(+.f64 (fma.f64 x x 2) (*.f64 1/12 (pow.f64 x 4)))
(fma.f64 x x (fma.f64 1/12 (pow.f64 x 4) 2))
(+.f64 2 (+.f64 (*.f64 1/360 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4)))))
(+.f64 2 (fma.f64 1/360 (pow.f64 x 6) (+.f64 (*.f64 x x) (*.f64 1/12 (pow.f64 x 4)))))
(+.f64 2 (fma.f64 1/360 (pow.f64 x 6) (fma.f64 x x (*.f64 1/12 (pow.f64 x 4)))))
(fma.f64 1/360 (pow.f64 x 6) (fma.f64 x x (fma.f64 1/12 (pow.f64 x 4) 2)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(+.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)))
(+.f64 (exp.f64 x) (neg.f64 (exp.f64 (neg.f64 x))))
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))
(*.f64 1 (*.f64 2 (sinh.f64 x)))
(*.f64 2 (sinh.f64 x))
(*.f64 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (sqrt.f64 (*.f64 2 (sinh.f64 x))))
(*.f64 2 (sinh.f64 x))
(*.f64 (*.f64 (cbrt.f64 (*.f64 2 (sinh.f64 x))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) (cbrt.f64 (*.f64 2 (sinh.f64 x))))
(*.f64 2 (sinh.f64 x))
(*.f64 2 (sinh.f64 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))))
(/.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 (neg.f64 x) (neg.f64 x)))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))
(/.f64 (-.f64 (pow.f64 (exp.f64 x) 2) (pow.f64 (exp.f64 -2) x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 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))))))
(/.f64 (-.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (exp.f64 (+.f64 x x)) (*.f64 (exp.f64 (neg.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))
(/.f64 (-.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (pow.f64 (exp.f64 x) 2) (+.f64 1 (pow.f64 (exp.f64 -2) x))))
(/.f64 (-.f64 (pow.f64 (exp.f64 x) 3) (exp.f64 (*.f64 x -3))) (+.f64 1 (+.f64 (pow.f64 (exp.f64 x) 2) (pow.f64 (exp.f64 -2) x))))
(/.f64 (-.f64 (exp.f64 (*.f64 3 x)) (exp.f64 (*.f64 x -3))) (+.f64 1 (+.f64 (pow.f64 (exp.f64 x) 2) (pow.f64 (exp.f64 -2) x))))
(pow.f64 (*.f64 2 (sinh.f64 x)) 1)
(*.f64 2 (sinh.f64 x))
(log.f64 (exp.f64 (*.f64 2 (sinh.f64 x))))
(*.f64 2 (sinh.f64 x))
(cbrt.f64 (*.f64 (*.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (sinh.f64 x))) (*.f64 2 (sinh.f64 x))))
(*.f64 2 (sinh.f64 x))
(expm1.f64 (log1p.f64 (*.f64 2 (sinh.f64 x))))
(*.f64 2 (sinh.f64 x))
(exp.f64 (log.f64 (*.f64 2 (sinh.f64 x))))
(*.f64 2 (sinh.f64 x))
(log1p.f64 (expm1.f64 (*.f64 2 (sinh.f64 x))))
(*.f64 2 (sinh.f64 x))
(-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x))))
(tanh.f64 x)
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
(tanh.f64 x)
(*.f64 1 (tanh.f64 x))
(tanh.f64 x)
(*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))
(tanh.f64 x)
(*.f64 (*.f64 (cbrt.f64 (tanh.f64 x)) (cbrt.f64 (tanh.f64 x))) (cbrt.f64 (tanh.f64 x)))
(tanh.f64 x)
(pow.f64 (tanh.f64 x) 1)
(tanh.f64 x)
(log.f64 (exp.f64 (tanh.f64 x)))
(tanh.f64 x)
(cbrt.f64 (*.f64 (*.f64 (tanh.f64 x) (tanh.f64 x)) (tanh.f64 x)))
(tanh.f64 x)
(expm1.f64 (log1p.f64 (tanh.f64 x)))
(tanh.f64 x)
(exp.f64 (log.f64 (tanh.f64 x)))
(tanh.f64 x)
(log1p.f64 (expm1.f64 (tanh.f64 x)))
(tanh.f64 x)
(tanh.f64 x)
(*.f64 1 (*.f64 2 (cosh.f64 x)))
(*.f64 2 (cosh.f64 x))
(*.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) (sqrt.f64 (*.f64 2 (cosh.f64 x))))
(*.f64 2 (cosh.f64 x))
(*.f64 (*.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) (cbrt.f64 (*.f64 2 (cosh.f64 x))))
(*.f64 2 (cosh.f64 x))
(*.f64 2 (cosh.f64 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))))
(*.f64 2 (cosh.f64 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))))))
(/.f64 (+.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (exp.f64 (+.f64 x x)) (*.f64 (exp.f64 (neg.f64 x)) (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)))))
(/.f64 (+.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (pow.f64 (exp.f64 x) 2) (+.f64 -1 (pow.f64 (exp.f64 -2) x))))
(/.f64 (+.f64 (pow.f64 (exp.f64 x) 3) (exp.f64 (*.f64 x -3))) (+.f64 (pow.f64 (exp.f64 x) 2) (expm1.f64 (*.f64 x -2))))
(/.f64 (+.f64 (exp.f64 (*.f64 3 x)) (exp.f64 (*.f64 x -3))) (+.f64 (pow.f64 (exp.f64 x) 2) (expm1.f64 (*.f64 x -2))))
(pow.f64 (*.f64 2 (cosh.f64 x)) 1)
(*.f64 2 (cosh.f64 x))
(log.f64 (exp.f64 (*.f64 2 (cosh.f64 x))))
(*.f64 2 (cosh.f64 x))
(cbrt.f64 (*.f64 (*.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (cosh.f64 x))) (*.f64 2 (cosh.f64 x))))
(*.f64 2 (cosh.f64 x))
(expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))))
(*.f64 2 (cosh.f64 x))
(exp.f64 (log.f64 (*.f64 2 (cosh.f64 x))))
(*.f64 2 (cosh.f64 x))
(log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 x))))
(*.f64 2 (cosh.f64 x))

eval21.0ms (0.7%)

Compiler

Compiled 1461 to 653 computations (55.3% saved)

prune11.0ms (0.4%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New86389
Fresh000
Picked101
Done000
Total87390
Error
0b
Counts
90 → 3
Alt Table
Click to see full alt table
StatusErrorProgram
1.4b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
0.0b
(tanh.f64 x)
1.4b
x
Compiler

Compiled 13 to 9 computations (30.8% saved)

localize2.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(tanh.f64 x)
Compiler

Compiled 4 to 2 computations (50% saved)

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)

rewrite52.0ms (1.8%)

Algorithm
batch-egg-rewrite
Rules
1142×add-sqr-sqrt
1124×*-un-lft-identity
1084×pow1
1050×add-cube-cbrt
1042×add-cbrt-cube
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
045
1955
213185
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 (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 (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 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (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 (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 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 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 1 (exp.f64 (*.f64 x -2))) (/.f64 1 (+.f64 1 (exp.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 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 1 (exp.f64 (*.f64 x -2))) (-.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(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 (expm1.f64 (*.f64 x 2)) (+.f64 1 (pow.f64 (exp.f64 2) 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 (neg.f64 (*.f64 2 (sinh.f64 x))) (neg.f64 (*.f64 2 (cosh.f64 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 1 (exp.f64 (*.f64 x -2)))) (neg.f64 (+.f64 1 (exp.f64 (*.f64 x -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (tanh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (tanh.f64 x)) 3)))) (#(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 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)))))))

simplify54.0ms (1.8%)

Algorithm
egg-herbie
Rules
1276×associate-*r*
1146×associate-+l+
1052×associate-*l*
1036×associate-+r+
742×associate-+r-
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0102283
1256283
21016283
36073283
Stop Event
node limit
Counts
43 → 41
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)))
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
(-.f64 (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))) (/.f64 (exp.f64 (*.f64 x -2)) (+.f64 1 (exp.f64 (*.f64 x -2)))))
(-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 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))))
(*.f64 (tanh.f64 x) 1)
(*.f64 1 (tanh.f64 x))
(*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))
(*.f64 (cbrt.f64 (tanh.f64 x)) (pow.f64 (cbrt.f64 (tanh.f64 x)) 2))
(*.f64 (pow.f64 (cbrt.f64 (tanh.f64 x)) 2) (cbrt.f64 (tanh.f64 x)))
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
(*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))
(*.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))))
(/.f64 1 (/.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (sinh.f64 x))))
(/.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)) (expm1.f64 (*.f64 x 2))))
(/.f64 1 (/.f64 (+.f64 1 (exp.f64 (*.f64 x -2))) (-.f64 1 (exp.f64 (*.f64 x -2)))))
(/.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (cosh.f64 x)))
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (pow.f64 (exp.f64 2) x)))
(/.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (+.f64 1 (exp.f64 (*.f64 x -2))))
(/.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) (neg.f64 (*.f64 2 (cosh.f64 x))))
(/.f64 (neg.f64 (expm1.f64 (*.f64 x 2))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 2) x))))
(/.f64 (neg.f64 (-.f64 1 (exp.f64 (*.f64 x -2)))) (neg.f64 (+.f64 1 (exp.f64 (*.f64 x -2)))))
(pow.f64 (tanh.f64 x) 1)
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
(pow.f64 (cbrt.f64 (tanh.f64 x)) 3)
(pow.f64 (pow.f64 (tanh.f64 x) 3) 1/3)
(sqrt.f64 (pow.f64 (tanh.f64 x) 2))
(log.f64 (exp.f64 (tanh.f64 x)))
(cbrt.f64 (pow.f64 (tanh.f64 x) 3))
(expm1.f64 (log1p.f64 (tanh.f64 x)))
(exp.f64 (log.f64 (tanh.f64 x)))
(log1p.f64 (expm1.f64 (tanh.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)))
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))
(tanh.f64 x)
(-.f64 (+.f64 1 (tanh.f64 x)) 1)
(tanh.f64 x)
(-.f64 (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))) (/.f64 (exp.f64 (*.f64 x -2)) (+.f64 1 (exp.f64 (*.f64 x -2)))))
(tanh.f64 x)
(-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x))))
(tanh.f64 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))))
(tanh.f64 x)
(*.f64 (tanh.f64 x) 1)
(tanh.f64 x)
(*.f64 1 (tanh.f64 x))
(tanh.f64 x)
(*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))
(tanh.f64 x)
(*.f64 (cbrt.f64 (tanh.f64 x)) (pow.f64 (cbrt.f64 (tanh.f64 x)) 2))
(tanh.f64 x)
(*.f64 (pow.f64 (cbrt.f64 (tanh.f64 x)) 2) (cbrt.f64 (tanh.f64 x)))
(tanh.f64 x)
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))
(tanh.f64 x)
(*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))
(tanh.f64 x)
(*.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))))
(tanh.f64 x)
(/.f64 1 (/.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (sinh.f64 x))))
(tanh.f64 x)
(/.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)) (expm1.f64 (*.f64 x 2))))
(tanh.f64 x)
(/.f64 1 (/.f64 (+.f64 1 (exp.f64 (*.f64 x -2))) (-.f64 1 (exp.f64 (*.f64 x -2)))))
(tanh.f64 x)
(/.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (cosh.f64 x)))
(tanh.f64 x)
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (pow.f64 (exp.f64 2) x)))
(tanh.f64 x)
(/.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (+.f64 1 (exp.f64 (*.f64 x -2))))
(tanh.f64 x)
(/.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) (neg.f64 (*.f64 2 (cosh.f64 x))))
(tanh.f64 x)
(/.f64 (neg.f64 (expm1.f64 (*.f64 x 2))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 2) x))))
(tanh.f64 x)
(/.f64 (neg.f64 (-.f64 1 (exp.f64 (*.f64 x -2)))) (neg.f64 (+.f64 1 (exp.f64 (*.f64 x -2)))))
(tanh.f64 x)
(pow.f64 (tanh.f64 x) 1)
(tanh.f64 x)
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2)
(tanh.f64 x)
(pow.f64 (cbrt.f64 (tanh.f64 x)) 3)
(tanh.f64 x)
(pow.f64 (pow.f64 (tanh.f64 x) 3) 1/3)
(tanh.f64 x)
(sqrt.f64 (pow.f64 (tanh.f64 x) 2))
(tanh.f64 x)
(log.f64 (exp.f64 (tanh.f64 x)))
(tanh.f64 x)
(cbrt.f64 (pow.f64 (tanh.f64 x) 3))
(tanh.f64 x)
(expm1.f64 (log1p.f64 (tanh.f64 x)))
(tanh.f64 x)
(exp.f64 (log.f64 (tanh.f64 x)))
(tanh.f64 x)
(log1p.f64 (expm1.f64 (tanh.f64 x)))
(tanh.f64 x)

localize8.0ms (0.3%)

Local error

Found 2 expressions with local error:

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

Compiled 19 to 14 computations (26.3% saved)

series2.0ms (0.1%)

Counts
2 → 3
Calls

6 calls:

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

rewrite61.0ms (2%)

Algorithm
batch-egg-rewrite
Rules
1736×add-sqr-sqrt
1702×*-un-lft-identity
1612×add-cube-cbrt
1600×add-cbrt-cube
166×add-exp-log
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0828
118028
2216828
Stop Event
node limit
Counts
2 → 50
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 (exp.f64 (log1p.f64 (*.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 (pow.f64 x 3/2) (sqrt.f64 -1/3)) 2)))) (#(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 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3) 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 log.f64 (+.f64 1 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 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 exp.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))) 1))))) (#(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 -.f64 (exp.f64 (log1p.f64 (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 (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 (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 (-.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 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (/.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 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 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) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))))))) (#(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 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.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) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.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 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 /.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 (neg.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))) (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 pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1)))) (#(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 pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 3)))) (#(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 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 log.f64 (+.f64 1 (expm1.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 expm1.f64 (log1p.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 exp.f64 (*.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 1))))) (#(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 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 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 -1/3 (pow.f64 x 3)))))) (#(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)))))))

simplify61.0ms (2.1%)

Algorithm
egg-herbie
Rules
828×associate-*r/
676×associate-*l/
648×+-commutative
606×associate--r+
558×unswap-sqr
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01191289
12861239
211571171
352241171
Stop Event
node limit
Counts
53 → 57
Calls
Call 1
Inputs
x
(*.f64 -1/3 (pow.f64 x 3))
(*.f64 -1/3 (pow.f64 x 3))
(-.f64 (exp.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3)))) 1)
(pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 1)
(pow.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) 2)
(pow.f64 (*.f64 x (cbrt.f64 -1/3)) 3)
(pow.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3) 1/3)
(sqrt.f64 (*.f64 (pow.f64 x 6) 1/9))
(log.f64 (pow.f64 (exp.f64 -1/3) (pow.f64 x 3)))
(log.f64 (+.f64 1 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3)))))
(cbrt.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))
(expm1.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3))))
(exp.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))))
(exp.f64 (*.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))) 1))
(log1p.f64 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3))))
(-.f64 (exp.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) 1)
(-.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)))
(*.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1)
(*.f64 1 (fma.f64 -1/3 (pow.f64 x 3) x))
(*.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) 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))
(*.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)))
(*.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (/.f64 1 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)))
(*.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (/.f64 1 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))))
(/.f64 1 (/.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x 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) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))
(/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 x x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 (pow.f64 x 3) (*.f64 -1/3 x)))))
(/.f64 (-.f64 (*.f64 x x) (*.f64 (pow.f64 x 6) 1/9)) (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))
(/.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)))
(/.f64 (neg.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))) (neg.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))))
(pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1)
(pow.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2)
(pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 3)
(pow.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3) 1/3)
(sqrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 2))
(log.f64 (exp.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))
(log.f64 (+.f64 1 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x))))
(cbrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3))
(expm1.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))
(exp.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))
(exp.f64 (*.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 1))
(log1p.f64 (expm1.f64 (fma.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)
(fma.f64 1 x (*.f64 -1/3 (pow.f64 x 3)))
(fma.f64 1 (*.f64 -1/3 (pow.f64 x 3)) x)
(fma.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) x)
(fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 -1/3 (pow.f64 x 3)))
(fma.f64 (pow.f64 (*.f64 x (cbrt.f64 -1/3)) 2) (*.f64 x (cbrt.f64 -1/3)) x)
(fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) (*.f64 -1/3 (pow.f64 x 3)))
Outputs
x
(*.f64 -1/3 (pow.f64 x 3))
(*.f64 -1/3 (pow.f64 x 3))
(-.f64 (exp.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3)))) 1)
(*.f64 -1/3 (pow.f64 x 3))
(pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 1)
(*.f64 -1/3 (pow.f64 x 3))
(pow.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) 2)
(*.f64 -1/3 (pow.f64 x 3))
(pow.f64 (*.f64 x (cbrt.f64 -1/3)) 3)
(*.f64 -1/3 (pow.f64 x 3))
(pow.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3) 1/3)
(*.f64 -1/3 (pow.f64 x 3))
(sqrt.f64 (*.f64 (pow.f64 x 6) 1/9))
(log.f64 (pow.f64 (exp.f64 -1/3) (pow.f64 x 3)))
(*.f64 -1/3 (pow.f64 x 3))
(log.f64 (+.f64 1 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3)))))
(*.f64 -1/3 (pow.f64 x 3))
(cbrt.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))
(*.f64 -1/3 (pow.f64 x 3))
(expm1.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3))))
(*.f64 -1/3 (pow.f64 x 3))
(exp.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))))
(*.f64 -1/3 (pow.f64 x 3))
(exp.f64 (*.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))) 1))
(*.f64 -1/3 (pow.f64 x 3))
(log1p.f64 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3))))
(*.f64 -1/3 (pow.f64 x 3))
(-.f64 (exp.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) 1)
(fma.f64 -1/3 (pow.f64 x 3) 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)))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x)))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x))
(*.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1)
(fma.f64 -1/3 (pow.f64 x 3) x)
(*.f64 1 (fma.f64 -1/3 (pow.f64 x 3) x))
(fma.f64 -1/3 (pow.f64 x 3) x)
(*.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))
(fma.f64 -1/3 (pow.f64 x 3) 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))
(fma.f64 -1/3 (pow.f64 x 3) 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)))
(fma.f64 -1/3 (pow.f64 x 3) x)
(*.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (/.f64 1 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x)))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x))
(*.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (/.f64 1 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))))
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3))))))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9)))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4)))))
(/.f64 1 (/.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x))))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x)))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 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) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))))
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3))))))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9)))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4)))))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x)))
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x))
(/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3))))))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9)))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4)))))
(/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 x x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 (pow.f64 x 3) (*.f64 -1/3 x)))))
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3))))))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9)))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4)))))
(/.f64 (-.f64 (*.f64 x x) (*.f64 (pow.f64 x 6) 1/9)) (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x)))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 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)))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x)))
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x))
(/.f64 (neg.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))) (neg.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))))
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3))))))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9)))
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4)))))
(pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1)
(fma.f64 -1/3 (pow.f64 x 3) x)
(pow.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2)
(fma.f64 -1/3 (pow.f64 x 3) x)
(pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 3)
(fma.f64 -1/3 (pow.f64 x 3) x)
(pow.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3) 1/3)
(fma.f64 -1/3 (pow.f64 x 3) x)
(sqrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 2))
(fma.f64 -1/3 (pow.f64 x 3) x)
(log.f64 (exp.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))
(fma.f64 -1/3 (pow.f64 x 3) x)
(log.f64 (+.f64 1 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x))))
(fma.f64 -1/3 (pow.f64 x 3) x)
(cbrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3))
(fma.f64 -1/3 (pow.f64 x 3) x)
(expm1.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))
(fma.f64 -1/3 (pow.f64 x 3) x)
(exp.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))
(fma.f64 -1/3 (pow.f64 x 3) x)
(exp.f64 (*.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 1))
(fma.f64 -1/3 (pow.f64 x 3) x)
(log1p.f64 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))
(fma.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)
(fma.f64 -1/3 (pow.f64 x 3) x)
(fma.f64 1 x (*.f64 -1/3 (pow.f64 x 3)))
(fma.f64 -1/3 (pow.f64 x 3) x)
(fma.f64 1 (*.f64 -1/3 (pow.f64 x 3)) x)
(fma.f64 -1/3 (pow.f64 x 3) x)
(fma.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) x)
(fma.f64 -1/3 (pow.f64 x 3) x)
(fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 -1/3 (pow.f64 x 3)))
(fma.f64 -1/3 (pow.f64 x 3) x)
(fma.f64 (pow.f64 (*.f64 x (cbrt.f64 -1/3)) 2) (*.f64 x (cbrt.f64 -1/3)) x)
(fma.f64 -1/3 (pow.f64 x 3) x)
(fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) (*.f64 -1/3 (pow.f64 x 3)))
(fma.f64 -1/3 (pow.f64 x 3) x)

eval26.0ms (0.9%)

Compiler

Compiled 1154 to 845 computations (26.8% saved)

prune11.0ms (0.4%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New98098
Fresh011
Picked011
Done011
Total983101
Error
0b
Counts
101 → 3
Alt Table
Click to see full alt table
StatusErrorProgram
1.4b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
0.0b
(tanh.f64 x)
1.4b
x
Compiler

Compiled 13 to 9 computations (30.8% saved)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune1.0ms (0%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New000
Fresh011
Picked000
Done022
Total033
Error
0b
Counts
3 → 3
Alt Table
Click to see full alt table
StatusErrorProgram
1.4b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
0.0b
(tanh.f64 x)
1.4b
x
Compiler

Compiled 13 to 9 computations (30.8% saved)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune1.0ms (0%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New000
Fresh011
Picked000
Done022
Total033
Error
0b
Counts
3 → 3
Alt Table
Click to see full alt table
StatusErrorProgram
1.4b
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
0.0b
(tanh.f64 x)
1.4b
x
Compiler

Compiled 13 to 9 computations (30.8% saved)

regimes7.0ms (0.2%)

Accuracy

Total -59.6b remaining (-762944.6%)

Threshold costs -59.6b (-762944.6%)

Counts
4 → 1
Calls
Call 1
Inputs
x
(tanh.f64 x)
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) 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:

4.0ms
x
2.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 40 to 21 computations (47.5% saved)

simplify6.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
046
Stop Event
fuel
saturated
Calls
Call 1
Inputs
(tanh.f64 x)
x
Outputs
(tanh.f64 x)
x
Compiler

Compiled 5 to 3 computations (40% saved)

soundness77.0ms (2.6%)

Algorithm
egg-herbie
Rules
860×associate--r+
792×associate-/l*
604×associate-/r*
584×associate-*r/
564×times-frac
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01441097
13601045
215241023
355231023
Stop Event
node limit
Compiler

Compiled 29 to 10 computations (65.5% saved)

end13.0ms (0.4%)

Compiler

Compiled 4 to 2 computations (50% saved)

Profiling

Loading profile data...