Details

Time bar (total: 5.4s)

analyze489.0ms (9%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
50%50%0.1%5
50%50%0.1%6
50%37.5%12.6%7
50%37.5%12.6%8
50%31.2%18.8%9
50%31.2%18.8%10
50%28.1%22%11
50%28.1%22%12
50%26.5%23.5%13
50%26.5%23.5%14
Compiler

Compiled 14 to 11 computations (21.4% saved)

sample4.1s (76.3%)

Results
1.3s2017×body1024valid
1.0s1982×body1024invalid
645.0ms4673×body128valid
373.0ms990×body512invalid
350.0ms1020×body512valid
133.0ms538×body256invalid
131.0ms542×body256valid
107.0ms761×body128invalid
6.0msbody2048valid
2.0msbody2048invalid
Compiler

Compiled 28 to 22 computations (21.4% saved)

preprocess48.0ms (0.9%)

Algorithm
egg-herbie
Rules
748×times-frac_binary64
390×fma-def_binary64
320×unswap-sqr_binary64
302×associate-*l*_binary64
234×associate-/l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01836
14936
213136
325634
437334
567234
6152634
7265134
8380334
9454934
022
Stop Event
saturated
node limit
Calls
Call 1
Inputs
0
1
Outputs
0
1
Call 2
Inputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 im)) (+.f64 (exp.f64 (neg.f64 re)) (exp.f64 re)))
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 im)) (+.f64 (exp.f64 (neg.f64 re)) (exp.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 im) (+.f64 (exp.f64 (neg.f64 re)) (exp.f64 re))))
(*.f64 (cos.f64 im) (fma.f64 1/2 (exp.f64 re) (/.f64 1/2 (exp.f64 re))))
Compiler

Compiled 13 to 10 computations (23.1% saved)

simplify37.0ms (0.7%)

Algorithm
egg-herbie
Rules
529×associate-/l*_binary64
430×unswap-sqr_binary64
374×times-frac_binary64
351×fma-def_binary64
340×associate-/r/_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01118
12818
27018
313417
419417
534717
678317
7135617
8397517
9449817
Stop Event
node limit
Counts
1 → 2
Calls
Call 1
Inputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))

prune3.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.0b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.0b
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Compiler

Compiled 76 to 53 computations (30.3% saved)

localize8.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))

series2.0ms (0%)

Counts
1 → 8
Calls

3 calls:

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

rewrite29.0ms (0.5%)

Algorithm
egg-rewrite-iter-limit
batch-egg-rewrite
Rules
67×add-sqr-sqrt_binary64
64×*-un-lft-identity_binary64
64×add-log-exp_binary64
64×pow1_binary64
62×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0610
112610
2205210
0610
Stop Event
iter limit
unsound
Counts
1 → 11
Calls
Call 1
Inputs
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (*.f64 (exp.f64 im) (exp.f64 im))) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))

simplify28.0ms (0.5%)

Algorithm
egg-herbie
Rules
700×fma-def_binary64
402×associate-/l/_binary64
348×*-commutative_binary64
294×distribute-lft-out_binary64
287×unswap-sqr_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02183
14981
210877
328877
4109077
5300177
6404977
Stop Event
node limit
Counts
19 → 20
Calls
Call 1
Inputs
2
(+.f64 2 (pow.f64 im 2))
(+.f64 2 (+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2)))
(+.f64 (*.f64 1/360 (pow.f64 im 6)) (+.f64 2 (+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2))))
(+.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(+.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(+.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(+.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
Outputs
2
(+.f64 2 (pow.f64 im 2))
(+.f64 2 (*.f64 im im))
(fma.f64 im im 2)
(+.f64 2 (+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2)))
(+.f64 2 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)))
(+.f64 2 (fma.f64 im im (*.f64 1/12 (pow.f64 im 4))))
(fma.f64 1/12 (pow.f64 im 4) (fma.f64 im im 2))
(fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) 2))
(fma.f64 im (fma.f64 1/12 (pow.f64 im 3) im) 2)
(+.f64 (*.f64 1/360 (pow.f64 im 6)) (+.f64 2 (+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2))))
(fma.f64 1/360 (pow.f64 im 6) (+.f64 2 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))))
(+.f64 (fma.f64 im im (*.f64 1/12 (pow.f64 im 4))) (fma.f64 1/360 (pow.f64 im 6) 2))
(fma.f64 1/360 (pow.f64 im 6) (fma.f64 1/12 (pow.f64 im 4) (fma.f64 im im 2)))
(fma.f64 1/12 (pow.f64 im 4) (fma.f64 im im (fma.f64 1/360 (pow.f64 im 6) 2)))
(fma.f64 1/360 (pow.f64 im 6) (fma.f64 im (fma.f64 1/12 (pow.f64 im 3) im) 2))
(fma.f64 im (fma.f64 1/12 (pow.f64 im 3) im) (fma.f64 1/360 (pow.f64 im 6) 2))
(+.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(+.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(+.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(+.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))

prune19.0ms (0.4%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New18220
Fresh101
Picked011
Done000
Total19322
Error
0b
Counts
22 → 3
Alt Table
StatusErrorProgram
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))
0.6b
(*.f64 (*.f64 1/2 (cos.f64 re)) (fma.f64 im (fma.f64 1/12 (pow.f64 im 3) im) 2))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Compiler

Compiled 455 to 225 computations (50.5% saved)

localize18.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im)))
0.0b
(pow.f64 (exp.f64 im) 3)
0.1b
(pow.f64 (exp.f64 (neg.f64 im)) 3)
4.2b
(-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))

series7.0ms (0.1%)

Counts
4 → 36
Calls

12 calls:

TimeVariablePointExpression
1.0ms
im
@-inf
(pow.f64 (exp.f64 im) 3)
1.0ms
im
@inf
(-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0ms
im
@inf
(pow.f64 (exp.f64 (neg.f64 im)) 3)
1.0ms
im
@-inf
(-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0ms
im
@0
(-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))

rewrite145.0ms (2.7%)

Algorithm
egg-rewrite
egg-rewrite-iter-limit
batch-egg-rewrite
Rules
437×pow1_binary64
411×add-log-exp_binary64
410×log1p-expm1-u_binary64
410×expm1-log1p-u_binary64
405×pow1_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01260
127760
2396560
0815
118415
2303315
0815
068
11286
214346
056
11046
210776
058
11016
212556
Stop Event
node limit
node limit
node limit
iter limit
unsound
unsound
Counts
4 → 70
Calls
Call 1
Inputs
(-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(pow.f64 (exp.f64 (neg.f64 im)) 3)
(pow.f64 (exp.f64 im) 3)
(*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (exp.f64 im) 2) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (neg.f64 (exp.f64 (neg.f64 im))) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (fma.f64 (neg.f64 (exp.f64 im)) (exp.f64 (neg.f64 im)) (exp.f64 (+.f64 (neg.f64 im) im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (cbrt.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) (cbrt.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (sqrt.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (pow.f64 (exp.f64 im) 2) 3) (pow.f64 (exp.f64 (+.f64 (neg.f64 im) im)) 3)) (+.f64 (*.f64 (pow.f64 (exp.f64 im) 2) (pow.f64 (exp.f64 im) 2)) (+.f64 (*.f64 (exp.f64 (+.f64 (neg.f64 im) im)) (exp.f64 (+.f64 (neg.f64 im) im))) (*.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (pow.f64 (exp.f64 im) 2) (pow.f64 (exp.f64 im) 2)) (*.f64 (exp.f64 (+.f64 (neg.f64 im) im)) (exp.f64 (+.f64 (neg.f64 im) im)))) (+.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (exp.f64 im) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (exp.f64 im) 3)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 im) (pow.f64 (exp.f64 im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (exp.f64 im) 3) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (exp.f64 im) 3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 im)) 2) (*.f64 (cbrt.f64 (exp.f64 im)) (pow.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 im)) (*.f64 (sqrt.f64 (exp.f64 im)) (pow.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (*.f64 im 3/2)) (exp.f64 (*.f64 im 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (exp.f64 im)) 2) 3) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (exp.f64 im)) 3) (pow.f64 (sqrt.f64 (exp.f64 im)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (exp.f64 im) 2) 1) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (exp.f64 im) 2) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (cbrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (exp.f64 im) 2) (sqrt.f64 (exp.f64 im))) (sqrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (pow.f64 (exp.f64 im) 3))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (pow.f64 (exp.f64 im) 2) 1) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 im) 6))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (exp.f64 im) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (exp.f64 im) 3) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 im 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (exp.f64 im) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (exp.f64 im) 3)))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (exp.f64 im) 3)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 im) (pow.f64 (exp.f64 im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (exp.f64 im) 3) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (exp.f64 im) 3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 im)) 2) (*.f64 (cbrt.f64 (exp.f64 im)) (pow.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 im)) (*.f64 (sqrt.f64 (exp.f64 im)) (pow.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (*.f64 im 3/2)) (exp.f64 (*.f64 im 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (exp.f64 im)) 2) 3) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (exp.f64 im)) 3) (pow.f64 (sqrt.f64 (exp.f64 im)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (exp.f64 im) 2) 1) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (exp.f64 im) 2) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (cbrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (exp.f64 im) 2) (sqrt.f64 (exp.f64 im))) (sqrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 im) 6))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (exp.f64 im) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (exp.f64 im) 3) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 im 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (exp.f64 im) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (exp.f64 im) 3)))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (exp.f64 im) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (exp.f64 im) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (pow.f64 (exp.f64 im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 im) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 im) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 (exp.f64 im) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cbrt.f64 (exp.f64 im)) 2) 3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 im) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (exp.f64 im) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (exp.f64 im) 2)))))))

simplify24.0ms (0.4%)

Algorithm
egg-herbie
Rules
414×associate-*l*_binary64
339×associate-*r*_binary64
327×cancel-sign-sub-inv_binary64
264×fma-neg_binary64
239×fma-def_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
051416
1169342
2451287
31487272
Stop Event
node limit
Counts
106 → 86
Calls
Call 1
Inputs
(*.f64 2 im)
(+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im))
(+.f64 (*.f64 4/3 (pow.f64 im 3)) (+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im)))
(+.f64 (*.f64 2/3 (pow.f64 im 4)) (+.f64 (*.f64 4/3 (pow.f64 im 3)) (+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im))))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)))
1
(-.f64 1 (*.f64 3 im))
(-.f64 (+.f64 1 (*.f64 9/2 (pow.f64 im 2))) (*.f64 3 im))
(-.f64 (+.f64 1 (*.f64 9/2 (pow.f64 im 2))) (+.f64 (*.f64 9/2 (pow.f64 im 3)) (*.f64 3 im)))
(pow.f64 (exp.f64 (*.f64 -1 im)) 3)
(pow.f64 (exp.f64 (*.f64 -1 im)) 3)
(pow.f64 (exp.f64 (*.f64 -1 im)) 3)
(pow.f64 (exp.f64 (*.f64 -1 im)) 3)
1
(+.f64 1 (*.f64 3 im))
(+.f64 1 (+.f64 (*.f64 9/2 (pow.f64 im 2)) (*.f64 3 im)))
(+.f64 1 (+.f64 (*.f64 9/2 (pow.f64 im 3)) (+.f64 (*.f64 9/2 (pow.f64 im 2)) (*.f64 3 im))))
1
(-.f64 1 (*.f64 2 im))
(-.f64 (+.f64 1 (*.f64 2 (pow.f64 im 2))) (*.f64 2 im))
(-.f64 (+.f64 1 (*.f64 2 (pow.f64 im 2))) (+.f64 (*.f64 4/3 (pow.f64 im 3)) (*.f64 2 im)))
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 (*.f64 -1 im)) 2)
(pow.f64 (exp.f64 (*.f64 -1 im)) 2)
(pow.f64 (exp.f64 (*.f64 -1 im)) 2)
(pow.f64 (exp.f64 (*.f64 -1 im)) 2)
Outputs
(*.f64 2 im)
(+.f64 im im)
(+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im))
(*.f64 2 (+.f64 (*.f64 im im) im))
(*.f64 2 (fma.f64 im im im))
(+.f64 (*.f64 4/3 (pow.f64 im 3)) (+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im)))
(fma.f64 4/3 (pow.f64 im 3) (*.f64 2 (+.f64 (*.f64 im im) im)))
(fma.f64 2 (fma.f64 im im im) (*.f64 4/3 (pow.f64 im 3)))
(+.f64 (*.f64 2/3 (pow.f64 im 4)) (+.f64 (*.f64 4/3 (pow.f64 im 3)) (+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im))))
(fma.f64 2/3 (pow.f64 im 4) (fma.f64 4/3 (pow.f64 im 3) (*.f64 2 (+.f64 (*.f64 im im) im))))
(fma.f64 2/3 (pow.f64 im 4) (fma.f64 2 (fma.f64 im im im) (*.f64 4/3 (pow.f64 im 3))))
(fma.f64 2 (fma.f64 im im im) (fma.f64 4/3 (pow.f64 im 3) (*.f64 2/3 (pow.f64 im 4))))
(fma.f64 2 (fma.f64 im im im) (*.f64 (pow.f64 im 3) (+.f64 4/3 (*.f64 im 2/3))))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im)))
(fma.f64 (exp.f64 im) (exp.f64 im) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im)))
(fma.f64 (exp.f64 im) (exp.f64 im) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im)))
(fma.f64 (exp.f64 im) (exp.f64 im) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im)))
(fma.f64 (exp.f64 im) (exp.f64 im) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im)))
(fma.f64 (exp.f64 im) (exp.f64 im) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im)))
(fma.f64 (exp.f64 im) (exp.f64 im) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im)))
(fma.f64 (exp.f64 im) (exp.f64 im) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) (*.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)))
(-.f64 (pow.f64 (exp.f64 im) 2) (exp.f64 (+.f64 (neg.f64 im) im)))
(fma.f64 (exp.f64 im) (exp.f64 im) -1)
(expm1.f64 (+.f64 im im))
1
(-.f64 1 (*.f64 3 im))
(+.f64 1 (*.f64 -3 im))
(+.f64 1 (*.f64 im -3))
(fma.f64 im -3 1)
(-.f64 (+.f64 1 (*.f64 9/2 (pow.f64 im 2))) (*.f64 3 im))
(+.f64 1 (-.f64 (*.f64 (*.f64 im im) 9/2) (*.f64 im 3)))
(+.f64 1 (fma.f64 (*.f64 im im) 9/2 (*.f64 im -3)))
(fma.f64 im (*.f64 im 9/2) (fma.f64 im -3 1))
(+.f64 1 (*.f64 im (fma.f64 im 9/2 -3)))
(-.f64 (+.f64 1 (*.f64 9/2 (pow.f64 im 2))) (+.f64 (*.f64 9/2 (pow.f64 im 3)) (*.f64 3 im)))
(+.f64 1 (-.f64 (*.f64 (*.f64 im im) 9/2) (fma.f64 9/2 (pow.f64 im 3) (*.f64 im 3))))
(-.f64 (fma.f64 (*.f64 im im) 9/2 1) (fma.f64 im 3 (*.f64 (pow.f64 im 3) 9/2)))
(+.f64 (*.f64 (pow.f64 im 3) -9/2) (fma.f64 im (*.f64 im 9/2) (fma.f64 im -3 1)))
(+.f64 1 (fma.f64 im (fma.f64 im 9/2 -3) (*.f64 (pow.f64 im 3) -9/2)))
(pow.f64 (exp.f64 (*.f64 -1 im)) 3)
(pow.f64 (exp.f64 (neg.f64 im)) 3)
(exp.f64 (*.f64 im -3))
(pow.f64 (exp.f64 (*.f64 -1 im)) 3)
(pow.f64 (exp.f64 (neg.f64 im)) 3)
(exp.f64 (*.f64 im -3))
(pow.f64 (exp.f64 (*.f64 -1 im)) 3)
(pow.f64 (exp.f64 (neg.f64 im)) 3)
(exp.f64 (*.f64 im -3))
(pow.f64 (exp.f64 (*.f64 -1 im)) 3)
(pow.f64 (exp.f64 (neg.f64 im)) 3)
(exp.f64 (*.f64 im -3))
1
(+.f64 1 (*.f64 3 im))
(+.f64 1 (*.f64 im 3))
(fma.f64 im 3 1)
(+.f64 1 (+.f64 (*.f64 9/2 (pow.f64 im 2)) (*.f64 3 im)))
(+.f64 1 (fma.f64 9/2 (*.f64 im im) (*.f64 im 3)))
(+.f64 1 (fma.f64 im 3 (*.f64 (*.f64 im im) 9/2)))
(fma.f64 im (*.f64 im 9/2) (fma.f64 im 3 1))
(+.f64 1 (+.f64 (*.f64 9/2 (pow.f64 im 3)) (+.f64 (*.f64 9/2 (pow.f64 im 2)) (*.f64 3 im))))
(+.f64 1 (fma.f64 9/2 (pow.f64 im 3) (fma.f64 9/2 (*.f64 im im) (*.f64 im 3))))
(+.f64 (*.f64 9/2 (+.f64 (pow.f64 im 3) (*.f64 im im))) (fma.f64 im 3 1))
(fma.f64 9/2 (*.f64 im (fma.f64 im im im)) (fma.f64 im 3 1))
1
(-.f64 1 (*.f64 2 im))
(+.f64 1 (*.f64 -2 im))
(+.f64 1 (*.f64 im -2))
(fma.f64 im -2 1)
(-.f64 (+.f64 1 (*.f64 2 (pow.f64 im 2))) (*.f64 2 im))
(+.f64 1 (-.f64 (*.f64 2 (*.f64 im im)) (*.f64 2 im)))
(+.f64 1 (*.f64 2 (-.f64 (*.f64 im im) im)))
(fma.f64 2 (-.f64 (*.f64 im im) im) 1)
(+.f64 1 (*.f64 im (fma.f64 2 im -2)))
(-.f64 (+.f64 1 (*.f64 2 (pow.f64 im 2))) (+.f64 (*.f64 4/3 (pow.f64 im 3)) (*.f64 2 im)))
(+.f64 1 (-.f64 (*.f64 2 (*.f64 im im)) (fma.f64 4/3 (pow.f64 im 3) (*.f64 2 im))))
(-.f64 (fma.f64 2 (*.f64 im im) 1) (fma.f64 4/3 (pow.f64 im 3) (*.f64 2 im)))
(+.f64 (*.f64 (pow.f64 im 3) -4/3) (fma.f64 2 (-.f64 (*.f64 im im) im) 1))
(-.f64 (*.f64 im (fma.f64 2 im -2)) (fma.f64 4/3 (pow.f64 im 3) -1))
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 im) -2)
(pow.f64 (exp.f64 -2) im)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 im) -2)
(pow.f64 (exp.f64 -2) im)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 im) -2)
(pow.f64 (exp.f64 -2) im)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 im) -2)
(pow.f64 (exp.f64 -2) im)
(pow.f64 (exp.f64 (*.f64 -1 im)) 2)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 im) -2)
(pow.f64 (exp.f64 -2) im)
(pow.f64 (exp.f64 (*.f64 -1 im)) 2)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 im) -2)
(pow.f64 (exp.f64 -2) im)
(pow.f64 (exp.f64 (*.f64 -1 im)) 2)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 im) -2)
(pow.f64 (exp.f64 -2) im)
(pow.f64 (exp.f64 (*.f64 -1 im)) 2)
(pow.f64 (exp.f64 (neg.f64 im)) 2)
(pow.f64 (exp.f64 im) -2)
(pow.f64 (exp.f64 -2) im)

prune98.0ms (1.8%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New85186
Fresh101
Picked101
Done011
Total87289
Error
0b
Counts
89 → 2
Alt Table
StatusErrorProgram
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im)))))))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Compiler

Compiled 3390 to 1246 computations (63.2% saved)

localize18.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im)))
0.0b
(pow.f64 (exp.f64 im) 3)
0.1b
(pow.f64 (exp.f64 (neg.f64 im)) 3)
4.2b
(fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im))))

series1.0ms (0%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
0.0ms
im
@0
(fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im))))
0.0ms
im
@inf
(fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im))))
0.0ms
im
@-inf
(fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im))))

rewrite40.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
597×pow1_binary64
554×add-log-exp_binary64
553×log1p-expm1-u_binary64
553×expm1-log1p-u_binary64
87×add-sqr-sqrt_binary64
Iterations

Useful iterations: 1 (0.0ms)

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

simplify38.0ms (0.7%)

Algorithm
egg-herbie
Rules
478×distribute-rgt-out_binary64
424×associate-+l+_binary64
420×*-commutative_binary64
319×fma-def_binary64
318×associate-+r+_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
021127
158121
213997
342095
4144095
5304295
6485195
Stop Event
node limit
Counts
34 → 32
Calls
Call 1
Inputs
(*.f64 2 im)
(+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im))
(+.f64 (*.f64 4/3 (pow.f64 im 3)) (+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im)))
(+.f64 (*.f64 2/3 (pow.f64 im 4)) (+.f64 (*.f64 4/3 (pow.f64 im 3)) (+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im))))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
Outputs
(*.f64 2 im)
(+.f64 im im)
(+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im))
(*.f64 2 (+.f64 (*.f64 im im) im))
(*.f64 2 (fma.f64 im im im))
(+.f64 (*.f64 4/3 (pow.f64 im 3)) (+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im)))
(fma.f64 4/3 (pow.f64 im 3) (*.f64 2 (+.f64 (*.f64 im im) im)))
(fma.f64 2 (fma.f64 im im im) (*.f64 4/3 (pow.f64 im 3)))
(*.f64 im (+.f64 2 (*.f64 im (fma.f64 im 4/3 2))))
(+.f64 (*.f64 2/3 (pow.f64 im 4)) (+.f64 (*.f64 4/3 (pow.f64 im 3)) (+.f64 (*.f64 2 (pow.f64 im 2)) (*.f64 2 im))))
(fma.f64 2/3 (pow.f64 im 4) (fma.f64 4/3 (pow.f64 im 3) (*.f64 2 (+.f64 (*.f64 im im) im))))
(fma.f64 2/3 (pow.f64 im 4) (fma.f64 2 (fma.f64 im im im) (*.f64 4/3 (pow.f64 im 3))))
(fma.f64 2 (fma.f64 im im im) (fma.f64 4/3 (pow.f64 im 3) (*.f64 2/3 (pow.f64 im 4))))
(fma.f64 2 (fma.f64 im im im) (*.f64 (pow.f64 im 3) (+.f64 4/3 (*.f64 im 2/3))))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(+.f64 (pow.f64 (exp.f64 im) 2) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(+.f64 (pow.f64 (exp.f64 im) 2) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(+.f64 (pow.f64 (exp.f64 im) 2) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(+.f64 (pow.f64 (exp.f64 im) 2) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(+.f64 (pow.f64 (exp.f64 im) 2) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(+.f64 (pow.f64 (exp.f64 im) 2) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(+.f64 (pow.f64 (exp.f64 im) 2) -1)
(expm1.f64 (+.f64 im im))
(-.f64 (pow.f64 (exp.f64 im) 2) 1)
(+.f64 (pow.f64 (exp.f64 im) 2) -1)
(expm1.f64 (+.f64 im im))

prune84.0ms (1.5%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New91091
Fresh000
Picked011
Done011
Total91293
Error
0b
Counts
93 → 2
Alt Table
StatusErrorProgram
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im)))))))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Compiler

Compiled 3369 to 1341 computations (60.2% saved)

regimes80.0ms (1.5%)

Accuracy

Total 0.1b remaining (93%)

Threshold costs 0.1b (93%)

Counts
27 → 1
Compiler

Compiled 778 to 341 computations (56.2% saved)

simplify3.0ms (0%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
sub-neg_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
02254
13352
23852
34052
Stop Event
saturated
Calls
Call 1
Inputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 2) (fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im)))))))
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 2) (fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 (neg.f64 im) im)))))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 2) (fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (+.f64 im (neg.f64 im))))))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 2) (fma.f64 (exp.f64 im) (exp.f64 im) (neg.f64 (exp.f64 (-.f64 im im)))))))

end71.0ms (1.3%)

Stop Event
done
Compiler

Compiled 118 to 75 computations (36.4% saved)

Profiling

Loading profile data...