Details

Time bar (total: 8.8s)

analyze531.0ms (6.1%)

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

Compiled 15 to 12 computations (20% saved)

sample6.5s (73.8%)

Results
3.4s4993×body1024valid
1.1s1946×body1024invalid
674.0ms1765×body512valid
425.0ms435×body2048valid
383.0ms1079×body512invalid
171.0ms684×body256valid
170.0ms547×body256invalid
104.0ms718×body128invalid
53.0ms379×body128valid
Compiler

Compiled 30 to 24 computations (20% saved)

preprocess42.0ms (0.5%)

Algorithm
egg-herbie
Rules
692×fma-def_binary64
564×times-frac_binary64
454×fma-neg_binary64
227×associate-/l*_binary64
166×distribute-rgt-neg-in_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01936
14036
29536
325536
453934
591234
6181234
7375134
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 (-.f64 0 im)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 im)) (-.f64 (exp.f64 (-.f64 0 re)) (exp.f64 re)))
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im)))
(*.f64 1/2 (*.f64 (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 (exp.f64 im) -1/2 (/.f64 1/2 (exp.f64 im))))
(*.f64 (*.f64 1/2 (cos.f64 im)) (-.f64 (exp.f64 (-.f64 0 re)) (exp.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 im) (-.f64 (exp.f64 (neg.f64 re)) (exp.f64 re))))
(*.f64 (*.f64 1/2 (cos.f64 im)) (-.f64 (exp.f64 (neg.f64 re)) (exp.f64 re)))
(*.f64 (cos.f64 im) (*.f64 1/2 (-.f64 (exp.f64 (neg.f64 re)) (exp.f64 re))))
(*.f64 (cos.f64 im) (fma.f64 (exp.f64 re) -1/2 (/.f64 1/2 (exp.f64 re))))
Compiler

Compiled 14 to 11 computations (21.4% saved)

simplify22.0ms (0.3%)

Algorithm
egg-herbie
Rules
623×associate-/l*_binary64
462×times-frac_binary64
358×fma-neg_binary64
346×fma-def_binary64
322×cancel-sign-sub-inv_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
01218
12318
25218
313218
428117
547317
692917
7237617
Stop Event
node limit
Counts
1 → 2
Calls
Call 1
Inputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im)))
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (cos.f64 re) (*.f64 1/2 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 (cos.f64 re) (fma.f64 (exp.f64 im) -1/2 (/.f64 1/2 (exp.f64 im))))

prune10.0ms (0.1%)

Pruning

3 alts after pruning (3 fresh and 0 done)

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

Compiled 79 to 56 computations (29.1% saved)

localize8.0ms (0.1%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im)))
6.4b
(-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im))

series9.0ms (0.1%)

Counts
3 → 40
Calls

12 calls:

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

rewrite55.0ms (0.6%)

Algorithm
batch-egg-rewrite
Rules
313×prod-diff_binary64
198×fma-def_binary64
178×expm1-udef_binary64
178×log1p-udef_binary64
144×log-pow_binary64
Iterations

Useful iterations: 2 (0.0ms)

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

simplify43.0ms (0.5%)

Algorithm
egg-herbie
Rules
611×fma-def_binary64
467×sub-neg_binary64
254×associate-*l*_binary64
242×associate-*r*_binary64
229×cancel-sign-sub-inv_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0106809
1317787
21069754
34625754
Stop Event
node limit
Counts
169 → 164
Calls
Call 1
Inputs
(*.f64 -2 im)
(neg.f64 (+.f64 (*.f64 1/3 (pow.f64 im 3)) (*.f64 2 im)))
(neg.f64 (+.f64 (*.f64 1/60 (pow.f64 im 5)) (+.f64 (*.f64 1/3 (pow.f64 im 3)) (*.f64 2 im))))
(neg.f64 (+.f64 (*.f64 1/60 (pow.f64 im 5)) (+.f64 (*.f64 1/3 (pow.f64 im 3)) (+.f64 (*.f64 1/2520 (pow.f64 im 7)) (*.f64 2 im)))))
(-.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))
(-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(*.f64 1/2 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(-.f64 (+.f64 (*.f64 1/4 (*.f64 (pow.f64 re 2) (exp.f64 im))) (*.f64 1/2 (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 2))) (*.f64 1/2 (exp.f64 im))))
(-.f64 (+.f64 (*.f64 1/4 (*.f64 (pow.f64 re 2) (exp.f64 im))) (+.f64 (*.f64 1/48 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 4))) (*.f64 1/2 (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 im))) (+.f64 (*.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 2))) (*.f64 1/2 (exp.f64 im)))))
(-.f64 (+.f64 (*.f64 1/4 (*.f64 (pow.f64 re 2) (exp.f64 im))) (+.f64 (*.f64 1/1440 (*.f64 (exp.f64 im) (pow.f64 re 6))) (+.f64 (*.f64 1/48 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 4))) (*.f64 1/2 (exp.f64 (neg.f64 im)))))) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 im))) (+.f64 (*.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 2))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 1/1440 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 6)))))))
(*.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))))
(*.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))))
(*.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 (*.f64 (cos.f64 re) im))
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))))
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
(neg.f64 (+.f64 (*.f64 1/5040 (*.f64 (cos.f64 re) (pow.f64 im 7))) (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5)))))))
(*.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))))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)) (cos.f64 re)))
1
(-.f64 1 (*.f64 1/2 (pow.f64 re 2)))
(-.f64 (+.f64 1 (*.f64 1/24 (pow.f64 re 4))) (*.f64 1/2 (pow.f64 re 2)))
(-.f64 (+.f64 1 (*.f64 1/24 (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 re 2)) (*.f64 1/720 (pow.f64 re 6))))
Outputs
(*.f64 -2 im)
(neg.f64 (+.f64 (*.f64 1/3 (pow.f64 im 3)) (*.f64 2 im)))
(neg.f64 (fma.f64 1/3 (pow.f64 im 3) (*.f64 im 2)))
(-.f64 (*.f64 -2 im) (*.f64 1/3 (pow.f64 im 3)))
(fma.f64 (pow.f64 im 3) -1/3 (*.f64 -2 im))
(neg.f64 (+.f64 (*.f64 1/60 (pow.f64 im 5)) (+.f64 (*.f64 1/3 (pow.f64 im 3)) (*.f64 2 im))))
(neg.f64 (fma.f64 1/60 (pow.f64 im 5) (fma.f64 1/3 (pow.f64 im 3) (*.f64 im 2))))
(-.f64 (*.f64 (pow.f64 im 5) -1/60) (fma.f64 1/3 (pow.f64 im 3) (*.f64 im 2)))
(fma.f64 (pow.f64 im 5) -1/60 (fma.f64 (pow.f64 im 3) -1/3 (*.f64 -2 im)))
(neg.f64 (+.f64 (*.f64 1/60 (pow.f64 im 5)) (+.f64 (*.f64 1/3 (pow.f64 im 3)) (+.f64 (*.f64 1/2520 (pow.f64 im 7)) (*.f64 2 im)))))
(neg.f64 (fma.f64 1/60 (pow.f64 im 5) (fma.f64 1/3 (pow.f64 im 3) (fma.f64 1/2520 (pow.f64 im 7) (*.f64 im 2)))))
(-.f64 (*.f64 (pow.f64 im 5) -1/60) (fma.f64 1/3 (pow.f64 im 3) (fma.f64 im 2 (*.f64 1/2520 (pow.f64 im 7)))))
(-.f64 (*.f64 (pow.f64 im 5) -1/60) (fma.f64 im 2 (fma.f64 1/2520 (pow.f64 im 7) (*.f64 1/3 (pow.f64 im 3)))))
(-.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))
(-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im))
(-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
(*.f64 1/2 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) 1/2)
(-.f64 (+.f64 (*.f64 1/4 (*.f64 (pow.f64 re 2) (exp.f64 im))) (*.f64 1/2 (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 2))) (*.f64 1/2 (exp.f64 im))))
(-.f64 (fma.f64 1/4 (*.f64 (exp.f64 im) (*.f64 re re)) (*.f64 (exp.f64 (neg.f64 im)) 1/2)) (fma.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 re re)) (*.f64 (exp.f64 im) 1/2)))
(-.f64 (fma.f64 1/4 (*.f64 (exp.f64 im) (*.f64 re re)) (/.f64 1/2 (exp.f64 im))) (fma.f64 (exp.f64 im) 1/2 (*.f64 (*.f64 re re) (/.f64 1/4 (exp.f64 im)))))
(+.f64 (/.f64 1/2 (exp.f64 im)) (+.f64 (*.f64 (*.f64 1/4 (*.f64 re re)) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 (exp.f64 im) -1/2)))
(-.f64 (+.f64 (*.f64 1/4 (*.f64 (pow.f64 re 2) (exp.f64 im))) (+.f64 (*.f64 1/48 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 4))) (*.f64 1/2 (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 im))) (+.f64 (*.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 2))) (*.f64 1/2 (exp.f64 im)))))
(-.f64 (fma.f64 1/4 (*.f64 (exp.f64 im) (*.f64 re re)) (fma.f64 1/48 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 4)) (*.f64 (exp.f64 (neg.f64 im)) 1/2))) (fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (fma.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 re re)) (*.f64 (exp.f64 im) 1/2))))
(-.f64 (fma.f64 1/4 (*.f64 (exp.f64 im) (*.f64 re re)) (fma.f64 (/.f64 1/48 (exp.f64 im)) (pow.f64 re 4) (/.f64 1/2 (exp.f64 im)))) (fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (fma.f64 (exp.f64 im) 1/2 (*.f64 (*.f64 re re) (/.f64 1/4 (exp.f64 im))))))
(+.f64 (*.f64 (exp.f64 (neg.f64 im)) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2)) (-.f64 (*.f64 (*.f64 1/4 (*.f64 re re)) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 (exp.f64 im) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2))))
(-.f64 (+.f64 (*.f64 1/4 (*.f64 (pow.f64 re 2) (exp.f64 im))) (+.f64 (*.f64 1/1440 (*.f64 (exp.f64 im) (pow.f64 re 6))) (+.f64 (*.f64 1/48 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 4))) (*.f64 1/2 (exp.f64 (neg.f64 im)))))) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (exp.f64 im))) (+.f64 (*.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 2))) (+.f64 (*.f64 1/2 (exp.f64 im)) (*.f64 1/1440 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 6)))))))
(-.f64 (fma.f64 1/4 (*.f64 (exp.f64 im) (*.f64 re re)) (fma.f64 1/1440 (*.f64 (exp.f64 im) (pow.f64 re 6)) (fma.f64 1/48 (*.f64 (exp.f64 (neg.f64 im)) (pow.f64 re 4)) (*.f64 (exp.f64 (neg.f64 im)) 1/2)))) (fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (fma.f64 1/4 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 re re)) (fma.f64 1/2 (exp.f64 im) (*.f64 (*.f64 1/1440 (exp.f64 (neg.f64 im))) (pow.f64 re 6))))))
(-.f64 (fma.f64 1/4 (*.f64 (exp.f64 im) (*.f64 re re)) (fma.f64 1/1440 (*.f64 (exp.f64 im) (pow.f64 re 6)) (fma.f64 (/.f64 1/48 (exp.f64 im)) (pow.f64 re 4) (/.f64 1/2 (exp.f64 im))))) (fma.f64 1/48 (*.f64 (exp.f64 im) (pow.f64 re 4)) (fma.f64 (/.f64 1/4 (exp.f64 im)) (*.f64 re re) (fma.f64 (exp.f64 im) 1/2 (*.f64 (pow.f64 re 6) (/.f64 1/1440 (exp.f64 im)))))))
(+.f64 (fma.f64 (exp.f64 im) (*.f64 1/1440 (pow.f64 re 6)) (*.f64 (exp.f64 (neg.f64 im)) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2))) (-.f64 (*.f64 (*.f64 1/4 (*.f64 re re)) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 1/1440 (/.f64 (pow.f64 re 6) (exp.f64 im))) (*.f64 (exp.f64 im) (+.f64 (*.f64 1/48 (pow.f64 re 4)) 1/2)))))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 -1 (*.f64 (cos.f64 re) im))
(neg.f64 (*.f64 im (cos.f64 re)))
(*.f64 (neg.f64 im) (cos.f64 re))
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))))
(neg.f64 (fma.f64 (cos.f64 re) im (*.f64 (*.f64 1/6 (cos.f64 re)) (pow.f64 im 3))))
(-.f64 (*.f64 (*.f64 (pow.f64 im 3) (cos.f64 re)) -1/6) (*.f64 im (cos.f64 re)))
(*.f64 (cos.f64 re) (-.f64 (neg.f64 im) (*.f64 (pow.f64 im 3) 1/6)))
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
(neg.f64 (fma.f64 (cos.f64 re) im (fma.f64 1/6 (*.f64 (pow.f64 im 3) (cos.f64 re)) (*.f64 1/120 (*.f64 (pow.f64 im 5) (cos.f64 re))))))
(neg.f64 (fma.f64 im (cos.f64 re) (fma.f64 1/6 (*.f64 (pow.f64 im 3) (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 5) 1/120)))))
(-.f64 (*.f64 (*.f64 (pow.f64 im 5) (cos.f64 re)) -1/120) (*.f64 (cos.f64 re) (+.f64 im (*.f64 (pow.f64 im 3) 1/6))))
(neg.f64 (+.f64 (*.f64 1/5040 (*.f64 (cos.f64 re) (pow.f64 im 7))) (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5)))))))
(neg.f64 (fma.f64 1/5040 (*.f64 (pow.f64 im 7) (cos.f64 re)) (fma.f64 (cos.f64 re) im (fma.f64 1/6 (*.f64 (pow.f64 im 3) (cos.f64 re)) (*.f64 1/120 (*.f64 (pow.f64 im 5) (cos.f64 re)))))))
(-.f64 (*.f64 (*.f64 (pow.f64 im 7) (cos.f64 re)) -1/5040) (fma.f64 im (cos.f64 re) (fma.f64 1/6 (*.f64 (pow.f64 im 3) (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 5) 1/120)))))
(-.f64 (neg.f64 (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 3) 1/6) (*.f64 (pow.f64 im 5) 1/120)))) (*.f64 (cos.f64 re) (+.f64 im (*.f64 (pow.f64 im 7) 1/5040))))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (*.f64 -1 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (*.f64 1/2 (cos.f64 re)))
1
(-.f64 1 (*.f64 1/2 (pow.f64 re 2)))
(+.f64 1 (*.f64 -1/2 (*.f64 re re)))
(+.f64 1 (*.f64 (*.f64 re re) -1/2))
(fma.f64 (*.f64 re re) -1/2 1)
(-.f64 (+.f64 1 (*.f64 1/24 (pow.f64 re 4))) (*.f64 1/2 (pow.f64 re 2)))
(+.f64 1 (-.f64 (*.f64 (pow.f64 re 4) 1/24) (*.f64 1/2 (*.f64 re re))))
(+.f64 1 (fma.f64 (pow.f64 re 4) 1/24 (*.f64 (*.f64 re re) -1/2)))
(fma.f64 (*.f64 re re) -1/2 (fma.f64 (pow.f64 re 4) 1/24 1))
(-.f64 (+.f64 1 (*.f64 1/24 (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 re 2)) (*.f64 1/720 (pow.f64 re 6))))
(+.f64 1 (-.f64 (*.f64 (pow.f64 re 4) 1/24) (fma.f64 1/2 (*.f64 re re) (*.f64 (pow.f64 re 6) 1/720))))
(-.f64 (fma.f64 (pow.f64 re 4) 1/24 1) (fma.f64 1/2 (*.f64 re re) (*.f64 (pow.f64 re 6) 1/720)))
(+.f64 1 (fma.f64 (pow.f64 re 4) 1/24 (fma.f64 (*.f64 re re) -1/2 (*.f64 (pow.f64 re 6) -1/720))))
(+.f64 (fma.f64 (*.f64 re re) -1/2 (fma.f64 (pow.f64 re 4) 1/24 1)) (*.f64 (pow.f64 re 6) -1/720))

prune83.0ms (0.9%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New1622164
Fresh101
Picked101
Done000
Total1642166
Error
0.1b
Counts
166 → 2
Alt Table
StatusErrorProgram
0.7b
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
59.3b
(*.f64 (*.f64 1/2 (pow.f64 (sqrt.f64 (cos.f64 re)) 2)) (-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im)))
Compiler

Compiled 3089 to 1742 computations (43.6% saved)

localize15.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (cos.f64 re) (pow.f64 im 3))
0.1b
(*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5)))
0.1b
(*.f64 (cos.f64 re) im)
0.1b
(*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))

series16.0ms (0.2%)

Counts
4 → 16
Calls

24 calls:

TimeVariablePointExpression
2.0ms
re
@-inf
(*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))
1.0ms
re
@0
(*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))
1.0ms
re
@inf
(*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5)))
1.0ms
re
@inf
(*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))
1.0ms
re
@0
(*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5)))

rewrite58.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
715×log-prod_binary64
260×expm1-udef_binary64
260×log1p-udef_binary64
217×log-pow_binary64
150×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01539
131839
2352939
Stop Event
node limit
Counts
4 → 68
Calls
Call 1
Inputs
(*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))
(*.f64 (cos.f64 re) im)
(*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5)))
(*.f64 (cos.f64 re) (pow.f64 im 3))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (pow.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)) 1/6)) (cbrt.f64 (pow.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)) 1/6)))) (log.f64 (cbrt.f64 (pow.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)) 1/6))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)) 1/6))) (log.f64 (sqrt.f64 (pow.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)) 1/6))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cbrt.f64 (*.f64 1/6 (cos.f64 re))) im) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 (*.f64 1/6 (cos.f64 re))) (pow.f64 im 3/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 (*.f64 (cos.f64 re) (pow.f64 im 3)) 2) 1/36))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) im))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (pow.f64 (exp.f64 im) (cos.f64 re))) (cbrt.f64 (pow.f64 (exp.f64 im) (cos.f64 re))))) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 im) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 im) (cos.f64 re)))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 im) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) im) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) im) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) im)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cos.f64 re) im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 im) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) im) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (cos.f64 re) 3) (pow.f64 im 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 im 3) (pow.f64 (cos.f64 re) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) im)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) im)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) im)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (exp.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)))) (cbrt.f64 (exp.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)))))) (log.f64 (cbrt.f64 (exp.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))))) (log.f64 (sqrt.f64 (exp.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 (*.f64 (cos.f64 re) 1/120)) (pow.f64 im 5/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (pow.f64 im 5) (*.f64 (cos.f64 re) 1/120))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (pow.f64 im 3)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re))) (cbrt.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re))))) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) (pow.f64 im 3)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) (pow.f64 im 3)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (pow.f64 im 3)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (cbrt.f64 (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 (cos.f64 re)) (pow.f64 im 3/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cos.f64 re) (pow.f64 im 3)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (pow.f64 im 3)) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (pow.f64 im 3)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) (pow.f64 im 3)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (cos.f64 re) 3) (pow.f64 (pow.f64 im 3) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (pow.f64 im 3) 3) (pow.f64 (cos.f64 re) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (fma.f64 3 (log.f64 im) (log.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (fma.f64 3 (log.f64 im) (log.f64 (cos.f64 re))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) (pow.f64 im 3))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) (pow.f64 im 3))))))))

simplify35.0ms (0.4%)

Algorithm
egg-herbie
Rules
496×associate-*l*_binary64
486×associate-*r*_binary64
426×fma-def_binary64
352×unswap-sqr_binary64
346×cancel-sign-sub-inv_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
067394
1208347
2816291
34263291
Stop Event
node limit
Counts
84 → 96
Calls
Call 1
Inputs
(*.f64 1/6 (pow.f64 im 3))
(-.f64 (*.f64 1/6 (pow.f64 im 3)) (*.f64 1/12 (*.f64 (pow.f64 re 2) (pow.f64 im 3))))
(-.f64 (+.f64 (*.f64 1/144 (*.f64 (pow.f64 re 4) (pow.f64 im 3))) (*.f64 1/6 (pow.f64 im 3))) (*.f64 1/12 (*.f64 (pow.f64 re 2) (pow.f64 im 3))))
(-.f64 (+.f64 (*.f64 1/144 (*.f64 (pow.f64 re 4) (pow.f64 im 3))) (*.f64 1/6 (pow.f64 im 3))) (+.f64 (*.f64 1/4320 (*.f64 (pow.f64 re 6) (pow.f64 im 3))) (*.f64 1/12 (*.f64 (pow.f64 re 2) (pow.f64 im 3)))))
im
(-.f64 im (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 re 2) im)) (*.f64 1/720 (*.f64 (pow.f64 re 6) im))))
(*.f64 1/120 (pow.f64 im 5))
(-.f64 (*.f64 1/120 (pow.f64 im 5)) (*.f64 1/240 (*.f64 (pow.f64 re 2) (pow.f64 im 5))))
(-.f64 (+.f64 (*.f64 1/120 (pow.f64 im 5)) (*.f64 1/2880 (*.f64 (pow.f64 re 4) (pow.f64 im 5)))) (*.f64 1/240 (*.f64 (pow.f64 re 2) (pow.f64 im 5))))
(-.f64 (+.f64 (*.f64 1/120 (pow.f64 im 5)) (*.f64 1/2880 (*.f64 (pow.f64 re 4) (pow.f64 im 5)))) (+.f64 (*.f64 1/86400 (*.f64 (pow.f64 re 6) (pow.f64 im 5))) (*.f64 1/240 (*.f64 (pow.f64 re 2) (pow.f64 im 5)))))
(pow.f64 im 3)
(-.f64 (pow.f64 im 3) (*.f64 1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 3))))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 3))) (pow.f64 im 3)) (*.f64 1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 3))))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 3))) (pow.f64 im 3)) (+.f64 (*.f64 1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 3))) (*.f64 1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 3)))))
Outputs
(*.f64 1/6 (pow.f64 im 3))
(-.f64 (*.f64 1/6 (pow.f64 im 3)) (*.f64 1/12 (*.f64 (pow.f64 re 2) (pow.f64 im 3))))
(+.f64 (*.f64 1/6 (pow.f64 im 3)) (*.f64 -1/12 (*.f64 (pow.f64 im 3) (*.f64 re re))))
(*.f64 (pow.f64 im 3) (-.f64 1/6 (*.f64 1/12 (*.f64 re re))))
(*.f64 (pow.f64 im 3) (+.f64 (*.f64 (*.f64 re re) -1/12) 1/6))
(-.f64 (+.f64 (*.f64 1/144 (*.f64 (pow.f64 re 4) (pow.f64 im 3))) (*.f64 1/6 (pow.f64 im 3))) (*.f64 1/12 (*.f64 (pow.f64 re 2) (pow.f64 im 3))))
(+.f64 (fma.f64 1/144 (*.f64 (pow.f64 im 3) (pow.f64 re 4)) (*.f64 1/6 (pow.f64 im 3))) (*.f64 -1/12 (*.f64 (pow.f64 im 3) (*.f64 re re))))
(fma.f64 1/144 (*.f64 (pow.f64 im 3) (pow.f64 re 4)) (*.f64 (pow.f64 im 3) (-.f64 1/6 (*.f64 1/12 (*.f64 re re)))))
(*.f64 (pow.f64 im 3) (-.f64 (fma.f64 1/144 (pow.f64 re 4) 1/6) (*.f64 1/12 (*.f64 re re))))
(*.f64 (pow.f64 im 3) (+.f64 (fma.f64 1/144 (pow.f64 re 4) 1/6) (*.f64 (*.f64 re re) -1/12)))
(-.f64 (+.f64 (*.f64 1/144 (*.f64 (pow.f64 re 4) (pow.f64 im 3))) (*.f64 1/6 (pow.f64 im 3))) (+.f64 (*.f64 1/4320 (*.f64 (pow.f64 re 6) (pow.f64 im 3))) (*.f64 1/12 (*.f64 (pow.f64 re 2) (pow.f64 im 3)))))
(-.f64 (fma.f64 1/144 (*.f64 (pow.f64 im 3) (pow.f64 re 4)) (*.f64 1/6 (pow.f64 im 3))) (fma.f64 1/4320 (*.f64 (pow.f64 im 3) (pow.f64 re 6)) (*.f64 (*.f64 1/12 (*.f64 re re)) (pow.f64 im 3))))
(-.f64 (*.f64 (pow.f64 im 3) (+.f64 1/6 (*.f64 1/144 (pow.f64 re 4)))) (*.f64 (pow.f64 im 3) (+.f64 (*.f64 1/12 (*.f64 re re)) (*.f64 1/4320 (pow.f64 re 6)))))
(*.f64 (pow.f64 im 3) (-.f64 (fma.f64 1/144 (pow.f64 re 4) 1/6) (fma.f64 1/12 (*.f64 re re) (*.f64 1/4320 (pow.f64 re 6)))))
im
(-.f64 im (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(+.f64 im (*.f64 -1/2 (*.f64 im (*.f64 re re))))
(+.f64 im (*.f64 (*.f64 -1/2 im) (*.f64 re re)))
(fma.f64 (*.f64 im (*.f64 re re)) -1/2 im)
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(+.f64 (fma.f64 1/24 (*.f64 im (pow.f64 re 4)) im) (*.f64 -1/2 (*.f64 im (*.f64 re re))))
(+.f64 (fma.f64 (*.f64 (pow.f64 re 4) 1/24) im im) (*.f64 (*.f64 -1/2 im) (*.f64 re re)))
(*.f64 im (-.f64 (fma.f64 (pow.f64 re 4) 1/24 1) (*.f64 (*.f64 re re) 1/2)))
(*.f64 im (+.f64 (fma.f64 (pow.f64 re 4) 1/24 1) (*.f64 (*.f64 re re) -1/2)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 re 2) im)) (*.f64 1/720 (*.f64 (pow.f64 re 6) im))))
(-.f64 (fma.f64 1/24 (*.f64 im (pow.f64 re 4)) im) (fma.f64 1/2 (*.f64 im (*.f64 re re)) (*.f64 1/720 (*.f64 im (pow.f64 re 6)))))
(-.f64 (fma.f64 (*.f64 (pow.f64 re 4) 1/24) im im) (*.f64 im (+.f64 (*.f64 (*.f64 re re) 1/2) (*.f64 (pow.f64 re 6) 1/720))))
(+.f64 im (*.f64 im (-.f64 (*.f64 (pow.f64 re 4) 1/24) (fma.f64 (*.f64 re re) 1/2 (*.f64 (pow.f64 re 6) 1/720)))))
(*.f64 1/120 (pow.f64 im 5))
(-.f64 (*.f64 1/120 (pow.f64 im 5)) (*.f64 1/240 (*.f64 (pow.f64 re 2) (pow.f64 im 5))))
(-.f64 (*.f64 1/120 (pow.f64 im 5)) (*.f64 (*.f64 1/240 (*.f64 re re)) (pow.f64 im 5)))
(*.f64 (pow.f64 im 5) (-.f64 1/120 (*.f64 (*.f64 re re) 1/240)))
(*.f64 (pow.f64 im 5) (+.f64 1/120 (*.f64 (*.f64 re re) -1/240)))
(-.f64 (+.f64 (*.f64 1/120 (pow.f64 im 5)) (*.f64 1/2880 (*.f64 (pow.f64 re 4) (pow.f64 im 5)))) (*.f64 1/240 (*.f64 (pow.f64 re 2) (pow.f64 im 5))))
(+.f64 (fma.f64 1/120 (pow.f64 im 5) (*.f64 1/2880 (*.f64 (pow.f64 re 4) (pow.f64 im 5)))) (*.f64 -1/240 (*.f64 (*.f64 re re) (pow.f64 im 5))))
(fma.f64 1/120 (pow.f64 im 5) (*.f64 (pow.f64 im 5) (-.f64 (*.f64 (pow.f64 re 4) 1/2880) (*.f64 (*.f64 re re) 1/240))))
(*.f64 (pow.f64 im 5) (-.f64 (fma.f64 (pow.f64 re 4) 1/2880 1/120) (*.f64 re (*.f64 re 1/240))))
(*.f64 (pow.f64 im 5) (+.f64 (fma.f64 (pow.f64 re 4) 1/2880 1/120) (*.f64 (*.f64 re re) -1/240)))
(-.f64 (+.f64 (*.f64 1/120 (pow.f64 im 5)) (*.f64 1/2880 (*.f64 (pow.f64 re 4) (pow.f64 im 5)))) (+.f64 (*.f64 1/86400 (*.f64 (pow.f64 re 6) (pow.f64 im 5))) (*.f64 1/240 (*.f64 (pow.f64 re 2) (pow.f64 im 5)))))
(-.f64 (fma.f64 1/120 (pow.f64 im 5) (*.f64 1/2880 (*.f64 (pow.f64 re 4) (pow.f64 im 5)))) (fma.f64 1/86400 (*.f64 (pow.f64 re 6) (pow.f64 im 5)) (*.f64 (*.f64 1/240 (*.f64 re re)) (pow.f64 im 5))))
(-.f64 (*.f64 (pow.f64 im 5) (+.f64 1/120 (*.f64 (pow.f64 re 4) 1/2880))) (*.f64 (pow.f64 im 5) (+.f64 (*.f64 (*.f64 re re) 1/240) (*.f64 (pow.f64 re 6) 1/86400))))
(*.f64 (pow.f64 im 5) (-.f64 (fma.f64 (pow.f64 re 4) 1/2880 1/120) (fma.f64 (*.f64 re re) 1/240 (*.f64 (pow.f64 re 6) 1/86400))))
(pow.f64 im 3)
(-.f64 (pow.f64 im 3) (*.f64 1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 3))))
(+.f64 (pow.f64 im 3) (*.f64 -1/2 (*.f64 (pow.f64 im 3) (*.f64 re re))))
(+.f64 (pow.f64 im 3) (*.f64 (*.f64 (pow.f64 im 3) (*.f64 re re)) -1/2))
(*.f64 (+.f64 (*.f64 (*.f64 re re) -1/2) 1) (pow.f64 im 3))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 3))) (pow.f64 im 3)) (*.f64 1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 3))))
(+.f64 (fma.f64 1/24 (*.f64 (pow.f64 im 3) (pow.f64 re 4)) (pow.f64 im 3)) (*.f64 -1/2 (*.f64 (pow.f64 im 3) (*.f64 re re))))
(+.f64 (*.f64 (+.f64 (*.f64 (pow.f64 re 4) 1/24) 1) (pow.f64 im 3)) (*.f64 (*.f64 (pow.f64 im 3) (*.f64 re re)) -1/2))
(*.f64 (pow.f64 im 3) (-.f64 (fma.f64 (pow.f64 re 4) 1/24 1) (*.f64 (*.f64 re re) 1/2)))
(*.f64 (pow.f64 im 3) (+.f64 (fma.f64 (pow.f64 re 4) 1/24 1) (*.f64 (*.f64 re re) -1/2)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 3))) (pow.f64 im 3)) (+.f64 (*.f64 1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 3))) (*.f64 1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 3)))))
(-.f64 (fma.f64 1/24 (*.f64 (pow.f64 im 3) (pow.f64 re 4)) (pow.f64 im 3)) (fma.f64 1/720 (*.f64 (pow.f64 im 3) (pow.f64 re 6)) (*.f64 (*.f64 (pow.f64 im 3) (*.f64 re re)) 1/2)))
(-.f64 (*.f64 (+.f64 (*.f64 (pow.f64 re 4) 1/24) 1) (pow.f64 im 3)) (*.f64 (pow.f64 im 3) (+.f64 (*.f64 (pow.f64 re 6) 1/720) (*.f64 (*.f64 re re) 1/2))))
(+.f64 (pow.f64 im 3) (*.f64 (pow.f64 im 3) (-.f64 (*.f64 (pow.f64 re 4) 1/24) (fma.f64 (*.f64 re re) 1/2 (*.f64 (pow.f64 re 6) 1/720)))))

prune98.0ms (1.1%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New93396
Fresh011
Picked011
Done000
Total93598
Error
0.1b
Counts
98 → 5
Alt Table
StatusErrorProgram
0.7b
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
40.8b
(neg.f64 (+.f64 (cbrt.f64 (*.f64 (pow.f64 (cos.f64 re) 3) (pow.f64 im 3))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
31.5b
(neg.f64 (+.f64 (pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) im)) 2) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
2.2b
(neg.f64 (+.f64 (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
59.3b
(*.f64 (*.f64 1/2 (pow.f64 (sqrt.f64 (cos.f64 re)) 2)) (-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im)))
Compiler

Compiled 3054 to 1949 computations (36.2% saved)

localize18.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (cos.f64 re) im)
0.1b
(*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))
0.7b
(cbrt.f64 (*.f64 (cos.f64 re) im))
0.8b
(pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3)

series17.0ms (0.2%)

Counts
2 → 24
Calls

12 calls:

TimeVariablePointExpression
5.0ms
re
@-inf
(pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3)
3.0ms
im
@-inf
(pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3)
2.0ms
re
@inf
(pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3)
2.0ms
re
@0
(pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3)
1.0ms
im
@0
(pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3)

rewrite47.0ms (0.5%)

Algorithm
batch-egg-rewrite
Rules
638×pow1_binary64
596×add-log-exp_binary64
596×log1p-expm1-u_binary64
596×expm1-log1p-u_binary64
71×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify37.0ms (0.4%)

Algorithm
egg-herbie
Rules
535×fma-neg_binary64
356×*-commutative_binary64
330×distribute-lft-neg-in_binary64
329×distribute-rgt-neg-in_binary64
191×associate-*r*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
043272
1124265
2409248
31837244
44903244
Stop Event
node limit
Counts
80 → 72
Calls
Call 1
Inputs
im
(-.f64 im (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 re 2) im)) (*.f64 1/720 (*.f64 (pow.f64 re 6) im))))
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(pow.f64 im 1/3)
(-.f64 (pow.f64 im 1/3) (*.f64 1/6 (*.f64 (pow.f64 re 2) (pow.f64 im 1/3))))
(-.f64 (pow.f64 im 1/3) (+.f64 (*.f64 1/72 (*.f64 (pow.f64 re 4) (pow.f64 im 1/3))) (*.f64 1/6 (*.f64 (pow.f64 re 2) (pow.f64 im 1/3)))))
(-.f64 (pow.f64 im 1/3) (+.f64 (*.f64 1/72 (*.f64 (pow.f64 re 4) (pow.f64 im 1/3))) (+.f64 (*.f64 1/6 (*.f64 (pow.f64 re 2) (pow.f64 im 1/3))) (*.f64 23/6480 (*.f64 (pow.f64 re 6) (pow.f64 im 1/3))))))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
Outputs
im
(-.f64 im (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(+.f64 im (*.f64 -1/2 (*.f64 im (*.f64 re re))))
(-.f64 im (*.f64 (*.f64 re re) (*.f64 im 1/2)))
(fma.f64 (*.f64 im -1/2) (*.f64 re re) im)
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(+.f64 (fma.f64 1/24 (*.f64 im (pow.f64 re 4)) im) (*.f64 -1/2 (*.f64 im (*.f64 re re))))
(fma.f64 1/24 (*.f64 im (pow.f64 re 4)) (-.f64 im (*.f64 (*.f64 re re) (*.f64 im 1/2))))
(*.f64 im (-.f64 (fma.f64 1/24 (pow.f64 re 4) 1) (*.f64 1/2 (*.f64 re re))))
(*.f64 im (+.f64 (*.f64 re (*.f64 re -1/2)) (fma.f64 1/24 (pow.f64 re 4) 1)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 re 2) im)) (*.f64 1/720 (*.f64 (pow.f64 re 6) im))))
(-.f64 (fma.f64 1/24 (*.f64 im (pow.f64 re 4)) im) (fma.f64 1/2 (*.f64 im (*.f64 re re)) (*.f64 1/720 (*.f64 im (pow.f64 re 6)))))
(-.f64 (fma.f64 1/24 (*.f64 im (pow.f64 re 4)) im) (*.f64 im (+.f64 (*.f64 1/2 (*.f64 re re)) (*.f64 1/720 (pow.f64 re 6)))))
(+.f64 im (*.f64 im (-.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 1/2 (*.f64 re re) (*.f64 1/720 (pow.f64 re 6))))))
(*.f64 im (-.f64 (fma.f64 1/24 (pow.f64 re 4) 1) (fma.f64 1/720 (pow.f64 re 6) (*.f64 1/2 (*.f64 re re)))))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(*.f64 (cos.f64 re) im)
(*.f64 im (cos.f64 re))
(pow.f64 im 1/3)
(cbrt.f64 im)
(-.f64 (pow.f64 im 1/3) (*.f64 1/6 (*.f64 (pow.f64 re 2) (pow.f64 im 1/3))))
(+.f64 (cbrt.f64 im) (*.f64 -1/6 (*.f64 (*.f64 re re) (cbrt.f64 im))))
(+.f64 (cbrt.f64 im) (*.f64 (*.f64 (*.f64 re re) (cbrt.f64 im)) -1/6))
(fma.f64 (*.f64 (*.f64 re re) -1/6) (cbrt.f64 im) (cbrt.f64 im))
(fma.f64 (*.f64 re (*.f64 re (cbrt.f64 im))) -1/6 (cbrt.f64 im))
(-.f64 (pow.f64 im 1/3) (+.f64 (*.f64 1/72 (*.f64 (pow.f64 re 4) (pow.f64 im 1/3))) (*.f64 1/6 (*.f64 (pow.f64 re 2) (pow.f64 im 1/3)))))
(-.f64 (cbrt.f64 im) (fma.f64 1/72 (*.f64 (pow.f64 re 4) (cbrt.f64 im)) (*.f64 1/6 (*.f64 (*.f64 re re) (cbrt.f64 im)))))
(-.f64 (cbrt.f64 im) (*.f64 (cbrt.f64 im) (+.f64 (*.f64 (pow.f64 re 4) 1/72) (*.f64 (*.f64 re re) 1/6))))
(-.f64 (cbrt.f64 im) (*.f64 (cbrt.f64 im) (fma.f64 (*.f64 re re) 1/6 (*.f64 (pow.f64 re 4) 1/72))))
(*.f64 (cbrt.f64 im) (+.f64 (+.f64 1 (*.f64 (pow.f64 re 4) -1/72)) (*.f64 re (*.f64 re -1/6))))
(-.f64 (pow.f64 im 1/3) (+.f64 (*.f64 1/72 (*.f64 (pow.f64 re 4) (pow.f64 im 1/3))) (+.f64 (*.f64 1/6 (*.f64 (pow.f64 re 2) (pow.f64 im 1/3))) (*.f64 23/6480 (*.f64 (pow.f64 re 6) (pow.f64 im 1/3))))))
(-.f64 (cbrt.f64 im) (fma.f64 1/72 (*.f64 (pow.f64 re 4) (cbrt.f64 im)) (fma.f64 1/6 (*.f64 (*.f64 re re) (cbrt.f64 im)) (*.f64 23/6480 (*.f64 (pow.f64 re 6) (cbrt.f64 im))))))
(-.f64 (cbrt.f64 im) (fma.f64 1/72 (*.f64 (pow.f64 re 4) (cbrt.f64 im)) (*.f64 (cbrt.f64 im) (+.f64 (*.f64 (*.f64 re re) 1/6) (*.f64 (pow.f64 re 6) 23/6480)))))
(-.f64 (cbrt.f64 im) (*.f64 (cbrt.f64 im) (+.f64 (fma.f64 (*.f64 re re) 1/6 (*.f64 (pow.f64 re 4) 1/72)) (*.f64 (pow.f64 re 6) 23/6480))))
(*.f64 (cbrt.f64 im) (-.f64 (+.f64 1 (*.f64 (pow.f64 re 4) -1/72)) (fma.f64 (*.f64 re re) 1/6 (*.f64 (pow.f64 re 6) 23/6480))))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(cbrt.f64 (*.f64 im (cos.f64 re)))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(cbrt.f64 (*.f64 im (cos.f64 re)))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(cbrt.f64 (*.f64 im (cos.f64 re)))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(cbrt.f64 (*.f64 im (cos.f64 re)))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(cbrt.f64 (*.f64 im (cos.f64 re)))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(cbrt.f64 (*.f64 im (cos.f64 re)))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(cbrt.f64 (*.f64 im (cos.f64 re)))
(pow.f64 (*.f64 (cos.f64 re) im) 1/3)
(cbrt.f64 (*.f64 im (cos.f64 re)))

prune152.0ms (1.7%)

Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1146120
Fresh123
Picked101
Done011
Total1169125
Error
0.0b
Counts
125 → 9
Alt Table
StatusErrorProgram
59.3b
(*.f64 (*.f64 1/2 (pow.f64 (sqrt.f64 (cos.f64 re)) 2)) (-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im)))
3.4b
(neg.f64 (+.f64 (pow.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (*.f64 (cos.f64 re) im))) 3) 3) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
1.3b
(neg.f64 (+.f64 (*.f64 (*.f64 im (pow.f64 (cbrt.f64 (cos.f64 re)) 2)) (cbrt.f64 (cos.f64 re))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
30.3b
(neg.f64 (+.f64 (*.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 im) (cos.f64 re))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
2.2b
(neg.f64 (+.f64 (*.f64 (cbrt.f64 (cos.f64 re)) (*.f64 (cbrt.f64 im) (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 2))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
2.2b
(neg.f64 (+.f64 (*.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 2)) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
0.7b
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
31.5b
(neg.f64 (+.f64 (pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) im)) 2) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
2.3b
(neg.f64 (+.f64 (pow.f64 (*.f64 (cbrt.f64 (cos.f64 re)) (cbrt.f64 im)) 3) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
Compiler

Compiled 4267 to 2674 computations (37.3% saved)

localize22.0ms (0.3%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (*.f64 im (pow.f64 (cbrt.f64 (cos.f64 re)) 2)) (cbrt.f64 (cos.f64 re)))
0.1b
(*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3)))
0.2b
(pow.f64 (cbrt.f64 (cos.f64 re)) 2)
0.3b
(cbrt.f64 (cos.f64 re))

series7.0ms (0.1%)

Counts
3 → 48
Calls

12 calls:

TimeVariablePointExpression
2.0ms
re
@inf
(cbrt.f64 (cos.f64 re))
1.0ms
re
@-inf
(cbrt.f64 (cos.f64 re))
1.0ms
re
@0
(pow.f64 (cbrt.f64 (cos.f64 re)) 2)
1.0ms
re
@0
(cbrt.f64 (cos.f64 re))
1.0ms
re
@inf
(pow.f64 (cbrt.f64 (cos.f64 re)) 2)

rewrite38.0ms (0.4%)

Algorithm
batch-egg-rewrite
Rules
766×pow1_binary64
705×log1p-expm1-u_binary64
705×expm1-log1p-u_binary64
86×add-sqr-sqrt_binary64
83×*-un-lft-identity_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0919
118119
2201119
Stop Event
node limit
Counts
3 → 56
Calls
Call 1
Inputs
(cbrt.f64 (cos.f64 re))
(pow.f64 (cbrt.f64 (cos.f64 re)) 2)
(*.f64 (*.f64 im (pow.f64 (cbrt.f64 (cos.f64 re)) 2)) (cbrt.f64 (cos.f64 re)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (cbrt.f64 (cos.f64 re)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (cbrt.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (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 (cbrt.f64 (cbrt.f64 (cos.f64 re))) (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cos.f64 re) 1/6) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cbrt.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 4))) (sqrt.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (cbrt.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (cos.f64 re)) 1/3) (pow.f64 (sqrt.f64 (cos.f64 re)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cos.f64 re) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cos.f64 re) 1/6) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (cbrt.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (cbrt.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cos.f64 re)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (cos.f64 re))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (cbrt.f64 (cos.f64 re))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cos.f64 re)) (cbrt.f64 (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (cbrt.f64 (cos.f64 re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2) (cbrt.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 4)))))) (#(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))) (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (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 (sqrt.f64 (cos.f64 re)) (pow.f64 (cos.f64 re) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cos.f64 re) 1/6) (*.f64 (pow.f64 (cos.f64 re) 1/6) (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (cos.f64 re)) (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2)) (cbrt.f64 (cbrt.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (cos.f64 re) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 2 (log.f64 (cbrt.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 2 (log.f64 (cbrt.f64 (cos.f64 re)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (cbrt.f64 (cos.f64 re)) 2)))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) im) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) im) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) im)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cos.f64 re) im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 im) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) im) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (cos.f64 re) (*.f64 (pow.f64 (*.f64 (cos.f64 re) im) 2) im)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 im 3) (pow.f64 (cos.f64 re) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) im)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) im)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) im)))))))

simplify147.0ms (1.7%)

Algorithm
egg-herbie
Rules
663×cancel-sign-sub-inv_binary64
422×fma-neg_binary64
403×sub-neg_binary64
260×*-commutative_binary64
211×distribute-rgt-neg-in_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
055398
1154397
2432385
31637383
44680383
Stop Event
node limit
Counts
104 → 79
Calls
Call 1
Inputs
1
(-.f64 1 (*.f64 1/6 (pow.f64 re 2)))
(-.f64 1 (+.f64 (*.f64 1/6 (pow.f64 re 2)) (*.f64 1/72 (pow.f64 re 4))))
(-.f64 1 (+.f64 (*.f64 1/6 (pow.f64 re 2)) (+.f64 (*.f64 1/72 (pow.f64 re 4)) (*.f64 23/6480 (pow.f64 re 6)))))
(pow.f64 (cos.f64 re) 1/3)
(pow.f64 (cos.f64 re) 1/3)
(pow.f64 (cos.f64 re) 1/3)
(pow.f64 (cos.f64 re) 1/3)
(pow.f64 (cos.f64 re) 1/3)
(pow.f64 (cos.f64 re) 1/3)
(pow.f64 (cos.f64 re) 1/3)
(pow.f64 (cos.f64 re) 1/3)
1
(-.f64 1 (*.f64 1/3 (pow.f64 re 2)))
(-.f64 1 (+.f64 (*.f64 1/3 (pow.f64 re 2)) (*.f64 1/405 (pow.f64 re 6))))
(-.f64 1 (+.f64 (*.f64 1/3 (pow.f64 re 2)) (+.f64 (*.f64 1/405 (pow.f64 re 6)) (*.f64 1/1701 (pow.f64 re 8)))))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
im
(-.f64 im (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 re 2) im)) (*.f64 1/720 (*.f64 (pow.f64 re 6) im))))
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
Outputs
1
(-.f64 1 (*.f64 1/6 (pow.f64 re 2)))
(+.f64 1 (*.f64 -1/6 (*.f64 re re)))
(+.f64 1 (*.f64 (*.f64 re re) -1/6))
(fma.f64 (*.f64 re re) -1/6 1)
(-.f64 1 (+.f64 (*.f64 1/6 (pow.f64 re 2)) (*.f64 1/72 (pow.f64 re 4))))
(-.f64 1 (fma.f64 1/6 (*.f64 re re) (*.f64 1/72 (pow.f64 re 4))))
(+.f64 1 (fma.f64 re (*.f64 re -1/6) (*.f64 (pow.f64 re 4) -1/72)))
(-.f64 1 (+.f64 (*.f64 1/6 (pow.f64 re 2)) (+.f64 (*.f64 1/72 (pow.f64 re 4)) (*.f64 23/6480 (pow.f64 re 6)))))
(-.f64 1 (fma.f64 1/6 (*.f64 re re) (fma.f64 1/72 (pow.f64 re 4) (*.f64 23/6480 (pow.f64 re 6)))))
(-.f64 1 (fma.f64 1/6 (*.f64 re re) (fma.f64 23/6480 (pow.f64 re 6) (*.f64 1/72 (pow.f64 re 4)))))
(-.f64 (fma.f64 (*.f64 re re) -1/6 1) (fma.f64 1/72 (pow.f64 re 4) (*.f64 23/6480 (pow.f64 re 6))))
(pow.f64 (cos.f64 re) 1/3)
(cbrt.f64 (cos.f64 re))
(pow.f64 (cos.f64 re) 1/3)
(cbrt.f64 (cos.f64 re))
(pow.f64 (cos.f64 re) 1/3)
(cbrt.f64 (cos.f64 re))
(pow.f64 (cos.f64 re) 1/3)
(cbrt.f64 (cos.f64 re))
(pow.f64 (cos.f64 re) 1/3)
(cbrt.f64 (cos.f64 re))
(pow.f64 (cos.f64 re) 1/3)
(cbrt.f64 (cos.f64 re))
(pow.f64 (cos.f64 re) 1/3)
(cbrt.f64 (cos.f64 re))
(pow.f64 (cos.f64 re) 1/3)
(cbrt.f64 (cos.f64 re))
1
(-.f64 1 (*.f64 1/3 (pow.f64 re 2)))
(+.f64 1 (*.f64 -1/3 (*.f64 re re)))
(-.f64 1 (*.f64 (*.f64 re re) 1/3))
(fma.f64 (*.f64 re re) -1/3 1)
(fma.f64 (*.f64 re -1/3) re 1)
(-.f64 1 (+.f64 (*.f64 1/3 (pow.f64 re 2)) (*.f64 1/405 (pow.f64 re 6))))
(-.f64 1 (fma.f64 1/3 (*.f64 re re) (*.f64 (pow.f64 re 6) 1/405)))
(-.f64 1 (fma.f64 (*.f64 re re) 1/3 (*.f64 (pow.f64 re 6) 1/405)))
(-.f64 1 (fma.f64 re (*.f64 re 1/3) (*.f64 (pow.f64 re 6) 1/405)))
(+.f64 1 (fma.f64 (pow.f64 re 6) -1/405 (*.f64 re (*.f64 re -1/3))))
(-.f64 1 (+.f64 (*.f64 1/3 (pow.f64 re 2)) (+.f64 (*.f64 1/405 (pow.f64 re 6)) (*.f64 1/1701 (pow.f64 re 8)))))
(-.f64 1 (fma.f64 1/3 (*.f64 re re) (fma.f64 1/405 (pow.f64 re 6) (*.f64 1/1701 (pow.f64 re 8)))))
(-.f64 1 (fma.f64 (*.f64 re re) 1/3 (fma.f64 1/1701 (pow.f64 re 8) (*.f64 (pow.f64 re 6) 1/405))))
(-.f64 1 (fma.f64 re (*.f64 re 1/3) (fma.f64 (pow.f64 re 6) 1/405 (*.f64 1/1701 (pow.f64 re 8)))))
(+.f64 1 (fma.f64 re (*.f64 re -1/3) (fma.f64 (pow.f64 re 6) -1/405 (*.f64 (pow.f64 re 8) -1/1701))))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(cbrt.f64 (pow.f64 (cos.f64 re) 2))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(cbrt.f64 (pow.f64 (cos.f64 re) 2))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(cbrt.f64 (pow.f64 (cos.f64 re) 2))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(cbrt.f64 (pow.f64 (cos.f64 re) 2))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(cbrt.f64 (pow.f64 (cos.f64 re) 2))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(cbrt.f64 (pow.f64 (cos.f64 re) 2))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(cbrt.f64 (pow.f64 (cos.f64 re) 2))
(pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)
(cbrt.f64 (pow.f64 (cos.f64 re) 2))
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
im
(-.f64 im (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(+.f64 im (*.f64 -1/2 (*.f64 (*.f64 re re) im)))
(-.f64 im (*.f64 (*.f64 re re) (*.f64 im 1/2)))
(fma.f64 (*.f64 re (*.f64 re im)) -1/2 im)
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (*.f64 1/2 (*.f64 (pow.f64 re 2) im)))
(+.f64 (fma.f64 1/24 (*.f64 (pow.f64 re 4) im) im) (*.f64 -1/2 (*.f64 (*.f64 re re) im)))
(fma.f64 (*.f64 (pow.f64 re 4) 1/24) im (-.f64 im (*.f64 (*.f64 re re) (*.f64 im 1/2))))
(*.f64 im (-.f64 (fma.f64 (pow.f64 re 4) 1/24 1) (*.f64 re (*.f64 re 1/2))))
(*.f64 im (+.f64 (*.f64 re (*.f64 re -1/2)) (fma.f64 (pow.f64 re 4) 1/24 1)))
(-.f64 (+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) im)) im) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 re 2) im)) (*.f64 1/720 (*.f64 (pow.f64 re 6) im))))
(-.f64 (fma.f64 1/24 (*.f64 (pow.f64 re 4) im) im) (fma.f64 1/2 (*.f64 (*.f64 re re) im) (*.f64 1/720 (*.f64 (pow.f64 re 6) im))))
(-.f64 (fma.f64 1/24 (*.f64 (pow.f64 re 4) im) im) (*.f64 im (+.f64 (*.f64 (pow.f64 re 6) 1/720) (*.f64 (*.f64 re re) 1/2))))
(+.f64 im (*.f64 im (-.f64 (*.f64 (pow.f64 re 4) 1/24) (fma.f64 (pow.f64 re 6) 1/720 (*.f64 re (*.f64 re 1/2))))))
(*.f64 im (+.f64 (fma.f64 (*.f64 re -1/2) re (*.f64 (pow.f64 re 6) -1/720)) (fma.f64 (pow.f64 re 4) 1/24 1)))
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)
(*.f64 (cos.f64 re) im)

prune337.0ms (3.8%)

Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New1294133
Fresh257
Picked101
Done011
Total13210142
Error
0.0b
Counts
142 → 10
Alt Table
StatusErrorProgram
30.3b
(neg.f64 (+.f64 (*.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 im) (cos.f64 re))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
1.0b
(neg.f64 (+.f64 (*.f64 (*.f64 im (pow.f64 (pow.f64 (cos.f64 re) 2) 1/3)) (cbrt.f64 (cos.f64 re))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
31.5b
(neg.f64 (+.f64 (pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) im)) 2) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
1.3b
(neg.f64 (+.f64 (*.f64 (*.f64 im (pow.f64 (cbrt.f64 (cos.f64 re)) 2)) (log1p.f64 (expm1.f64 (cbrt.f64 (cos.f64 re))))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
1.4b
(neg.f64 (+.f64 (*.f64 (*.f64 im (pow.f64 (cbrt.f64 (cos.f64 re)) 2)) (*.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (cos.f64 re))) 2) (cbrt.f64 (cbrt.f64 (cos.f64 re))))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
1.1b
(neg.f64 (+.f64 (*.f64 (*.f64 im (cbrt.f64 (pow.f64 (cos.f64 re) 2))) (cbrt.f64 (cos.f64 re))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
2.2b
(neg.f64 (+.f64 (*.f64 (cbrt.f64 (cos.f64 re)) (*.f64 (cbrt.f64 im) (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 2))) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
2.2b
(neg.f64 (+.f64 (*.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) im)) 2)) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
0.7b
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
59.3b
(*.f64 (*.f64 1/2 (pow.f64 (sqrt.f64 (cos.f64 re)) 2)) (-.f64 (exp.f64 (-.f64 0 im)) (exp.f64 im)))
Compiler

Compiled 4812 to 2964 computations (38.4% saved)

regimes207.0ms (2.4%)

Accuracy

Total 0.5b remaining (69.5%)

Threshold costs 0.5b (69.5%)

Counts
59 → 1
Compiler

Compiled 1372 to 847 computations (38.3% saved)

simplify3.0ms (0%)

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

Useful iterations: 2 (0.0ms)

IterNodesCost
01836
13236
25034
38034
410434
511634
612234
712434
Stop Event
saturated
Calls
Call 1
Inputs
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
Outputs
(neg.f64 (+.f64 (*.f64 (cos.f64 re) im) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5))))))
(-.f64 (*.f64 (cos.f64 re) (neg.f64 im)) (+.f64 (*.f64 1/6 (*.f64 (cos.f64 re) (pow.f64 im 3))) (*.f64 1/120 (*.f64 (cos.f64 re) (pow.f64 im 5)))))
(-.f64 (+.f64 (*.f64 (*.f64 (cos.f64 re) (pow.f64 im 3)) -1/6) (*.f64 (*.f64 (cos.f64 re) (pow.f64 im 5)) -1/120)) (*.f64 (cos.f64 re) im))

end239.0ms (2.7%)

Stop Event
fuel
Compiler

Compiled 355 to 240 computations (32.4% saved)

Profiling

Loading profile data...