Details

Time bar (total: 9.4s)

analyze140.0ms (1.5%)

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
Compiler

Compiled 14 to 11 computations (21.4% saved)

sample4.5s (47.8%)

Results
1.3s2082×body1024valid
1.1s1967×body1024invalid
919.0ms5136×body256valid
454.0ms1031×body512valid
417.0ms1014×body512invalid
235.0ms1498×body256invalid
8.0msbody2048valid

preprocess120.0ms (1.3%)

Algorithm
egg-herbie
Rules
748×times-frac_binary64
628×fma-def_binary64
384×sqr-pow_binary64
320×unswap-sqr_binary64
302×associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01836
14936
213136
325534
437234
566934
6153134
7266034
8381234
9455834
10515234
11606034
12756734
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 (cos.f64 re) (*.f64 1/2 (+.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 15 to 12 computations (20% saved)

simplify88.0ms (0.9%)

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

Useful iterations: 3 (0.0ms)

IterNodesCost
01118
12818
27018
313217
419217
534617
678017
7135117
8396717
9449017
10546117
11602417
12705817
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 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))))

eval1.0ms (0%)

Compiler

Compiled 24 to 15 computations (37.5% saved)

prune2.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

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

Compiled 26 to 19 computations (26.9% saved)

localize15.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
0.0b
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
0.0b
(/.f64 1/2 (exp.f64 im))
Compiler

Compiled 32 to 16 computations (50% saved)

series20.0ms (0.2%)

Counts
4 → 44
Calls

15 calls:

TimeVariablePointExpression
11.0ms
im
@-inf
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
1.0ms
im
@0
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
1.0ms
im
@inf
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
1.0ms
re
@0
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
1.0ms
re
@inf
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))

rewrite92.0ms (1%)

Algorithm
batch-egg-rewrite
Rules
873×pow1_binary64
804×add-log-exp_binary64
804×log1p-expm1-u_binary64
804×expm1-log1p-u_binary64
787×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0938
118238
2217138
Stop Event
node limit
Counts
4 → 73
Calls
Call 1
Inputs
(/.f64 1/2 (exp.f64 im))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(cos.f64 re)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (/.f64 1/2 (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (exp.f64 (neg.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (exp.f64 im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 1/2 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 1/2 (exp.f64 im))) (pow.f64 (cbrt.f64 (/.f64 1/2 (exp.f64 im))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 1/2 (exp.f64 im))) 2) (cbrt.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) (sqrt.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1/2 (/.f64 1 (neg.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (neg.f64 im)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1/2 (exp.f64 im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 1/2 (exp.f64 im))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (exp.f64 im) 2) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 1/4 (pow.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (-.f64 (log.f64 1/2) im))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im))) (*.f64 (cos.f64 re) (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (cos.f64 re)) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (cos.f64 re) 3) (pow.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) 3) (pow.f64 (cos.f64 re) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (/.f64 1/2 (exp.f64 im)) (*.f64 1/2 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) 1) (/.f64 1/2 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) (pow.f64 (cbrt.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 2) (cbrt.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) (sqrt.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 1/2 (exp.f64 im)) 3) (pow.f64 (/.f64 1/2 (exp.f64 im)) 3)) (+.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 1/2 (exp.f64 im))) (-.f64 (/.f64 1/4 (pow.f64 (exp.f64 im) 2)) (*.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 1/2 (exp.f64 im))) (/.f64 1/4 (pow.f64 (exp.f64 im) 2))) (-.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cos.f64 re) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cos.f64 re)) (pow.f64 (cbrt.f64 (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (cbrt.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cos.f64 re) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cos.f64 re) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (cos.f64 re)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (cos.f64 re)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cos.f64 re) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (cos.f64 re) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (cos.f64 re)))))))

simplify70.0ms (0.7%)

Algorithm
egg-herbie
Rules
592×fma-def_binary64
586×distribute-rgt-out_binary64
485×distribute-lft-out_binary64
427×associate-/l*_binary64
391×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
081777
1250735
2822687
33470665
46024665
Stop Event
node limit
Counts
117 → 110
Calls
Call 1
Inputs
1/2
(+.f64 1/2 (*.f64 -1/2 im))
(+.f64 1/2 (+.f64 (*.f64 1/4 (pow.f64 im 2)) (*.f64 -1/2 im)))
(+.f64 1/2 (+.f64 (*.f64 1/4 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 im) (*.f64 -1/12 (pow.f64 im 3)))))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 1/2 (/.f64 1 (exp.f64 im)))))
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 1/2 (/.f64 1 (exp.f64 im))))))
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 -1/720 (*.f64 (pow.f64 re 6) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (*.f64 1/2 (/.f64 1 (exp.f64 im)))))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
1
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4))))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
1
(+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2))))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6)))))
Outputs
1/2
(+.f64 1/2 (*.f64 -1/2 im))
(fma.f64 -1/2 im 1/2)
(+.f64 1/2 (+.f64 (*.f64 1/4 (pow.f64 im 2)) (*.f64 -1/2 im)))
(+.f64 1/2 (fma.f64 1/4 (*.f64 im im) (*.f64 -1/2 im)))
(+.f64 1/2 (fma.f64 -1/2 im (*.f64 im (*.f64 im 1/4))))
(fma.f64 -1/2 im (fma.f64 im (*.f64 im 1/4) 1/2))
(+.f64 1/2 (+.f64 (*.f64 1/4 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 im) (*.f64 -1/12 (pow.f64 im 3)))))
(+.f64 1/2 (fma.f64 1/4 (*.f64 im im) (fma.f64 -1/2 im (*.f64 -1/12 (pow.f64 im 3)))))
(+.f64 1/2 (fma.f64 -1/12 (pow.f64 im 3) (*.f64 im (+.f64 -1/2 (*.f64 im 1/4)))))
(+.f64 1/2 (*.f64 im (+.f64 -1/2 (*.f64 im (+.f64 1/4 (*.f64 im -1/12))))))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 1/2 (/.f64 1 (exp.f64 im)))))
(fma.f64 -1/2 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (*.f64 re re)) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 -1/2 (*.f64 re re) 1) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (fma.f64 -1/2 (*.f64 re re) 1))
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 1/2 (/.f64 1 (exp.f64 im))))))
(fma.f64 -1/2 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (*.f64 re re)) (fma.f64 1/24 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (pow.f64 re 4)) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))
(fma.f64 (*.f64 -1/2 (*.f64 re re)) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (*.f64 (fma.f64 1/24 (pow.f64 re 4) 1) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (fma.f64 -1/2 (*.f64 re re) (fma.f64 1/24 (pow.f64 re 4) 1)))
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 -1/720 (*.f64 (pow.f64 re 6) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))) (*.f64 1/2 (/.f64 1 (exp.f64 im)))))))
(fma.f64 -1/2 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (*.f64 re re)) (fma.f64 1/24 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (pow.f64 re 4)) (fma.f64 1/2 (exp.f64 im) (fma.f64 -1/720 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (pow.f64 re 6)) (/.f64 1/2 (exp.f64 im))))))
(+.f64 (fma.f64 1/2 (exp.f64 im) (fma.f64 (*.f64 -1/720 (pow.f64 re 6)) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (/.f64 1/2 (exp.f64 im)))) (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 1/24 (pow.f64 re 4)))))
(+.f64 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (fma.f64 -1/2 (*.f64 re re) (fma.f64 1/24 (pow.f64 re 4) 1))) (*.f64 (pow.f64 re 6) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) -1/1440)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) (fma.f64 -1/720 (pow.f64 re 6) 1))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re))
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 1/2 (*.f64 im im) 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))
(fma.f64 1/2 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (cos.f64 re)))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (*.f64 im im) (fma.f64 1/24 (pow.f64 im 4) 1)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 (*.f64 1/720 (cos.f64 re)) (pow.f64 im 6))))
(+.f64 (fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 (cos.f64 re) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (fma.f64 1/720 (pow.f64 im 6) (*.f64 1/2 (*.f64 im im))))))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (fma.f64 1/2 (*.f64 im im) (*.f64 1/720 (pow.f64 im 6))))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
1
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) 1)
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4))))
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4))))
(fma.f64 1/2 (*.f64 im im) (fma.f64 1/24 (pow.f64 im 4) 1))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (fma.f64 1/24 (pow.f64 im 4) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 1 (fma.f64 1/24 (pow.f64 im 4) (fma.f64 1/720 (pow.f64 im 6) (*.f64 1/2 (*.f64 im im)))))
(+.f64 1 (fma.f64 1/24 (pow.f64 im 4) (fma.f64 1/2 (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
1
(+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))
(+.f64 1 (*.f64 -1/2 (*.f64 re re)))
(fma.f64 -1/2 (*.f64 re re) 1)
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2))))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) 1))
(fma.f64 -1/2 (*.f64 re re) (fma.f64 1/24 (pow.f64 re 4) 1))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6)))))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 1 (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6)))))
(+.f64 (fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) 1)) (*.f64 -1/720 (pow.f64 re 6)))
(fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) (fma.f64 -1/720 (pow.f64 re 6) 1)))

localize17.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Compiler

Compiled 35 to 13 computations (62.9% saved)

series9.0ms (0.1%)

Counts
2 → 36
Calls

9 calls:

TimeVariablePointExpression
3.0ms
im
@0
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0ms
im
@-inf
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0ms
re
@0
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0ms
im
@inf
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0ms
re
@inf
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))

rewrite145.0ms (1.5%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01128
123328
2378028
01118
123318
2378018
01118
0610
112610
2208210
0610
Stop Event
iter limit
unsound
iter limit
unsound
unsound
Counts
2 → 19
Calls
Call 1
Inputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 1/2 (*.f64 (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 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))))
((#(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 expm1.f64 (log1p.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 exp.f64 (log.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))

simplify105.0ms (1.1%)

Algorithm
egg-herbie
Rules
612×associate-+l+_binary64
610×distribute-rgt-out_binary64
516×distribute-lft-out_binary64
414×associate-+r+_binary64
344×*-commutative_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
064669
1190606
2603570
32278565
44985563
57179563
Stop Event
node limit
Counts
55 → 46
Calls
Call 1
Inputs
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
2
(+.f64 2 (pow.f64 im 2))
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))))
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6)))))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
Outputs
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) 1/2))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 re re) 1/2))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 (*.f64 -1/4 re) re 1/2))
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 (*.f64 1/48 (pow.f64 re 4)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re)))))
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))
(fma.f64 -1/1440 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 6)) (fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 (*.f64 1/48 (pow.f64 re 4)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4)))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) 1/2)))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 -1/1440 (pow.f64 re 6) 1/2) (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))) (fma.f64 -1/1440 (pow.f64 re 6) 1/2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re))
(fma.f64 1/2 (*.f64 im (*.f64 im (cos.f64 re))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (cos.f64 re)))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/24 (pow.f64 im 4)))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (+.f64 1 (*.f64 1/24 (pow.f64 im 4)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(+.f64 (fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))
(+.f64 (fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 6) 1/720))))
(+.f64 (fma.f64 1/2 (*.f64 im (*.f64 im (cos.f64 re))) (cos.f64 re)) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (+.f64 (*.f64 1/720 (pow.f64 im 6)) (*.f64 1/24 (pow.f64 im 4))))))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (+.f64 (*.f64 1/720 (pow.f64 im 6)) (*.f64 1/24 (pow.f64 im 4)))))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/720 (pow.f64 im 6))) (*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
2
(+.f64 2 (pow.f64 im 2))
(+.f64 2 (*.f64 im im))
(fma.f64 im im 2)
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))))
(+.f64 2 (+.f64 (*.f64 im im) (*.f64 (pow.f64 im 4) 1/12)))
(+.f64 2 (fma.f64 (pow.f64 im 4) 1/12 (*.f64 im im)))
(fma.f64 (pow.f64 im 4) 1/12 (fma.f64 im im 2))
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6)))))
(+.f64 2 (+.f64 (*.f64 im im) (fma.f64 1/12 (pow.f64 im 4) (*.f64 (pow.f64 im 6) 1/360))))
(+.f64 2 (fma.f64 im im (fma.f64 (pow.f64 im 4) 1/12 (*.f64 (pow.f64 im 6) 1/360))))
(+.f64 2 (fma.f64 (pow.f64 im 4) 1/12 (fma.f64 (pow.f64 im 6) 1/360 (*.f64 im im))))
(+.f64 (fma.f64 im im 2) (fma.f64 (pow.f64 im 6) 1/360 (*.f64 (pow.f64 im 4) 1/12)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))

eval57.0ms (0.6%)

Compiler

Compiled 2917 to 1540 computations (47.2% saved)

prune35.0ms (0.4%)

Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New16711178
Fresh000
Picked011
Done101
Total16812180
Error
0b
Counts
180 → 12
Alt Table
Click to see full alt table
StatusErrorProgram
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
0.1b
(*.f64 (*.f64 1/2 (expm1.f64 (log1p.f64 (cos.f64 re)))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
0.9b
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/720 (pow.f64 im 6))) (*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))))
29.4b
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
2.2b
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) 1/2))
0.9b
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (+.f64 1 (*.f64 1/24 (pow.f64 im 4)))))
1.5b
(cos.f64 re)
0.0b
(+.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))
0.0b
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
1.0b
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
1.1b
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
0.4b
(*.f64 (*.f64 1/2 (log.f64 (exp.f64 (cos.f64 re)))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Compiler

Compiled 321 to 240 computations (25.2% saved)

localize30.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))
0.0b
(*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re))
0.0b
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
0.0b
(/.f64 1/2 (exp.f64 im))
Compiler

Compiled 46 to 22 computations (52.2% saved)

series15.0ms (0.2%)

Counts
3 → 72
Calls

18 calls:

TimeVariablePointExpression
3.0ms
re
@0
(+.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))
2.0ms
re
@inf
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
1.0ms
im
@-inf
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
1.0ms
im
@inf
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
1.0ms
im
@0
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))

rewrite80.0ms (0.9%)

Algorithm
batch-egg-rewrite
Rules
631×log-prod_binary64
448×fma-def_binary64
415×pow-prod-down_binary64
316×pow2_binary64
223×pow-unpow_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01141
123939
2324836
Stop Event
node limit
Counts
3 → 126
Calls
Call 1
Inputs
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re))
(+.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im)))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im))))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1/2 (/.f64 (exp.f64 im) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 1/2 (cos.f64 re))) (neg.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) 1) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (cbrt.f64 (exp.f64 (+.f64 im im)))) (cbrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (sqrt.f64 (exp.f64 im))) (sqrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 -1/2 (cos.f64 re)) (neg.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (cos.f64 re) -1/2) (neg.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (-.f64 (log.f64 (*.f64 1/2 (cos.f64 re))) im))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (-.f64 (log.f64 (*.f64 1/2 (cos.f64 re))) im) 1))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (sqrt.f64 (exp.f64 (exp.f64 im))) (cos.f64 re))) 2)) (log.f64 (cbrt.f64 (pow.f64 (sqrt.f64 (exp.f64 (exp.f64 im))) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (sqrt.f64 (exp.f64 (exp.f64 im))) (cos.f64 re)))) (log.f64 (sqrt.f64 (pow.f64 (sqrt.f64 (exp.f64 (exp.f64 im))) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/8 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (sqrt.f64 (exp.f64 (exp.f64 im))) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 1/8 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 im (log.f64 (*.f64 1/2 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (+.f64 im (log.f64 (*.f64 1/2 (cos.f64 re)))) 1))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)) (*.f64 (cos.f64 re) (-.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))) (/.f64 (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2) (*.f64 (cos.f64 re) (-.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 2) (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (*.f64 (cbrt.f64 (cos.f64 re)) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) (sqrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 1/8 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 3) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 3)) (/.f64 1 (fma.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (-.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2)) (/.f64 1 (*.f64 (cos.f64 re) (-.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (-.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2))) (fma.f64 1/8 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 3) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (*.f64 (cos.f64 re) (-.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im)))) (-.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 1/8 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 3) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 3)) (fma.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (-.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 1/8 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 3) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 3)) (+.f64 (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2) (-.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)) (*.f64 1/2 (*.f64 (*.f64 (exp.f64 im) (cos.f64 re)) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2)) (*.f64 (cos.f64 re) (-.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (fma.f64 1/8 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 3) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 3))) (neg.f64 (fma.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (-.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2))) (neg.f64 (*.f64 (cos.f64 re) (-.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2) (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2))) (-.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (-.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2))) (fma.f64 1/8 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 3) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (*.f64 (cos.f64 re) (-.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 1/2 (exp.f64 im)))) (-.f64 (*.f64 1/4 (pow.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 2)) (pow.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))) (pow.f64 (sqrt.f64 (exp.f64 (exp.f64 im))) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (pow.f64 (exp.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im))) (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))) (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))) (pow.f64 (exp.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (pow.f64 (sqrt.f64 (exp.f64 (exp.f64 im))) (cos.f64 re)) (+.f64 1 (expm1.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))) (+.f64 1 (expm1.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re)) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (/.f64 1/2 (exp.f64 im)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) 1 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))) 1 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))) (pow.f64 (cbrt.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))) 2) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))) 2) (cbrt.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (/.f64 1/4 (exp.f64 (+.f64 im im)))) (*.f64 (cbrt.f64 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/4 (exp.f64 (+.f64 im im)))) (*.f64 (cbrt.f64 (*.f64 1/2 (exp.f64 im))) (cos.f64 re)) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (pow.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) 2) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) 2) (cbrt.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (*.f64 (cbrt.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (*.f64 (cbrt.f64 (cos.f64 re)) (*.f64 1/2 (exp.f64 im))) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))) (sqrt.f64 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) (*.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 1/2 (exp.f64 im))) (*.f64 (sqrt.f64 (*.f64 1/2 (exp.f64 im))) (cos.f64 re)) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (sqrt.f64 (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) (/.f64 1/2 (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) (*.f64 1/2 (exp.f64 im))) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (exp.f64 im) (cos.f64 re)) 1/2 (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 1/2 (cbrt.f64 (exp.f64 (+.f64 im im)))) (/.f64 (cos.f64 re) (cbrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 1/2 (sqrt.f64 (exp.f64 im))) (/.f64 (cos.f64 re) (sqrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (pow.f64 (cbrt.f64 (cos.f64 re)) 2)) (cbrt.f64 (cos.f64 re)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (sqrt.f64 (cos.f64 re))) (sqrt.f64 (cos.f64 re)) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (cbrt.f64 (/.f64 1/4 (exp.f64 (+.f64 im im))))) (cbrt.f64 (/.f64 1/2 (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (sqrt.f64 (/.f64 1/2 (exp.f64 im)))) (sqrt.f64 (/.f64 1/2 (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (cbrt.f64 (*.f64 1/4 (exp.f64 (+.f64 im im))))) (cbrt.f64 (*.f64 1/2 (exp.f64 im))) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (sqrt.f64 (*.f64 1/2 (exp.f64 im)))) (sqrt.f64 (*.f64 1/2 (exp.f64 im))) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (pow.f64 (cbrt.f64 (cos.f64 re)) 2)) (cbrt.f64 (cos.f64 re)) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (sqrt.f64 (cos.f64 re))) (sqrt.f64 (cos.f64 re)) (/.f64 (cos.f64 re) (*.f64 (exp.f64 im) 2)))))))

simplify70.0ms (0.7%)

Algorithm
egg-herbie
Rules
707×distribute-rgt-out_binary64
409×fma-neg_binary64
365×unsub-neg_binary64
343×associate-+l+_binary64
306×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01211320
13751235
211291179
338491099
Stop Event
node limit
Counts
198 → 173
Calls
Call 1
Inputs
(*.f64 1/2 (cos.f64 re))
(+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (*.f64 (cos.f64 re) im)))
(+.f64 (*.f64 -1/2 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re))) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (*.f64 (cos.f64 re) im))))
(+.f64 (*.f64 -1/2 (*.f64 (+.f64 (*.f64 -1 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re)))) (+.f64 (*.f64 -1/2 (cos.f64 re)) (*.f64 1/6 (cos.f64 re)))) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re))) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (*.f64 (cos.f64 re) im)))))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(/.f64 1/2 (exp.f64 im))
(+.f64 (*.f64 -1/4 (/.f64 (pow.f64 re 2) (exp.f64 im))) (*.f64 1/2 (/.f64 1 (exp.f64 im))))
(+.f64 (*.f64 -1/4 (/.f64 (pow.f64 re 2) (exp.f64 im))) (+.f64 (*.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im))) (*.f64 1/2 (/.f64 1 (exp.f64 im)))))
(+.f64 (*.f64 -1/4 (/.f64 (pow.f64 re 2) (exp.f64 im))) (+.f64 (*.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im))) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 -1/1440 (/.f64 (pow.f64 re 6) (exp.f64 im))))))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) im)) (*.f64 1/2 (cos.f64 re)))
(+.f64 (*.f64 1/4 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) im)) (*.f64 1/2 (cos.f64 re))))
(+.f64 (*.f64 1/4 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 1/12 (*.f64 (cos.f64 re) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) im)) (*.f64 1/2 (cos.f64 re)))))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (exp.f64 im))
(+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 -1/4 (*.f64 (exp.f64 im) (pow.f64 re 2))))
(+.f64 (*.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 -1/4 (*.f64 (exp.f64 im) (pow.f64 re 2)))))
(+.f64 (*.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 -1/4 (*.f64 (exp.f64 im) (pow.f64 re 2))) (*.f64 -1/1440 (*.f64 (exp.f64 im) (pow.f64 re 6))))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(cos.f64 re)
(+.f64 (cos.f64 re) (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im))
(+.f64 (cos.f64 re) (+.f64 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im) (*.f64 (+.f64 (*.f64 1/4 (cos.f64 re)) (*.f64 -1/2 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re))))) (pow.f64 im 2))))
(+.f64 (cos.f64 re) (+.f64 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im) (+.f64 (*.f64 (+.f64 (*.f64 1/4 (cos.f64 re)) (*.f64 -1/2 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re))))) (pow.f64 im 2)) (*.f64 (+.f64 (*.f64 1/12 (cos.f64 re)) (*.f64 -1/2 (+.f64 (*.f64 -1 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re)))) (+.f64 (*.f64 -1/2 (cos.f64 re)) (*.f64 1/6 (cos.f64 re)))))) (pow.f64 im 3)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 (-.f64 (*.f64 -1/4 (exp.f64 im)) (*.f64 1/4 (/.f64 1 (exp.f64 im)))) (pow.f64 re 2))))
(+.f64 (*.f64 (+.f64 (*.f64 1/48 (/.f64 1 (exp.f64 im))) (*.f64 1/48 (exp.f64 im))) (pow.f64 re 4)) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 (-.f64 (*.f64 -1/4 (exp.f64 im)) (*.f64 1/4 (/.f64 1 (exp.f64 im)))) (pow.f64 re 2)))))
(+.f64 (*.f64 (+.f64 (*.f64 1/48 (/.f64 1 (exp.f64 im))) (*.f64 1/48 (exp.f64 im))) (pow.f64 re 4)) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 (-.f64 (*.f64 -1/1440 (exp.f64 im)) (*.f64 1/1440 (/.f64 1 (exp.f64 im)))) (pow.f64 re 6)) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 (-.f64 (*.f64 -1/4 (exp.f64 im)) (*.f64 1/4 (/.f64 1 (exp.f64 im)))) (pow.f64 re 2))))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
Outputs
(*.f64 1/2 (cos.f64 re))
(+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (*.f64 (cos.f64 re) im)))
(fma.f64 1/2 (cos.f64 re) (*.f64 -1/2 (*.f64 (cos.f64 re) im)))
(fma.f64 1/2 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 im -1/2)))
(*.f64 (*.f64 (cos.f64 re) -1/2) (+.f64 -1 im))
(*.f64 (cos.f64 re) (-.f64 (*.f64 -1/2 im) -1/2))
(+.f64 (*.f64 -1/2 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re))) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (*.f64 (cos.f64 re) im))))
(fma.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) -1/2)) (fma.f64 1/2 (cos.f64 re) (*.f64 -1/2 (*.f64 (cos.f64 re) im))))
(fma.f64 (*.f64 (cos.f64 re) 1/4) (*.f64 im im) (fma.f64 1/2 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 im -1/2))))
(fma.f64 (*.f64 (cos.f64 re) 1/4) (*.f64 im im) (*.f64 (*.f64 (cos.f64 re) -1/2) (+.f64 -1 im)))
(*.f64 (cos.f64 re) (-.f64 (*.f64 im (+.f64 -1/2 (*.f64 1/4 im))) -1/2))
(+.f64 (*.f64 -1/2 (*.f64 (+.f64 (*.f64 -1 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re)))) (+.f64 (*.f64 -1/2 (cos.f64 re)) (*.f64 1/6 (cos.f64 re)))) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re))) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (*.f64 (cos.f64 re) im)))))
(fma.f64 -1/2 (*.f64 (fma.f64 -1 (*.f64 (cos.f64 re) -1/2) (*.f64 (cos.f64 re) -1/3)) (pow.f64 im 3)) (fma.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) -1/2)) (fma.f64 1/2 (cos.f64 re) (*.f64 -1/2 (*.f64 (cos.f64 re) im)))))
(fma.f64 (+.f64 0 (*.f64 (*.f64 (cos.f64 re) 1/6) -1/2)) (pow.f64 im 3) (fma.f64 (*.f64 (cos.f64 re) 1/4) (*.f64 im im) (fma.f64 1/2 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 im -1/2)))))
(fma.f64 (*.f64 (cos.f64 re) -1/12) (pow.f64 im 3) (fma.f64 (*.f64 (cos.f64 re) 1/4) (*.f64 im im) (*.f64 (*.f64 (cos.f64 re) -1/2) (+.f64 -1 im))))
(fma.f64 (*.f64 (cos.f64 re) -1/12) (pow.f64 im 3) (*.f64 (cos.f64 re) (-.f64 (*.f64 im (+.f64 -1/2 (*.f64 1/4 im))) -1/2)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(/.f64 1/2 (exp.f64 im))
(+.f64 (*.f64 -1/4 (/.f64 (pow.f64 re 2) (exp.f64 im))) (*.f64 1/2 (/.f64 1 (exp.f64 im))))
(fma.f64 -1/4 (/.f64 (*.f64 re re) (exp.f64 im)) (/.f64 1/2 (exp.f64 im)))
(fma.f64 -1/4 (/.f64 re (/.f64 (exp.f64 im) re)) (/.f64 1/2 (exp.f64 im)))
(fma.f64 -1/4 (*.f64 (/.f64 re (exp.f64 im)) re) (/.f64 1/2 (exp.f64 im)))
(*.f64 (exp.f64 (neg.f64 im)) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))))
(+.f64 (*.f64 -1/4 (/.f64 (pow.f64 re 2) (exp.f64 im))) (+.f64 (*.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im))) (*.f64 1/2 (/.f64 1 (exp.f64 im)))))
(fma.f64 -1/4 (/.f64 (*.f64 re re) (exp.f64 im)) (fma.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))
(fma.f64 -1/4 (/.f64 re (/.f64 (exp.f64 im) re)) (fma.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))
(fma.f64 -1/4 (*.f64 (/.f64 re (exp.f64 im)) re) (fma.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im)) (/.f64 1/2 (exp.f64 im))))
(fma.f64 -1/4 (*.f64 (/.f64 re (exp.f64 im)) re) (*.f64 (exp.f64 (neg.f64 im)) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2)))
(+.f64 (*.f64 -1/4 (/.f64 (pow.f64 re 2) (exp.f64 im))) (+.f64 (*.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im))) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 -1/1440 (/.f64 (pow.f64 re 6) (exp.f64 im))))))
(fma.f64 -1/4 (/.f64 (*.f64 re re) (exp.f64 im)) (+.f64 (fma.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im)) (/.f64 1/2 (exp.f64 im))) (*.f64 -1/1440 (/.f64 (pow.f64 re 6) (exp.f64 im)))))
(fma.f64 -1/4 (/.f64 re (/.f64 (exp.f64 im) re)) (fma.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im)) (fma.f64 -1/1440 (/.f64 (pow.f64 re 6) (exp.f64 im)) (/.f64 1/2 (exp.f64 im)))))
(fma.f64 -1/4 (*.f64 (/.f64 re (exp.f64 im)) re) (fma.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im)) (fma.f64 -1/1440 (/.f64 (pow.f64 re 6) (exp.f64 im)) (/.f64 1/2 (exp.f64 im)))))
(fma.f64 -1/4 (*.f64 (/.f64 re (exp.f64 im)) re) (fma.f64 1/48 (/.f64 (pow.f64 re 4) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) 1/2))))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re)))
(*.f64 1/2 (fma.f64 (cos.f64 re) im (cos.f64 re)))
(+.f64 (*.f64 1/4 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) im)) (*.f64 1/2 (cos.f64 re))))
(fma.f64 1/4 (*.f64 (cos.f64 re) (*.f64 im im)) (*.f64 1/2 (+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))))
(fma.f64 1/2 (fma.f64 (cos.f64 re) im (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/4)))
(fma.f64 1/2 (fma.f64 (cos.f64 re) im (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/4))))
(*.f64 (cos.f64 re) (-.f64 (*.f64 im (+.f64 (*.f64 1/4 im) 1/2)) -1/2))
(+.f64 (*.f64 1/4 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 1/12 (*.f64 (cos.f64 re) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) im)) (*.f64 1/2 (cos.f64 re)))))
(fma.f64 1/4 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 1/12 (*.f64 (cos.f64 re) (pow.f64 im 3)) (*.f64 1/2 (+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re)))))
(fma.f64 1/4 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 1/2 (fma.f64 (cos.f64 re) im (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 3) 1/12))))
(+.f64 (*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/4)) (*.f64 1/2 im))) (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 3) 1/12) 1/2)))
(+.f64 (*.f64 1/2 (fma.f64 (cos.f64 re) im (cos.f64 re))) (*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) (+.f64 1/4 (*.f64 1/12 im))))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (exp.f64 im))
(+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 -1/4 (*.f64 (exp.f64 im) (pow.f64 re 2))))
(fma.f64 1/2 (exp.f64 im) (*.f64 -1/4 (*.f64 (exp.f64 im) (*.f64 re re))))
(fma.f64 1/2 (exp.f64 im) (*.f64 (exp.f64 im) (*.f64 -1/4 (*.f64 re re))))
(*.f64 (exp.f64 im) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))))
(+.f64 (*.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 -1/4 (*.f64 (exp.f64 im) (pow.f64 re 2)))))
(fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (fma.f64 1/2 (exp.f64 im) (*.f64 -1/4 (*.f64 (exp.f64 im) (*.f64 re re)))))
(fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (fma.f64 1/2 (exp.f64 im) (*.f64 (exp.f64 im) (*.f64 -1/4 (*.f64 re re)))))
(fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (*.f64 (exp.f64 im) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re)))))
(+.f64 (*.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 -1/4 (*.f64 (exp.f64 im) (pow.f64 re 2))) (*.f64 -1/1440 (*.f64 (exp.f64 im) (pow.f64 re 6))))))
(fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (fma.f64 1/2 (exp.f64 im) (fma.f64 -1/4 (*.f64 (exp.f64 im) (*.f64 re re)) (*.f64 -1/1440 (*.f64 (exp.f64 im) (pow.f64 re 6))))))
(fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (fma.f64 1/2 (exp.f64 im) (fma.f64 (*.f64 (exp.f64 im) -1/1440) (pow.f64 re 6) (*.f64 (exp.f64 im) (*.f64 -1/4 (*.f64 re re))))))
(+.f64 (*.f64 (exp.f64 im) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 -1/1440 (pow.f64 re 6)))) (*.f64 (exp.f64 im) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2)))
(+.f64 (*.f64 (exp.f64 im) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re)))) (*.f64 (exp.f64 im) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(cos.f64 re)
(+.f64 (cos.f64 re) (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im))
(cos.f64 re)
(+.f64 (cos.f64 re) (+.f64 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im) (*.f64 (+.f64 (*.f64 1/4 (cos.f64 re)) (*.f64 -1/2 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re))))) (pow.f64 im 2))))
(+.f64 (cos.f64 re) (fma.f64 (*.f64 (cos.f64 re) 0) im (*.f64 (*.f64 im im) (fma.f64 1/4 (cos.f64 re) (*.f64 -1/2 (*.f64 (cos.f64 re) -1/2))))))
(+.f64 (cos.f64 re) (fma.f64 im 0 (*.f64 (*.f64 im im) (fma.f64 (cos.f64 re) 1/4 (*.f64 (cos.f64 re) 1/4)))))
(+.f64 (cos.f64 re) (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im)))
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
(+.f64 (cos.f64 re) (+.f64 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im) (+.f64 (*.f64 (+.f64 (*.f64 1/4 (cos.f64 re)) (*.f64 -1/2 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re))))) (pow.f64 im 2)) (*.f64 (+.f64 (*.f64 1/12 (cos.f64 re)) (*.f64 -1/2 (+.f64 (*.f64 -1 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1 (cos.f64 re)))) (+.f64 (*.f64 -1/2 (cos.f64 re)) (*.f64 1/6 (cos.f64 re)))))) (pow.f64 im 3)))))
(+.f64 (cos.f64 re) (fma.f64 (*.f64 (cos.f64 re) 0) im (*.f64 (*.f64 im im) (fma.f64 1/4 (cos.f64 re) (*.f64 -1/2 (*.f64 (cos.f64 re) -1/2))))))
(+.f64 (cos.f64 re) (fma.f64 im 0 (*.f64 (*.f64 im im) (fma.f64 (cos.f64 re) 1/4 (*.f64 (cos.f64 re) 1/4)))))
(+.f64 (cos.f64 re) (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im)))
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 (-.f64 (*.f64 -1/4 (exp.f64 im)) (*.f64 1/4 (/.f64 1 (exp.f64 im)))) (pow.f64 re 2))))
(fma.f64 1/2 (exp.f64 im) (+.f64 (/.f64 1/2 (exp.f64 im)) (*.f64 (*.f64 re re) (-.f64 (*.f64 (exp.f64 im) -1/4) (/.f64 1/4 (exp.f64 im))))))
(fma.f64 1/2 (exp.f64 im) (fma.f64 (*.f64 re re) (fma.f64 (exp.f64 im) -1/4 (/.f64 -1/4 (exp.f64 im))) (/.f64 1/2 (exp.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))))
(+.f64 (*.f64 (+.f64 (*.f64 1/48 (/.f64 1 (exp.f64 im))) (*.f64 1/48 (exp.f64 im))) (pow.f64 re 4)) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 (-.f64 (*.f64 -1/4 (exp.f64 im)) (*.f64 1/4 (/.f64 1 (exp.f64 im)))) (pow.f64 re 2)))))
(fma.f64 (*.f64 1/48 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (pow.f64 re 4) (fma.f64 1/2 (exp.f64 im) (+.f64 (/.f64 1/2 (exp.f64 im)) (*.f64 (*.f64 re re) (-.f64 (*.f64 (exp.f64 im) -1/4) (/.f64 1/4 (exp.f64 im)))))))
(fma.f64 (pow.f64 re 4) (fma.f64 (exp.f64 im) 1/48 (/.f64 1/48 (exp.f64 im))) (fma.f64 1/2 (exp.f64 im) (fma.f64 (*.f64 re re) (fma.f64 (exp.f64 im) -1/4 (/.f64 -1/4 (exp.f64 im))) (/.f64 1/2 (exp.f64 im)))))
(+.f64 (*.f64 re (*.f64 re (fma.f64 (exp.f64 im) -1/4 (/.f64 -1/4 (exp.f64 im))))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2)))
(fma.f64 (pow.f64 re 4) (fma.f64 (exp.f64 im) 1/48 (/.f64 1/48 (exp.f64 im))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re)))))
(+.f64 (*.f64 (+.f64 (*.f64 1/48 (/.f64 1 (exp.f64 im))) (*.f64 1/48 (exp.f64 im))) (pow.f64 re 4)) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 (-.f64 (*.f64 -1/1440 (exp.f64 im)) (*.f64 1/1440 (/.f64 1 (exp.f64 im)))) (pow.f64 re 6)) (+.f64 (*.f64 1/2 (/.f64 1 (exp.f64 im))) (*.f64 (-.f64 (*.f64 -1/4 (exp.f64 im)) (*.f64 1/4 (/.f64 1 (exp.f64 im)))) (pow.f64 re 2))))))
(fma.f64 (*.f64 1/48 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (pow.f64 re 4) (fma.f64 1/2 (exp.f64 im) (fma.f64 (-.f64 (*.f64 (exp.f64 im) -1/1440) (/.f64 1/1440 (exp.f64 im))) (pow.f64 re 6) (+.f64 (/.f64 1/2 (exp.f64 im)) (*.f64 (*.f64 re re) (-.f64 (*.f64 (exp.f64 im) -1/4) (/.f64 1/4 (exp.f64 im))))))))
(fma.f64 (pow.f64 re 4) (fma.f64 (exp.f64 im) 1/48 (/.f64 1/48 (exp.f64 im))) (fma.f64 1/2 (exp.f64 im) (fma.f64 (pow.f64 re 6) (fma.f64 (exp.f64 im) -1/1440 (/.f64 -1/1440 (exp.f64 im))) (fma.f64 (*.f64 re re) (fma.f64 (exp.f64 im) -1/4 (/.f64 -1/4 (exp.f64 im))) (/.f64 1/2 (exp.f64 im))))))
(+.f64 (*.f64 re (*.f64 re (fma.f64 (exp.f64 im) -1/4 (/.f64 -1/4 (exp.f64 im))))) (+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2)) (*.f64 (pow.f64 re 6) (fma.f64 (exp.f64 im) -1/1440 (/.f64 -1/1440 (exp.f64 im))))))
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) 1/2)) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 re re) (+.f64 -1/4 (*.f64 (*.f64 re re) 1/48)))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (fma.f64 (cos.f64 re) (exp.f64 im) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))

localize5.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
Compiler

Compiled 5 to 3 computations (40% saved)

localize9.0ms (0.1%)

Local error

Found 1 expressions with local error:

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

Compiled 25 to 9 computations (64% saved)

series1.0ms (0%)

Counts
1 → 8
Calls

3 calls:

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

rewrite33.0ms (0.3%)

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

Useful iterations: 0 (0.0ms)

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

simplify59.0ms (0.6%)

Algorithm
egg-herbie
Rules
707×fma-def_binary64
401×associate-/l/_binary64
357×*-commutative_binary64
327×fma-neg_binary64
300×associate-/r/_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02387
15181
211679
331477
4114777
5308877
6413677
7657177
Stop Event
node limit
Counts
20 → 21
Calls
Call 1
Inputs
2
(+.f64 2 (pow.f64 im 2))
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))))
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6)))))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
Outputs
2
(+.f64 2 (pow.f64 im 2))
(+.f64 2 (*.f64 im im))
(fma.f64 im im 2)
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))))
(+.f64 2 (+.f64 (*.f64 im im) (*.f64 1/12 (pow.f64 im 4))))
(+.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))
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6)))))
(+.f64 2 (+.f64 (*.f64 im im) (fma.f64 1/12 (pow.f64 im 4) (*.f64 1/360 (pow.f64 im 6)))))
(+.f64 2 (fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) (*.f64 1/360 (pow.f64 im 6)))))
(fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) (fma.f64 1/360 (pow.f64 im 6) 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 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im)))
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))

localize56.0ms (0.6%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))
0.0b
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/720 (pow.f64 im 6))) (*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))))
0.1b
(*.f64 1/720 (pow.f64 im 6))
0.2b
(*.f64 (*.f64 im im) 1/24)
Compiler

Compiled 93 to 57 computations (38.7% saved)

series19.0ms (0.2%)

Counts
4 → 48
Calls

15 calls:

TimeVariablePointExpression
5.0ms
re
@inf
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/720 (pow.f64 im 6))) (*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))))
2.0ms
re
@0
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/720 (pow.f64 im 6))) (*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))))
1.0ms
im
@0
(*.f64 1/720 (pow.f64 im 6))
1.0ms
im
@inf
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/720 (pow.f64 im 6))) (*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))))
1.0ms
im
@inf
(*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))

rewrite104.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
902×fma-def_binary64
348×fma-neg_binary64
333×expm1-udef_binary64
332×log1p-udef_binary64
204×add-sqr-sqrt_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01863
140655
2557655
Stop Event
node limit
Counts
4 → 158
Calls
Call 1
Inputs
(*.f64 (*.f64 im im) 1/24)
(*.f64 1/720 (pow.f64 im 6))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/720 (pow.f64 im 6))) (*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))))
(*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (*.f64 im im) 1/24))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) 1/24) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) 1/24)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (sqrt.f64 1/24)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 im 6) 1/13824) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 im 4) 1/576))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (pow.f64 (exp.f64 im) im) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (*.f64 im im) 1/24))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 im 6) 1/13824))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 im im) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 im im) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (fma.f64 2 (log.f64 im) (log.f64 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (fma.f64 2 (log.f64 im) (log.f64 1/24)) 1))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (fma.f64 1/720 (pow.f64 im 6) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/720 (pow.f64 im 6)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) (cbrt.f64 1/720)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 1/720)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/373248000 (pow.f64 (pow.f64 im 6) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 1/518400 (pow.f64 im 12)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 1/720) (pow.f64 im 6)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 1/720 (pow.f64 im 6)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 1/373248000 (pow.f64 (pow.f64 im 6) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/720 (pow.f64 im 6))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (*.f64 (log1p.f64 (*.f64 1/720 (pow.f64 im 6))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/720 (pow.f64 im 6))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (fma.f64 6 (log.f64 im) (log.f64 1/720)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (fma.f64 6 (log.f64 im) (log.f64 1/720)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 1/720 (pow.f64 im 6) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 1/720 (pow.f64 im 6) 1) 1 -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (pow.f64 (cbrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) 2) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) 2) (cbrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 1/373248000 (pow.f64 (pow.f64 im 6) 3) 1) (/.f64 1 (+.f64 1 (fma.f64 1/518400 (pow.f64 im 12) (*.f64 -1/720 (pow.f64 im 6))))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 1 (*.f64 1/518400 (pow.f64 im 12))) (/.f64 1 (+.f64 1 (*.f64 -1/720 (pow.f64 im 6)))) -1)))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (cos.f64 re) (*.f64 (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (cos.f64 re) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) 1) (*.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) 3) (pow.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) 3)) (fma.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) (-.f64 (*.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))) (*.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1))) (*.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))) (-.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (fma.f64 (pow.f64 im 6) (pow.f64 (fma.f64 im (*.f64 im 1/24) 1/2) 3) (pow.f64 (fma.f64 1/720 (pow.f64 im 6) 1) 3)) (cos.f64 re)) (fma.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) (-.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)) (pow.f64 (fma.f64 1/720 (pow.f64 im 6) 1) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 (pow.f64 (fma.f64 1/720 (pow.f64 im 6) 1) 2) (pow.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) 2)) (cos.f64 re)) (-.f64 (fma.f64 1/720 (pow.f64 im 6) 1) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (cos.f64 re) (fma.f64 (pow.f64 im 6) (pow.f64 (fma.f64 im (*.f64 im 1/24) 1/2) 3) (pow.f64 (fma.f64 1/720 (pow.f64 im 6) 1) 3))) (fma.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) (-.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)) (pow.f64 (fma.f64 1/720 (pow.f64 im 6) 1) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (cos.f64 re) (-.f64 (pow.f64 (fma.f64 1/720 (pow.f64 im 6) 1) 2) (pow.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) 2))) (-.f64 (fma.f64 1/720 (pow.f64 im 6) 1) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1))) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (cos.f64 re) 3) (pow.f64 (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)) 3) (pow.f64 (cos.f64 re) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (fma.f64 1/720 (pow.f64 im 6) 1)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im (*.f64 (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) (*.f64 (fma.f64 im (*.f64 im 1/24) 1/2) (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) 1 (*.f64 (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) 1 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 re) (*.f64 (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 re) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 1/720 (pow.f64 im 6) 1) (cos.f64 re) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 im (*.f64 im 1/24) 1/2) (*.f64 (*.f64 im im) (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) (cos.f64 re) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (cos.f64 re)) (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (cos.f64 re)) (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (cbrt.f64 (cos.f64 re)) (*.f64 (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (cbrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (cbrt.f64 (cos.f64 re)) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (cbrt.f64 (cos.f64 re)) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) 2) (*.f64 (cbrt.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) 2) (*.f64 (cbrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)) (*.f64 (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2))) (*.f64 (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2))) (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)) 1 (*.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))) (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))) (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1))) (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))) (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1))) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))) (sqrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1))) (sqrt.f64 (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1))) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1))) (*.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1))) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (sqrt.f64 (cos.f64 re))) (*.f64 (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (sqrt.f64 (cos.f64 re))) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (sqrt.f64 (cos.f64 re)) (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2)))) (*.f64 (sqrt.f64 (cos.f64 re)) (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2)))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2))) (sqrt.f64 (cos.f64 re))) (*.f64 (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2))) (sqrt.f64 (cos.f64 re))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (pow.f64 (cbrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) 2)) (cbrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1))) (sqrt.f64 (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (fma.f64 1/720 (pow.f64 im 6) 1) (cbrt.f64 (pow.f64 (cos.f64 re) 2))) (cbrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (fma.f64 1/720 (pow.f64 im 6) 1) (sqrt.f64 (cos.f64 re))) (sqrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) im) (*.f64 im (fma.f64 im (*.f64 im 1/24) 1/2)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 im (*.f64 im 1/24) 1/2) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/24) 1/2)) (*.f64 im im) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (pow.f64 (cbrt.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) 2)) (cbrt.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2)))) (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2))) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) (cbrt.f64 (pow.f64 (cos.f64 re) 2))) (cbrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) (sqrt.f64 (cos.f64 re))) (sqrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (fma.f64 1/720 (pow.f64 im 6) 1)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 im im) 1/2) (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 (*.f64 im im) 1/2) 1) (*.f64 (*.f64 1/24 (pow.f64 im 4)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 (*.f64 im im) 1/2) 3) (pow.f64 (*.f64 1/24 (pow.f64 im 4)) 3)) (fma.f64 (*.f64 (*.f64 im im) 1/2) (*.f64 (*.f64 im im) 1/2) (-.f64 (*.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/24 (pow.f64 im 4))) (*.f64 (*.f64 (*.f64 im im) 1/2) (*.f64 1/24 (pow.f64 im 4))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 (*.f64 im im) 1/2) (*.f64 (*.f64 im im) 1/2)) (*.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/24 (pow.f64 im 4)))) (-.f64 (*.f64 (*.f64 im im) 1/2) (*.f64 1/24 (pow.f64 im 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (fma.f64 (pow.f64 im 6) 1/13824 1/8) (*.f64 im im)) (fma.f64 (*.f64 (*.f64 im im) 1/24) (fma.f64 im (*.f64 im 1/24) -1/2) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 1/4 (*.f64 (pow.f64 im 4) 1/576)) (*.f64 im im)) (+.f64 1/2 (*.f64 -1/24 (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 im im) (fma.f64 (pow.f64 im 6) 1/13824 1/8)) (fma.f64 (*.f64 (*.f64 im im) 1/24) (fma.f64 im (*.f64 im 1/24) -1/2) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 im im) (-.f64 1/4 (*.f64 (pow.f64 im 4) 1/576))) (+.f64 1/2 (*.f64 -1/24 (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (sqrt.f64 (fma.f64 im (*.f64 im 1/24) 1/2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (pow.f64 (exp.f64 im) im) (fma.f64 im (*.f64 im 1/24) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im (*.f64 im (*.f64 (*.f64 im im) 1/24)) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im (*.f64 im 1/2) (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im (*.f64 (*.f64 im 1/24) (*.f64 im im)) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) (*.f64 (*.f64 im im) 1/24) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) 1/2 (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/24 (pow.f64 im 4) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) 1/24) (*.f64 im im) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (*.f64 im im) 1/2) (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 1/24 (pow.f64 im 4)) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 im 4) 1/24 (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 im 3) (*.f64 im 1/24) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 im 4)) (*.f64 (pow.f64 (cbrt.f64 im) 2) 1/2) (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 im 4)) (*.f64 (pow.f64 (cbrt.f64 im) 2) (*.f64 (*.f64 im im) 1/24)) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (pow.f64 im 4) 1/576)) (*.f64 (cbrt.f64 (*.f64 (*.f64 im im) 1/24)) (*.f64 im im)) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 1/24)) (*.f64 (*.f64 im (sqrt.f64 1/24)) (*.f64 im im)) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) 1/2) 1 (*.f64 (*.f64 1/24 (pow.f64 im 4)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cbrt.f64 (*.f64 (*.f64 im im) 1/2)) (cbrt.f64 (*.f64 (*.f64 im im) 1/2))) (cbrt.f64 (*.f64 (*.f64 im im) 1/2)) (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cbrt.f64 (*.f64 1/24 (pow.f64 im 4))) (cbrt.f64 (*.f64 1/24 (pow.f64 im 4)))) (cbrt.f64 (*.f64 1/24 (pow.f64 im 4))) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 (*.f64 im im) 1/2)) (sqrt.f64 (*.f64 (*.f64 im im) 1/2)) (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 1/24 (pow.f64 im 4))) (sqrt.f64 (*.f64 1/24 (pow.f64 im 4))) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im (sqrt.f64 1/24)) im) (*.f64 (*.f64 im (sqrt.f64 1/24)) im) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (*.f64 im (sqrt.f64 1/24))) (*.f64 im (*.f64 im (sqrt.f64 1/24))) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 (*.f64 im im) 1/24) im) im (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 im) im (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (cbrt.f64 (pow.f64 im 4))) (pow.f64 (cbrt.f64 im) 2) (*.f64 1/24 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 (*.f64 im im) 1/24) (cbrt.f64 (pow.f64 im 4))) (pow.f64 (cbrt.f64 im) 2) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) (cbrt.f64 (*.f64 (pow.f64 im 4) 1/576))) (cbrt.f64 (*.f64 (*.f64 im im) 1/24)) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) (*.f64 im (sqrt.f64 1/24))) (*.f64 im (sqrt.f64 1/24)) (*.f64 (*.f64 im im) 1/2))))))

simplify163.0ms (1.7%)

Algorithm
egg-herbie
Rules
725×distribute-rgt-in_binary64
686×distribute-lft-in_binary64
398×fma-def_binary64
384×*-commutative_binary64
313×distribute-lft-out_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
0551077
11581033
2540900
32528856
45741835
56636835
66893835
77196835
87463835
97810835
Stop Event
node limit
Counts
206 → 187
Calls
Call 1
Inputs
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (pow.f64 im 2))
(+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6))))
(+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 2))) (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 4))) (+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 2))) (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6))))))
(+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 4))) (+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 2))) (+.f64 (*.f64 -1/720 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 6))) (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 1/24 (pow.f64 im 4))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 1/24 (pow.f64 im 4))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
Outputs
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(*.f64 1/24 (pow.f64 im 2))
(*.f64 1/24 (*.f64 im im))
(+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6))))
(+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6))))
(+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6))))
(fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1))
(+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 2))) (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 1 (fma.f64 -1/2 (*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (*.f64 re re)) (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 1 (fma.f64 -1/2 (*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (*.f64 re re)) (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 4))) (+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 2))) (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6))))))
(fma.f64 1/24 (*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 4)) (+.f64 1 (fma.f64 -1/2 (*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (*.f64 re re)) (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6))))))
(+.f64 (fma.f64 -1/2 (*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (*.f64 re re)) (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (fma.f64 (+.f64 1/24 (*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6))) 1/24)) (pow.f64 re 4) 1))
(fma.f64 1/24 (*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (pow.f64 re 4)) (*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1))))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (+.f64 (+.f64 1 (*.f64 -1/2 (*.f64 re re))) (*.f64 1/24 (pow.f64 re 4))))
(+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 4))) (+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 2))) (+.f64 (*.f64 -1/720 (*.f64 (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 6))) (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))))
(fma.f64 1/24 (*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 4)) (+.f64 1 (fma.f64 -1/2 (*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (*.f64 re re)) (fma.f64 -1/720 (*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (pow.f64 re 6)) (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))))))
(+.f64 (fma.f64 -1/2 (*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (*.f64 re re)) (fma.f64 (+.f64 -1/720 (*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6))) -1/720)) (pow.f64 re 6) (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6))))) (fma.f64 (+.f64 1/24 (*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6))) 1/24)) (pow.f64 re 4) 1))
(fma.f64 1/24 (*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (pow.f64 re 4)) (+.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 -1/720 (pow.f64 re 6))))))
(+.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (+.f64 (+.f64 (*.f64 -1/720 (pow.f64 re 6)) (*.f64 -1/2 (*.f64 re re))) (*.f64 1/24 (pow.f64 re 4)))))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (+.f64 (+.f64 (+.f64 1 (*.f64 -1/2 (*.f64 re re))) (*.f64 1/24 (pow.f64 re 4))) (*.f64 -1/720 (pow.f64 re 6))))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (+.f64 (+.f64 (*.f64 -1/720 (pow.f64 re 6)) (*.f64 -1/2 (*.f64 re re))) (+.f64 1 (*.f64 1/24 (pow.f64 re 4)))))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (+.f64 1/2 (*.f64 1/24 (pow.f64 im 2))) (pow.f64 im 2)) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/2)) 1))
(fma.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (cos.f64 re)))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
(+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))
(fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/720 (pow.f64 im 6))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/720 (pow.f64 im 6)) (*.f64 1/24 (pow.f64 im 4))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))))
(*.f64 (fma.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)) (*.f64 1/720 (pow.f64 im 6))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
(+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))
(fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/720 (pow.f64 im 6))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/720 (pow.f64 im 6)) (*.f64 1/24 (pow.f64 im 4))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))))
(*.f64 (fma.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)) (*.f64 1/720 (pow.f64 im 6))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 (+.f64 1 (fma.f64 (+.f64 (*.f64 1/24 (*.f64 im im)) 1/2) (*.f64 im im) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (+.f64 1 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (*.f64 1/720 (pow.f64 im 6)))) (cos.f64 re))
(*.f64 (fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) (fma.f64 1/720 (pow.f64 im 6) 1)) (cos.f64 re))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 (*.f64 im im) 1/2)
(*.f64 im (*.f64 im 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))
(*.f64 1/24 (pow.f64 im 4))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))
(*.f64 1/24 (pow.f64 im 4))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2))

localize17.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(pow.f64 im 2)
0.0b
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
0.1b
(*.f64 (cos.f64 re) (pow.f64 im 2))
Compiler

Compiled 36 to 21 computations (41.7% saved)

series11.0ms (0.1%)

Counts
3 → 11
Calls

15 calls:

TimeVariablePointExpression
4.0ms
re
@0
(*.f64 (cos.f64 re) (pow.f64 im 2))
1.0ms
im
@-inf
(pow.f64 im 2)
1.0ms
re
@0
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
1.0ms
im
@inf
(*.f64 (cos.f64 re) (pow.f64 im 2))
1.0ms
im
@inf
(pow.f64 im 2)

rewrite74.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
485×log-prod_binary64
365×exp-prod_binary64
351×prod-exp_binary64
309×pow-prod-down_binary64
288×fma-def_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01028
121628
2266728
Stop Event
node limit
Counts
3 → 125
Calls
Call 1
Inputs
(*.f64 (cos.f64 re) (pow.f64 im 2))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(pow.f64 im 2)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 im) (*.f64 im (cos.f64 re)))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 im) (*.f64 im (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) (*.f64 im im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 1) (log.f64 (*.f64 (cos.f64 re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im)))) 2)) (cbrt.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im))))) (sqrt.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 im) (*.f64 im (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 im (sqrt.f64 (cos.f64 re)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (log.f64 (cos.f64 re)) 1) (*.f64 2 (log.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (log.f64 (cos.f64 re)) (*.f64 (*.f64 2 (log.f64 im)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (log.f64 (cos.f64 re)) 1) (*.f64 (*.f64 2 (log.f64 im)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (*.f64 2 (log.f64 im)) 1) (log.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 2 (log.f64 im)) (*.f64 (log.f64 (cos.f64 re)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (*.f64 2 (log.f64 im)) 1) (*.f64 (log.f64 (cos.f64 re)) 1)))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)) (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (neg.f64 (cos.f64 re)))) (/.f64 (pow.f64 (cos.f64 re) 2) (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) (pow.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 2) (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) (sqrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 1/8 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6) (pow.f64 (cos.f64 re) 3)) (/.f64 1 (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))) (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)) (pow.f64 (cos.f64 re) 2)) (/.f64 1 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))) (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4))) (fma.f64 1/8 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6) (pow.f64 (cos.f64 re) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (neg.f64 (cos.f64 re))) (-.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)) (pow.f64 (cos.f64 re) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 1/8 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6) (pow.f64 (cos.f64 re) 3)) (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))) (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 1/8 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6) (pow.f64 (cos.f64 re) 3)) (+.f64 (pow.f64 (cos.f64 re) 2) (-.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)) (*.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)) (pow.f64 (cos.f64 re) 2)) (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (neg.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (fma.f64 1/8 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6) (pow.f64 (cos.f64 re) 3))) (neg.f64 (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))) (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)) (pow.f64 (cos.f64 re) 2))) (neg.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (cos.f64 re) 2) (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4))) (-.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 1) (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))) (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4))) (fma.f64 1/8 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 6) (pow.f64 (cos.f64 re) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (neg.f64 (cos.f64 re))) (-.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)) (pow.f64 (cos.f64 re) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))) 2)) (cbrt.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))) (sqrt.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (cos.f64 re))) (sqrt.f64 (pow.f64 (exp.f64 im) (*.f64 im (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (cos.f64 re)) (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (cos.f64 re))) (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)))) (exp.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (sqrt.f64 (pow.f64 (exp.f64 im) (*.f64 im (cos.f64 re)))) (+.f64 1 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)))) (+.f64 1 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) 1 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) 1 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))) (cbrt.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4))) (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (cos.f64 re)) (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (cbrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4)) (*.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (sqrt.f64 (*.f64 (cos.f64 re) 1/2)) im) (*.f64 (sqrt.f64 (*.f64 (cos.f64 re) 1/2)) im) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) (*.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) 1/2) (*.f64 im im) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (cbrt.f64 (pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 4))) (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (*.f64 im (sqrt.f64 (cos.f64 re)))) (*.f64 im (sqrt.f64 (cos.f64 re))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 (cos.f64 re) 1/2) im) im (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 (cos.f64 re) 1/2) 1) (*.f64 im im) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 (cos.f64 re) 1/2) (*.f64 (cbrt.f64 im) im)) (pow.f64 (cbrt.f64 im) 2) (cos.f64 re))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 im) im)) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 im) im))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 im) im))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 im) im))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 im im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 im im)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 im im) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 im) im) (pow.f64 (cbrt.f64 im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 im) 2) (*.f64 (cbrt.f64 im) im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 im) (pow.f64 im 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 im 3/2) (sqrt.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 im) 5) (cbrt.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 im 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 im) im))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 im 6))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 2 (log.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 2 (log.f64 im)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (pow.f64 im 6)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 2 (log.f64 (cbrt.f64 im))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (log.f64 im) 1) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (*.f64 2 (log.f64 im)) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (log.f64 im) 1) (log.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (log.f64 im) (*.f64 (log.f64 im) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (log.f64 im) 1) (*.f64 (log.f64 im) 1)))))))

simplify79.0ms (0.8%)

Algorithm
egg-herbie
Rules
840×unswap-sqr_binary64
697×distribute-lft-out_binary64
612×associate-+r+_binary64
366×*-commutative_binary64
365×distribute-rgt-out_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
052255
1136237
2439219
31915216
44056216
56766216
67181216
Stop Event
node limit
Counts
136 → 143
Calls
Call 1
Inputs
(pow.f64 im 2)
(+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))))
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) (*.f64 -1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 2))))))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2))))
(+.f64 1 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 1/48 (pow.f64 im 2)))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2)))))
(+.f64 1 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 1/48 (pow.f64 im 2)))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2)) (*.f64 (-.f64 (*.f64 -1/1440 (pow.f64 im 2)) 1/720) (pow.f64 re 6))))))
(cos.f64 re)
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
Outputs
(pow.f64 im 2)
(*.f64 im im)
(+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))
(+.f64 (*.f64 im im) (*.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re))))
(*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (*.f64 im im))
(*.f64 (*.f64 im im) (fma.f64 -1/2 (*.f64 re re) 1))
(*.f64 im (*.f64 im (fma.f64 -1/2 (*.f64 re re) 1)))
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))))
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (+.f64 (*.f64 im im) (*.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re)))))
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (*.f64 im im)))
(*.f64 (*.f64 im im) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (*.f64 1/24 (pow.f64 re 4))))
(*.f64 (*.f64 im im) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 re re) 1)))
(*.f64 im (*.f64 im (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 re re) 1))))
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) (*.f64 -1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 2))))))
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (+.f64 (*.f64 im im) (fma.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re)) (*.f64 -1/720 (*.f64 (*.f64 im im) (pow.f64 re 6))))))
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (fma.f64 im im (*.f64 (*.f64 im im) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 -1/720 (pow.f64 re 6))))))
(fma.f64 im im (*.f64 (*.f64 im im) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6))))))
(*.f64 (*.f64 im im) (+.f64 (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6))) (fma.f64 1/24 (pow.f64 re 4) 1)))
(*.f64 im (*.f64 im (+.f64 (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6))) (fma.f64 1/24 (pow.f64 re 4) 1))))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (*.f64 (*.f64 im im) 1/2))
(fma.f64 (*.f64 im im) 1/2 1)
(fma.f64 im (*.f64 im 1/2) 1)
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2))))
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 (*.f64 re re) (fma.f64 -1/4 (*.f64 im im) -1/2))))
(+.f64 1 (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) (*.f64 (*.f64 im im) 1/2)))
(fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) 1))
(fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 im (*.f64 im -1/4) -1/2) 1))
(+.f64 1 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 1/48 (pow.f64 im 2)))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2)))))
(+.f64 1 (fma.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (*.f64 im im) 1/48)) (fma.f64 1/2 (*.f64 im im) (*.f64 (*.f64 re re) (fma.f64 -1/4 (*.f64 im im) -1/2)))))
(+.f64 1 (fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) (*.f64 (*.f64 im im) 1/2))))
(fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) 1)))
(fma.f64 (pow.f64 re 4) (fma.f64 im (*.f64 im 1/48) 1/24) (fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 im (*.f64 im -1/4) -1/2) 1)))
(+.f64 1 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 1/48 (pow.f64 im 2)))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2)) (*.f64 (-.f64 (*.f64 -1/1440 (pow.f64 im 2)) 1/720) (pow.f64 re 6))))))
(+.f64 1 (fma.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (*.f64 im im) 1/48)) (fma.f64 1/2 (*.f64 im im) (fma.f64 (fma.f64 -1/4 (*.f64 im im) -1/2) (*.f64 re re) (*.f64 (pow.f64 re 6) (fma.f64 -1/1440 (*.f64 im im) -1/720))))))
(+.f64 1 (fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (fma.f64 (*.f64 im im) 1/2 (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) (*.f64 (pow.f64 re 6) (fma.f64 (*.f64 im im) -1/1440 -1/720))))))
(+.f64 (fma.f64 im (*.f64 im 1/2) 1) (fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (fma.f64 (pow.f64 re 6) (fma.f64 im (*.f64 im -1/1440) -1/720) (*.f64 re (*.f64 re (fma.f64 (*.f64 im im) -1/4 -1/2))))))
(+.f64 (fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 im (*.f64 im -1/4) -1/2) 1)) (fma.f64 (pow.f64 re 6) (fma.f64 im (*.f64 im -1/1440) -1/720) (*.f64 (pow.f64 re 4) (fma.f64 im (*.f64 im 1/48) 1/24))))
(+.f64 (fma.f64 (*.f64 re re) (fma.f64 im (*.f64 im -1/4) -1/2) (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 re 6) (fma.f64 im (*.f64 im -1/1440) -1/720)))) (fma.f64 (pow.f64 re 4) (fma.f64 im (*.f64 im 1/48) 1/24) 1))
(cos.f64 re)
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)))
(*.f64 (*.f64 (*.f64 im im) 1/2) (cos.f64 re))
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)))
(*.f64 (*.f64 (*.f64 im im) 1/2) (cos.f64 re))
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))

eval258.0ms (2.7%)

Compiler

Compiled 12998 to 7474 computations (42.5% saved)

prune126.0ms (1.3%)

Pruning

14 alts after pruning (12 fresh and 2 done)

PrunedKeptTotal
New60710617
Fresh426
Picked101
Done325
Total61514629
Error
0b
Counts
629 → 14
Alt Table
Click to see full alt table
StatusErrorProgram
1.5b
(cos.f64 re)
29.4b
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
0.0b
(+.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))
1.1b
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
1.0b
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
0.0b
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
0.1b
(*.f64 (*.f64 1/2 (expm1.f64 (log1p.f64 (cos.f64 re)))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
61.2b
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
1.4b
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
29.9b
(*.f64 1/2 2)
1.8b
(log.f64 (exp.f64 (cos.f64 re)))
0.0b
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
1.8b
(-.f64 (+.f64 1 (cos.f64 re)) 1)
61.7b
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
Compiler

Compiled 273 to 210 computations (23.1% saved)

localize13.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
Compiler

Compiled 29 to 17 computations (41.4% saved)

series27.0ms (0.3%)

Counts
1 → 24
Calls

6 calls:

TimeVariablePointExpression
22.0ms
im
@inf
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
1.0ms
im
@-inf
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
1.0ms
re
@0
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
1.0ms
re
@inf
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
1.0ms
im
@0
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))

rewrite50.0ms (0.5%)

Algorithm
batch-egg-rewrite
Rules
850×pow1_binary64
785×add-log-exp_binary64
784×log1p-expm1-u_binary64
784×expm1-log1p-u_binary64
769×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0108
12088
221688
Stop Event
node limit
Counts
1 → 14
Calls
Call 1
Inputs
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (cosh.f64 im) (cos.f64 re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (cosh.f64 im) (*.f64 2 (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cosh.f64 im) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cosh.f64 im) (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cosh.f64 im) (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (cosh.f64 im) (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cosh.f64 im) (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (cos.f64 re)) (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cosh.f64 im) (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (cosh.f64 im) 3) (pow.f64 (cos.f64 re) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (cos.f64 re) 3) (pow.f64 (cosh.f64 im) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cosh.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cosh.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cosh.f64 im) (cos.f64 re))))))))

simplify64.0ms (0.7%)

Algorithm
egg-herbie
Rules
638×distribute-rgt-in_binary64
622×distribute-lft-in_binary64
544×associate-+l+_binary64
491×associate-+r+_binary64
395×*-commutative_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
049542
1138540
2442480
31543454
44538452
57050452
Stop Event
node limit
Counts
38 → 31
Calls
Call 1
Inputs
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)))
(+.f64 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) (*.f64 -1/4 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 2))))
(+.f64 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 2))) (*.f64 1/48 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 4)))))
(+.f64 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) (+.f64 (*.f64 -1/1440 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 6))) (+.f64 (*.f64 -1/4 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 2))) (*.f64 1/48 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 4))))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
Outputs
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re))
(*.f64 (+.f64 (*.f64 1/2 (*.f64 im im)) 1) (cos.f64 re))
(fma.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)))))
(+.f64 (fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re)) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (cos.f64 re)))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/2 (*.f64 im im)))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (+.f64 1 (*.f64 1/24 (pow.f64 im 4)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6))))))
(+.f64 (fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))
(+.f64 (fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 6) 1/720))))
(+.f64 (cos.f64 re) (fma.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/720 (pow.f64 im 6))))))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (+.f64 (*.f64 1/2 (*.f64 im im)) (*.f64 1/720 (pow.f64 im 6))) (*.f64 1/24 (pow.f64 im 4)))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (+.f64 (*.f64 1/2 (*.f64 im im)) (+.f64 1 (*.f64 1/720 (pow.f64 im 6))))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)))
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) (*.f64 -1/4 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 2))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 re re) -1/4)))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 re (*.f64 re -1/4))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))))
(+.f64 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 2))) (*.f64 1/48 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 4)))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4)))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4)) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 re re) -1/4))))
(fma.f64 (pow.f64 re 4) (fma.f64 (exp.f64 im) 1/48 (/.f64 1/48 (exp.f64 im))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 re (*.f64 re -1/4)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (+.f64 (*.f64 1/48 (pow.f64 re 4)) (*.f64 -1/4 (*.f64 re re))) 1/2))
(+.f64 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) (+.f64 (*.f64 -1/1440 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 6))) (+.f64 (*.f64 -1/4 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 2))) (*.f64 1/48 (*.f64 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im)) (pow.f64 re 4))))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/1440 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 6)) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4))))))
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/1440 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 6)) (fma.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4)) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 re re) -1/4)))))
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 re (*.f64 re -1/4)))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (pow.f64 re 4)) (*.f64 -1/1440 (pow.f64 re 6)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (+.f64 (*.f64 1/48 (pow.f64 re 4)) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) (*.f64 -1/4 (*.f64 re re)))) 1/2))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (cos.f64 re) 1/2))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))

localize3.0ms (0%)

Compiler

Compiled 7 to 7 computations (0% saved)

localize12.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.3b
(-.f64 (+.f64 1 (cos.f64 re)) 1)
0.5b
(+.f64 1 (cos.f64 re))
Compiler

Compiled 16 to 10 computations (37.5% saved)

series2.0ms (0%)

Counts
2 → 16
Calls

6 calls:

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

rewrite54.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
649×pow1_binary64
608×add-log-exp_binary64
608×log1p-expm1-u_binary64
608×expm1-log1p-u_binary64
598×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0615
11349
218899
Stop Event
node limit
Counts
2 → 72
Calls
Call 1
Inputs
(+.f64 1 (cos.f64 re))
(-.f64 (+.f64 1 (cos.f64 re)) 1)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (cos.f64 re) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (-.f64 1 (cos.f64 re))) (/.f64 (pow.f64 (cos.f64 re) 2) (-.f64 1 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 1 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 1 (cos.f64 re))) (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 re))) 2) (cbrt.f64 (+.f64 1 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 re))) 2) (*.f64 (cbrt.f64 (+.f64 1 (cos.f64 re))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 1 (cos.f64 re))) (sqrt.f64 (+.f64 1 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 1 (cos.f64 re))) (*.f64 (sqrt.f64 (+.f64 1 (cos.f64 re))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (pow.f64 (cos.f64 re) 3)) (/.f64 1 (+.f64 1 (*.f64 (cos.f64 re) (+.f64 (cos.f64 re) -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sin.f64 re) (sin.f64 re)) (/.f64 1 (-.f64 1 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (*.f64 (cos.f64 re) (+.f64 (cos.f64 re) -1))) (+.f64 1 (pow.f64 (cos.f64 re) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 1 (cos.f64 re)) (*.f64 (sin.f64 re) (sin.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (cos.f64 re) 3)) (+.f64 1 (*.f64 (cos.f64 re) (+.f64 (cos.f64 re) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (cos.f64 re) 3)) (+.f64 (pow.f64 (cos.f64 re) 2) (-.f64 1 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (sin.f64 re) (sin.f64 re)) (-.f64 1 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 1 (pow.f64 (cos.f64 re) 3))) (neg.f64 (+.f64 1 (*.f64 (cos.f64 re) (+.f64 (cos.f64 re) -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 (sin.f64 re) (sin.f64 re))) (neg.f64 (-.f64 1 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (cos.f64 re) 2) 1) (+.f64 (cos.f64 re) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 1 (pow.f64 (cos.f64 re) 3)) 1) (+.f64 1 (*.f64 (cos.f64 re) (+.f64 (cos.f64 re) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 (sin.f64 re) (sin.f64 re)) 1) (-.f64 1 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 1 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 1 (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 1 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log.f64 (+.f64 (cos.f64 re) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 1 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 re) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (cbrt.f64 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)) 1)))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (+.f64 (cos.f64 re) -1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (+.f64 (cos.f64 re) -1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (cos.f64 re) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (cos.f64 re)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (+.f64 1 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (cos.f64 re) -1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cos.f64 re) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cos.f64 re)) (pow.f64 (cbrt.f64 (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (cbrt.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 3) -1) (/.f64 1 (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 2) (+.f64 (cos.f64 re) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (+.f64 (cos.f64 re) 2) (cos.f64 re)) (/.f64 1 (+.f64 (cos.f64 re) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (+.f64 1 (cos.f64 re))) 1) (-.f64 (sqrt.f64 (+.f64 1 (cos.f64 re))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 2) (+.f64 (cos.f64 re) 2)) (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 3) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (cos.f64 re) 2) (*.f64 (+.f64 (cos.f64 re) 2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 3) -1) (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 2) (+.f64 (cos.f64 re) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 3) -1) (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 2) (-.f64 1 (*.f64 (+.f64 1 (cos.f64 re)) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (cos.f64 re) 2) (cos.f64 re)) (+.f64 (cos.f64 re) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (cos.f64 re) 2) (cos.f64 re)) (-.f64 (+.f64 1 (cos.f64 re)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 3) -1)) (neg.f64 (+.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 2) (+.f64 (cos.f64 re) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 (+.f64 (cos.f64 re) 2) (cos.f64 re))) (neg.f64 (+.f64 (cos.f64 re) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (+.f64 (cos.f64 re) -1) 3)) (+.f64 1 (-.f64 (*.f64 (+.f64 (cos.f64 re) -1) (+.f64 (cos.f64 re) -1)) (+.f64 (cos.f64 re) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (*.f64 (+.f64 (cos.f64 re) -1) (+.f64 (cos.f64 re) -1))) (-.f64 1 (+.f64 (cos.f64 re) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cos.f64 re) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (cos.f64 re)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (cos.f64 re)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cos.f64 re) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cos.f64 re) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (cos.f64 re) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cos.f64 re)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 1 (cos.f64 re)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 re))) 2) (cbrt.f64 (+.f64 1 (cos.f64 re))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 1 (cos.f64 re))) (sqrt.f64 (+.f64 1 (cos.f64 re))) -1)))))

simplify133.0ms (1.4%)

Algorithm
egg-herbie
Rules
2082×fma-def_binary64
726×sqr-pow_binary64
369×*-commutative_binary64
328×pow-sqr_binary64
326×distribute-lft-out_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
025128
162120
2147116
3414116
41352116
53380116
63965116
74195116
84390116
94641116
104956116
116451116
126886116
137377116
147978116
Stop Event
node limit
Counts
88 → 86
Calls
Call 1
Inputs
2
(+.f64 2 (*.f64 -1/2 (pow.f64 re 2)))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 2 (*.f64 -1/2 (pow.f64 re 2))))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6)))))
1
(+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2))))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6)))))
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
Outputs
2
(+.f64 2 (*.f64 -1/2 (pow.f64 re 2)))
(+.f64 2 (*.f64 -1/2 (*.f64 re re)))
(fma.f64 -1/2 (*.f64 re re) 2)
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 2 (*.f64 -1/2 (pow.f64 re 2))))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 2 (*.f64 -1/2 (*.f64 re re))))
(fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) 2))
(fma.f64 -1/2 (*.f64 re re) (fma.f64 1/24 (pow.f64 re 4) 2))
(fma.f64 (*.f64 re re) (fma.f64 (*.f64 re re) 1/24 -1/2) 2)
(fma.f64 re (fma.f64 1/24 (pow.f64 re 3) (*.f64 -1/2 re)) 2)
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6)))))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 2 (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6)))))
(+.f64 (fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) 2)) (*.f64 -1/720 (pow.f64 re 6)))
(fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) (fma.f64 -1/720 (pow.f64 re 6) 2)))
(fma.f64 (*.f64 re re) (fma.f64 (*.f64 re re) 1/24 -1/2) (fma.f64 -1/720 (pow.f64 re 6) 2))
(fma.f64 re (fma.f64 1/24 (pow.f64 re 3) (*.f64 -1/2 re)) (fma.f64 -1/720 (pow.f64 re 6) 2))
(fma.f64 -1/2 (*.f64 re re) (fma.f64 (pow.f64 re 4) (fma.f64 re (*.f64 re -1/720) 1/24) 2))
(fma.f64 -1/720 (pow.f64 re 6) (fma.f64 re (fma.f64 1/24 (pow.f64 re 3) (*.f64 -1/2 re)) 2))
1
(+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))
(+.f64 (*.f64 -1/2 (*.f64 re re)) 1)
(fma.f64 -1/2 (*.f64 re re) 1)
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2))))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 (*.f64 -1/2 (*.f64 re re)) 1))
(fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) 1))
(fma.f64 -1/2 (*.f64 re re) (fma.f64 1/24 (pow.f64 re 4) 1))
(fma.f64 (*.f64 re re) (fma.f64 (*.f64 re re) 1/24 -1/2) 1)
(fma.f64 re (fma.f64 1/24 (pow.f64 re 3) (*.f64 -1/2 re)) 1)
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6)))))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6))) 1))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 (*.f64 -1/720 (pow.f64 re 6)) (fma.f64 -1/2 (*.f64 re re) 1)))
(fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/2 (*.f64 re re) (fma.f64 -1/720 (pow.f64 re 6) 1)))
(fma.f64 -1/2 (*.f64 re re) (fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/720 (pow.f64 re 6) 1)))
(fma.f64 re (fma.f64 1/24 (pow.f64 re 3) (*.f64 -1/2 re)) (fma.f64 -1/720 (pow.f64 re 6) 1))
(fma.f64 -1/2 (*.f64 re re) (fma.f64 (pow.f64 re 4) (fma.f64 re (*.f64 re -1/720) 1/24) 1))
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)
(cos.f64 re)

localize10.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
Compiler

Compiled 23 to 10 computations (56.5% saved)

series2.0ms (0%)

Counts
1 → 24
Calls

6 calls:

TimeVariablePointExpression
0.0ms
re
@inf
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
0.0ms
im
@0
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
0.0ms
im
@inf
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
0.0ms
re
@0
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
0.0ms
re
@-inf
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))

rewrite55.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
871×pow1_binary64
809×add-log-exp_binary64
809×log1p-expm1-u_binary64
809×expm1-log1p-u_binary64
791×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0810
117210
2224110
Stop Event
node limit
Counts
1 → 36
Calls
Call 1
Inputs
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 1/4 (pow.f64 im 4)) (fma.f64 1/2 (*.f64 im im) (neg.f64 (cos.f64 re)))) (/.f64 (pow.f64 (cos.f64 re) 2) (fma.f64 1/2 (*.f64 im im) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 1/2 (*.f64 im im) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))) (pow.f64 (cbrt.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))) 2) (cbrt.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))) (sqrt.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (*.f64 1/2 (*.f64 im im)) 3) (pow.f64 (cos.f64 re) 3)) (/.f64 1 (+.f64 (*.f64 1/4 (pow.f64 im 4)) (*.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 1/4 (pow.f64 im 4)) (pow.f64 (cos.f64 re) 2)) (/.f64 1 (fma.f64 1/2 (*.f64 im im) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (*.f64 1/4 (pow.f64 im 4)) (*.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im))))) (+.f64 (pow.f64 (*.f64 1/2 (*.f64 im im)) 3) (pow.f64 (cos.f64 re) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 1/2 (*.f64 im im) (neg.f64 (cos.f64 re))) (-.f64 (*.f64 1/4 (pow.f64 im 4)) (pow.f64 (cos.f64 re) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 1/2 (*.f64 im im)) 3) (pow.f64 (cos.f64 re) 3)) (+.f64 (*.f64 1/4 (pow.f64 im 4)) (*.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 1/2 (*.f64 im im)) 3) (pow.f64 (cos.f64 re) 3)) (+.f64 (pow.f64 (cos.f64 re) 2) (-.f64 (*.f64 1/4 (pow.f64 im 4)) (*.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 1/4 (pow.f64 im 4)) (pow.f64 (cos.f64 re) 2)) (fma.f64 1/2 (*.f64 im im) (neg.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (*.f64 1/2 (*.f64 im im)) 3) (pow.f64 (cos.f64 re) 3))) (neg.f64 (+.f64 (*.f64 1/4 (pow.f64 im 4)) (*.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (*.f64 1/4 (pow.f64 im 4)) (pow.f64 (cos.f64 re) 2))) (neg.f64 (fma.f64 1/2 (*.f64 im im) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (cos.f64 re) 2) (*.f64 1/4 (pow.f64 im 4))) (-.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 1/2 (*.f64 im im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 im im) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) 1/2 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 im 4))) (cbrt.f64 (*.f64 1/2 (*.f64 im im))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (cbrt.f64 (cos.f64 re)) (*.f64 1/2 (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 1/2)) (*.f64 im (sqrt.f64 1/2)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)) (*.f64 1/2 (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 im) im (cos.f64 re))))))

simplify200.0ms (2.1%)

Algorithm
egg-herbie
Rules
1031×sqr-pow_binary64
513×cube-prod_binary64
462×fma-def_binary64
415×*-commutative_binary64
368×pow-sqr_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
029303
168267
2166263
3543261
41807261
52948261
63554261
73812261
84041261
94336261
104707261
115169261
125671261
136245261
146584261
156792261
167000261
177212261
187422261
Stop Event
node limit
Counts
60 → 48
Calls
Call 1
Inputs
(cos.f64 re)
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2))))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2)))))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6))))))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
Outputs
(cos.f64 re)
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (*.f64 im im))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (*.f64 im im))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (*.f64 1/2 (*.f64 im im)) 1)
(fma.f64 1/2 (*.f64 im im) 1)
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2))))
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 -1/2 (*.f64 re re))))
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 re (*.f64 re -1/2))))
(fma.f64 re (*.f64 re -1/2) (fma.f64 1/2 (*.f64 im im) 1))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2)))))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 -1/2 (*.f64 re re)))))
(+.f64 (fma.f64 1/2 (*.f64 im im) (*.f64 re (*.f64 re -1/2))) (fma.f64 1/24 (pow.f64 re 4) 1))
(fma.f64 1/24 (pow.f64 re 4) (fma.f64 re (*.f64 re -1/2) (fma.f64 1/2 (*.f64 im im) 1)))
(fma.f64 re (*.f64 re -1/2) (fma.f64 1/24 (pow.f64 re 4) (fma.f64 1/2 (*.f64 im im) 1)))
(fma.f64 re (*.f64 re -1/2) (fma.f64 1/2 (*.f64 im im) (fma.f64 1/24 (pow.f64 re 4) 1)))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6))))))
(fma.f64 1/24 (pow.f64 re 4) (+.f64 1 (fma.f64 1/2 (*.f64 im im) (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6))))))
(+.f64 (fma.f64 1/2 (*.f64 im im) (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6)))) (fma.f64 1/24 (pow.f64 re 4) 1))
(+.f64 (fma.f64 re (*.f64 re -1/2) (fma.f64 -1/720 (pow.f64 re 6) (*.f64 1/2 (*.f64 im im)))) (fma.f64 1/24 (pow.f64 re 4) 1))
(fma.f64 re (*.f64 re -1/2) (fma.f64 1/24 (pow.f64 re 4) (fma.f64 1/2 (*.f64 im im) (fma.f64 -1/720 (pow.f64 re 6) 1))))
(fma.f64 re (*.f64 re -1/2) (fma.f64 1/24 (pow.f64 re 4) (fma.f64 -1/720 (pow.f64 re 6) (fma.f64 1/2 (*.f64 im im) 1))))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(fma.f64 1/2 (*.f64 im im) (cos.f64 re))

localize14.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(*.f64 (pow.f64 im 6) (cos.f64 re))
0.1b
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
Compiler

Compiled 25 to 15 computations (40% saved)

series5.0ms (0.1%)

Counts
2 → 48
Calls

12 calls:

TimeVariablePointExpression
1.0ms
im
@0
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
1.0ms
re
@inf
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
1.0ms
re
@-inf
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
1.0ms
re
@0
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
1.0ms
im
@inf
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))

rewrite54.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
814×pow1_binary64
757×add-log-exp_binary64
757×log1p-expm1-u_binary64
757×expm1-log1p-u_binary64
741×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0921
118721
2212221
Stop Event
node limit
Counts
2 → 24
Calls
Call 1
Inputs
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
(*.f64 (pow.f64 im 6) (cos.f64 re))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (*.f64 (pow.f64 im 12) (pow.f64 (cos.f64 re) 2)) 1/518400))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (pow.f64 (exp.f64 (cos.f64 re)) (pow.f64 im 6)) 1/720))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (pow.f64 im 6) (cos.f64 re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 im 6) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (pow.f64 im 6) (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) (cbrt.f64 (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 im 3) (sqrt.f64 (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 im 12) (pow.f64 (cos.f64 re) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (cos.f64 re)) (pow.f64 im 6)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (pow.f64 im 6) (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (pow.f64 im 6) 3) (pow.f64 (cos.f64 re) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (cos.f64 re) 3) (pow.f64 (pow.f64 im 6) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (pow.f64 im 6) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (pow.f64 im 6) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (pow.f64 im 6) (cos.f64 re))))))))

simplify179.0ms (1.9%)

Algorithm
egg-herbie
Rules
1348×distribute-lft-out_binary64
769×*-commutative_binary64
521×distribute-rgt-out_binary64
482×sqr-pow_binary64
311×associate-+l+_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
039620
1105600
2340569
31608565
43254565
53583565
63805565
74018565
84234565
94650565
105984565
117086565
127472565
137950565
Stop Event
node limit
Counts
72 → 40
Calls
Call 1
Inputs
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (pow.f64 im 6))
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (*.f64 1/720 (pow.f64 im 6)))
(+.f64 (*.f64 1/17280 (*.f64 (pow.f64 re 4) (pow.f64 im 6))) (+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (*.f64 1/720 (pow.f64 im 6))))
(+.f64 (*.f64 1/17280 (*.f64 (pow.f64 re 4) (pow.f64 im 6))) (+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (+.f64 (*.f64 -1/518400 (*.f64 (pow.f64 re 6) (pow.f64 im 6))) (*.f64 1/720 (pow.f64 im 6)))))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(pow.f64 im 6)
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (pow.f64 im 6))
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 6))) (pow.f64 im 6)))
(+.f64 (*.f64 -1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 6))) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 6))) (pow.f64 im 6))))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
Outputs
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (pow.f64 im 6))
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (*.f64 1/720 (pow.f64 im 6)))
(fma.f64 -1/1440 (*.f64 (pow.f64 im 6) (*.f64 re re)) (*.f64 1/720 (pow.f64 im 6)))
(*.f64 (pow.f64 im 6) (+.f64 1/720 (*.f64 -1/1440 (*.f64 re re))))
(*.f64 (pow.f64 im 6) (fma.f64 -1/1440 (*.f64 re re) 1/720))
(*.f64 (pow.f64 im 6) (fma.f64 (*.f64 re -1/1440) re 1/720))
(+.f64 (*.f64 1/17280 (*.f64 (pow.f64 re 4) (pow.f64 im 6))) (+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (*.f64 1/720 (pow.f64 im 6))))
(fma.f64 1/17280 (*.f64 (pow.f64 im 6) (pow.f64 re 4)) (fma.f64 -1/1440 (*.f64 (pow.f64 im 6) (*.f64 re re)) (*.f64 1/720 (pow.f64 im 6))))
(fma.f64 1/17280 (*.f64 (pow.f64 im 6) (pow.f64 re 4)) (*.f64 (pow.f64 im 6) (+.f64 1/720 (*.f64 -1/1440 (*.f64 re re)))))
(*.f64 (pow.f64 im 6) (+.f64 1/720 (fma.f64 1/17280 (pow.f64 re 4) (*.f64 re (*.f64 re -1/1440)))))
(*.f64 (pow.f64 im 6) (+.f64 (*.f64 1/17280 (pow.f64 re 4)) (fma.f64 (*.f64 re -1/1440) re 1/720)))
(+.f64 (*.f64 1/17280 (*.f64 (pow.f64 re 4) (pow.f64 im 6))) (+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (+.f64 (*.f64 -1/518400 (*.f64 (pow.f64 re 6) (pow.f64 im 6))) (*.f64 1/720 (pow.f64 im 6)))))
(fma.f64 1/17280 (*.f64 (pow.f64 im 6) (pow.f64 re 4)) (fma.f64 -1/1440 (*.f64 (pow.f64 im 6) (*.f64 re re)) (fma.f64 -1/518400 (*.f64 (pow.f64 im 6) (pow.f64 re 6)) (*.f64 1/720 (pow.f64 im 6)))))
(+.f64 (*.f64 (pow.f64 im 6) (+.f64 1/720 (*.f64 -1/518400 (pow.f64 re 6)))) (*.f64 (pow.f64 im 6) (+.f64 (*.f64 1/17280 (pow.f64 re 4)) (*.f64 -1/1440 (*.f64 re re)))))
(*.f64 (pow.f64 im 6) (+.f64 (fma.f64 -1/518400 (pow.f64 re 6) 1/720) (fma.f64 1/17280 (pow.f64 re 4) (*.f64 re (*.f64 re -1/1440)))))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(pow.f64 im 6)
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (pow.f64 im 6))
(fma.f64 -1/2 (*.f64 (pow.f64 im 6) (*.f64 re re)) (pow.f64 im 6))
(*.f64 (+.f64 (*.f64 (*.f64 re re) -1/2) 1) (pow.f64 im 6))
(*.f64 (pow.f64 im 6) (fma.f64 (*.f64 re re) -1/2 1))
(+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 6))) (pow.f64 im 6)))
(fma.f64 -1/2 (*.f64 (pow.f64 im 6) (*.f64 re re)) (fma.f64 1/24 (*.f64 (pow.f64 im 6) (pow.f64 re 4)) (pow.f64 im 6)))
(+.f64 (pow.f64 im 6) (*.f64 (pow.f64 im 6) (+.f64 (*.f64 (*.f64 re re) -1/2) (*.f64 (pow.f64 re 4) 1/24))))
(*.f64 (pow.f64 im 6) (+.f64 (fma.f64 (*.f64 re re) -1/2 1) (*.f64 (pow.f64 re 4) 1/24)))
(*.f64 (pow.f64 im 6) (+.f64 (*.f64 (pow.f64 re 4) 1/24) (fma.f64 (*.f64 re re) -1/2 1)))
(+.f64 (*.f64 -1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 6))) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 6))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 6))) (pow.f64 im 6))))
(fma.f64 -1/720 (*.f64 (pow.f64 im 6) (pow.f64 re 6)) (fma.f64 -1/2 (*.f64 (pow.f64 im 6) (*.f64 re re)) (fma.f64 1/24 (*.f64 (pow.f64 im 6) (pow.f64 re 4)) (pow.f64 im 6))))
(+.f64 (*.f64 (+.f64 (*.f64 (pow.f64 re 4) 1/24) 1) (pow.f64 im 6)) (*.f64 (pow.f64 im 6) (+.f64 (*.f64 (pow.f64 re 6) -1/720) (*.f64 (*.f64 re re) -1/2))))
(fma.f64 (pow.f64 im 6) (fma.f64 (pow.f64 re 6) -1/720 (*.f64 (*.f64 re re) -1/2)) (*.f64 (pow.f64 im 6) (fma.f64 (pow.f64 re 4) 1/24 1)))
(*.f64 (pow.f64 im 6) (+.f64 (fma.f64 (pow.f64 re 4) 1/24 1) (fma.f64 (pow.f64 re 6) -1/720 (*.f64 re (*.f64 re -1/2)))))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))
(*.f64 (cos.f64 re) (pow.f64 im 6))

eval130.0ms (1.4%)

Compiler

Compiled 3778 to 2388 computations (36.8% saved)

prune103.0ms (1.1%)

Pruning

17 alts after pruning (12 fresh and 5 done)

PrunedKeptTotal
New2876293
Fresh167
Picked011
Done246
Total29017307
Error
0b
Counts
307 → 17
Alt Table
Click to see full alt table
StatusErrorProgram
61.5b
(*.f64 1/2 (*.f64 im im))
1.4b
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
1.5b
(cos.f64 re)
29.4b
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
0.1b
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (log1p.f64 (expm1.f64 (cos.f64 re))))
61.7b
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
29.9b
1
61.8b
(*.f64 1/720 (pow.f64 im 6))
1.1b
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
1.0b
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
0.0b
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
61.2b
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
1.8b
(log.f64 (exp.f64 (cos.f64 re)))
0.1b
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (expm1.f64 (log1p.f64 (cos.f64 re))))
0.0b
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
1.8b
(-.f64 (+.f64 1 (cos.f64 re)) 1)
1.8b
(+.f64 (+.f64 (cos.f64 re) -1) 1)
Compiler

Compiled 276 to 217 computations (21.4% saved)

localize25.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(sqrt.f64 (/.f64 1/2 (exp.f64 im)))
0.0b
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
0.0b
(/.f64 1/2 (exp.f64 im))
1.0b
(pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)
Compiler

Compiled 51 to 31 computations (39.2% saved)

series18.0ms (0.2%)

Counts
3 → 48
Calls

12 calls:

TimeVariablePointExpression
9.0ms
re
@0
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
1.0ms
re
@inf
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
1.0ms
im
@inf
(pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)
1.0ms
im
@-inf
(pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)
1.0ms
im
@0
(pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)

rewrite71.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
480×log-prod_binary64
373×exp-prod_binary64
329×prod-exp_binary64
290×pow-prod-down_binary64
272×pow2_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01231
124931
2261028
Stop Event
node limit
Counts
3 → 127
Calls
Call 1
Inputs
(pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
(sqrt.f64 (/.f64 1/2 (exp.f64 im)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (/.f64 1/2 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (/.f64 1/2 (exp.f64 im)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (/.f64 1/2 (exp.f64 im))))) (log.f64 (sqrt.f64 (exp.f64 (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 1/2 (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (exp.f64 (neg.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) (sqrt.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (exp.f64 im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 1/2 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 1/2 (exp.f64 im))) (cbrt.f64 (*.f64 1/4 (pow.f64 (exp.f64 im) -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (exp.f64 im) -2))) (cbrt.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/4) (pow.f64 (/.f64 1/2 (exp.f64 im)) 3/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1/2 (/.f64 1 (neg.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (neg.f64 im)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 3/4) (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 5/6) (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1/2 (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1/2 (neg.f64 (neg.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (*.f64 (exp.f64 im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (*.f64 (exp.f64 im) 2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 -1/2 (neg.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 -1 (neg.f64 (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 1/2 (sqrt.f64 (exp.f64 im))) (sqrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 1/2 (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (cbrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (*.f64 1/2 (/.f64 1/2 (exp.f64 im))) 1/2) (sqrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) 1/2) 1/2) (sqrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 1/4 (pow.f64 (exp.f64 im) -2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (-.f64 (log.f64 1/2) im))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (-.f64 (log.f64 1/4) (+.f64 im im)) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (-.f64 (log.f64 1/2) im)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/3 (-.f64 (log.f64 1/2) im)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (+.f64 im (log1p.f64 1)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1/2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1) (*.f64 1/2 (-.f64 (log.f64 1/2) im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1/2) (*.f64 1/2 (-.f64 (log.f64 1/2) im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1) (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1/2) (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) (*.f64 (-.f64 (log.f64 1/2) im) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1) (*.f64 (-.f64 (log.f64 1/2) im) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1/2) (*.f64 (-.f64 (log.f64 1/2) im) 1/2)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im))) (*.f64 (cos.f64 re) (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (*.f64 2 (cosh.f64 im)))) 2)) (log.f64 (cbrt.f64 (pow.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (*.f64 2 (cosh.f64 im))))) (log.f64 (sqrt.f64 (pow.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 1) (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))) 2)) (cbrt.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))) (sqrt.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im)))))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (*.f64 2 (cosh.f64 im))))) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (log.f64 (cos.f64 re)) 1) (log.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (log.f64 (cos.f64 re)) (*.f64 (log.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (log.f64 (cos.f64 re)) 1) (*.f64 (log.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (log.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 1) (log.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (log.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) (*.f64 (log.f64 (cos.f64 re)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 (*.f64 (log.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im)))) 1) (*.f64 (log.f64 (cos.f64 re)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)) (*.f64 (cos.f64 re) (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (sqrt.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))))) 2)) (log.f64 (cbrt.f64 (exp.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im)))))) (log.f64 (sqrt.f64 (exp.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (sqrt.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 1/2 (exp.f64 im))) (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/6) (cbrt.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 1/2) (pow.f64 (exp.f64 im) -1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/4) (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (sqrt.f64 (*.f64 (exp.f64 im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (sqrt.f64 (exp.f64 im)) (sqrt.f64 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 -1/2) (sqrt.f64 (neg.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (sqrt.f64 1/2)) (neg.f64 (sqrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1/2 (exp.f64 im)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 1/2) (-.f64 (log.f64 1/2) im))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/4 (pow.f64 (exp.f64 im) -2)) 1/4)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 3) 1/6)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 1/2 (exp.f64 im))) 3/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/6) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (exp.f64 im) 2) -1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 1) (*.f64 1/2 (-.f64 (log.f64 1/2) im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (exp.f64 im) 2)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (sqrt.f64 (exp.f64 im)) (sqrt.f64 1/2)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im))) 2)) (cbrt.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)))) (sqrt.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im))))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3/2 (-.f64 (log.f64 1/2) im)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (pow.f64 (/.f64 1/2 (exp.f64 im)) 1/6)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/4 (-.f64 (log.f64 1/2) im)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (*.f64 1/2 (-.f64 (log.f64 1/2) im)) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (-.f64 (log.f64 1/2) im) 1) 1/2))))))

simplify81.0ms (0.9%)

Algorithm
egg-herbie
Rules
767×fma-neg_binary64
651×fma-def_binary64
425×distribute-rgt-out_binary64
336×+-commutative_binary64
324×associate-*l*_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
0881084
1272717
21058673
34291652
47922649
Stop Event
node limit
Counts
175 → 161
Calls
Call 1
Inputs
(pow.f64 (sqrt.f64 1/2) 2)
(+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im)) (pow.f64 (sqrt.f64 1/2) 2))
(+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im)) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) (pow.f64 im 2))) (pow.f64 (sqrt.f64 1/2) 2)))
(+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im)) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) (pow.f64 im 2))) (+.f64 (*.f64 (+.f64 (*.f64 -1/24 (pow.f64 (sqrt.f64 1/2) 2)) (*.f64 -1/8 (pow.f64 (sqrt.f64 1/2) 2))) (pow.f64 im 3)) (pow.f64 (sqrt.f64 1/2) 2))))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)))
(+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)))))))
(+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))) (+.f64 (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))))))
(+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))) (+.f64 (*.f64 -1/720 (*.f64 (pow.f64 re 6) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))) (+.f64 (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)))))))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))
(+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/2 (*.f64 -1 (pow.f64 (sqrt.f64 1/2) 2))) im)) (*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2))))
(+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/4 (*.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2))) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/2 (*.f64 -1 (pow.f64 (sqrt.f64 1/2) 2))) im)) (*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))))
(+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/12 (+.f64 (*.f64 -1/24 (pow.f64 (sqrt.f64 1/2) 2)) (*.f64 -1/8 (pow.f64 (sqrt.f64 1/2) 2)))) (pow.f64 im 3))) (+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/4 (*.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2))) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/2 (*.f64 -1 (pow.f64 (sqrt.f64 1/2) 2))) im)) (*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2))))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(sqrt.f64 1/2)
(+.f64 (*.f64 -1/2 (*.f64 (sqrt.f64 1/2) im)) (sqrt.f64 1/2))
(+.f64 (*.f64 -1/2 (*.f64 (sqrt.f64 1/2) im)) (+.f64 (sqrt.f64 1/2) (*.f64 1/8 (*.f64 (sqrt.f64 1/2) (pow.f64 im 2)))))
(+.f64 (*.f64 -1/48 (*.f64 (sqrt.f64 1/2) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (*.f64 (sqrt.f64 1/2) im)) (+.f64 (sqrt.f64 1/2) (*.f64 1/8 (*.f64 (sqrt.f64 1/2) (pow.f64 im 2))))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
Outputs
(pow.f64 (sqrt.f64 1/2) 2)
1/2
(+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im)) (pow.f64 (sqrt.f64 1/2) 2))
(fma.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im) (pow.f64 (sqrt.f64 1/2) 2))
(fma.f64 -1/2 im 1/2)
(fma.f64 im -1/2 1/2)
(+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im)) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) (pow.f64 im 2))) (pow.f64 (sqrt.f64 1/2) 2)))
(fma.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im) (fma.f64 1/2 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) (*.f64 im im)) (pow.f64 (sqrt.f64 1/2) 2)))
(fma.f64 -1/2 im (fma.f64 1/4 (*.f64 im im) 1/2))
(fma.f64 im -1/2 (fma.f64 (*.f64 im im) 1/4 1/2))
(fma.f64 im -1/2 (fma.f64 (*.f64 im 1/4) im 1/2))
(+.f64 1/2 (*.f64 im (fma.f64 im 1/4 -1/2)))
(+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im)) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) (pow.f64 im 2))) (+.f64 (*.f64 (+.f64 (*.f64 -1/24 (pow.f64 (sqrt.f64 1/2) 2)) (*.f64 -1/8 (pow.f64 (sqrt.f64 1/2) 2))) (pow.f64 im 3)) (pow.f64 (sqrt.f64 1/2) 2))))
(fma.f64 -1 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) im) (fma.f64 1/2 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) (*.f64 im im)) (fma.f64 (*.f64 (pow.f64 (sqrt.f64 1/2) 2) -1/6) (pow.f64 im 3) (pow.f64 (sqrt.f64 1/2) 2))))
(fma.f64 -1/2 im (fma.f64 1/4 (*.f64 im im) (fma.f64 -1/12 (pow.f64 im 3) 1/2)))
(fma.f64 im -1/2 (fma.f64 (*.f64 im im) 1/4 (fma.f64 -1/12 (pow.f64 im 3) 1/2)))
(+.f64 1/2 (*.f64 im (-.f64 (*.f64 im (+.f64 1/4 (*.f64 im -1/12))) 1/2)))
(+.f64 1/2 (*.f64 im (fma.f64 im (+.f64 1/4 (*.f64 im -1/12)) -1/2)))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 1/2 (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 1/2 (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 1/2 (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 1/2 (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 1/2 (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 1/2 (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 1/2 (exp.f64 im))
(/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))
(/.f64 1/2 (exp.f64 im))
(+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)))
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)))))))
(+.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (*.f64 -1/2 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (*.f64 re re))))
(*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (fma.f64 -1/2 (*.f64 re re) 1))
(+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))) (+.f64 (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))))))
(fma.f64 1/2 (exp.f64 im) (fma.f64 1/24 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (pow.f64 re 4)) (+.f64 (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)) (*.f64 -1/2 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (*.f64 re re))))))
(+.f64 (*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (*.f64 1/24 (pow.f64 re 4))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (*.f64 1/24 (pow.f64 re 4))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 re re) 1)))
(+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))) (+.f64 (*.f64 -1/720 (*.f64 (pow.f64 re 6) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))) (+.f64 (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)))))))))
(fma.f64 1/2 (exp.f64 im) (fma.f64 1/24 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (pow.f64 re 4)) (fma.f64 -1/720 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (pow.f64 re 6)) (+.f64 (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im)) (*.f64 -1/2 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (*.f64 re re)))))))
(+.f64 (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (*.f64 -1/720 (pow.f64 re 6)))) (*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))))
(fma.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (fma.f64 1/24 (pow.f64 re 4) (*.f64 -1/720 (pow.f64 re 6))) (*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (fma.f64 -1/2 (*.f64 re re) 1)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (fma.f64 1/24 (pow.f64 re 4) (*.f64 -1/720 (pow.f64 re 6)))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))
(*.f64 (cos.f64 re) 1)
(cos.f64 re)
(+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/2 (*.f64 -1 (pow.f64 (sqrt.f64 1/2) 2))) im)) (*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2))))
(*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))
(*.f64 (cos.f64 re) 1)
(cos.f64 re)
(+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/4 (*.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2))) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/2 (*.f64 -1 (pow.f64 (sqrt.f64 1/2) 2))) im)) (*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))))
(fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) (+.f64 1/4 (*.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (+.f64 1/2 (neg.f64 (pow.f64 (sqrt.f64 1/2) 2)))) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))))
(*.f64 (cos.f64 re) (+.f64 (fma.f64 im 0 1) (*.f64 1/2 (*.f64 im im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (*.f64 im im) 1))
(+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/12 (+.f64 (*.f64 -1/24 (pow.f64 (sqrt.f64 1/2) 2)) (*.f64 -1/8 (pow.f64 (sqrt.f64 1/2) 2)))) (pow.f64 im 3))) (+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/4 (*.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2))) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) (*.f64 (+.f64 1/2 (*.f64 -1 (pow.f64 (sqrt.f64 1/2) 2))) im)) (*.f64 (cos.f64 re) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2))))))
(fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) (+.f64 1/4 (*.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (+.f64 1/2 (neg.f64 (pow.f64 (sqrt.f64 1/2) 2)))) (+.f64 1/2 (pow.f64 (sqrt.f64 1/2) 2)))))
(*.f64 (cos.f64 re) (+.f64 (fma.f64 im 0 1) (*.f64 1/2 (*.f64 im im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (*.f64 im im) 1))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (exp.f64 im)) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 (pow.f64 (sqrt.f64 1/2) 2) (exp.f64 im))) (cos.f64 re))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))
(sqrt.f64 1/2)
(+.f64 (*.f64 -1/2 (*.f64 (sqrt.f64 1/2) im)) (sqrt.f64 1/2))
(fma.f64 -1/2 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 1/2))
(*.f64 (+.f64 (*.f64 im -1/2) 1) (sqrt.f64 1/2))
(+.f64 (*.f64 -1/2 (*.f64 (sqrt.f64 1/2) im)) (+.f64 (sqrt.f64 1/2) (*.f64 1/8 (*.f64 (sqrt.f64 1/2) (pow.f64 im 2)))))
(+.f64 (fma.f64 -1/2 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 1/2)) (*.f64 1/8 (*.f64 (sqrt.f64 1/2) (*.f64 im im))))
(fma.f64 -1/2 (*.f64 (sqrt.f64 1/2) im) (fma.f64 1/8 (*.f64 (sqrt.f64 1/2) (*.f64 im im)) (sqrt.f64 1/2)))
(+.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 1/2) (+.f64 (*.f64 im -1/2) (*.f64 im (*.f64 im 1/8)))))
(+.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 1/2) (*.f64 im (+.f64 -1/2 (*.f64 1/8 im)))))
(+.f64 (*.f64 -1/48 (*.f64 (sqrt.f64 1/2) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (*.f64 (sqrt.f64 1/2) im)) (+.f64 (sqrt.f64 1/2) (*.f64 1/8 (*.f64 (sqrt.f64 1/2) (pow.f64 im 2))))))
(fma.f64 -1/48 (*.f64 (sqrt.f64 1/2) (pow.f64 im 3)) (+.f64 (fma.f64 -1/2 (*.f64 (sqrt.f64 1/2) im) (sqrt.f64 1/2)) (*.f64 1/8 (*.f64 (sqrt.f64 1/2) (*.f64 im im)))))
(fma.f64 -1/48 (*.f64 (sqrt.f64 1/2) (pow.f64 im 3)) (fma.f64 -1/2 (*.f64 (sqrt.f64 1/2) im) (fma.f64 1/8 (*.f64 (sqrt.f64 1/2) (*.f64 im im)) (sqrt.f64 1/2))))
(fma.f64 (sqrt.f64 1/2) (*.f64 -1/48 (pow.f64 im 3)) (+.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 1/2) (+.f64 (*.f64 im -1/2) (*.f64 im (*.f64 im 1/8))))))
(+.f64 (sqrt.f64 1/2) (*.f64 (sqrt.f64 1/2) (+.f64 (*.f64 im (+.f64 -1/2 (*.f64 1/8 im))) (*.f64 -1/48 (pow.f64 im 3)))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 (neg.f64 im))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 (neg.f64 im))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 (neg.f64 im))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 (neg.f64 im))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 (neg.f64 im))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 (neg.f64 im))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 (neg.f64 im))))
(*.f64 (sqrt.f64 (/.f64 1 (exp.f64 im))) (sqrt.f64 1/2))
(*.f64 (sqrt.f64 1/2) (sqrt.f64 (exp.f64 (neg.f64 im))))

localize5.0ms (0.1%)

Compiler

Compiled 12 to 6 computations (50% saved)

localize14.0ms (0.2%)

Compiler

Compiled 17 to 11 computations (35.3% saved)

localize12.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.1b
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
0.1b
(*.f64 im (*.f64 1/2 (cos.f64 re)))
Compiler

Compiled 25 to 13 computations (48% saved)

series7.0ms (0.1%)

Counts
2 → 48
Calls

12 calls:

TimeVariablePointExpression
1.0ms
re
@0
(*.f64 im (*.f64 1/2 (cos.f64 re)))
1.0ms
im
@0
(*.f64 im (*.f64 1/2 (cos.f64 re)))
1.0ms
re
@inf
(*.f64 im (*.f64 1/2 (cos.f64 re)))
1.0ms
re
@-inf
(*.f64 im (*.f64 1/2 (cos.f64 re)))
1.0ms
im
@inf
(*.f64 im (*.f64 1/2 (cos.f64 re)))

rewrite63.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
757×pow1_binary64
695×add-log-exp_binary64
695×log1p-expm1-u_binary64
695×expm1-log1p-u_binary64
681×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0821
116121
2189621
Stop Event
node limit
Counts
2 → 26
Calls
Call 1
Inputs
(*.f64 im (*.f64 1/2 (cos.f64 re)))
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 im (*.f64 1/2 (cos.f64 re)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (*.f64 1/2 (cos.f64 re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 im (*.f64 1/2 (cos.f64 re))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 im (*.f64 1/2 (cos.f64 re)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 im (*.f64 1/2 (cos.f64 re)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 im (*.f64 1/2 (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 im (*.f64 1/2 (cos.f64 re))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 im 3) (pow.f64 (*.f64 1/2 (cos.f64 re)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (*.f64 1/2 (cos.f64 re)) 3) (pow.f64 im 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 im (*.f64 1/2 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 im (*.f64 1/2 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 im (*.f64 1/2 (cos.f64 re)))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re)))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (sqrt.f64 (*.f64 1/2 (cos.f64 re)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (*.f64 im im)) (*.f64 1/2 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 im 3) (pow.f64 (*.f64 im (*.f64 1/2 (cos.f64 re))) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (*.f64 im (*.f64 1/2 (cos.f64 re))) 3) (pow.f64 im 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))))))))

simplify161.0ms (1.7%)

Algorithm
egg-herbie
Rules
1882×fma-def_binary64
911×unswap-sqr_binary64
602×sqr-pow_binary64
417×*-commutative_binary64
324×pow-sqr_binary64
Iterations

Useful iterations: 8 (0.0ms)

IterNodesCost
042602
1113585
2326556
31226556
42175556
52517556
62691556
72827556
82968548
94777548
106423548
116746548
127178548
137675548
Stop Event
node limit
Counts
74 → 44
Calls
Call 1
Inputs
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 im)
(+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) im)) (*.f64 1/2 im))
(+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/2 im) (*.f64 1/48 (*.f64 (pow.f64 re 4) im))))
(+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) im)) (+.f64 (*.f64 1/2 im) (*.f64 1/48 (*.f64 (pow.f64 re 4) im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))))
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
Outputs
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 im)
(+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) im)) (*.f64 1/2 im))
(fma.f64 -1/4 (*.f64 im (*.f64 re re)) (*.f64 1/2 im))
(*.f64 im (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))))
(*.f64 im (fma.f64 -1/4 (*.f64 re re) 1/2))
(*.f64 im (fma.f64 re (*.f64 re -1/4) 1/2))
(+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/2 im) (*.f64 1/48 (*.f64 (pow.f64 re 4) im))))
(fma.f64 -1/4 (*.f64 im (*.f64 re re)) (fma.f64 1/2 im (*.f64 1/48 (*.f64 im (pow.f64 re 4)))))
(fma.f64 -1/4 (*.f64 (*.f64 im re) re) (*.f64 im (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 im (+.f64 (*.f64 re (*.f64 re -1/4)) (fma.f64 1/48 (pow.f64 re 4) 1/2)))
(*.f64 im (+.f64 (*.f64 1/48 (pow.f64 re 4)) (fma.f64 -1/4 (*.f64 re re) 1/2)))
(*.f64 im (fma.f64 re (*.f64 re (fma.f64 re (*.f64 re 1/48) -1/4)) 1/2))
(*.f64 im (fma.f64 re (*.f64 re -1/4) (fma.f64 1/48 (pow.f64 re 4) 1/2)))
(+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) im)) (+.f64 (*.f64 1/2 im) (*.f64 1/48 (*.f64 (pow.f64 re 4) im)))))
(fma.f64 -1/4 (*.f64 im (*.f64 re re)) (fma.f64 -1/1440 (*.f64 im (pow.f64 re 6)) (fma.f64 1/2 im (*.f64 1/48 (*.f64 im (pow.f64 re 4))))))
(fma.f64 -1/4 (*.f64 (*.f64 im re) re) (fma.f64 -1/1440 (*.f64 im (pow.f64 re 6)) (*.f64 im (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4))))))
(*.f64 im (+.f64 (fma.f64 1/48 (pow.f64 re 4) 1/2) (fma.f64 -1/4 (*.f64 re re) (*.f64 -1/1440 (pow.f64 re 6)))))
(*.f64 im (+.f64 (fma.f64 -1/1440 (pow.f64 re 6) 1/2) (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 im (fma.f64 re (*.f64 re -1/4) (fma.f64 1/48 (pow.f64 re 4) (fma.f64 -1/1440 (pow.f64 re 6) 1/2))))
(*.f64 im (fma.f64 (*.f64 re re) (fma.f64 re (*.f64 re 1/48) -1/4) (fma.f64 -1/1440 (pow.f64 re 6) 1/2)))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) im))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (*.f64 im im))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))
(fma.f64 1/2 (*.f64 im im) (*.f64 -1/4 (*.f64 (*.f64 re re) (*.f64 im im))))
(*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))))
(*.f64 im (*.f64 im (fma.f64 -1/4 (*.f64 re re) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 -1/4 (*.f64 re re) 1/2))
(*.f64 (*.f64 im im) (fma.f64 re (*.f64 re -1/4) 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))))
(fma.f64 1/2 (*.f64 im im) (fma.f64 1/48 (*.f64 (pow.f64 re 4) (*.f64 im im)) (*.f64 -1/4 (*.f64 (*.f64 re re) (*.f64 im im)))))
(fma.f64 1/2 (*.f64 im im) (*.f64 (*.f64 im im) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (*.f64 im im) (+.f64 (*.f64 1/48 (pow.f64 re 4)) (fma.f64 -1/4 (*.f64 re re) 1/2)))
(*.f64 im (*.f64 im (+.f64 (*.f64 1/48 (pow.f64 re 4)) (fma.f64 -1/4 (*.f64 re re) 1/2))))
(*.f64 im (*.f64 im (fma.f64 re (*.f64 re (fma.f64 re (*.f64 re 1/48) -1/4)) 1/2)))
(*.f64 (*.f64 im im) (fma.f64 re (*.f64 re -1/4) (fma.f64 1/48 (pow.f64 re 4) 1/2)))
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))))
(fma.f64 -1/1440 (*.f64 (pow.f64 re 6) (*.f64 im im)) (fma.f64 1/2 (*.f64 im im) (fma.f64 1/48 (*.f64 (pow.f64 re 4) (*.f64 im im)) (*.f64 -1/4 (*.f64 (*.f64 re re) (*.f64 im im))))))
(+.f64 (*.f64 (*.f64 im im) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4)))) (*.f64 (*.f64 im im) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) 1/2)))
(*.f64 (*.f64 im im) (+.f64 (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4))) (fma.f64 -1/1440 (pow.f64 re 6) 1/2)))
(*.f64 (*.f64 im im) (+.f64 (fma.f64 -1/1440 (pow.f64 re 6) 1/2) (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (*.f64 im im) (fma.f64 re (*.f64 re -1/4) (fma.f64 1/48 (pow.f64 re 4) (fma.f64 -1/1440 (pow.f64 re 6) 1/2))))
(*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) (fma.f64 re (*.f64 re 1/48) -1/4) (fma.f64 -1/1440 (pow.f64 re 6) 1/2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))

localize19.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
0.1b
(*.f64 (cos.f64 re) (*.f64 im im))
Compiler

Compiled 48 to 18 computations (62.5% saved)

series4.0ms (0%)

Counts
2 → 48
Calls

12 calls:

TimeVariablePointExpression
0.0ms
re
@0
(*.f64 (cos.f64 re) (*.f64 im im))
0.0ms
re
@0
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
0.0ms
im
@-inf
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
0.0ms
re
@-inf
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
0.0ms
im
@inf
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))

rewrite68.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
872×prod-diff_binary64
481×log-prod_binary64
372×fma-def_binary64
258×pow2_binary64
188×fma-neg_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01124
124624
2303424
Stop Event
node limit
Counts
2 → 109
Calls
Call 1
Inputs
(*.f64 (cos.f64 re) (*.f64 im im))
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (*.f64 im im))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) (*.f64 im im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 0 (neg.f64 (*.f64 (cos.f64 re) (*.f64 im im)))) (/.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2)) (neg.f64 (*.f64 (cos.f64 re) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (neg.f64 (*.f64 (cos.f64 re) (*.f64 im im))) (neg.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2)) (*.f64 (cos.f64 re) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2))) (neg.f64 (*.f64 (cos.f64 re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3)) (neg.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (neg.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2)))) (neg.f64 (neg.f64 (*.f64 (cos.f64 re) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) -1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (neg.f64 (*.f64 (cos.f64 re) (*.f64 im im))) (neg.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2)))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (cos.f64 re)) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (*.f64 im im) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im (*.f64 (cos.f64 re) im) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) (cos.f64 re) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (cos.f64 re) (*.f64 im im)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) (/.f64 1 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 im 4)) (*.f64 (pow.f64 (cbrt.f64 im) 2) (cos.f64 re)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 2) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 2) (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (*.f64 (cbrt.f64 (cos.f64 re)) (*.f64 im im)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) (*.f64 im (sqrt.f64 (cos.f64 re))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) (*.f64 im im)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (neg.f64 (*.f64 (pow.f64 im 4) (pow.f64 (cos.f64 re) 2))) (/.f64 1 (neg.f64 (*.f64 (cos.f64 re) (*.f64 im im)))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) im) im 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (cbrt.f64 (pow.f64 im 4))) (pow.f64 (cbrt.f64 im) 2) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) (pow.f64 (cbrt.f64 (cos.f64 re)) 2)) (cbrt.f64 (cos.f64 re)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) (sqrt.f64 (cos.f64 re))) (sqrt.f64 (cos.f64 re)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 (cos.f64 re) im) 1) im 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 (cos.f64 re) im) (pow.f64 (cbrt.f64 im) 2)) (cbrt.f64 im) 0)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 (cos.f64 re) im) (sqrt.f64 im)) (sqrt.f64 im) 0)))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2) (fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (neg.f64 (cos.f64 re)))) (/.f64 (pow.f64 (cos.f64 re) 2) (fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) (pow.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 2) (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) (sqrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) 1/8 (pow.f64 (cos.f64 re) 3)) (/.f64 1 (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2) (pow.f64 (cos.f64 re) 2)) (/.f64 1 (fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2)) (fma.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) 1/8 (pow.f64 (cos.f64 re) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (neg.f64 (cos.f64 re))) (-.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2) (pow.f64 (cos.f64 re) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) 1/8 (pow.f64 (cos.f64 re) 3)) (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) 1/8 (pow.f64 (cos.f64 re) 3)) (+.f64 (pow.f64 (cos.f64 re) 2) (-.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2) (*.f64 (cos.f64 re) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2) (pow.f64 (cos.f64 re) 2)) (fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (neg.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (fma.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) 1/8 (pow.f64 (cos.f64 re) 3))) (neg.f64 (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2) (pow.f64 (cos.f64 re) 2))) (neg.f64 (fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (neg.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (cos.f64 re) 2) (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2)) (-.f64 (cos.f64 re) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (cos.f64 re) (-.f64 (cos.f64 re) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2)) (fma.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 3) 1/8 (pow.f64 (cos.f64 re) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (neg.f64 (cos.f64 re))) (-.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 2) (pow.f64 (cos.f64 re) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (cos.f64 re))) (sqrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (cos.f64 re)) (+.f64 1 (expm1.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (cos.f64 re))) (+.f64 1 (expm1.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))) (exp.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (sqrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (*.f64 im im))) (+.f64 1 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))) (+.f64 1 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) 1 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 1 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 re) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 2) (*.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (cos.f64 re)) (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (cbrt.f64 (cos.f64 re)) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) (pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) 2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) 2) (cbrt.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) (*.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)) (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) (sqrt.f64 1/2)) (*.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) (sqrt.f64 1/2)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) im) (*.f64 im 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) 2)) (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im im))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (*.f64 im (sqrt.f64 (cos.f64 re)))) (*.f64 im (sqrt.f64 (cos.f64 re))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (*.f64 (cos.f64 re) im)) im (cos.f64 re))))))

simplify91.0ms (1%)

Algorithm
egg-herbie
Rules
840×unswap-sqr_binary64
697×distribute-lft-out_binary64
628×associate-+r+_binary64
365×distribute-rgt-out_binary64
353×*-commutative_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
053690
1139672
2444620
31925617
44099617
56815617
67230617
Stop Event
node limit
Counts
157 → 132
Calls
Call 1
Inputs
(pow.f64 im 2)
(+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))))
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) (*.f64 -1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 2))))))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2))))
(+.f64 1 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 1/48 (pow.f64 im 2)))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2)))))
(+.f64 1 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 1/48 (pow.f64 im 2)))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2)) (*.f64 (-.f64 (*.f64 -1/1440 (pow.f64 im 2)) 1/720) (pow.f64 re 6))))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
Outputs
(pow.f64 im 2)
(*.f64 im im)
(+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))
(+.f64 (*.f64 im im) (*.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re))))
(*.f64 (+.f64 (*.f64 (*.f64 -1/2 re) re) 1) (*.f64 im im))
(*.f64 (*.f64 im im) (fma.f64 -1/2 (*.f64 re re) 1))
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))))
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (+.f64 (*.f64 im im) (*.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re)))))
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (*.f64 (+.f64 (*.f64 (*.f64 -1/2 re) re) 1) (*.f64 im im)))
(*.f64 (*.f64 im im) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (*.f64 1/24 (pow.f64 re 4))))
(*.f64 (*.f64 im im) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 re re) 1)))
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) (*.f64 -1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 2))))))
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (+.f64 (*.f64 im im) (fma.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re)) (*.f64 -1/720 (*.f64 (*.f64 im im) (pow.f64 re 6))))))
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (fma.f64 im im (*.f64 (*.f64 im im) (+.f64 (*.f64 (*.f64 -1/2 re) re) (*.f64 -1/720 (pow.f64 re 6))))))
(fma.f64 im im (*.f64 (*.f64 im im) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 -1/720 (pow.f64 re 6) (*.f64 -1/2 (*.f64 re re))))))
(*.f64 (*.f64 im im) (+.f64 (fma.f64 1/24 (pow.f64 re 4) 1) (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6)))))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.f64 (*.f64 im im) (cos.f64 re))
(*.f64 im (*.f64 im (cos.f64 re)))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (*.f64 (*.f64 im im) 1/2))
(fma.f64 (*.f64 im im) 1/2 1)
(fma.f64 im (*.f64 im 1/2) 1)
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2))))
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 (*.f64 re re) (fma.f64 -1/4 (*.f64 im im) -1/2))))
(+.f64 1 (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) (*.f64 im (*.f64 im 1/2))))
(fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 im (*.f64 im -1/4) -1/2) 1))
(fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) 1))
(+.f64 1 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 1/48 (pow.f64 im 2)))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2)))))
(+.f64 1 (fma.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (*.f64 im im) 1/48)) (fma.f64 1/2 (*.f64 im im) (*.f64 (*.f64 re re) (fma.f64 -1/4 (*.f64 im im) -1/2)))))
(+.f64 1 (fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) (*.f64 im (*.f64 im 1/2)))))
(fma.f64 (pow.f64 re 4) (fma.f64 im (*.f64 im 1/48) 1/24) (fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 im (*.f64 im -1/4) -1/2) 1)))
(fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) 1)))
(+.f64 1 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 1/48 (pow.f64 im 2)))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 (-.f64 (*.f64 -1/4 (pow.f64 im 2)) 1/2) (pow.f64 re 2)) (*.f64 (-.f64 (*.f64 -1/1440 (pow.f64 im 2)) 1/720) (pow.f64 re 6))))))
(+.f64 1 (fma.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (*.f64 im im) 1/48)) (fma.f64 1/2 (*.f64 im im) (fma.f64 (fma.f64 -1/4 (*.f64 im im) -1/2) (*.f64 re re) (*.f64 (pow.f64 re 6) (fma.f64 -1/1440 (*.f64 im im) -1/720))))))
(+.f64 1 (fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (fma.f64 (*.f64 im im) 1/2 (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) (*.f64 (pow.f64 re 6) (fma.f64 (*.f64 im im) -1/1440 -1/720))))))
(+.f64 (fma.f64 (pow.f64 re 6) (fma.f64 (*.f64 im im) -1/1440 -1/720) (fma.f64 (*.f64 re re) (fma.f64 im (*.f64 im -1/4) -1/2) (*.f64 (*.f64 im im) 1/2))) (fma.f64 (pow.f64 re 4) (fma.f64 im (*.f64 im 1/48) 1/24) 1))
(+.f64 (fma.f64 im (*.f64 im 1/2) (fma.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2) 1)) (fma.f64 (pow.f64 re 6) (fma.f64 im (*.f64 im -1/1440) -1/720) (*.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24))))
(+.f64 (fma.f64 (*.f64 im im) 1/2 1) (fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (fma.f64 (pow.f64 re 6) (fma.f64 im (*.f64 im -1/1440) -1/720) (*.f64 (*.f64 re re) (fma.f64 (*.f64 im im) -1/4 -1/2)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 (*.f64 (*.f64 im im) (cos.f64 re)) 1/2)
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))
(*.f64 im (*.f64 (*.f64 im 1/2) (cos.f64 re)))
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 (*.f64 (*.f64 im im) (cos.f64 re)) 1/2)
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))
(*.f64 im (*.f64 (*.f64 im 1/2) (cos.f64 re)))
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re))
(fma.f64 (*.f64 im (*.f64 im (cos.f64 re))) 1/2 (cos.f64 re))
(*.f64 (fma.f64 im (*.f64 im 1/2) 1) (cos.f64 re))
(*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))
(*.f64 (cos.f64 re) (fma.f64 (*.f64 im im) 1/2 1))

eval300.0ms (3.2%)

Compiler

Compiled 7510 to 4399 computations (41.4% saved)

prune152.0ms (1.6%)

Pruning

17 alts after pruning (7 fresh and 10 done)

PrunedKeptTotal
New4300430
Fresh077
Picked011
Done099
Total43017447
Error
0b
Counts
447 → 17
Alt Table
Click to see full alt table
StatusErrorProgram
61.5b
(*.f64 1/2 (*.f64 im im))
1.4b
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
1.5b
(cos.f64 re)
29.4b
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
0.1b
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (log1p.f64 (expm1.f64 (cos.f64 re))))
61.7b
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
29.9b
1
61.8b
(*.f64 1/720 (pow.f64 im 6))
1.1b
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
1.0b
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
0.0b
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
61.2b
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
1.8b
(log.f64 (exp.f64 (cos.f64 re)))
0.1b
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (expm1.f64 (log1p.f64 (cos.f64 re))))
0.0b
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
1.8b
(-.f64 (+.f64 1 (cos.f64 re)) 1)
1.8b
(+.f64 (+.f64 (cos.f64 re) -1) 1)
Compiler

Compiled 161 to 127 computations (21.1% saved)

regimes249.0ms (2.6%)

Counts
29 → 1
Calls
Call 1
Inputs
1
(*.f64 1/2 2)
(*.f64 1/2 (*.f64 im im))
(cos.f64 re)
(*.f64 1/720 (pow.f64 im 6))
(+.f64 (+.f64 (cos.f64 re) -1) 1)
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 1 (cos.f64 re)) 1)
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 1/2 (*.f64 im im)) (+.f64 1 (*.f64 1/24 (pow.f64 im 4)))))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/720 (pow.f64 im 6))) (*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 im im) 1/24)))))
(log.f64 (exp.f64 (cos.f64 re)))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) 1/2))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (log1p.f64 (expm1.f64 (cos.f64 re))))
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (expm1.f64 (log1p.f64 (cos.f64 re))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))
(+.f64 (*.f64 (*.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))
(*.f64 (*.f64 1/2 (expm1.f64 (log1p.f64 (cos.f64 re)))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (log.f64 (exp.f64 (cos.f64 re)))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (pow.f64 (sqrt.f64 (/.f64 1/2 (exp.f64 im))) 2)))
Outputs
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
Calls

9 calls:

76.0ms
(*.f64 1/2 (cos.f64 re))
33.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
28.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
26.0ms
(*.f64 1/2 (cos.f64 re))
26.0ms
(cos.f64 re)
Results
ErrorSegmentsBranch
0.0b1re
0.0b1im
0.0b1(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
0.0b1(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
0.0b1(*.f64 1/2 (cos.f64 re))
0.0b1(*.f64 1/2 (cos.f64 re))
0.0b1(cos.f64 re)
0.0b1(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
0.0b1(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
Compiler

Compiled 334 to 194 computations (41.9% saved)

regimes44.0ms (0.5%)

Counts
14 → 1
Calls
Call 1
Inputs
1
(*.f64 1/2 2)
(*.f64 1/2 (*.f64 im im))
(cos.f64 re)
(*.f64 1/720 (pow.f64 im 6))
(+.f64 (+.f64 (cos.f64 re) -1) 1)
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 1 (cos.f64 re)) 1)
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re)))
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
Outputs
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
Calls

5 calls:

9.0ms
re
8.0ms
im
8.0ms
(*.f64 1/2 (cos.f64 re))
8.0ms
(cos.f64 re)
7.0ms
(*.f64 1/2 (cos.f64 re))
Results
ErrorSegmentsBranch
1.1b1re
1.1b1im
1.1b1(*.f64 1/2 (cos.f64 re))
1.1b1(*.f64 1/2 (cos.f64 re))
1.1b1(cos.f64 re)
Compiler

Compiled 110 to 72 computations (34.5% saved)

regimes39.0ms (0.4%)

Counts
10 → 1
Calls
Call 1
Inputs
1
(*.f64 1/2 2)
(*.f64 1/2 (*.f64 im im))
(cos.f64 re)
(*.f64 1/720 (pow.f64 im 6))
(+.f64 (+.f64 (cos.f64 re) -1) 1)
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 1 (cos.f64 re)) 1)
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
Outputs
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
Calls

5 calls:

9.0ms
re
8.0ms
(cos.f64 re)
7.0ms
(*.f64 1/2 (cos.f64 re))
6.0ms
im
5.0ms
(*.f64 1/2 (cos.f64 re))
Results
ErrorSegmentsBranch
1.4b1re
1.4b1im
1.4b1(*.f64 1/2 (cos.f64 re))
1.4b1(*.f64 1/2 (cos.f64 re))
1.4b1(cos.f64 re)
Compiler

Compiled 74 to 51 computations (31.1% saved)

regimes40.0ms (0.4%)

Counts
9 → 1
Calls
Call 1
Inputs
1
(*.f64 1/2 2)
(*.f64 1/2 (*.f64 im im))
(cos.f64 re)
(*.f64 1/720 (pow.f64 im 6))
(+.f64 (+.f64 (cos.f64 re) -1) 1)
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 1 (cos.f64 re)) 1)
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
Outputs
(cos.f64 re)
Calls

5 calls:

12.0ms
im
8.0ms
(*.f64 1/2 (cos.f64 re))
6.0ms
re
6.0ms
(cos.f64 re)
5.0ms
(*.f64 1/2 (cos.f64 re))
Results
ErrorSegmentsBranch
1.5b1re
1.5b1im
1.5b1(*.f64 1/2 (cos.f64 re))
1.5b1(*.f64 1/2 (cos.f64 re))
1.5b1(cos.f64 re)
Compiler

Compiled 66 to 48 computations (27.3% saved)

regimes10.0ms (0.1%)

Accuracy

Total -31.8b remaining (-106.5%)

Threshold costs -31.8b (-106.5%)

Counts
3 → 1
Calls
Call 1
Inputs
1
(*.f64 1/2 2)
(*.f64 1/2 (*.f64 im im))
Outputs
1
Calls

2 calls:

5.0ms
im
3.0ms
re
Results
ErrorSegmentsBranch
29.9b1re
29.9b1im
Compiler

Compiled 17 to 13 computations (23.5% saved)

simplify5.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
+-commutative_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01745
12645
Stop Event
fuel
saturated
Calls
Call 1
Inputs
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
(cos.f64 re)
1
Outputs
(*.f64 (*.f64 1/2 (*.f64 2 (cosh.f64 im))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(+.f64 (*.f64 1/2 (*.f64 im im)) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)))
(cos.f64 re)
1
Compiler

Compiled 40 to 31 computations (22.5% saved)

soundness163.0ms (1.7%)

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

Useful iterations: 3 (0.0ms)

IterNodesCost
01118
12818
27018
313217
419217
534617
678017
7135117
8396717
9449017
10546117
11602417
12705817
Stop Event
node limit
Compiler

Compiled 124 to 94 computations (24.2% saved)

end38.0ms (0.4%)

Compiler

Compiled 32 to 19 computations (40.6% saved)

Profiling

Loading profile data...