Details

Time bar (total: 3.8s)

analyze135.0ms (3.6%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%99.9%0.1%0%0%0%0
0%0%99.9%0.1%0%0%0%1
0%0%99.9%0.1%0%0%0%2
0%0%99.9%0.1%0%0%0%3
0%0%99.9%0.1%0%0%0%4
50%50%50%0.1%0%0%0%5
50%50%50%0.1%0%0%0%6
57.1%50%37.5%0.1%12.5%0%0%7
57.1%50%37.5%0.1%12.5%0%0%8
61.5%50%31.2%0.1%18.7%0%0%9
61.5%50%31.2%0.1%18.7%0%0%10
64%50%28.1%0.1%21.9%0%0%11
64%50%28.1%0.1%21.9%0%0%12
Compiler

Compiled 14 to 11 computations (21.4% saved)

sample3.2s (83.8%)

Results
987.0ms2039×body1024valid
735.0ms2101×body1024infinite
689.0ms5130×body256valid
292.0ms1085×body512valid
246.0ms1036×body512infinite
194.0ms1482×body256infinite
2.0msbody2048valid
Bogosity

preprocess3.0ms (0.1%)

Algorithm
egg-herbie
Rules
28×rational.json-simplify-2
rational.json-simplify-31
rational.json-simplify-1
rational.json-simplify-9
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02070
12970
23970
34770
022
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
1
Outputs
0
1
Call 2
Inputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (*.f64 1/2 (cos.f64 im)) (+.f64 (exp.f64 (neg.f64 re)) (exp.f64 re)))
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (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)))
Compiler

Compiled 15 to 12 computations (20% saved)

simplify4.0ms (0.1%)

Algorithm
egg-herbie
Rules
14×rational.json-simplify-2
rational.json-simplify-31
rational.json-simplify-1
rational.json-simplify-9
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01335
11835
22335
32735
Stop Event
saturated
Counts
1 → 3
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 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))

eval1.0ms (0%)

Compiler

Compiled 35 to 16 computations (54.3% saved)

prune1.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New213
Fresh011
Picked000
Done000
Total224
Error
0.0b
Counts
4 → 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)

localize15.0ms (0.4%)

Local error

Found 2 expressions with local error:

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

Compiled 35 to 13 computations (62.9% saved)

series4.0ms (0.1%)

Counts
2 → 28
Calls

9 calls:

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

rewrite7.0ms (0.2%)

Algorithm
batch-egg-rewrite
Rules
50×rational.json-simplify-2
44×bool.json-1
36×rational.json-1
36×rational.json-2
34×rational.json-simplify-1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01340
16140
210640
312940
414340
514640
614840
Stop Event
saturated
Counts
2 → 6
Calls
Call 1
Inputs
(cos.f64 re)
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (cos.f64 re) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (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 or (cos.f64 re) (cos.f64 re))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x or (*.f64 (cos.f64 re) (*.f64 1/2 (+.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)))))))))

simplify22.0ms (0.6%)

Algorithm
egg-herbie
Rules
168×rational.json-simplify-1
104×rational.json-simplify-2
102×rational.json-simplify-33
32×rational.json-simplify-31
rational.json-simplify-19
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0771338
11411326
22101326
32771326
43131326
53141326
Stop Event
saturated
Counts
34 → 40
Calls
Call 1
Inputs
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)))))
(*.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)))))
(+.f64 (cos.f64 re) 0)
(+.f64 0 (cos.f64 re))
(*.f64 (cos.f64 re) 1)
(*.f64 1 (cos.f64 re))
(+.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) 0)
(+.f64 0 (*.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))
Outputs
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 (*.f64 -1/2 (pow.f64 re 2))) (*.f64 1/24 (pow.f64 re 4)))
(+.f64 (*.f64 -1/2 (pow.f64 re 2)) (+.f64 1 (*.f64 1/24 (pow.f64 re 4))))
(+.f64 1 (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 1/24 (pow.f64 re 4))))
(+.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)))))
(+.f64 1 (+.f64 (*.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 -1/2 (pow.f64 re 2)) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (*.f64 -1/720 (pow.f64 re 6)))))
(*.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 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 -1/4 (pow.f64 re 2))))
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (pow.f64 re 2) -1/4)))
(+.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/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 -1/4 (pow.f64 re 2))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/48 (pow.f64 re 4)))))
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (pow.f64 re 2) -1/4)) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (pow.f64 re 4) 1/48))))
(+.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 (+.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 (pow.f64 re 6) (*.f64 -1/1440 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))
(+.f64 (+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 -1/4 (pow.f64 re 2))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 1/48 (pow.f64 re 4)))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 (pow.f64 re 6) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) -1/1440))))
(+.f64 (*.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 (pow.f64 re 2) -1/4)) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 (pow.f64 re 6) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) -1/1440)))))
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (pow.f64 re 2) -1/4)) (+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (pow.f64 re 4) 1/48)) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 (pow.f64 re 6) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) -1/1440)))))
(*.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 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 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 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 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 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 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 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)))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
(+.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 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 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/24 (pow.f64 im 4)))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/24 (pow.f64 im 4)))) (*.f64 (cos.f64 re) (*.f64 1/720 (pow.f64 im 6)))))
(*.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 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 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 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 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 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 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 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 (cos.f64 re) 0)
(+.f64 0 (cos.f64 re))
(+.f64 (cos.f64 re) 0)
(*.f64 (cos.f64 re) 1)
(*.f64 1 (cos.f64 re))
(*.f64 1 (cos.f64 re))
(+.f64 (*.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) 0)
(+.f64 0 (*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))))
(+.f64 0 (*.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))
(+.f64 0 (*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))))

eval15.0ms (0.4%)

Compiler

Compiled 891 to 449 computations (49.6% saved)

prune7.0ms (0.2%)

Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New36440
Fresh000
Picked011
Done000
Total36541
Error
0.0b
Counts
41 → 5
Alt Table
Click to see full alt table
StatusErrorProgram
1.0b
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0b
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
30.0b
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
1.3b
(cos.f64 re)
Compiler

Compiled 52 to 40 computations (23.1% saved)

localize3.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(cos.f64 re)
Compiler

Compiled 5 to 3 computations (40% saved)

localize8.0ms (0.2%)

Compiler

Compiled 25 to 9 computations (64% saved)

localize14.0ms (0.4%)

Local error

Found 3 expressions with local error:

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

Compiled 34 to 25 computations (26.5% saved)

series4.0ms (0.1%)

Counts
2 → 16
Calls

9 calls:

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

rewrite6.0ms (0.2%)

Algorithm
batch-egg-rewrite
Rules
32×bool.json-1
28×rational.json-simplify-2
26×rational.json-simplify-1
24×rational.json-1
24×rational.json-2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01342
15842
28742
39342
Stop Event
saturated
Counts
2 → 4
Calls
Call 1
Inputs
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
(*.f64 1/2 (pow.f64 im 2))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x or (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 1/2 (pow.f64 im 2)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 1/2 (pow.f64 im 2)))))) (#(struct:change #<rule egg-rr> (2) ((x or (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/2 (pow.f64 im 2)))))))

simplify17.0ms (0.4%)

Algorithm
egg-herbie
Rules
226×rational.json-simplify-1
214×rational.json-simplify-33
56×rational.json-simplify-2
18×rational.json-simplify-31
rational.json-simplify-19
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
043784
178694
2130694
3201694
4284694
5328694
6333694
Stop Event
saturated
Counts
20 → 24
Calls
Call 1
Inputs
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2)))))
(+.f64 1 (+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))))))
(+.f64 1 (+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))) (*.f64 -1/720 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 6)))))))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (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))
(+.f64 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) 0)
(+.f64 0 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) 0)
(+.f64 0 (*.f64 1/2 (pow.f64 im 2)))
Outputs
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2)))))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 -1/2 (pow.f64 re 2)))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2))))
(+.f64 1 (+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))))))
(+.f64 1 (+.f64 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 -1/2 (pow.f64 re 2)))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 1/24 (pow.f64 re 4)))))
(+.f64 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 1/24 (pow.f64 re 4))))
(+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (+.f64 1 (*.f64 1/24 (pow.f64 re 4)))))
(+.f64 1 (+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))) (*.f64 -1/720 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 6)))))))
(+.f64 1 (+.f64 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 1/24 (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 -1/2 (pow.f64 re 2))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 -1/720 (pow.f64 re 6)))))))
(+.f64 (+.f64 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 1/24 (pow.f64 re 4)))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 -1/720 (pow.f64 re 6))))
(+.f64 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 1/24 (pow.f64 re 4))) (+.f64 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 -1/720 (pow.f64 re 6)))))
(+.f64 (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (+.f64 1 (*.f64 1/24 (pow.f64 re 4))))) (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (*.f64 -1/720 (pow.f64 re 6))))
(cos.f64 re)
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
(+.f64 (cos.f64 re) (*.f64 1/2 (*.f64 (pow.f64 im 2) (cos.f64 re))))
(*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re))
(+.f64 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) 0)
(+.f64 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re)) 0)
(+.f64 0 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))))
(+.f64 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (cos.f64 re)) 0)
(+.f64 (*.f64 1/2 (pow.f64 im 2)) 0)
(+.f64 0 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) 0)

localize13.0ms (0.4%)

Local error

Found 4 expressions with local error:

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

Compiled 36 to 21 computations (41.7% saved)

series3.0ms (0.1%)

Counts
3 → 15
Calls

18 calls:

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

rewrite8.0ms (0.2%)

Algorithm
batch-egg-rewrite
Rules
42×rational.json-simplify-2
40×bool.json-1
34×rational.json-simplify-1
32×rational.json-1
32×rational.json-2
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01273
15769
29869
311969
412469
512569
Stop Event
saturated
Counts
3 → 8
Calls
Call 1
Inputs
(*.f64 (cos.f64 re) (pow.f64 im 2))
(*.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))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (pow.f64 im 2)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (pow.f64 im 2)))))) (#(struct:change #<rule egg-rr> (2) ((x or (*.f64 (cos.f64 re) (pow.f64 im 2)) (*.f64 (cos.f64 re) (pow.f64 im 2)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 2) 1/2)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 2) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x or (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 2) 1/2)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 2) 1/2)))))))
((#(struct:change #<rule egg-rr> (2) ((x *.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (*.f64 (pow.f64 im 2) 1/2)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x or (*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2))) (*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2))))))))

simplify42.0ms (1.1%)

Algorithm
egg-herbie
Rules
524×rational.json-simplify-31
494×rational.json-simplify-2
336×rational.json-simplify-1
260×rational.json-simplify-33
24×rational.json-simplify-27
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0731015
11501015
2253997
3381997
4506997
5587997
6650997
7733997
8826997
9966997
101022997
111022997
121032997
Stop Event
saturated
Counts
23 → 58
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/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 (*.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)))
(+.f64 (*.f64 (cos.f64 re) (pow.f64 im 2)) 0)
(+.f64 0 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(+.f64 (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 2) 1/2)) 0)
(+.f64 0 (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 2) 1/2)))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2)))
(*.f64 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2))) 1)
(*.f64 1 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2))))
(*.f64 (+.f64 1 (*.f64 (pow.f64 im 2) 1/2)) (cos.f64 re))
Outputs
(pow.f64 im 2)
(+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))
(+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 im 2) (pow.f64 re 2))))
(+.f64 (pow.f64 im 2) (*.f64 (pow.f64 im 2) (*.f64 -1/2 (pow.f64 re 2))))
(*.f64 (pow.f64 im 2) (+.f64 1 (*.f64 -1/2 (pow.f64 re 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 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 im 2) (pow.f64 re 2)))) (*.f64 1/24 (*.f64 (pow.f64 im 2) (pow.f64 re 4))))
(+.f64 (*.f64 (pow.f64 im 2) (*.f64 -1/2 (pow.f64 re 2))) (+.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 4) (*.f64 (pow.f64 im 2) 1/24))))
(+.f64 (*.f64 (pow.f64 im 2) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))) (*.f64 (pow.f64 re 4) (*.f64 (pow.f64 im 2) 1/24)))
(+.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 (*.f64 1/24 (*.f64 (pow.f64 im 2) (pow.f64 re 4))) (+.f64 (pow.f64 im 2) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 im 2) (pow.f64 re 2))) (*.f64 -1/720 (*.f64 (pow.f64 im 2) (pow.f64 re 6))))))
(+.f64 (+.f64 (*.f64 (pow.f64 im 2) (*.f64 -1/2 (pow.f64 re 2))) (*.f64 (pow.f64 im 2) (*.f64 -1/720 (pow.f64 re 6)))) (+.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 4) (*.f64 (pow.f64 im 2) 1/24))))
(+.f64 (*.f64 (pow.f64 re 4) (*.f64 (pow.f64 im 2) 1/24)) (+.f64 (*.f64 (pow.f64 im 2) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2)))) (*.f64 (pow.f64 im 2) (*.f64 -1/720 (pow.f64 re 6)))))
(+.f64 (*.f64 (pow.f64 im 2) (*.f64 -1/2 (pow.f64 re 2))) (+.f64 (*.f64 (pow.f64 re 4) (*.f64 (pow.f64 im 2) 1/24)) (*.f64 (pow.f64 im 2) (+.f64 1 (*.f64 -1/720 (pow.f64 re 6))))))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 (pow.f64 im 2) 1/2)
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (*.f64 (pow.f64 re 2) (*.f64 (pow.f64 im 2) -1/4)))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 2) -1/4)))
(+.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 (pow.f64 im 2) 1/2) (+.f64 (*.f64 (pow.f64 re 2) (*.f64 (pow.f64 im 2) -1/4)) (*.f64 (pow.f64 re 4) (*.f64 (pow.f64 im 2) 1/48))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (+.f64 (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 2) -1/4)) (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 4) 1/48))))
(+.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 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (+.f64 (*.f64 (pow.f64 re 2) (*.f64 (pow.f64 im 2) -1/4)) (*.f64 (pow.f64 re 4) (*.f64 (pow.f64 im 2) 1/48)))) (*.f64 (pow.f64 re 6) (*.f64 (pow.f64 im 2) -1/1440)))
(+.f64 (+.f64 (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 2) -1/4)) (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 4) 1/48))) (+.f64 (*.f64 (pow.f64 im 2) 1/2) (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 6) -1/1440))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (+.f64 (+.f64 (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 2) -1/4)) (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 4) 1/48))) (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 6) -1/1440))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (+.f64 (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 4) 1/48)) (+.f64 (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 2) -1/4)) (*.f64 (pow.f64 im 2) (*.f64 (pow.f64 re 6) -1/1440)))))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (*.f64 (pow.f64 im 2) 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 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4)))))
(+.f64 (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4))) (+.f64 (*.f64 (pow.f64 im 2) 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 (+.f64 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4)))) (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (pow.f64 im 2) 1/48)))))
(+.f64 (+.f64 (+.f64 1 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (pow.f64 im 2) 1/48)))) (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4)))) (*.f64 (pow.f64 im 2) 1/2))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (+.f64 (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4))) (+.f64 1 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (pow.f64 im 2) 1/48))))))
(+.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 (+.f64 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (pow.f64 im 2) 1/48))) (+.f64 (*.f64 (pow.f64 im 2) 1/2) (+.f64 (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4))) (*.f64 (pow.f64 re 6) (+.f64 -1/720 (*.f64 (pow.f64 im 2) -1/1440)))))))
(+.f64 (+.f64 (+.f64 (+.f64 1 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (pow.f64 im 2) 1/48)))) (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4)))) (*.f64 (pow.f64 im 2) 1/2)) (*.f64 (pow.f64 re 6) (+.f64 -1/720 (*.f64 (pow.f64 im 2) -1/1440))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (+.f64 (+.f64 (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4))) (+.f64 1 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (pow.f64 im 2) 1/48))))) (*.f64 (pow.f64 re 6) (+.f64 -1/720 (*.f64 (pow.f64 im 2) -1/1440)))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (+.f64 (*.f64 (pow.f64 re 6) (+.f64 -1/720 (*.f64 (pow.f64 im 2) -1/1440))) (+.f64 (*.f64 (pow.f64 re 2) (+.f64 -1/2 (*.f64 (pow.f64 im 2) -1/4))) (+.f64 1 (*.f64 (pow.f64 re 4) (+.f64 1/24 (*.f64 (pow.f64 im 2) 1/48)))))))
(cos.f64 re)
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
(*.f64 (pow.f64 im 2) (*.f64 1/2 (cos.f64 re)))
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(*.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
(*.f64 (pow.f64 im 2) (*.f64 1/2 (cos.f64 re)))
(+.f64 (*.f64 (cos.f64 re) (pow.f64 im 2)) 0)
(+.f64 (*.f64 (pow.f64 im 2) (cos.f64 re)) 0)
(+.f64 0 (*.f64 (cos.f64 re) (pow.f64 im 2)))
(+.f64 (*.f64 (pow.f64 im 2) (cos.f64 re)) 0)
(+.f64 (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 2) 1/2)) 0)
(+.f64 0 (*.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)))
(+.f64 0 (*.f64 (pow.f64 im 2) (*.f64 1/2 (cos.f64 re))))
(+.f64 0 (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 2) 1/2)))
(+.f64 0 (*.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)))
(+.f64 0 (*.f64 (pow.f64 im 2) (*.f64 1/2 (cos.f64 re))))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2)))
(*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 2) 1/2) 1))
(*.f64 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2))) 1)
(*.f64 1 (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 2) 1/2) 1)))
(*.f64 1 (*.f64 (cos.f64 re) (+.f64 1 (*.f64 (pow.f64 im 2) 1/2))))
(*.f64 1 (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 2) 1/2) 1)))
(*.f64 (+.f64 1 (*.f64 (pow.f64 im 2) 1/2)) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 2) 1/2) 1))

eval54.0ms (1.4%)

Compiler

Compiled 2712 to 2114 computations (22.1% saved)

prune20.0ms (0.5%)

Pruning

8 alts after pruning (3 fresh and 5 done)

PrunedKeptTotal
New1313134
Fresh000
Picked011
Done044
Total1318139
Error
0.0b
Counts
139 → 8
Alt Table
Click to see full alt table
StatusErrorProgram
1.2b
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
30.6b
(+.f64 (*.f64 (pow.f64 im 2) 1/2) 1)
1.0b
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0b
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
30.0b
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
1.3b
(cos.f64 re)
30.8b
1
Compiler

Compiled 74 to 59 computations (20.3% saved)

localize8.0ms (0.2%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (pow.f64 im 2) 1/2)
Compiler

Compiled 21 to 17 computations (19% saved)

series0.0ms (0%)

Counts
1 → 12
Calls

3 calls:

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

rewrite5.0ms (0.1%)

Algorithm
batch-egg-rewrite
Rules
22×bool.json-1
16×rational.json-simplify-2
14×rational.json-1
14×rational.json-2
14×rational.json-simplify-1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0713
13313
25513
36013
Stop Event
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(*.f64 (pow.f64 im 2) 1/2)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (pow.f64 im 2) 1/2) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (pow.f64 im 2) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x or (*.f64 (pow.f64 im 2) 1/2) (*.f64 (pow.f64 im 2) 1/2))))))

simplify5.0ms (0.1%)

Algorithm
egg-herbie
Rules
rational.json-simplify-2
rational.json-simplify-1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
011194
111194
Stop Event
saturated
Counts
14 → 4
Calls
Call 1
Inputs
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) 0)
(+.f64 0 (*.f64 (pow.f64 im 2) 1/2))
Outputs
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) 0)
(+.f64 (*.f64 1/2 (pow.f64 im 2)) 0)
(+.f64 0 (*.f64 (pow.f64 im 2) 1/2))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) 0)

localize13.0ms (0.3%)

Local error

Found 3 expressions with local error:

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

Compiled 24 to 16 computations (33.3% saved)

series1.0ms (0%)

Counts
1 → 24
Calls

6 calls:

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

rewrite5.0ms (0.1%)

Algorithm
batch-egg-rewrite
Rules
30×bool.json-1
24×rational.json-simplify-2
24×rational.json-simplify-1
22×rational.json-1
22×rational.json-2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01123
15023
28023
38523
Stop Event
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)))))) (#(struct:change #<rule egg-rr> (2) ((x or (+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)) (+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)))))))

simplify16.0ms (0.4%)

Algorithm
egg-herbie
Rules
200×rational.json-simplify-1
174×rational.json-simplify-33
10×rational.json-simplify-2
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
035664
154664
284664
3145664
4216664
5243664
6244664
Stop Event
saturated
Counts
26 → 18
Calls
Call 1
Inputs
(cos.f64 re)
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2))))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2)))))
(+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6))))))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(*.f64 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)) 1)
(*.f64 1 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)))
Outputs
(cos.f64 re)
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 1 (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) 1)
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2))))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.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 im 2)) (*.f64 -1/2 (pow.f64 re 2)))))
(+.f64 (+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2)))) (*.f64 1/24 (pow.f64 re 4)))
(+.f64 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (pow.f64 re 2))) (+.f64 1 (*.f64 1/24 (pow.f64 re 4))))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (+.f64 1 (*.f64 1/24 (pow.f64 re 4)))))
(+.f64 (*.f64 1/2 (pow.f64 im 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 im 2)) (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6))))))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (+.f64 (*.f64 -1/2 (pow.f64 re 2)) (*.f64 -1/720 (pow.f64 re 6))) (+.f64 1 (*.f64 1/24 (pow.f64 re 4)))))
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/720 (pow.f64 re 6)) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (+.f64 1 (*.f64 -1/2 (pow.f64 re 2))))))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2)))
(*.f64 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)) 1)
(*.f64 1 (+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2))))
(*.f64 1 (+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re)))
(*.f64 1 (+.f64 (cos.f64 re) (*.f64 1/2 (pow.f64 im 2))))

eval12.0ms (0.3%)

Compiler

Compiled 540 to 438 computations (18.9% saved)

prune9.0ms (0.2%)

Pruning

9 alts after pruning (2 fresh and 7 done)

PrunedKeptTotal
New38139
Fresh011
Picked011
Done066
Total38947
Error
0.0b
Counts
47 → 9
Alt Table
Click to see full alt table
StatusErrorProgram
1.2b
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
30.6b
(+.f64 (*.f64 (pow.f64 im 2) 1/2) 1)
1.0b
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0b
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
61.6b
(*.f64 1/2 (pow.f64 im 2))
30.0b
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
1.3b
(cos.f64 re)
30.8b
1
Compiler

Compiled 81 to 65 computations (19.8% saved)

localize5.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(*.f64 1/2 (pow.f64 im 2))
Compiler

Compiled 13 to 10 computations (23.1% saved)

eval1.0ms (0%)

Compiler

Compiled 16 to 14 computations (12.5% saved)

prune5.0ms (0.1%)

Pruning

9 alts after pruning (1 fresh and 8 done)

PrunedKeptTotal
New202
Fresh011
Picked011
Done077
Total2911
Error
0.0b
Counts
11 → 9
Alt Table
Click to see full alt table
StatusErrorProgram
1.2b
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
30.6b
(+.f64 (*.f64 (pow.f64 im 2) 1/2) 1)
1.0b
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
0.0b
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
1.0b
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
61.6b
(*.f64 1/2 (pow.f64 im 2))
30.0b
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
1.3b
(cos.f64 re)
30.8b
1
Compiler

Compiled 81 to 65 computations (19.8% saved)

regimes37.0ms (1%)

Counts
9 → 1
Calls
Call 1
Inputs
1
(cos.f64 re)
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) 1)
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re))
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
Calls

6 calls:

12.0ms
re
5.0ms
im
5.0ms
(cos.f64 re)
5.0ms
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
5.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 1/2 (cos.f64 re))
0.0b1(cos.f64 re)
0.0b1(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))
Compiler

Compiled 102 to 70 computations (31.4% saved)

regimes17.0ms (0.4%)

Counts
7 → 1
Calls
Call 1
Inputs
1
(cos.f64 re)
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) 1)
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
Outputs
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
Calls

3 calls:

6.0ms
re
4.0ms
im
4.0ms
(cos.f64 re)
Results
ErrorSegmentsBranch
1.0b1re
1.0b1im
1.0b1(cos.f64 re)
Compiler

Compiled 53 to 39 computations (26.4% saved)

regimes16.0ms (0.4%)

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

3 calls:

6.0ms
im
4.0ms
re
4.0ms
(cos.f64 re)
Results
ErrorSegmentsBranch
1.2b1re
1.2b1im
1.2b1(cos.f64 re)
Compiler

Compiled 43 to 32 computations (25.6% saved)

regimes15.0ms (0.4%)

Accuracy

Total -60.5b remaining (-4525.3%)

Threshold costs -60.5b (-4525.3%)

Counts
5 → 1
Calls
Call 1
Inputs
1
(cos.f64 re)
(*.f64 1/2 (pow.f64 im 2))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) 1)
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))
Outputs
(cos.f64 re)
Calls

3 calls:

6.0ms
re
4.0ms
im
4.0ms
(cos.f64 re)
Results
ErrorSegmentsBranch
1.3b1re
1.3b1im
1.3b1(cos.f64 re)
Compiler

Compiled 35 to 27 computations (22.9% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02193
Stop Event
fuel
saturated
Calls
Call 1
Inputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
(cos.f64 re)
1
Outputs
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2))))
(+.f64 (*.f64 (pow.f64 im 2) 1/2) (cos.f64 re))
(cos.f64 re)
1
Compiler

Compiled 42 to 34 computations (19% saved)

soundness0.0ms (0%)

end32.0ms (0.9%)

Compiler

Compiled 34 to 23 computations (32.4% saved)

Profiling

Loading profile data...