Details

Time bar (total: 10.2s)

analyze223.0ms (2.2%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
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)

sample5.4s (53%)

Results
1.9s2052×body1024valid
1.4s1984×body1024invalid
1.1s5187×body256valid
430.0ms1013×body512valid
309.0ms1003×body512invalid
243.0ms1480×body256invalid
5.0msbody2048valid

preprocess117.0ms (1.1%)

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)

simplify90.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)

prune1.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New112
Fresh011
Picked000
Done000
Total123
Error
0.0b
Counts
3 → 1
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)))
Compiler

Compiled 13 to 10 computations (23.1% saved)

localize14.0ms (0.1%)

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)

series8.0ms (0.1%)

Counts
3 → 40
Calls

12 calls:

TimeVariablePointExpression
2.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)))
1.0ms
re
@0
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0ms
im
@0
(*.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)))

rewrite181.0ms (1.8%)

Algorithm
egg-rewrite
egg-rewrite-iter-limit
batch-egg-rewrite
Rules
416×log1p-udef_binary64
274×associate-*r*_binary64
272×pow1_binary64
262×add-sqr-sqrt_binary64
257×*-un-lft-identity_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01131
123331
2378031
01118
123318
2378018
01118
0610
112610
2208210
0610
033
1583
26733
374123
Stop Event
node limit
iter limit
unsound
iter limit
unsound
unsound
Counts
3 → 68
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))
(cos.f64 re)
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))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (cos.f64 re) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (cos.f64 re))) 2)) (log.f64 (cbrt.f64 (exp.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (cos.f64 re)))) (log.f64 (sqrt.f64 (exp.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 (+.f64 re 1)) (cos.f64 1)) (*.f64 (sin.f64 (+.f64 re 1)) (sin.f64 1)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (cos.f64 re) 1) 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 *.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2) (*.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) (pow.f64 (cbrt.f64 (cos.f64 re)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 4)) (*.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2) (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cos.f64 re) 1/6) (*.f64 (pow.f64 (cos.f64 re) 1/6) (pow.f64 (cbrt.f64 (cos.f64 re)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cos.f64 re) 1/4) (sqrt.f64 (pow.f64 (cos.f64 re) 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cos.f64 re) 1/4) (*.f64 (pow.f64 (cos.f64 re) 1/4) (sqrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (cos.f64 re)) (pow.f64 (cos.f64 re) 1/4)) (pow.f64 (cos.f64 re) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 4) 2)) (cbrt.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 5/2)) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 5)) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cos.f64 re) 3/2)) (pow.f64 (cos.f64 re) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 4) 2) 1/3) (cbrt.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cos.f64 re) 5/2) 1/3) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (cos.f64 re)) (cbrt.f64 (cos.f64 re))) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (cos.f64 re)) (cbrt.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 4))) (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2)) (cbrt.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) (pow.f64 (cos.f64 re) 1/6)) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (+.f64 (cos.f64 (+.f64 re re)) (cos.f64 0))) (sqrt.f64 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 (cos.f64 re) 1) 3) 1) (+.f64 (*.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 /.f64 (-.f64 (*.f64 (+.f64 (cos.f64 re) 1) (+.f64 (cos.f64 re) 1)) 1) (+.f64 (+.f64 (cos.f64 re) 1) 1))))) (#(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) 2) 1/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 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 (E.f64) (log.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (cos.f64 re))) 2)) (cbrt.f64 (log.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (cos.f64 re)))) (sqrt.f64 (log.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cos.f64 re) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (cos.f64 re))))) (#(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)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (cos.f64 re))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (cos.f64 re))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (cos.f64 re))) 2))))))

simplify77.0ms (0.7%)

Algorithm
egg-herbie
Rules
640×associate-+l+_binary64
634×distribute-rgt-out_binary64
487×distribute-lft-out_binary64
431×associate-+r+_binary64
402×fma-def_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
075721
1216654
2670616
32502611
45326609
57596609
Stop Event
node limit
Counts
108 → 102
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)))
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
(*.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 (*.f64 -1/4 (*.f64 re re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 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 (*.f64 1/48 (pow.f64 re 4)) (fma.f64 -1/4 (*.f64 re re) 1/2)))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (fma.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/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4))) (fma.f64 -1/1440 (pow.f64 re 6) 1/2)))
(*.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 im (*.f64 1/2 im))))
(*.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)))))
(+.f64 (fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (cos.f64 re)) (*.f64 (*.f64 1/24 (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 (*.f64 im (*.f64 1/2 im))) (*.f64 1/24 (pow.f64 im 4))))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.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 (*.f64 (+.f64 (*.f64 1/24 (pow.f64 im 4)) 1) (cos.f64 re)) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/720 (pow.f64 im 6)) (*.f64 1/2 (*.f64 im im)))))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 1/2 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 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 (+.f64 2 (*.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 im im (fma.f64 (pow.f64 im 4) 1/12 2))
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6)))))
(+.f64 (+.f64 2 (*.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 im im (*.f64 (pow.f64 im 6) 1/360))))
(fma.f64 im im (+.f64 (*.f64 (pow.f64 im 4) 1/12) (fma.f64 (pow.f64 im 6) 1/360 2)))
(+.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)))
1
(+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))
(+.f64 1 (*.f64 (*.f64 re re) -1/2))
(fma.f64 (*.f64 re re) -1/2 1)
(fma.f64 re (*.f64 re -1/2) 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 (*.f64 re re) -1/2)))
(fma.f64 (pow.f64 re 4) 1/24 (fma.f64 (*.f64 re re) -1/2 1))
(fma.f64 (pow.f64 re 4) 1/24 (fma.f64 re (*.f64 re -1/2) 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 (pow.f64 re 6) -1/720))))
(+.f64 (fma.f64 (pow.f64 re 4) 1/24 (fma.f64 (*.f64 re re) -1/2 1)) (*.f64 (pow.f64 re 6) -1/720))
(fma.f64 (pow.f64 re 4) 1/24 (fma.f64 re (*.f64 re -1/2) (fma.f64 (pow.f64 re 6) -1/720 1)))

eval29.0ms (0.3%)

Compiler

Compiled 1830 to 822 computations (55.1% saved)

prune22.0ms (0.2%)

Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New939102
Fresh000
Picked011
Done000
Total9310103
Error
0b
Counts
103 → 10
Alt Table
Click to see full alt table
StatusErrorProgram
60.5b
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.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))))
1.2b
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.f64 1/24 (pow.f64 im 4))))
1.8b
(cos.f64 re)
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
0.0b
(+.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
1.5b
(*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))
0.1b
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
31.9b
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
1.4b
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
1.4b
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
Compiler

Compiled 277 to 198 computations (28.5% saved)

localize19.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

Compiled 49 to 22 computations (55.1% saved)

series13.0ms (0.1%)

Counts
3 → 72
Calls

18 calls:

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

rewrite67.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
1001×pow1_binary64
927×add-log-exp_binary64
925×log1p-expm1-u_binary64
925×expm1-log1p-u_binary64
129×add-sqr-sqrt_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01244
125238
2353838
Stop Event
node limit
Counts
3 → 65
Calls
Call 1
Inputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(+.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.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) (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 1/2) (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))))))) (#(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 -.f64 (exp.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im)))) (/.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (+.f64 (*.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) (*.f64 (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (+.f64 (exp.f64 im) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im))))) (cbrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))) 2)) (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (*.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (+.f64 (exp.f64 im) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im))))) (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)) (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3))) (/.f64 1 (+.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2) (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im)))) (/.f64 1 (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (exp.f64 im) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2) (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im))))) (+.f64 (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)) (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im))) (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)) (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3))) (+.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2) (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im)))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)) (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)))) (neg.f64 (+.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2) (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im))))) (neg.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 im) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im))))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im))))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (pow.f64 (exp.f64 1/2) (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 im)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.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 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 im) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) 2) (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.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) (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 1/2) (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 im (log.f64 (*.f64 1/2 (cos.f64 re)))))))))

simplify77.0ms (0.7%)

Algorithm
egg-herbie
Rules
970×fma-def_binary64
663×distribute-rgt-out_binary64
602×distribute-lft-out_binary64
484×+-commutative_binary64
342×associate-/l*_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01141362
13411184
29871096
340481033
465031029
Stop Event
node limit
Counts
137 → 103
Calls
Call 1
Inputs
(*.f64 1/2 (exp.f64 (neg.f64 im)))
(+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (exp.f64 (neg.f64 im)))))
(+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (exp.f64 (neg.f64 im))))))
(+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (exp.f64 (neg.f64 im)))) (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (exp.f64 (neg.f64 im)))))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (cos.f64 re))
(+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (*.f64 (cos.f64 re) im)))
(+.f64 (*.f64 1/4 (*.f64 (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/12 (*.f64 (cos.f64 re) (pow.f64 im 3))) (+.f64 (*.f64 1/4 (*.f64 (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 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 1/2 (*.f64 (exp.f64 (*.f64 -1 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 (*.f64 -1 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 (*.f64 -1 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (exp.f64 (*.f64 -1 im)) (cos.f64 re)))
(+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (*.f64 1/2 (exp.f64 im)))
(+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 (pow.f64 re 2) (+.f64 (*.f64 -1/4 (exp.f64 (neg.f64 im))) (*.f64 -1/4 (exp.f64 im))))))
(+.f64 (*.f64 (+.f64 (*.f64 1/48 (exp.f64 im)) (*.f64 1/48 (exp.f64 (neg.f64 im)))) (pow.f64 re 4)) (+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 (pow.f64 re 2) (+.f64 (*.f64 -1/4 (exp.f64 (neg.f64 im))) (*.f64 -1/4 (exp.f64 im)))))))
(+.f64 (*.f64 (+.f64 (*.f64 1/48 (exp.f64 im)) (*.f64 1/48 (exp.f64 (neg.f64 im)))) (pow.f64 re 4)) (+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 -1/4 (exp.f64 (neg.f64 im))) (*.f64 -1/4 (exp.f64 im)))) (*.f64 (pow.f64 re 6) (+.f64 (*.f64 -1/1440 (exp.f64 (neg.f64 im))) (*.f64 -1/1440 (exp.f64 im))))))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(cos.f64 re)
(+.f64 (cos.f64 re) (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im)))
(+.f64 (*.f64 1/2 (*.f64 (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 1/12 (cos.f64 re)) (*.f64 -1/12 (cos.f64 re))) (pow.f64 im 3)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.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 (*.f64 -1 im)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (*.f64 -1 im)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (*.f64 -1 im)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (*.f64 -1 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))))
(+.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)))
(*.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)))
Outputs
(*.f64 1/2 (exp.f64 (neg.f64 im)))
(/.f64 1/2 (exp.f64 im))
(+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (exp.f64 (neg.f64 im)))))
(fma.f64 1/2 (exp.f64 (neg.f64 im)) (*.f64 (*.f64 -1/4 (*.f64 re re)) (exp.f64 (neg.f64 im))))
(*.f64 (exp.f64 (neg.f64 im)) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))))
(*.f64 (exp.f64 (neg.f64 im)) (fma.f64 -1/4 (*.f64 re re) 1/2))
(/.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (exp.f64 im))
(+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (exp.f64 (neg.f64 im))))))
(fma.f64 1/2 (exp.f64 (neg.f64 im)) (fma.f64 1/48 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 4)) (*.f64 (*.f64 -1/4 (*.f64 re re)) (exp.f64 (neg.f64 im)))))
(+.f64 (/.f64 1/2 (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (+.f64 (*.f64 1/48 (pow.f64 re 4)) (*.f64 -1/4 (*.f64 re re)))))
(*.f64 (exp.f64 (neg.f64 im)) (+.f64 1/2 (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4)))))
(/.f64 (+.f64 1/2 (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4)))) (exp.f64 im))
(+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (exp.f64 (neg.f64 im)))) (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (exp.f64 (neg.f64 im)))))))
(fma.f64 1/2 (exp.f64 (neg.f64 im)) (fma.f64 1/48 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 4)) (fma.f64 -1/4 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 re re)) (*.f64 -1/1440 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 6))))))
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 -1/1440 (pow.f64 re 6)))) (*.f64 (exp.f64 (neg.f64 im)) (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (exp.f64 (neg.f64 im)) (+.f64 (fma.f64 -1/4 (*.f64 re re) (*.f64 -1/1440 (pow.f64 re 6))) (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4)))))
(/.f64 (+.f64 (fma.f64 -1/4 (*.f64 re re) (*.f64 -1/1440 (pow.f64 re 6))) (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4)))) (exp.f64 im))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.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 im (cos.f64 re))))
(fma.f64 1/2 (cos.f64 re) (*.f64 im (*.f64 (cos.f64 re) -1/2)))
(*.f64 (cos.f64 re) (+.f64 (*.f64 im -1/2) 1/2))
(*.f64 (cos.f64 re) (+.f64 1/2 (*.f64 im -1/2)))
(+.f64 (*.f64 1/4 (*.f64 (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/4 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 1/2 (cos.f64 re) (*.f64 -1/2 (*.f64 im (cos.f64 re)))))
(fma.f64 1/4 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 1/2 (cos.f64 re) (*.f64 im (*.f64 (cos.f64 re) -1/2))))
(fma.f64 1/2 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 im -1/2) (*.f64 im (*.f64 im 1/4)))))
(*.f64 (cos.f64 re) (+.f64 1/2 (*.f64 im (+.f64 (*.f64 1/4 im) -1/2))))
(+.f64 (*.f64 -1/12 (*.f64 (cos.f64 re) (pow.f64 im 3))) (+.f64 (*.f64 1/4 (*.f64 (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/12 (*.f64 (cos.f64 re) (pow.f64 im 3)) (fma.f64 1/4 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 1/2 (cos.f64 re) (*.f64 -1/2 (*.f64 im (cos.f64 re))))))
(fma.f64 -1/12 (*.f64 (cos.f64 re) (pow.f64 im 3)) (fma.f64 1/4 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 1/2 (cos.f64 re) (*.f64 im (*.f64 (cos.f64 re) -1/2)))))
(+.f64 (*.f64 (cos.f64 re) (+.f64 (*.f64 im -1/2) 1/2)) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/4)) (*.f64 -1/12 (pow.f64 im 3)))))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1/2 (*.f64 im -1/2)) (*.f64 (*.f64 im im) (+.f64 1/4 (*.f64 -1/12 im)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 (*.f64 -1 im)) (cos.f64 re)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 (*.f64 -1 im)) (cos.f64 re)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 (*.f64 -1 im)) (cos.f64 re)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 (*.f64 -1 im)) (cos.f64 re)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(+.f64 (*.f64 1/2 (exp.f64 (neg.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 (neg.f64 im))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 (pow.f64 re 2) (+.f64 (*.f64 -1/4 (exp.f64 (neg.f64 im))) (*.f64 -1/4 (exp.f64 im))))))
(fma.f64 1/2 (exp.f64 (neg.f64 im)) (fma.f64 1/2 (exp.f64 im) (*.f64 (*.f64 re re) (*.f64 -1/4 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))
(fma.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 (*.f64 re re) (fma.f64 -1/4 (exp.f64 im) (/.f64 -1/4 (exp.f64 im)))))
(*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (fma.f64 -1/4 (*.f64 re re) 1/2))
(+.f64 (*.f64 (+.f64 (*.f64 1/48 (exp.f64 im)) (*.f64 1/48 (exp.f64 (neg.f64 im)))) (pow.f64 re 4)) (+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 (pow.f64 re 2) (+.f64 (*.f64 -1/4 (exp.f64 (neg.f64 im))) (*.f64 -1/4 (exp.f64 im)))))))
(fma.f64 (*.f64 1/48 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (pow.f64 re 4) (fma.f64 1/2 (exp.f64 (neg.f64 im)) (fma.f64 1/2 (exp.f64 im) (*.f64 (*.f64 re re) (*.f64 -1/4 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))
(fma.f64 (pow.f64 re 4) (fma.f64 1/48 (exp.f64 im) (/.f64 1/48 (exp.f64 im))) (fma.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 (*.f64 re re) (fma.f64 -1/4 (exp.f64 im) (/.f64 -1/4 (exp.f64 im))))))
(fma.f64 (pow.f64 re 4) (fma.f64 1/48 (exp.f64 im) (/.f64 1/48 (exp.f64 im))) (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (fma.f64 -1/4 (*.f64 re re) 1/2)))
(*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 1/2 (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4)))))
(+.f64 (*.f64 (+.f64 (*.f64 1/48 (exp.f64 im)) (*.f64 1/48 (exp.f64 (neg.f64 im)))) (pow.f64 re 4)) (+.f64 (*.f64 1/2 (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 (pow.f64 re 2) (+.f64 (*.f64 -1/4 (exp.f64 (neg.f64 im))) (*.f64 -1/4 (exp.f64 im)))) (*.f64 (pow.f64 re 6) (+.f64 (*.f64 -1/1440 (exp.f64 (neg.f64 im))) (*.f64 -1/1440 (exp.f64 im))))))))
(fma.f64 (*.f64 1/48 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (pow.f64 re 4) (fma.f64 1/2 (exp.f64 (neg.f64 im)) (fma.f64 1/2 (exp.f64 im) (fma.f64 (*.f64 re re) (*.f64 -1/4 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (*.f64 (pow.f64 re 6) (*.f64 -1/1440 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))
(fma.f64 (pow.f64 re 4) (fma.f64 1/48 (exp.f64 im) (/.f64 1/48 (exp.f64 im))) (fma.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (fma.f64 (*.f64 re re) (fma.f64 -1/4 (exp.f64 im) (/.f64 -1/4 (exp.f64 im))) (*.f64 (pow.f64 re 6) (fma.f64 -1/1440 (exp.f64 im) (/.f64 -1/1440 (exp.f64 im)))))))
(+.f64 (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (fma.f64 -1/4 (*.f64 re re) (*.f64 -1/1440 (pow.f64 re 6)))) (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 (fma.f64 -1/4 (*.f64 re re) (*.f64 -1/1440 (pow.f64 re 6))) (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (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 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im)))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (+.f64 (cos.f64 re) (*.f64 im (*.f64 (cos.f64 re) 0))))
(fma.f64 1/2 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 im 0 (cos.f64 re)))
(+.f64 (cos.f64 re) (fma.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)) 0))
(*.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 (*.f64 (+.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 -1/2 (cos.f64 re))) im) (*.f64 (+.f64 (*.f64 1/12 (cos.f64 re)) (*.f64 -1/12 (cos.f64 re))) (pow.f64 im 3)))))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (+.f64 (cos.f64 re) (*.f64 im (*.f64 (cos.f64 re) 0))))
(fma.f64 1/2 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 im 0 (cos.f64 re)))
(+.f64 (cos.f64 re) (fma.f64 (cos.f64 re) (*.f64 1/2 (*.f64 im im)) 0))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (neg.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (*.f64 -1 im)))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (*.f64 -1 im)))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (*.f64 -1 im)))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 (*.f64 -1 im)))))
(*.f64 1/2 (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (cos.f64 re)) (*.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 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 (*.f64 re re) (exp.f64 im))))
(*.f64 (exp.f64 im) (fma.f64 -1/4 (*.f64 re re) 1/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)))))
(fma.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 im)) (fma.f64 1/2 (exp.f64 im) (*.f64 -1/4 (*.f64 (*.f64 re re) (exp.f64 im)))))
(fma.f64 1/2 (exp.f64 im) (*.f64 (exp.f64 im) (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (exp.f64 im) (+.f64 1/2 (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4)))))
(+.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 (pow.f64 re 4) (exp.f64 im)) (fma.f64 1/2 (exp.f64 im) (fma.f64 -1/4 (*.f64 (*.f64 re re) (exp.f64 im)) (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (exp.f64 im))))))
(fma.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 im)) (fma.f64 1/2 (exp.f64 im) (fma.f64 -1/4 (*.f64 (*.f64 re re) (exp.f64 im)) (*.f64 (exp.f64 im) (*.f64 -1/1440 (pow.f64 re 6))))))
(+.f64 (*.f64 (exp.f64 im) (fma.f64 -1/4 (*.f64 re re) (*.f64 -1/1440 (pow.f64 re 6)))) (*.f64 (exp.f64 im) (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (exp.f64 im) (+.f64 (fma.f64 -1/4 (*.f64 re re) (*.f64 -1/1440 (pow.f64 re 6))) (+.f64 1/2 (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (exp.f64 im) (+.f64 (+.f64 (*.f64 1/48 (pow.f64 re 4)) (*.f64 -1/1440 (pow.f64 re 6))) (fma.f64 -1/4 (*.f64 re re) 1/2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (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 im (cos.f64 re)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (+.f64 im 1) (cos.f64 re)))
(*.f64 1/2 (fma.f64 im (cos.f64 re) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 im 1)))
(+.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 im (cos.f64 re)) (cos.f64 re))))
(fma.f64 1/2 (*.f64 (+.f64 im 1) (cos.f64 re)) (*.f64 1/4 (*.f64 im (*.f64 im (cos.f64 re)))))
(fma.f64 1/2 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/4)) (*.f64 1/2 im))))
(*.f64 (cos.f64 re) (+.f64 1/2 (*.f64 im (+.f64 1/2 (*.f64 1/4 im)))))
(*.f64 (cos.f64 re) (+.f64 1/2 (*.f64 im (+.f64 (*.f64 im 1/4) 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 im (cos.f64 re)) (cos.f64 re)))))
(fma.f64 1/4 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 1/2 (*.f64 (+.f64 im 1) (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 3) 1/12))))
(fma.f64 1/2 (fma.f64 im (cos.f64 re) (cos.f64 re)) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/4)) (*.f64 (pow.f64 im 3) 1/12))))
(*.f64 (cos.f64 re) (+.f64 (*.f64 im (+.f64 1/2 (*.f64 1/4 im))) (+.f64 1/2 (*.f64 (pow.f64 im 3) 1/12))))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1/2 (*.f64 1/2 im)) (*.f64 (*.f64 im im) (+.f64 (*.f64 im 1/12) 1/4))))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))
(*.f64 1/2 (*.f64 (exp.f64 im) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)))

localize5.0ms (0%)

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
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)))
0.0ms
im
@-inf
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))

rewrite31.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))))))))

simplify61.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)))

localize15.0ms (0.2%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
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)

series6.0ms (0.1%)

Counts
2 → 11
Calls

12 calls:

TimeVariablePointExpression
1.0ms
re
@0
(*.f64 (cos.f64 re) (pow.f64 im 2))
1.0ms
re
@inf
(*.f64 (cos.f64 re) (pow.f64 im 2))
1.0ms
im
@inf
(*.f64 (cos.f64 re) (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
re
@inf
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))

rewrite68.0ms (0.7%)

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
01024
121624
2266724
Stop Event
node limit
Counts
2 → 98
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))
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))))))

simplify76.0ms (0.7%)

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
109 → 117
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))))

localize25.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

Compiled 46 to 15 computations (67.4% saved)

series7.0ms (0.1%)

Counts
3 → 48
Calls

12 calls:

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

rewrite168.0ms (1.6%)

Algorithm
egg-rewrite-iter-limit
egg-rewrite
batch-egg-rewrite
Rules
353×pow1_binary64
347×pow1_binary64
340×add-sqr-sqrt_binary64
334×*-un-lft-identity_binary64
334×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01326
125526
2401626
045
1765
28645
053
1803
28833
01318
125518
2401518
01318
Stop Event
iter limit
unsound
node limit
node limit
unsound
Counts
3 → 98
Calls
Call 1
Inputs
(expm1.f64 (cos.f64 re))
(log1p.f64 (expm1.f64 (cos.f64 re)))
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 (cos.f64 re)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (expm1.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (expm1.f64 (cos.f64 re)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (expm1.f64 (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (expm1.f64 (cos.f64 re))))) (log.f64 (sqrt.f64 (exp.f64 (expm1.f64 (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (exp.f64 (cos.f64 re)) 3) (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) (+.f64 1 (exp.f64 (cos.f64 re))))) (/.f64 1 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) (+.f64 1 (exp.f64 (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) (+.f64 (exp.f64 (cos.f64 re)) 1)) (/.f64 1 (+.f64 (exp.f64 (cos.f64 re)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (expm1.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (cos.f64 re))) (pow.f64 (cbrt.f64 (expm1.f64 (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (expm1.f64 (cos.f64 re))) 2) (cbrt.f64 (expm1.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 (cos.f64 re))) (sqrt.f64 (expm1.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 1/4) (sqrt.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 3) -1) (/.f64 1 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) (+.f64 1 (exp.f64 (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) -1) (/.f64 1 (+.f64 (exp.f64 (cos.f64 re)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 5/2)) (pow.f64 (expm1.f64 (cos.f64 re)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (*.f64 (expm1.f64 (cos.f64 re)) (cbrt.f64 (expm1.f64 (cos.f64 re)))) 2)) (cbrt.f64 (cbrt.f64 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (expm1.f64 (cos.f64 re))) 5)) (pow.f64 (expm1.f64 (cos.f64 re)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 3/2)) (pow.f64 (expm1.f64 (cos.f64 re)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (expm1.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (*.f64 (expm1.f64 (cos.f64 re)) (cbrt.f64 (expm1.f64 (cos.f64 re)))) 2) 1/3) (cbrt.f64 (cbrt.f64 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 5/2) 1/3) (pow.f64 (expm1.f64 (cos.f64 re)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) (+.f64 1 (exp.f64 (cos.f64 re)))) (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 3) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (exp.f64 (cos.f64 re)) 1) (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 3) -1) (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) (+.f64 1 (exp.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 3) -1) (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) (-.f64 1 (*.f64 (exp.f64 (cos.f64 re)) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) -1) (+.f64 (exp.f64 (cos.f64 re)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) -1) (-.f64 (exp.f64 (cos.f64 re)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 3) -1)) (neg.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) (+.f64 1 (exp.f64 (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (exp.f64 (cos.f64 re)) 2) -1)) (neg.f64 (+.f64 (exp.f64 (cos.f64 re)) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (expm1.f64 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (expm1.f64 (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (expm1.f64 (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (log.f64 (expm1.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (expm1.f64 (cos.f64 re))))) (sqrt.f64 (log.f64 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (cbrt.f64 (pow.f64 (log.f64 (expm1.f64 (cos.f64 re))) 2))) (cbrt.f64 (log.f64 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (expm1.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (expm1.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (expm1.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (expm1.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (expm1.f64 (cos.f64 re)))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (expm1.f64 (cos.f64 re)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (expm1.f64 (cos.f64 re)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (exp.f64 (cos.f64 re)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (exp.f64 (cos.f64 re))) 2) (cbrt.f64 (exp.f64 (cos.f64 re))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (sqrt.f64 (exp.f64 (cos.f64 re))) -1)))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (cos.f64 re))) 2)) (log.f64 (cbrt.f64 (exp.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (cos.f64 re)))) (log.f64 (sqrt.f64 (exp.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 (+.f64 1 re)) (cos.f64 1)) (*.f64 (sin.f64 (+.f64 1 re)) (sin.f64 1)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (log1p.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 3)) (log.f64 (+.f64 1 (-.f64 (pow.f64 (expm1.f64 (cos.f64 re)) 2) (expm1.f64 (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 (log.f64 (-.f64 1 (pow.f64 (expm1.f64 (cos.f64 re)) 2))) (log.f64 (-.f64 1 (expm1.f64 (cos.f64 re)))))))) (#(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 *.f64 (pow.f64 (cos.f64 re) 1/4) (sqrt.f64 (pow.f64 (cos.f64 re) 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 5/2)) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) (cbrt.f64 (cos.f64 re))) 2)) (cbrt.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cos.f64 re) 3/2)) (pow.f64 (cos.f64 re) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 5)) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (*.f64 (cos.f64 re) (cbrt.f64 (cos.f64 re))) 2) 1/3) (cbrt.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cos.f64 re) 5/2) 1/3) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (+.f64 (cos.f64 (+.f64 re re)) (cos.f64 (-.f64 re re)))) (sqrt.f64 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 1 (cos.f64 re)) 3) 1) (+.f64 (*.f64 (+.f64 1 (cos.f64 re)) (+.f64 1 (cos.f64 re))) (+.f64 1 (*.f64 (+.f64 1 (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 (pow.f64 (cos.f64 re) 2) 1/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 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 (E.f64) (log.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (cos.f64 re)))) (sqrt.f64 (log.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (cbrt.f64 (pow.f64 (log.f64 (cos.f64 re)) 2))) (cbrt.f64 (log.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cos.f64 re) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (cos.f64 re))))) (#(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 exp.f64 (log.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (cos.f64 re))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (cos.f64 re))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (cos.f64 re))) 2))))))
((#(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))))))))))

simplify71.0ms (0.7%)

Algorithm
egg-herbie
Rules
708×associate-+l+_binary64
533×distribute-lft-out_binary64
492×associate-+r+_binary64
465×*-commutative_binary64
465×fma-def_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
083750
1245681
2759639
32875630
46122625
Stop Event
node limit
Counts
146 → 131
Calls
Call 1
Inputs
(-.f64 (E.f64) 1)
(-.f64 (+.f64 (E.f64) (*.f64 -1/2 (*.f64 (E.f64) (pow.f64 re 2)))) 1)
(-.f64 (+.f64 (*.f64 1/6 (*.f64 (E.f64) (pow.f64 re 4))) (+.f64 (E.f64) (*.f64 -1/2 (*.f64 (E.f64) (pow.f64 re 2))))) 1)
(-.f64 (+.f64 (*.f64 -31/720 (*.f64 (E.f64) (pow.f64 re 6))) (+.f64 (*.f64 1/6 (*.f64 (E.f64) (pow.f64 re 4))) (+.f64 (E.f64) (*.f64 -1/2 (*.f64 (E.f64) (pow.f64 re 2)))))) 1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
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)
(*.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)))))
Outputs
(-.f64 (E.f64) 1)
(expm1.f64 1)
(-.f64 (+.f64 (E.f64) (*.f64 -1/2 (*.f64 (E.f64) (pow.f64 re 2)))) 1)
(+.f64 (E.f64) (-.f64 (*.f64 (*.f64 -1/2 (E.f64)) (*.f64 re re)) 1))
(+.f64 (E.f64) (fma.f64 -1/2 (*.f64 (E.f64) (*.f64 re re)) -1))
(fma.f64 (E.f64) (*.f64 -1/2 (*.f64 re re)) (expm1.f64 1))
(fma.f64 (fma.f64 -1/2 (*.f64 re re) 1) (E.f64) -1)
(fma.f64 (E.f64) (fma.f64 -1/2 (*.f64 re re) 1) -1)
(-.f64 (+.f64 (*.f64 1/6 (*.f64 (E.f64) (pow.f64 re 4))) (+.f64 (E.f64) (*.f64 -1/2 (*.f64 (E.f64) (pow.f64 re 2))))) 1)
(+.f64 (fma.f64 1/6 (*.f64 (E.f64) (pow.f64 re 4)) (+.f64 (E.f64) (*.f64 (*.f64 -1/2 (E.f64)) (*.f64 re re)))) -1)
(+.f64 (fma.f64 1/6 (*.f64 (E.f64) (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 (E.f64) (*.f64 re re)) (E.f64))) -1)
(fma.f64 (E.f64) (*.f64 1/6 (pow.f64 re 4)) (fma.f64 (E.f64) (*.f64 -1/2 (*.f64 re re)) (expm1.f64 1)))
(fma.f64 (E.f64) (*.f64 1/6 (pow.f64 re 4)) (fma.f64 (fma.f64 -1/2 (*.f64 re re) 1) (E.f64) -1))
(fma.f64 (E.f64) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (*.f64 1/6 (pow.f64 re 4))) -1)
(-.f64 (+.f64 (*.f64 -31/720 (*.f64 (E.f64) (pow.f64 re 6))) (+.f64 (*.f64 1/6 (*.f64 (E.f64) (pow.f64 re 4))) (+.f64 (E.f64) (*.f64 -1/2 (*.f64 (E.f64) (pow.f64 re 2)))))) 1)
(+.f64 (fma.f64 -31/720 (*.f64 (E.f64) (pow.f64 re 6)) (fma.f64 1/6 (*.f64 (E.f64) (pow.f64 re 4)) (+.f64 (E.f64) (*.f64 (*.f64 -1/2 (E.f64)) (*.f64 re re))))) -1)
(+.f64 (fma.f64 -31/720 (*.f64 (E.f64) (pow.f64 re 6)) (fma.f64 1/6 (*.f64 (E.f64) (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 (E.f64) (*.f64 re re)) (E.f64)))) -1)
(fma.f64 (E.f64) (*.f64 -31/720 (pow.f64 re 6)) (fma.f64 (E.f64) (*.f64 1/6 (pow.f64 re 4)) (fma.f64 (E.f64) (*.f64 -1/2 (*.f64 re re)) (expm1.f64 1))))
(+.f64 (expm1.f64 1) (*.f64 (E.f64) (+.f64 (*.f64 1/6 (pow.f64 re 4)) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 -31/720 (pow.f64 re 6))))))
(+.f64 (*.f64 (E.f64) (+.f64 (*.f64 1/6 (pow.f64 re 4)) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (*.f64 -31/720 (pow.f64 re 6))))) -1)
(-.f64 (exp.f64 (cos.f64 re)) 1)
(expm1.f64 (cos.f64 re))
(-.f64 (exp.f64 (cos.f64 re)) 1)
(expm1.f64 (cos.f64 re))
(-.f64 (exp.f64 (cos.f64 re)) 1)
(expm1.f64 (cos.f64 re))
(-.f64 (exp.f64 (cos.f64 re)) 1)
(expm1.f64 (cos.f64 re))
(-.f64 (exp.f64 (cos.f64 re)) 1)
(expm1.f64 (cos.f64 re))
(-.f64 (exp.f64 (cos.f64 re)) 1)
(expm1.f64 (cos.f64 re))
(-.f64 (exp.f64 (cos.f64 re)) 1)
(expm1.f64 (cos.f64 re))
(-.f64 (exp.f64 (cos.f64 re)) 1)
(expm1.f64 (cos.f64 re))
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 (pow.f64 re 4) 1/24 (fma.f64 -1/2 (*.f64 re re) 1))
(fma.f64 -1/2 (*.f64 re re) (fma.f64 (pow.f64 re 4) 1/24 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 (pow.f64 re 6) -1/720))))
(+.f64 (fma.f64 -1/2 (*.f64 re re) (*.f64 (pow.f64 re 6) -1/720)) (fma.f64 (pow.f64 re 4) 1/24 1))
(fma.f64 (pow.f64 re 4) 1/24 (fma.f64 -1/2 (*.f64 re re) (fma.f64 (pow.f64 re 6) -1/720 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)
(*.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 (*.f64 -1/4 (*.f64 re re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 (*.f64 re re) -1/4)))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 (*.f64 re re) -1/4 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 re re) (+.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))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 (*.f64 re re) -1/4) (*.f64 (pow.f64 re 4) 1/48))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (fma.f64 (*.f64 re re) -1/4 (*.f64 (pow.f64 re 4) 1/48))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (fma.f64 (pow.f64 re 4) 1/48 (*.f64 (*.f64 re re) -1/4))))
(+.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 (pow.f64 re 6) (+.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 re re) (+.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 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 (*.f64 re re) -1/4) (*.f64 (pow.f64 re 4) 1/48))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 (pow.f64 re 6) -1/1440) 1/2)))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 (*.f64 re re) -1/4 (*.f64 (pow.f64 re 4) 1/48)) (fma.f64 (pow.f64 re 6) -1/1440 1/2)))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 (pow.f64 re 6) -1/1440 1/2) (fma.f64 (*.f64 re re) -1/4 (*.f64 (pow.f64 re 4) 1/48))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 (pow.f64 re 6) -1/1440 1/2) (fma.f64 (pow.f64 re 4) 1/48 (*.f64 (*.f64 re re) -1/4))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (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))
(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))
(*.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)))))
(+.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 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 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.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 (exp.f64 im) (exp.f64 (*.f64 -1 im)))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))

eval302.0ms (3%)

Compiler

Compiled 12716 to 6328 computations (50.2% saved)

prune100.0ms (1%)

Pruning

13 alts after pruning (11 fresh and 2 done)

PrunedKeptTotal
New6639672
Fresh224
Picked101
Done325
Total66913682
Error
0b
Counts
682 → 13
Alt Table
Click to see full alt table
StatusErrorProgram
2.3b
(*.f64 (+.f64 (exp.f64 im) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
1.4b
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
31.9b
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
1.5b
(*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))
1.8b
(cos.f64 re)
2.2b
(-.f64 (+.f64 (cos.f64 re) 1) 1)
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
32.8b
1
1.5b
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (fma.f64 im im 2))
1.4b
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
1.2b
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.f64 1/24 (pow.f64 im 4))))
61.2b
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
0.0b
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
Compiler

Compiled 276 to 206 computations (25.4% saved)

localize18.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

Compiled 42 to 20 computations (52.4% saved)

series10.0ms (0.1%)

Counts
2 → 48
Calls

12 calls:

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

rewrite74.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
596×log-prod_binary64
455×fma-def_binary64
361×pow-prod-down_binary64
291×pow2_binary64
201×pow1/3_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01035
121529
2307925
Stop Event
node limit
Counts
2 → 140
Calls
Call 1
Inputs
(/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im))
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))) (log.f64 (sqrt.f64 (exp.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (/.f64 1 (/.f64 (exp.f64 im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 (neg.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) (pow.f64 (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) 2) (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) (*.f64 (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 (neg.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) (sqrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (*.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 (neg.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cos.f64 re) -1/2) (/.f64 1 (neg.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cos.f64 re) 1) (/.f64 1/2 (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) 1) (/.f64 (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) 1) (/.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (/.f64 (cos.f64 re) (cbrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cos.f64 re) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (/.f64 1/2 (cbrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 im)) -2) (/.f64 (*.f64 1/2 (cos.f64 re)) (cbrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (/.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (cbrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (sqrt.f64 (exp.f64 im))) (/.f64 (cos.f64 re) (sqrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cos.f64 re) (sqrt.f64 (exp.f64 im))) (/.f64 1/2 (sqrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (exp.f64 im) -1/2) (/.f64 (*.f64 1/2 (cos.f64 re)) (sqrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) (sqrt.f64 (exp.f64 im))) (/.f64 (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (sqrt.f64 (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (/.f64 1/2 (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 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2 (/.f64 (exp.f64 im) (cos.f64 re))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (*.f64 2 (/.f64 (exp.f64 im) (cos.f64 re))) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (neg.f64 (exp.f64 im))))))) (#(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 (exp.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))) (#(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 exp.f64 (*.f64 (*.f64 1/3 (-.f64 (log.f64 (*.f64 1/2 (cos.f64 re))) im)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/2 (-.f64 (log.f64 (*.f64 1/2 (cos.f64 re))) im)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (-.f64 (log.f64 (*.f64 1/2 (cos.f64 re))) im)) 1/3))))) (#(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 (*.f64 1/2 (cos.f64 re)) (*.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 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (/.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))) (pow.f64 (cbrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))) 2) (cbrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))) (sqrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3) (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 3)) (/.f64 1 (fma.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (-.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (/.f64 1/2 (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 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2)) (/.f64 1 (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (-.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (/.f64 1/2 (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 (cos.f64 re) (exp.f64 im)) 3) (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (-.f64 (/.f64 1/4 (pow.f64 (/.f64 (exp.f64 im) (cos.f64 re)) 2)) (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3) (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 3)) (fma.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (-.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (/.f64 1/2 (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 (cos.f64 re) (exp.f64 im)) 3) (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 3)) (fma.f64 1/4 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 2) (-.f64 (/.f64 1/4 (pow.f64 (/.f64 (exp.f64 im) (cos.f64 re)) 2)) (*.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))))))))) (#(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 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2)) (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (fma.f64 1/8 (pow.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 3) (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 3))) (neg.f64 (fma.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (-.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (/.f64 1/2 (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 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2))) (neg.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2) (/.f64 1/4 (pow.f64 (/.f64 (exp.f64 im) (cos.f64 re)) 2))) (-.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (-.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (/.f64 1/2 (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 (cos.f64 re) (exp.f64 im)) 3) (pow.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (-.f64 (/.f64 1/4 (pow.f64 (/.f64 (exp.f64 im) (cos.f64 re)) 2)) (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.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 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))) (pow.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))) (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))) (exp.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (pow.f64 (sqrt.f64 (exp.f64 (cos.f64 re))) (exp.f64 im)) (+.f64 1 (expm1.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))) (+.f64 1 (expm1.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (/.f64 1 (/.f64 (exp.f64 im) (cos.f64 re))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 (neg.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 (neg.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (*.f64 1/2 (exp.f64 im)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) 1 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 1 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) (pow.f64 (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) 2) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) 2) (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) (*.f64 (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 (neg.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) (*.f64 (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 im)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) (cbrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))) 2)) (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (exp.f64 im)) 2) (*.f64 (cbrt.f64 (exp.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) (sqrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (*.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 (neg.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (*.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 im)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) (sqrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im)))) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (exp.f64 im)) (*.f64 (sqrt.f64 (exp.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) -1/2) (/.f64 1 (neg.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (exp.f64 im)) 1/2 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (cos.f64 re) 1) (/.f64 1/2 (exp.f64 im)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) 1) (/.f64 (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 im)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) 1) (/.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (exp.f64 im)) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 1/2 (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (/.f64 (cos.f64 re) (cbrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (cos.f64 re) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (/.f64 1/2 (cbrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (exp.f64 im)) -2) (/.f64 (*.f64 1/2 (cos.f64 re)) (cbrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (cbrt.f64 (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (/.f64 (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (cbrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(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 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (cos.f64 re) (sqrt.f64 (exp.f64 im))) (/.f64 1/2 (sqrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (exp.f64 im) -1/2) (/.f64 (*.f64 1/2 (cos.f64 re)) (sqrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2))) (sqrt.f64 (exp.f64 im))) (/.f64 (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (sqrt.f64 (exp.f64 im))) (*.f64 1/2 (*.f64 (cos.f64 re) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (pow.f64 (cbrt.f64 (exp.f64 im)) 2)) (cbrt.f64 (exp.f64 im)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (sqrt.f64 (exp.f64 im))) (sqrt.f64 (exp.f64 im)) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (exp.f64 im) 1/2) (cos.f64 re) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (exp.f64 im) (cbrt.f64 (*.f64 1/4 (pow.f64 (cos.f64 re) 2)))) (cbrt.f64 (*.f64 1/2 (cos.f64 re))) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (exp.f64 im) (sqrt.f64 (*.f64 1/2 (cos.f64 re)))) (sqrt.f64 (*.f64 1/2 (cos.f64 re))) (*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re)))))))

simplify59.0ms (0.6%)

Algorithm
egg-herbie
Rules
658×fma-def_binary64
521×distribute-rgt-out_binary64
319×associate-+l+_binary64
299×unsub-neg_binary64
266×fma-neg_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
0101964
1308885
2901834
34073775
Stop Event
node limit
Counts
188 → 170
Calls
Call 1
Inputs
(/.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 (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 (*.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))))
(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))))
Outputs
(/.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 (/.f64 re (exp.f64 im)) re) (/.f64 1/2 (exp.f64 im)))
(*.f64 (exp.f64 (neg.f64 im)) (+.f64 (*.f64 -1/4 (*.f64 re re)) 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 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 (/.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 (*.f64 re re) (exp.f64 im)) (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/48 (/.f64 (pow.f64 re 4) (exp.f64 im)) (fma.f64 -1/4 (*.f64 (/.f64 re (exp.f64 im)) re) (*.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 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.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 (*.f64 (cos.f64 re) -1/2) im))
(fma.f64 1/2 (cos.f64 re) (*.f64 im (*.f64 (cos.f64 re) -1/2)))
(*.f64 (cos.f64 re) (+.f64 1/2 (*.f64 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 (*.f64 (cos.f64 re) -1/2) im)))
(fma.f64 (*.f64 (cos.f64 re) 1/4) (*.f64 im im) (fma.f64 1/2 (cos.f64 re) (*.f64 im (*.f64 (cos.f64 re) -1/2))))
(fma.f64 1/2 (cos.f64 re) (*.f64 (*.f64 (cos.f64 re) -1/2) (+.f64 (*.f64 -1/2 (*.f64 im im)) im)))
(*.f64 (*.f64 (cos.f64 re) -1/2) (-.f64 (+.f64 im (*.f64 im (*.f64 im -1/2))) 1))
(+.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 (*.f64 (cos.f64 re) -1/2) 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 im (*.f64 (cos.f64 re) -1/2)))))
(fma.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/4) (fma.f64 (pow.f64 im 3) (*.f64 (cos.f64 re) -1/12) (*.f64 (cos.f64 re) (+.f64 1/2 (*.f64 im -1/2)))))
(fma.f64 (pow.f64 im 3) (*.f64 (cos.f64 re) -1/12) (*.f64 (*.f64 (cos.f64 re) -1/2) (-.f64 (+.f64 im (*.f64 im (*.f64 im -1/2))) 1)))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(*.f64 1/2 (/.f64 (cos.f64 re) (exp.f64 im)))
(*.f64 (/.f64 1/2 (exp.f64 im)) (cos.f64 re))
(+.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 (*.f64 -1/4 (*.f64 re re)) 1/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)))))
(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 (*.f64 re 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 (*.f64 -1/4 (*.f64 re re)) 1/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))))))
(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 (fma.f64 -1/1440 (exp.f64 im) (neg.f64 (/.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 (fma.f64 (*.f64 re re) (fma.f64 (exp.f64 im) -1/4 (/.f64 -1/4 (exp.f64 im))) (*.f64 (pow.f64 re 6) (fma.f64 (exp.f64 im) -1/1440 (/.f64 -1/1440 (exp.f64 im))))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2)))
(+.f64 (*.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))) (+.f64 (*.f64 1/48 (pow.f64 re 4)) (*.f64 -1/1440 (pow.f64 re 6)))))
(+.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (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 im (*.f64 im (fma.f64 (cos.f64 re) 1/4 (*.f64 (cos.f64 re) 1/4))))))
(fma.f64 im (*.f64 1/2 (*.f64 im (cos.f64 re))) (cos.f64 re))
(*.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 im (*.f64 im (fma.f64 (cos.f64 re) 1/4 (*.f64 (cos.f64 re) 1/4))))))
(fma.f64 im (*.f64 1/2 (*.f64 im (cos.f64 re))) (cos.f64 re))
(*.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.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 (exp.f64 im) (cos.f64 re))))
(*.f64 1/2 (fma.f64 (exp.f64 im) (cos.f64 re) (/.f64 (cos.f64 re) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))))

localize7.0ms (0.1%)

Compiler

Compiled 17 to 11 computations (35.3% saved)

localize11.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
2.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)))
1.0ms
re
@0
(*.f64 im (*.f64 1/2 (cos.f64 re)))

rewrite54.0ms (0.5%)

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))))))))))

simplify155.0ms (1.5%)

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
im
@-inf
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
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 (cos.f64 re) (*.f64 im im))
0.0ms
re
@-inf
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))

rewrite67.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))))))

simplify87.0ms (0.9%)

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))

localize12.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

Compiled 28 to 11 computations (60.7% saved)

series5.0ms (0%)

Counts
1 → 24
Calls

6 calls:

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

rewrite63.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
842×pow1_binary64
779×add-log-exp_binary64
778×log1p-expm1-u_binary64
778×expm1-log1p-u_binary64
763×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0914
11859
224039
Stop Event
node limit
Counts
1 → 19
Calls
Call 1
Inputs
(*.f64 (+.f64 (exp.f64 im) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (exp.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 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (/.f64 0 0) (cos.f64 re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (exp.f64 (*.f64 im 3))) (*.f64 1/2 (cos.f64 re))) (+.f64 (pow.f64 (exp.f64 im) 2) 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 0 (*.f64 1/2 (cos.f64 re))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (exp.f64 (*.f64 im 3)))) (+.f64 (pow.f64 (exp.f64 im) 2) 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) 0) 0)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (/.f64 0 0) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (/.f64 0 0) (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (/.f64 0 0) (cbrt.f64 (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (/.f64 0 0) (sqrt.f64 (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (/.f64 0 0) (pow.f64 (cos.f64 re) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (/.f64 0 0)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (/.f64 0 0) (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (/.f64 0 0) (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) (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (/.f64 0 0) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (/.f64 0 0) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (/.f64 0 0) (cos.f64 re))))))))

simplify93.0ms (0.9%)

Algorithm
egg-herbie
Rules
758×fma-def_binary64
595×associate-*l*_binary64
560×distribute-lft-out_binary64
526×distribute-rgt-out_binary64
454×associate-*r*_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
041286
1105282
2267270
3842250
43446246
55836246
67275246
77699246
Stop Event
node limit
Counts
43 → 35
Calls
Call 1
Inputs
(cos.f64 re)
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (cos.f64 re) (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))))))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (exp.f64 im) (cos.f64 re))
(exp.f64 im)
(+.f64 (exp.f64 im) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2))))
(+.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4))) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2)))))
(+.f64 (*.f64 -1/720 (*.f64 (exp.f64 im) (pow.f64 re 6))) (+.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4))) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2))))))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
Outputs
(cos.f64 re)
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(fma.f64 (cos.f64 re) im (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 im 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re)))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 (cos.f64 re) im (cos.f64 re)))
(*.f64 (cos.f64 re) (+.f64 (+.f64 im 1) (*.f64 im (*.f64 im 1/2))))
(*.f64 (cos.f64 re) (+.f64 im (fma.f64 1/2 (*.f64 im im) 1)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (cos.f64 re) (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))))))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (+.f64 (fma.f64 (cos.f64 re) im (cos.f64 re)) (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 (cos.f64 re) im (fma.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)) (cos.f64 re))))
(fma.f64 (+.f64 im 1) (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/6 (pow.f64 im 3)) (*.f64 im (*.f64 im 1/2)))))
(*.f64 (cos.f64 re) (+.f64 (+.f64 im 1) (*.f64 (*.f64 im im) (+.f64 (*.f64 im 1/6) 1/2))))
(*.f64 (cos.f64 re) (+.f64 (fma.f64 1/6 (pow.f64 im 3) 1) (fma.f64 im (*.f64 im 1/2) im)))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 (cos.f64 re) (exp.f64 im))
(exp.f64 im)
(+.f64 (exp.f64 im) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2))))
(+.f64 (exp.f64 im) (*.f64 -1/2 (*.f64 (exp.f64 im) (*.f64 re re))))
(fma.f64 -1/2 (*.f64 re (*.f64 re (exp.f64 im))) (exp.f64 im))
(*.f64 (+.f64 (*.f64 re (*.f64 re -1/2)) 1) (exp.f64 im))
(*.f64 (exp.f64 im) (fma.f64 re (*.f64 re -1/2) 1))
(+.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4))) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2)))))
(+.f64 (exp.f64 im) (fma.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4)) (*.f64 -1/2 (*.f64 (exp.f64 im) (*.f64 re re)))))
(+.f64 (exp.f64 im) (fma.f64 -1/2 (*.f64 re (*.f64 re (exp.f64 im))) (*.f64 (exp.f64 im) (*.f64 (pow.f64 re 4) 1/24))))
(+.f64 (exp.f64 im) (*.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (*.f64 re (*.f64 re -1/2)))))
(*.f64 (exp.f64 im) (+.f64 (*.f64 re (*.f64 re -1/2)) (fma.f64 1/24 (pow.f64 re 4) 1)))
(fma.f64 (exp.f64 im) (fma.f64 re (*.f64 re -1/2) (*.f64 1/24 (pow.f64 re 4))) (exp.f64 im))
(*.f64 (exp.f64 im) (+.f64 1 (fma.f64 re (*.f64 re -1/2) (*.f64 1/24 (pow.f64 re 4)))))
(+.f64 (*.f64 -1/720 (*.f64 (exp.f64 im) (pow.f64 re 6))) (+.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4))) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2))))))
(fma.f64 -1/720 (*.f64 (exp.f64 im) (pow.f64 re 6)) (+.f64 (exp.f64 im) (fma.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4)) (*.f64 -1/2 (*.f64 (exp.f64 im) (*.f64 re re))))))
(+.f64 (fma.f64 -1/2 (*.f64 re (*.f64 re (exp.f64 im))) (*.f64 (exp.f64 im) (*.f64 (pow.f64 re 4) 1/24))) (fma.f64 (*.f64 (exp.f64 im) -1/720) (pow.f64 re 6) (exp.f64 im)))
(+.f64 (exp.f64 im) (fma.f64 (exp.f64 im) (*.f64 -1/720 (pow.f64 re 6)) (*.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (*.f64 re (*.f64 re -1/2))))))
(fma.f64 (exp.f64 im) (fma.f64 re (*.f64 re -1/2) (*.f64 -1/720 (pow.f64 re 6))) (*.f64 (exp.f64 im) (fma.f64 1/24 (pow.f64 re 4) 1)))
(*.f64 (exp.f64 im) (+.f64 (fma.f64 re (*.f64 re -1/2) (*.f64 1/24 (pow.f64 re 4))) (fma.f64 -1/720 (pow.f64 re 6) 1)))
(*.f64 (exp.f64 im) (+.f64 (fma.f64 -1/720 (pow.f64 re 6) 1) (fma.f64 re (*.f64 re -1/2) (*.f64 1/24 (pow.f64 re 4)))))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))

eval261.0ms (2.6%)

Compiler

Compiled 14255 to 7422 computations (47.9% saved)

prune147.0ms (1.4%)

Pruning

17 alts after pruning (12 fresh and 5 done)

PrunedKeptTotal
New7249733
Fresh336
Picked101
Done156
Total72917746
Error
0b
Counts
746 → 17
Alt Table
Click to see full alt table
StatusErrorProgram
61.2b
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
1.5b
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (fma.f64 im im 2))
0.0b
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
15.3b
(exp.f64 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))
2.3b
(*.f64 (exp.f64 im) (cos.f64 re))
1.8b
(cos.f64 re)
2.2b
(-.f64 (+.f64 (cos.f64 re) 1) 1)
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
2.3b
(*.f64 (cos.f64 re) (+.f64 im 1))
32.8b
1
31.9b
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
0.9b
(log.f64 (+.f64 1 (expm1.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))))
1.4b
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
1.4b
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
33.0b
(exp.f64 im)
61.5b
(*.f64 im (*.f64 1/2 im))
Compiler

Compiled 276 to 214 computations (22.5% saved)

localize39.0ms (0.4%)

Local error

Found 2 expressions with local error:

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

Compiled 27 to 15 computations (44.4% saved)

series6.0ms (0.1%)

Counts
1 → 24
Calls

6 calls:

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

rewrite54.0ms (0.5%)

Algorithm
batch-egg-rewrite
Rules
948×pow1_binary64
874×add-log-exp_binary64
873×log1p-expm1-u_binary64
873×expm1-log1p-u_binary64
856×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

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

simplify63.0ms (0.6%)

Algorithm
egg-herbie
Rules
638×distribute-rgt-in_binary64
622×distribute-lft-in_binary64
549×associate-+l+_binary64
490×associate-+r+_binary64
397×*-commutative_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
049542
1138540
2442480
31540454
44560452
57070452
Stop Event
node limit
Counts
38 → 31
Calls
Call 1
Inputs
(*.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))))
(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))))
Outputs
(*.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 -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/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 (pow.f64 re 4) 1/48))))
(fma.f64 (*.f64 re 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 1/2 (*.f64 1/48 (pow.f64 re 4)))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (+.f64 (*.f64 1/48 (pow.f64 re 4)) (*.f64 -1/4 (*.f64 re re)))))
(+.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/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 (pow.f64 re 4) 1/48)))))
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re)))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.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 1/2 (*.f64 -1/4 (*.f64 re re))) (+.f64 (*.f64 1/48 (pow.f64 re 4)) (*.f64 -1/1440 (pow.f64 re 6)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (+.f64 (*.f64 1/2 (*.f64 im im)) 1) (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 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) (+.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 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 1/2 (*.f64 im im)) (*.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 im (*.f64 im (cos.f64 re))) (cos.f64 re)) (fma.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 4) 1/24))))
(+.f64 (cos.f64 re) (fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (*.f64 (cos.f64 re) (+.f64 (*.f64 1/720 (pow.f64 im 6)) (*.f64 1/24 (pow.f64 im 4))))))
(+.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 1/2 (*.f64 (cos.f64 re) (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (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 (/.f64 1 (exp.f64 im)) (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/2 (cos.f64 re)))
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re))

localize5.0ms (0.1%)

Compiler

Compiled 12 to 8 computations (33.3% saved)

localize9.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

Compiled 16 to 9 computations (43.8% saved)

series3.0ms (0%)

Counts
1 → 24
Calls

6 calls:

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

rewrite49.0ms (0.5%)

Algorithm
batch-egg-rewrite
Rules
729×pow1_binary64
676×log1p-expm1-u_binary64
676×expm1-log1p-u_binary64
675×add-log-exp_binary64
660×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify139.0ms (1.4%)

Algorithm
egg-herbie
Rules
950×+-commutative_binary64
753×associate-+r+_binary64
722×distribute-rgt-in_binary64
559×distribute-lft-out_binary64
543×*-commutative_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
033262
1107258
2335247
31385243
43340243
54547243
64724243
74931243
85077243
95264243
106133243
117871243
Stop Event
node limit
Counts
48 → 36
Calls
Call 1
Inputs
(+.f64 1 im)
(+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 1 im))) im))
(+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 1 im))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 1 im))) im)))
(+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 1 im))) (+.f64 (*.f64 -1/720 (*.f64 (pow.f64 re 6) (+.f64 1 im))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 1 im))) im))))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (cos.f64 re) (+.f64 1 im))
(cos.f64 re)
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(*.f64 (cos.f64 re) im)
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(*.f64 (cos.f64 re) im)
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
Outputs
(+.f64 1 im)
(+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 1 im))) im))
(+.f64 1 (fma.f64 -1/2 (*.f64 (+.f64 1 im) (*.f64 re re)) im))
(*.f64 (+.f64 (*.f64 re (*.f64 -1/2 re)) 1) (+.f64 1 im))
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 1 im))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 1 im))) im)))
(+.f64 1 (fma.f64 -1/2 (*.f64 (+.f64 1 im) (*.f64 re re)) (fma.f64 1/24 (*.f64 (+.f64 1 im) (pow.f64 re 4)) im)))
(+.f64 (*.f64 (+.f64 1 im) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 1/24 (pow.f64 re 4)))) (+.f64 1 im))
(+.f64 1 (fma.f64 (+.f64 1 im) (fma.f64 -1/2 (*.f64 re re) (*.f64 1/24 (pow.f64 re 4))) im))
(*.f64 (+.f64 (fma.f64 -1/2 (*.f64 re re) (*.f64 1/24 (pow.f64 re 4))) 1) (+.f64 1 im))
(*.f64 (+.f64 1 im) (+.f64 (fma.f64 -1/2 (*.f64 re re) (*.f64 1/24 (pow.f64 re 4))) 1))
(*.f64 (+.f64 1 im) (+.f64 1 (fma.f64 -1/2 (*.f64 re re) (*.f64 1/24 (pow.f64 re 4)))))
(+.f64 1 (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (+.f64 1 im))) (+.f64 (*.f64 -1/720 (*.f64 (pow.f64 re 6) (+.f64 1 im))) (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (+.f64 1 im))) im))))
(+.f64 1 (fma.f64 -1/2 (*.f64 (+.f64 1 im) (*.f64 re re)) (fma.f64 -1/720 (*.f64 (+.f64 1 im) (pow.f64 re 6)) (fma.f64 1/24 (*.f64 (+.f64 1 im) (pow.f64 re 4)) im))))
(+.f64 1 (+.f64 (*.f64 (+.f64 1 im) (+.f64 (*.f64 -1/720 (pow.f64 re 6)) (*.f64 1/24 (pow.f64 re 4)))) (fma.f64 -1/2 (*.f64 (+.f64 1 im) (*.f64 re re)) im)))
(+.f64 im (+.f64 1 (*.f64 (+.f64 1 im) (+.f64 (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6))) (*.f64 1/24 (pow.f64 re 4))))))
(*.f64 (+.f64 1 im) (+.f64 (+.f64 1 (*.f64 -1/2 (*.f64 re re))) (fma.f64 -1/720 (pow.f64 re 6) (*.f64 1/24 (pow.f64 re 4)))))
(*.f64 (+.f64 1 im) (+.f64 (fma.f64 -1/720 (pow.f64 re 6) (*.f64 1/24 (pow.f64 re 4))) (+.f64 1 (*.f64 -1/2 (*.f64 re re)))))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(cos.f64 re)
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(*.f64 (+.f64 1 im) (cos.f64 re))
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(*.f64 (+.f64 1 im) (cos.f64 re))
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(*.f64 (+.f64 1 im) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) im))
(*.f64 (+.f64 1 im) (cos.f64 re))

localize10.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

Compiled 22 to 10 computations (54.5% saved)

series2.0ms (0%)

Counts
1 → 24
Calls

6 calls:

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

rewrite51.0ms (0.5%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
0812
116212
2190412
Stop Event
node limit
Counts
1 → 13
Calls
Call 1
Inputs
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))) 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 1/2 (*.f64 (cos.f64 re) (*.f64 im im))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (pow.f64 (exp.f64 (cos.f64 re)) 1/2) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (*.f64 im 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 (*.f64 im im) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))))))))

simplify142.0ms (1.4%)

Algorithm
egg-herbie
Rules
840×unswap-sqr_binary64
740×fma-def_binary64
578×distribute-rgt-in_binary64
540×sqr-pow_binary64
456×distribute-lft-in_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
028346
171332
2218314
3903310
42453310
54158310
64399310
74776310
85386310
96442310
106753310
117118310
127568310
Stop Event
node limit
Counts
37 → 23
Calls
Call 1
Inputs
(*.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) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.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 im im) (*.f64 re re))))
(*.f64 (*.f64 im im) (+.f64 (*.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 (*.f64 im im) (pow.f64 re 4)) (*.f64 -1/4 (*.f64 (*.f64 im im) (*.f64 re re)))))
(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 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.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) 1/2)))
(*.f64 im (*.f64 im (fma.f64 (*.f64 re re) (fma.f64 (*.f64 re re) 1/48 -1/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 (*.f64 im im) (pow.f64 re 6)) (fma.f64 1/2 (*.f64 im im) (fma.f64 1/48 (*.f64 (*.f64 im im) (pow.f64 re 4)) (*.f64 -1/4 (*.f64 (*.f64 im im) (*.f64 re re))))))
(+.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) (fma.f64 (*.f64 re re) (fma.f64 (*.f64 re re) 1/48 -1/4) (fma.f64 -1/1440 (pow.f64 re 6) 1/2)))
(*.f64 im (*.f64 im (fma.f64 (*.f64 re re) (fma.f64 (*.f64 re 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 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)))

localize9.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (exp.f64 im) (cos.f64 re))
0.0b
(cos.f64 re)
Compiler

Compiled 13 to 5 computations (61.5% saved)

series2.0ms (0%)

Counts
1 → 16
Calls

6 calls:

TimeVariablePointExpression
0.0ms
im
@0
(*.f64 (exp.f64 im) (cos.f64 re))
0.0ms
re
@0
(*.f64 (exp.f64 im) (cos.f64 re))
0.0ms
im
@inf
(*.f64 (exp.f64 im) (cos.f64 re))
0.0ms
re
@inf
(*.f64 (exp.f64 im) (cos.f64 re))
0.0ms
im
@-inf
(*.f64 (exp.f64 im) (cos.f64 re))

rewrite41.0ms (0.4%)

Algorithm
batch-egg-rewrite
Rules
530×pow1_binary64
504×add-sqr-sqrt_binary64
483×add-log-exp_binary64
483×log1p-expm1-u_binary64
483×expm1-log1p-u_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify85.0ms (0.8%)

Algorithm
egg-herbie
Rules
758×fma-def_binary64
583×associate-*l*_binary64
560×distribute-lft-out_binary64
526×distribute-rgt-out_binary64
449×associate-*r*_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
040222
1105218
2267206
3837186
43420182
55809182
67248182
77672182
Stop Event
node limit
Counts
27 → 26
Calls
Call 1
Inputs
(cos.f64 re)
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (cos.f64 re) (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))))))
(exp.f64 im)
(+.f64 (exp.f64 im) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2))))
(+.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4))) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2)))))
(+.f64 (*.f64 -1/720 (*.f64 (exp.f64 im) (pow.f64 re 6))) (+.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4))) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2))))))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
Outputs
(cos.f64 re)
(+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re))
(fma.f64 (cos.f64 re) im (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 im 1))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) im) (cos.f64 re)))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 (cos.f64 re) im (cos.f64 re)))
(*.f64 (cos.f64 re) (+.f64 (+.f64 im 1) (*.f64 im (*.f64 im 1/2))))
(*.f64 (cos.f64 re) (+.f64 im (fma.f64 1/2 (*.f64 im im) 1)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (cos.f64 re) (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))))))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (+.f64 (fma.f64 (cos.f64 re) im (cos.f64 re)) (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))))
(fma.f64 1/2 (*.f64 (cos.f64 re) (*.f64 im im)) (fma.f64 (cos.f64 re) im (fma.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)) (cos.f64 re))))
(fma.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2)) (*.f64 (cos.f64 re) (+.f64 (+.f64 im 1) (*.f64 1/6 (pow.f64 im 3)))))
(*.f64 (cos.f64 re) (+.f64 (+.f64 im 1) (*.f64 (*.f64 im im) (+.f64 (*.f64 im 1/6) 1/2))))
(*.f64 (cos.f64 re) (+.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 1/6 (pow.f64 im 3) im)))
(exp.f64 im)
(+.f64 (exp.f64 im) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2))))
(+.f64 (exp.f64 im) (*.f64 -1/2 (*.f64 (exp.f64 im) (*.f64 re re))))
(fma.f64 -1/2 (*.f64 re (*.f64 re (exp.f64 im))) (exp.f64 im))
(*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (exp.f64 im))
(*.f64 (exp.f64 im) (fma.f64 re (*.f64 re -1/2) 1))
(+.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4))) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2)))))
(+.f64 (exp.f64 im) (fma.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4)) (*.f64 -1/2 (*.f64 (exp.f64 im) (*.f64 re re)))))
(+.f64 (exp.f64 im) (fma.f64 -1/2 (*.f64 re (*.f64 re (exp.f64 im))) (*.f64 (exp.f64 im) (*.f64 (pow.f64 re 4) 1/24))))
(+.f64 (exp.f64 im) (*.f64 (exp.f64 im) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 1/24 (pow.f64 re 4)))))
(*.f64 (exp.f64 im) (+.f64 (*.f64 re (*.f64 re -1/2)) (fma.f64 1/24 (pow.f64 re 4) 1)))
(*.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 re (*.f64 re -1/2) 1)))
(fma.f64 (exp.f64 im) (fma.f64 re (*.f64 re -1/2) (*.f64 1/24 (pow.f64 re 4))) (exp.f64 im))
(+.f64 (*.f64 -1/720 (*.f64 (exp.f64 im) (pow.f64 re 6))) (+.f64 (exp.f64 im) (+.f64 (*.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4))) (*.f64 -1/2 (*.f64 (exp.f64 im) (pow.f64 re 2))))))
(fma.f64 -1/720 (*.f64 (exp.f64 im) (pow.f64 re 6)) (+.f64 (exp.f64 im) (fma.f64 1/24 (*.f64 (exp.f64 im) (pow.f64 re 4)) (*.f64 -1/2 (*.f64 (exp.f64 im) (*.f64 re re))))))
(+.f64 (fma.f64 -1/2 (*.f64 re (*.f64 re (exp.f64 im))) (*.f64 (exp.f64 im) (*.f64 (pow.f64 re 4) 1/24))) (fma.f64 -1/720 (*.f64 (exp.f64 im) (pow.f64 re 6)) (exp.f64 im)))
(+.f64 (exp.f64 im) (fma.f64 (exp.f64 im) (*.f64 -1/720 (pow.f64 re 6)) (*.f64 (exp.f64 im) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 1/24 (pow.f64 re 4))))))
(fma.f64 (fma.f64 -1/720 (pow.f64 re 6) 1) (exp.f64 im) (*.f64 (exp.f64 im) (fma.f64 re (*.f64 re -1/2) (*.f64 1/24 (pow.f64 re 4)))))
(*.f64 (exp.f64 im) (+.f64 (fma.f64 re (*.f64 re -1/2) (*.f64 1/24 (pow.f64 re 4))) (fma.f64 -1/720 (pow.f64 re 6) 1)))
(*.f64 (exp.f64 im) (+.f64 (fma.f64 -1/720 (pow.f64 re 6) 1) (fma.f64 re (*.f64 re -1/2) (*.f64 1/24 (pow.f64 re 4)))))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))
(*.f64 (cos.f64 re) (exp.f64 im))

eval91.0ms (0.9%)

Compiler

Compiled 4694 to 2562 computations (45.4% saved)

prune60.0ms (0.6%)

Pruning

19 alts after pruning (10 fresh and 9 done)

PrunedKeptTotal
New3355340
Fresh257
Picked011
Done189
Total33819357
Error
0b
Counts
357 → 19
Alt Table
Click to see full alt table
StatusErrorProgram
0.4b
(-.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) 1)
1.8b
(cos.f64 re)
33.0b
(exp.f64 im)
1.5b
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (fma.f64 im im 2))
61.2b
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
31.9b
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
37.4b
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
33.0b
(+.f64 1 im)
1.4b
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
0.0b
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
61.6b
(*.f64 (cos.f64 re) im)
2.3b
(*.f64 (exp.f64 im) (cos.f64 re))
2.2b
(-.f64 (+.f64 (cos.f64 re) 1) 1)
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
2.3b
(*.f64 (cos.f64 re) (+.f64 im 1))
32.8b
1
0.9b
(log.f64 (+.f64 1 (expm1.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))))
1.4b
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
61.5b
(*.f64 im (*.f64 1/2 im))
Compiler

Compiled 179 to 136 computations (24% saved)

regimes201.0ms (2%)

Counts
33 → 1
Calls
Call 1
Inputs
1
(+.f64 1 im)
(*.f64 im (*.f64 1/2 im))
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(exp.f64 im)
(exp.f64 im)
(cos.f64 re)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) (+.f64 im 1))
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 (cos.f64 re) 1) 1)
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 im (*.f64 im (*.f64 1/2 (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 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(-.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) 1)
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.f64 1/24 (pow.f64 im 4))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(+.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)))
(exp.f64 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (fma.f64 im im 2))
(log.f64 (+.f64 1 (expm1.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))))
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
(+.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (/.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))))
Outputs
(+.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
Calls

8 calls:

36.0ms
re
29.0ms
im
26.0ms
(cos.f64 re)
26.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
25.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
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(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 363 to 197 computations (45.7% saved)

regimes215.0ms (2.1%)

Counts
29 → 1
Calls
Call 1
Inputs
1
(+.f64 1 im)
(*.f64 im (*.f64 1/2 im))
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(exp.f64 im)
(exp.f64 im)
(cos.f64 re)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) (+.f64 im 1))
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 (cos.f64 re) 1) 1)
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 im (*.f64 im (*.f64 1/2 (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 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(-.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) 1)
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.f64 1/24 (pow.f64 im 4))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(+.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)))
(exp.f64 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (fma.f64 im im 2))
(log.f64 (+.f64 1 (expm1.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))))
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
Outputs
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
Calls

8 calls:

34.0ms
im
34.0ms
re
32.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
31.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
27.0ms
(*.f64 1/2 (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(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 296 to 174 computations (41.2% saved)

regimes172.0ms (1.7%)

Counts
28 → 1
Calls
Call 1
Inputs
1
(+.f64 1 im)
(*.f64 im (*.f64 1/2 im))
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(exp.f64 im)
(exp.f64 im)
(cos.f64 re)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) (+.f64 im 1))
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 (cos.f64 re) 1) 1)
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 im (*.f64 im (*.f64 1/2 (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 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(-.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) 1)
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))
(+.f64 (*.f64 1/2 (+.f64 0 (*.f64 (cos.f64 re) (*.f64 im im)))) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.f64 1/24 (pow.f64 im 4))))
(*.f64 (+.f64 (exp.f64 im) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(+.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)))
(exp.f64 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))))
(*.f64 (*.f64 1/2 (log1p.f64 (expm1.f64 (cos.f64 re)))) (fma.f64 im im 2))
(log.f64 (+.f64 1 (expm1.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im))))))
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))
Calls

8 calls:

42.0ms
re
40.0ms
(cos.f64 re)
20.0ms
(*.f64 1/2 (cos.f64 re))
16.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
14.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
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(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 281 to 167 computations (40.6% saved)

regimes94.0ms (0.9%)

Counts
19 → 1
Calls
Call 1
Inputs
1
(+.f64 1 im)
(*.f64 im (*.f64 1/2 im))
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(exp.f64 im)
(exp.f64 im)
(cos.f64 re)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) (+.f64 im 1))
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 (cos.f64 re) 1) 1)
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 im (*.f64 im (*.f64 1/2 (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 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(*.f64 (exp.f64 im) (cos.f64 re))
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(-.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) 1)
Outputs
(-.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) 1)
Calls

5 calls:

47.0ms
(*.f64 1/2 (cos.f64 re))
12.0ms
(cos.f64 re)
12.0ms
re
10.0ms
im
9.0ms
(*.f64 1/2 (cos.f64 re))
Results
ErrorSegmentsBranch
0.4b1re
0.4b1im
0.4b1(*.f64 1/2 (cos.f64 re))
0.4b1(*.f64 1/2 (cos.f64 re))
0.4b1(cos.f64 re)
Compiler

Compiled 140 to 82 computations (41.4% saved)

regimes58.0ms (0.6%)

Counts
18 → 1
Calls
Call 1
Inputs
1
(+.f64 1 im)
(*.f64 im (*.f64 1/2 im))
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(exp.f64 im)
(exp.f64 im)
(cos.f64 re)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) (+.f64 im 1))
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 (cos.f64 re) 1) 1)
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 im (*.f64 im (*.f64 1/2 (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 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(*.f64 (exp.f64 im) (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:

15.0ms
(*.f64 1/2 (cos.f64 re))
11.0ms
im
9.0ms
re
9.0ms
(cos.f64 re)
8.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 131 to 77 computations (41.2% saved)

regimes62.0ms (0.6%)

Counts
13 → 1
Calls
Call 1
Inputs
1
(+.f64 1 im)
(*.f64 im (*.f64 1/2 im))
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(exp.f64 im)
(exp.f64 im)
(cos.f64 re)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) (+.f64 im 1))
(*.f64 1/2 (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 (cos.f64 re) 1) 1)
(*.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)))
(*.f64 im (*.f64 im (*.f64 1/2 (cos.f64 re))))
Outputs
(cos.f64 re)
Calls

5 calls:

28.0ms
(*.f64 1/2 (cos.f64 re))
10.0ms
re
7.0ms
im
7.0ms
(*.f64 1/2 (cos.f64 re))
6.0ms
(cos.f64 re)
Results
ErrorSegmentsBranch
1.8b1re
1.8b1im
1.8b1(*.f64 1/2 (cos.f64 re))
1.8b1(*.f64 1/2 (cos.f64 re))
1.8b1(cos.f64 re)
Compiler

Compiled 88 to 56 computations (36.4% saved)

regimes11.0ms (0.1%)

Accuracy

Total -29.8b remaining (-90.8%)

Threshold costs -29.8b (-90.8%)

Counts
6 → 1
Calls
Call 1
Inputs
1
(+.f64 1 im)
(*.f64 im (*.f64 1/2 im))
(*.f64 (+.f64 1 im) (+.f64 1 (*.f64 -1/2 (*.f64 re re))))
(exp.f64 im)
(exp.f64 im)
Outputs
1
Calls

2 calls:

5.0ms
re
5.0ms
im
Results
ErrorSegmentsBranch
32.8b1re
32.8b1im
Compiler

Compiled 32 to 21 computations (34.4% saved)

simplify43.0ms (0.4%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
02697
14597
24897
34997
Stop Event
fuel
saturated
Calls
Call 1
Inputs
(+.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) 1)
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
(cos.f64 re)
1
Outputs
(+.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
(+.f64 (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
(+.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)) (/.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 2 (cosh.f64 im)))
(-.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) 1)
(+.f64 (+.f64 1 (*.f64 (cos.f64 re) (cosh.f64 im))) -1)
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) 1))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (*.f64 im im))))
(cos.f64 re)
1
Compiler

Compiled 76 to 57 computations (25% saved)

soundness0.0ms (0%)

end50.0ms (0.5%)

Compiler

Compiled 64 to 38 computations (40.6% saved)

Profiling

Loading profile data...