Details

Time bar (total: 2.6s)

analyze57.0ms (2.2%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
50%50%0.1%3
50%50%0.1%4
62.4%37.5%0.1%5
62.4%31.2%6.3%6
68.7%21.9%9.5%7
68.7%17.2%14.1%8
71.8%11.7%16.5%9
71.8%9%19.2%10
73.4%6%20.6%11
73.4%4.6%22%12
74.1%3.1%22.8%13
74.1%2.3%23.5%14
Compiler

Compiled 9 to 7 computations (22.2% saved)

sample1.9s (73.3%)

Results
743.0ms1507×body2048valid
546.0ms1778×body1024valid
280.0ms3183×body128valid
248.0ms1156×body512valid
92.0ms632×body256valid
14.0ms166×body128invalid
Compiler

Compiled 18 to 14 computations (22.2% saved)

preprocess38.0ms (1.5%)

Algorithm
egg-herbie
Rules
736×unswap-sqr_binary64
572×associate-*l*_binary64
458×associate-*r*_binary64
278×fma-def_binary64
262×distribute-rgt-in_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01012
12212
23012
34812
49812
525612
687512
7391312
022
122
Stop Event
unsound
node limit
Calls
Call 1
Inputs
0
1
Outputs
0
1
0
Call 2
Inputs
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 x a)) 1)
Outputs
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 x a)) 1)
(expm1.f64 (*.f64 a x))
Symmetry

(sort a x)

Compiler

Compiled 8 to 6 computations (25% saved)

simplify21.0ms (0.8%)

Algorithm
egg-herbie
Rules
440×unswap-sqr_binary64
329×associate-*l*_binary64
275×associate-+l+_binary64
252×associate-*r*_binary64
201×associate-/l/_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
076
1166
2236
3356
4706
51756
65566
723316
Stop Event
node limit
Counts
1 → 2
Calls
Call 1
Inputs
(-.f64 (exp.f64 (*.f64 a x)) 1)
Outputs
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))

prune3.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
0.0b
Counts
3 → 1
Alt Table
StatusErrorProgram
0.0b
(expm1.f64 (*.f64 a x))
Compiler

Compiled 24 to 15 computations (37.5% saved)

localize3.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(expm1.f64 (*.f64 a x))

series3.0ms (0.1%)

Counts
1 → 24
Calls

6 calls:

TimeVariablePointExpression
1.0ms
a
@0
(expm1.f64 (*.f64 a x))
1.0ms
x
@0
(expm1.f64 (*.f64 a x))
0.0ms
a
@inf
(expm1.f64 (*.f64 a x))
0.0ms
x
@inf
(expm1.f64 (*.f64 a x))
0.0ms
x
@-inf
(expm1.f64 (*.f64 a x))

rewrite30.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
442×pow1_binary64
405×add-log-exp_binary64
405×log1p-expm1-u_binary64
405×expm1-log1p-u_binary64
395×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056
1966
211136
Stop Event
node limit
Counts
1 → 18
Calls
Call 1
Inputs
(expm1.f64 (*.f64 a x))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (exp.f64 x) a) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (pow.f64 (exp.f64 x) a) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 (*.f64 a x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (expm1.f64 (*.f64 a x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (pow.f64 (exp.f64 x) a) 3) 1) (+.f64 (*.f64 (pow.f64 (exp.f64 x) a) (pow.f64 (exp.f64 x) a)) (+.f64 1 (*.f64 (pow.f64 (exp.f64 x) a) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (pow.f64 (exp.f64 x) a) (pow.f64 (exp.f64 x) a)) 1) (+.f64 (pow.f64 (exp.f64 x) a) 1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (expm1.f64 (*.f64 a x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (expm1.f64 (*.f64 a x))))))))

simplify34.0ms (1.3%)

Algorithm
egg-herbie
Rules
882×fma-def_binary64
844×distribute-lft-out_binary64
307×*-commutative_binary64
300×unswap-sqr_binary64
172×associate-*l*_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
030284
187284
2242278
31040262
43195248
54880248
Stop Event
node limit
Counts
42 → 27
Calls
Call 1
Inputs
(*.f64 a x)
(+.f64 (*.f64 a x) (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))))
(+.f64 (*.f64 a x) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3)))))
(+.f64 (*.f64 a x) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3))))))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(*.f64 a x)
(+.f64 (*.f64 a x) (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))))
(+.f64 (*.f64 a x) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3)))))
(+.f64 (*.f64 a x) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3))))))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
Outputs
(*.f64 a x)
(+.f64 (*.f64 a x) (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))))
(fma.f64 a x (*.f64 1/2 (*.f64 (*.f64 a a) (*.f64 x x))))
(fma.f64 a x (*.f64 1/2 (*.f64 (*.f64 a x) (*.f64 a x))))
(*.f64 x (+.f64 a (*.f64 x (*.f64 1/2 (*.f64 a a)))))
(*.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a))
(+.f64 (*.f64 a x) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3)))))
(fma.f64 a x (fma.f64 1/2 (*.f64 (*.f64 a a) (*.f64 x x)) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3)))))
(fma.f64 a x (fma.f64 1/2 (*.f64 (*.f64 a x) (*.f64 a x)) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3)))))
(fma.f64 a x (*.f64 (*.f64 x x) (+.f64 (*.f64 x (*.f64 1/6 (pow.f64 a 3))) (*.f64 1/2 (*.f64 a a)))))
(*.f64 x (+.f64 a (*.f64 x (fma.f64 x (*.f64 1/6 (pow.f64 a 3)) (*.f64 1/2 (*.f64 a a))))))
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (*.f64 1/6 (pow.f64 (*.f64 a x) 3)))
(+.f64 (*.f64 a x) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3))))))
(fma.f64 a x (fma.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (*.f64 a a) (*.f64 x x)) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3))))))
(fma.f64 a x (fma.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (*.f64 a x) (*.f64 a x)) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3))))))
(fma.f64 a x (fma.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4)) (*.f64 (*.f64 x x) (+.f64 (*.f64 x (*.f64 1/6 (pow.f64 a 3))) (*.f64 1/2 (*.f64 a a))))))
(fma.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4)) (*.f64 x (+.f64 a (*.f64 x (fma.f64 x (*.f64 1/6 (pow.f64 a 3)) (*.f64 1/2 (*.f64 a a)))))))
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (fma.f64 1/6 (pow.f64 (*.f64 a x) 3) (*.f64 1/24 (pow.f64 (*.f64 a x) 4))))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(*.f64 a x)
(+.f64 (*.f64 a x) (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))))
(fma.f64 a x (*.f64 1/2 (*.f64 (*.f64 a a) (*.f64 x x))))
(fma.f64 a x (*.f64 1/2 (*.f64 (*.f64 a x) (*.f64 a x))))
(*.f64 x (+.f64 a (*.f64 x (*.f64 1/2 (*.f64 a a)))))
(*.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a))
(+.f64 (*.f64 a x) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3)))))
(fma.f64 a x (fma.f64 1/2 (*.f64 (*.f64 a a) (*.f64 x x)) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3)))))
(fma.f64 a x (fma.f64 1/2 (*.f64 (*.f64 a x) (*.f64 a x)) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3)))))
(fma.f64 a x (*.f64 (*.f64 x x) (+.f64 (*.f64 x (*.f64 1/6 (pow.f64 a 3))) (*.f64 1/2 (*.f64 a a)))))
(*.f64 x (+.f64 a (*.f64 x (fma.f64 x (*.f64 1/6 (pow.f64 a 3)) (*.f64 1/2 (*.f64 a a))))))
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (*.f64 1/6 (pow.f64 (*.f64 a x) 3)))
(+.f64 (*.f64 a x) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 a 2) (pow.f64 x 2))) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3))))))
(fma.f64 a x (fma.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (*.f64 a a) (*.f64 x x)) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3))))))
(fma.f64 a x (fma.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (*.f64 a x) (*.f64 a x)) (*.f64 1/6 (*.f64 (pow.f64 a 3) (pow.f64 x 3))))))
(fma.f64 a x (fma.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4)) (*.f64 (*.f64 x x) (+.f64 (*.f64 x (*.f64 1/6 (pow.f64 a 3))) (*.f64 1/2 (*.f64 a a))))))
(fma.f64 1/24 (*.f64 (pow.f64 a 4) (pow.f64 x 4)) (*.f64 x (+.f64 a (*.f64 x (fma.f64 x (*.f64 1/6 (pow.f64 a 3)) (*.f64 1/2 (*.f64 a a)))))))
(fma.f64 x (fma.f64 x (*.f64 1/2 (*.f64 a a)) a) (fma.f64 1/6 (pow.f64 (*.f64 a x) 3) (*.f64 1/24 (pow.f64 (*.f64 a x) 4))))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))

prune18.0ms (0.7%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New25227
Fresh000
Picked011
Done000
Total25328
Error
0.0b
Counts
28 → 3
Alt Table
StatusErrorProgram
35.9b
(pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 2)
0.0b
(expm1.f64 (*.f64 a x))
0.6b
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
Compiler

Compiled 343 to 169 computations (50.7% saved)

localize5.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(expm1.f64 (*.f64 a x))
0.3b
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
12.4b
(cbrt.f64 (expm1.f64 (*.f64 a x)))

series24.0ms (0.9%)

Counts
2 → 32
Calls

12 calls:

TimeVariablePointExpression
3.0ms
x
@0
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
3.0ms
x
@inf
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
3.0ms
a
@0
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
3.0ms
x
@-inf
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
2.0ms
x
@-inf
(cbrt.f64 (expm1.f64 (*.f64 a x)))

rewrite38.0ms (1.5%)

Algorithm
batch-egg-rewrite
Rules
612×pow1_binary64
573×add-log-exp_binary64
573×log1p-expm1-u_binary64
573×expm1-log1p-u_binary64
69×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0814
116414
2161914
Stop Event
node limit
Counts
2 → 43
Calls
Call 1
Inputs
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) (pow.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) (pow.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) 2) (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/6) (pow.f64 (expm1.f64 (*.f64 a x)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) 1/3) (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1/3) (pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (expm1.f64 (*.f64 a x)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/6) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (exp.f64 a) x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (pow.f64 (exp.f64 a) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 (*.f64 a x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (expm1.f64 (*.f64 a x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) 2) (*.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/6) (*.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/6) (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) 2) 3) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/6) 3) (pow.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/6) 3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) 1) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) (pow.f64 (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))) 2)) (cbrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) (pow.f64 (expm1.f64 (*.f64 a x)) 1/6)) (pow.f64 (expm1.f64 (*.f64 a x)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (pow.f64 (exp.f64 a) x) 3) 1) (+.f64 (*.f64 (pow.f64 (exp.f64 a) x) (pow.f64 (exp.f64 a) x)) (+.f64 1 (*.f64 (pow.f64 (exp.f64 a) x) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (pow.f64 (exp.f64 a) x) (pow.f64 (exp.f64 a) x)) 1) (+.f64 (pow.f64 (exp.f64 a) x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (*.f64 a x))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (expm1.f64 (*.f64 a x))))))))

simplify30.0ms (1.1%)

Algorithm
egg-herbie
Rules
833×fma-def_binary64
506×distribute-rgt-in_binary64
465×distribute-lft-in_binary64
452×unswap-sqr_binary64
211×associate-/l/_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
09224
124224
235224
356224
4113224
5307224
61051224
72813224
Stop Event
node limit
Counts
75 → 46
Calls
Call 1
Inputs
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
Outputs
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (-.f64 (exp.f64 (*.f64 a x)) 1) 1/3)
(cbrt.f64 (expm1.f64 (*.f64 a x)))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))

prune43.0ms (1.6%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New73073
Fresh011
Picked011
Done011
Total73376
Error
0.0b
Counts
76 → 3
Alt Table
StatusErrorProgram
35.9b
(pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 2)
0.0b
(expm1.f64 (*.f64 a x))
0.6b
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
Compiler

Compiled 960 to 442 computations (54% saved)

localize5.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(expm1.f64 (*.f64 a x))
0.1b
(pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 2)
12.3b
(sqrt.f64 (expm1.f64 (*.f64 a x)))

series14.0ms (0.5%)

Counts
2 → 32
Calls

12 calls:

TimeVariablePointExpression
3.0ms
x
@0
(pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 2)
3.0ms
a
@0
(pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 2)
2.0ms
a
@0
(sqrt.f64 (expm1.f64 (*.f64 a x)))
2.0ms
x
@0
(sqrt.f64 (expm1.f64 (*.f64 a x)))
1.0ms
a
@-inf
(pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 2)

rewrite39.0ms (1.5%)

Algorithm
batch-egg-rewrite
Rules
588×pow1_binary64
543×add-log-exp_binary64
543×log1p-expm1-u_binary64
543×expm1-log1p-u_binary64
529×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0814
116114
2154314
Stop Event
node limit
Counts
2 → 39
Calls
Call 1
Inputs
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 2)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (sqrt.f64 (expm1.f64 (*.f64 a x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/4) (pow.f64 (expm1.f64 (*.f64 a x)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2)) (sqrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) 1/2) (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (expm1.f64 (*.f64 a x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (exp.f64 a) x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (pow.f64 (exp.f64 a) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 (*.f64 a x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (expm1.f64 (*.f64 a x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) (*.f64 (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))) (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/4) (*.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/4) (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) (pow.f64 (expm1.f64 (*.f64 a x)) 1/4)) (pow.f64 (expm1.f64 (*.f64 a x)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) (cbrt.f64 (expm1.f64 (*.f64 a x)))) (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (pow.f64 (exp.f64 a) x) 3) 1) (+.f64 (*.f64 (pow.f64 (exp.f64 a) x) (pow.f64 (exp.f64 a) x)) (+.f64 1 (*.f64 (pow.f64 (exp.f64 a) x) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (pow.f64 (exp.f64 a) x) (pow.f64 (exp.f64 a) x)) 1) (+.f64 (pow.f64 (exp.f64 a) x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (*.f64 a x))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (expm1.f64 (*.f64 a x))))))))

simplify29.0ms (1.1%)

Algorithm
egg-herbie
Rules
440×unswap-sqr_binary64
340×associate-*l*_binary64
284×associate-*r*_binary64
275×associate-+l+_binary64
201×associate-/l/_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08224
117224
224224
336224
471224
5176224
6565224
72399224
Stop Event
node limit
Counts
71 → 42
Calls
Call 1
Inputs
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
Outputs
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))

prune32.0ms (1.2%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New68169
Fresh000
Picked101
Done022
Total69372
Error
0b
Counts
72 → 3
Alt Table
StatusErrorProgram
0.0b
(expm1.f64 (*.f64 a x))
0.6b
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
35.9b
(pow.f64 (expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))) 2)
Compiler

Compiled 876 to 407 computations (53.5% saved)

localize7.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))
0.0b
(expm1.f64 (*.f64 a x))
0.1b
(pow.f64 (expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))) 2)
12.3b
(sqrt.f64 (expm1.f64 (*.f64 a x)))

series5.0ms (0.2%)

Counts
2 → 32
Calls

12 calls:

TimeVariablePointExpression
1.0ms
a
@0
(pow.f64 (expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))) 2)
1.0ms
x
@0
(pow.f64 (expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))) 2)
0.0ms
x
@0
(expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))
0.0ms
a
@0
(expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))
0.0ms
a
@inf
(pow.f64 (expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))) 2)

rewrite54.0ms (2.1%)

Algorithm
batch-egg-rewrite
Rules
669×pow1_binary64
618×expm1-log1p-u_binary64
617×add-log-exp_binary64
617×log1p-expm1-u_binary64
75×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01014
118214
2174914
Stop Event
node limit
Counts
2 → 44
Calls
Call 1
Inputs
(pow.f64 (expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))) 2)
(expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (exp.f64 a) x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (pow.f64 (exp.f64 a) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 (*.f64 a x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (expm1.f64 (*.f64 a x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) (*.f64 (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))) (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/4) (*.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/4) (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) (pow.f64 (expm1.f64 (*.f64 a x)) 1/4)) (pow.f64 (expm1.f64 (*.f64 a x)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) (cbrt.f64 (expm1.f64 (*.f64 a x)))) (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (pow.f64 (exp.f64 a) x) 3) 1) (+.f64 (*.f64 (pow.f64 (exp.f64 a) x) (pow.f64 (exp.f64 a) x)) (+.f64 1 (*.f64 (pow.f64 (exp.f64 a) x) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (pow.f64 (exp.f64 a) x) (pow.f64 (exp.f64 a) x)) 1) (+.f64 (pow.f64 (exp.f64 a) x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (*.f64 a x))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (expm1.f64 (*.f64 a x))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))) (cbrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/4) (pow.f64 (expm1.f64 (*.f64 a x)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2)) (sqrt.f64 (cbrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 2) 1/2) (pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1) 3) 1) (+.f64 (*.f64 (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1) (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1)) (+.f64 1 (*.f64 (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1) (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1)) 1) (+.f64 (+.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (expm1.f64 (*.f64 a x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (expm1.f64 (*.f64 a x)))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 (*.f64 a x)) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (sqrt.f64 (expm1.f64 (*.f64 a x)))))))))

simplify41.0ms (1.6%)

Algorithm
egg-herbie
Rules
440×unswap-sqr_binary64
340×associate-*l*_binary64
284×associate-*r*_binary64
275×associate-+l+_binary64
201×associate-/l/_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08224
117224
224224
336224
471224
5176224
6565224
72399224
Stop Event
node limit
Counts
76 → 46
Calls
Call 1
Inputs
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(-.f64 (exp.f64 (*.f64 a x)) 1)
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
Outputs
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(-.f64 (exp.f64 (*.f64 a x)) 1)
(expm1.f64 (*.f64 a x))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))
(sqrt.f64 (-.f64 (exp.f64 (*.f64 a x)) 1))
(sqrt.f64 (expm1.f64 (*.f64 a x)))

prune38.0ms (1.4%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New95095
Fresh000
Picked011
Done022
Total95398
Error
0b
Counts
98 → 3
Alt Table
StatusErrorProgram
0.0b
(expm1.f64 (*.f64 a x))
0.6b
(pow.f64 (cbrt.f64 (expm1.f64 (*.f64 a x))) 3)
35.9b
(pow.f64 (expm1.f64 (log1p.f64 (sqrt.f64 (expm1.f64 (*.f64 a x))))) 2)
Compiler

Compiled 1289 to 631 computations (51% saved)

regimes37.0ms (1.4%)

Accuracy

Total 0.0b remaining (14.3%)

Threshold costs 0.0b (14.3%)

Counts
17 → 1
Compiler

Compiled 178 to 87 computations (51.1% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056
166
Stop Event
saturated
Calls
Call 1
Inputs
(expm1.f64 (*.f64 a x))
Outputs
(expm1.f64 (*.f64 a x))

end52.0ms (2%)

Stop Event
done
Remove

(sort a x)

Compiler

Compiled 50 to 36 computations (28% saved)

Profiling

Loading profile data...