Details

Time bar (total: 4.8s)

analyze0.0ms (0%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%49.6%50.4%0%0%0%0
100%49.6%0%50.4%0%0%0%1
Compiler

Compiled 12 to 9 computations (25% saved)

sample4.3s (89.8%)

Results
3.2s4417×body2048valid
783.0ms2093×body1024valid
205.0ms1019×body512valid
79.0ms727×body256valid
Bogosity

preprocess11.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
011
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(-.f64 1 (cos.f64 x))
Outputs
(-.f64 1 (cos.f64 x))
Compiler

Compiled 6 to 5 computations (16.7% saved)

simplify9.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
Stop Event
saturated
Counts
1 → 1
Calls
Call 1
Inputs
(-.f64 1 (cos.f64 x))
Outputs
(-.f64 1 (cos.f64 x))

eval0.0ms (0%)

Compiler

Compiled 5 to 4 computations (20% saved)

prune1.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
33.0b
Counts
2 → 1
Alt Table
Click to see full alt table
StatusErrorProgram
33.0b
(-.f64 1 (cos.f64 x))
Compiler

Compiled 5 to 4 computations (20% saved)

localize4.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
3.6b
(-.f64 1 (cos.f64 x))
Compiler

Compiled 9 to 5 computations (44.4% saved)

series0.0ms (0%)

Counts
1 → 4
Calls

3 calls:

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

rewrite58.0ms (1.2%)

Algorithm
batch-egg-rewrite
Rules
1028×rational_best-simplify-51
956×rational_best-simplify-47
866×rational_best-2
866×rational_best-1
862×rational_best-3
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
14311
26811
312511
428111
555011
6132611
7474011
Stop Event
node limit
Counts
1 → 38
Calls
Call 1
Inputs
(-.f64 1 (cos.f64 x))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (neg.f64 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (cos.f64 x) (+.f64 1 (*.f64 (cos.f64 x) -2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 1 (cos.f64 x)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (neg.f64 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (neg.f64 (cos.f64 x)) (+.f64 (*.f64 (cos.f64 x) 2) (+.f64 1 (*.f64 (cos.f64 x) -2))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 x) 2) (+.f64 (neg.f64 (cos.f64 x)) (+.f64 1 (*.f64 (cos.f64 x) -2))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 x) 2) (-.f64 1 (*.f64 (cos.f64 x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (*.f64 (cos.f64 x) -2)) (cos.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 x) 3) (-.f64 1 (*.f64 (cos.f64 x) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 x) 3) (+.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (*.f64 (cos.f64 x) -2))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 x) -3) (-.f64 1 (*.f64 (cos.f64 x) -2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (cos.f64 x)) (*.f64 (cos.f64 x) -2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 1 (*.f64 (cos.f64 x) 4)) (*.f64 (cos.f64 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 x) -4) (+.f64 1 (*.f64 (cos.f64 x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (*.f64 (cos.f64 x) 3)) (*.f64 (cos.f64 x) -4))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (neg.f64 (cos.f64 x)) (+.f64 1 (*.f64 (cos.f64 x) -2))) (*.f64 (cos.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (*.f64 (cos.f64 x) 2) (+.f64 1 (*.f64 (cos.f64 x) -2))) (neg.f64 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (*.f64 (cos.f64 x) -2))) (*.f64 (cos.f64 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 1 (*.f64 (cos.f64 x) -2)) (*.f64 (cos.f64 x) -3))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 1 (*.f64 (cos.f64 x) 3)) (*.f64 (cos.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (cos.f64 x) -1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1 (+.f64 (cos.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (cos.f64 x) -1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (-.f64 1 (cos.f64 x)) -1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 2 (*.f64 (cos.f64 x) -2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (+.f64 -1 (neg.f64 (cos.f64 x))) (*.f64 (cos.f64 x) -2)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (+.f64 -1 (*.f64 (cos.f64 x) 4)) (*.f64 (cos.f64 x) 3)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 2 (-.f64 (cos.f64 (neg.f64 (-.f64 (PI.f64) x))) (cos.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 2 (+.f64 (neg.f64 (cos.f64 x)) (cos.f64 (neg.f64 (-.f64 (PI.f64) x))))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 -1 (/.f64 (-.f64 1 (cos.f64 x)) -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (+.f64 (cos.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (-.f64 1 (cos.f64 x)) -1))))))

simplify179.0ms (3.8%)

Algorithm
egg-herbie
Rules
1196×rational_best-simplify-1
1048×rational_best-simplify-2
680×rational_best-simplify-43
616×rational_best-simplify-46
546×rational_best-simplify-49
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0106814
1187678
2304670
3452670
4856670
51971670
64448670
75671670
86291670
96966670
Stop Event
node limit
Counts
42 → 51
Calls
Call 1
Inputs
(*.f64 1/2 (pow.f64 x 2))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8)))))
(+.f64 1 (neg.f64 (cos.f64 x)))
(+.f64 (cos.f64 x) (+.f64 1 (*.f64 (cos.f64 x) -2)))
(+.f64 0 (-.f64 1 (cos.f64 x)))
(+.f64 (-.f64 1 (cos.f64 x)) 0)
(+.f64 (neg.f64 (cos.f64 x)) 1)
(+.f64 (neg.f64 (cos.f64 x)) (+.f64 (*.f64 (cos.f64 x) 2) (+.f64 1 (*.f64 (cos.f64 x) -2))))
(+.f64 (*.f64 (cos.f64 x) 2) (+.f64 (neg.f64 (cos.f64 x)) (+.f64 1 (*.f64 (cos.f64 x) -2))))
(+.f64 (*.f64 (cos.f64 x) 2) (-.f64 1 (*.f64 (cos.f64 x) 3)))
(+.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (cos.f64 x)))
(+.f64 (+.f64 1 (*.f64 (cos.f64 x) -2)) (cos.f64 x))
(+.f64 (*.f64 (cos.f64 x) 3) (-.f64 1 (*.f64 (cos.f64 x) 4)))
(+.f64 (*.f64 (cos.f64 x) 3) (+.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (*.f64 (cos.f64 x) -2))))
(+.f64 (*.f64 (cos.f64 x) -3) (-.f64 1 (*.f64 (cos.f64 x) -2)))
(+.f64 (+.f64 1 (cos.f64 x)) (*.f64 (cos.f64 x) -2))
(+.f64 (-.f64 1 (*.f64 (cos.f64 x) 4)) (*.f64 (cos.f64 x) 3))
(+.f64 (*.f64 (cos.f64 x) -4) (+.f64 1 (*.f64 (cos.f64 x) 3)))
(+.f64 (+.f64 1 (*.f64 (cos.f64 x) 3)) (*.f64 (cos.f64 x) -4))
(+.f64 (+.f64 (neg.f64 (cos.f64 x)) (+.f64 1 (*.f64 (cos.f64 x) -2))) (*.f64 (cos.f64 x) 2))
(+.f64 (+.f64 (*.f64 (cos.f64 x) 2) (+.f64 1 (*.f64 (cos.f64 x) -2))) (neg.f64 (cos.f64 x)))
(+.f64 (+.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (*.f64 (cos.f64 x) -2))) (*.f64 (cos.f64 x) 3))
(+.f64 (-.f64 1 (*.f64 (cos.f64 x) -2)) (*.f64 (cos.f64 x) -3))
(+.f64 (-.f64 1 (*.f64 (cos.f64 x) 3)) (*.f64 (cos.f64 x) 2))
(*.f64 1 (-.f64 1 (cos.f64 x)))
(*.f64 (+.f64 (cos.f64 x) -1) -1)
(*.f64 -1 (+.f64 (cos.f64 x) -1))
(*.f64 (-.f64 1 (cos.f64 x)) 1)
(/.f64 (+.f64 (cos.f64 x) -1) -1)
(/.f64 (-.f64 1 (cos.f64 x)) 1)
(/.f64 (/.f64 (-.f64 1 (cos.f64 x)) -1) -1)
(/.f64 (+.f64 2 (*.f64 (cos.f64 x) -2)) 2)
(/.f64 (-.f64 (+.f64 -1 (neg.f64 (cos.f64 x))) (*.f64 (cos.f64 x) -2)) -1)
(/.f64 (-.f64 (+.f64 -1 (*.f64 (cos.f64 x) 4)) (*.f64 (cos.f64 x) 3)) -1)
(/.f64 (+.f64 2 (-.f64 (cos.f64 (neg.f64 (-.f64 (PI.f64) x))) (cos.f64 x))) 2)
(/.f64 (+.f64 2 (+.f64 (neg.f64 (cos.f64 x)) (cos.f64 (neg.f64 (-.f64 (PI.f64) x))))) 2)
(/.f64 (*.f64 -1 (/.f64 (-.f64 1 (cos.f64 x)) -1)) 1)
(pow.f64 (-.f64 1 (cos.f64 x)) 1)
(neg.f64 (+.f64 (cos.f64 x) -1))
(neg.f64 (/.f64 (-.f64 1 (cos.f64 x)) -1))
Outputs
(*.f64 1/2 (pow.f64 x 2))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 6))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8)))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 8)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))) (*.f64 -1/40320 (pow.f64 x 8))))
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8)))))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (cos.f64 x) (+.f64 1 (*.f64 (cos.f64 x) -2)))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 0 (-.f64 1 (cos.f64 x)))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (-.f64 1 (cos.f64 x)) 0)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (neg.f64 (cos.f64 x)) 1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (neg.f64 (cos.f64 x)) (+.f64 (*.f64 (cos.f64 x) 2) (+.f64 1 (*.f64 (cos.f64 x) -2))))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (*.f64 (cos.f64 x) 2) (+.f64 (neg.f64 (cos.f64 x)) (+.f64 1 (*.f64 (cos.f64 x) -2))))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (*.f64 (cos.f64 x) 2) (-.f64 1 (*.f64 (cos.f64 x) 3)))
(+.f64 (*.f64 2 (cos.f64 x)) (-.f64 1 (*.f64 (cos.f64 x) 3)))
(+.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (cos.f64 x)))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (+.f64 1 (*.f64 (cos.f64 x) -2)) (cos.f64 x))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (*.f64 (cos.f64 x) 3) (-.f64 1 (*.f64 (cos.f64 x) 4)))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (*.f64 (cos.f64 x) 3) (+.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (*.f64 (cos.f64 x) -2))))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (*.f64 (cos.f64 x) -3) (-.f64 1 (*.f64 (cos.f64 x) -2)))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (+.f64 1 (cos.f64 x)) (*.f64 (cos.f64 x) -2))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (-.f64 1 (*.f64 (cos.f64 x) 4)) (*.f64 (cos.f64 x) 3))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (*.f64 (cos.f64 x) -4) (+.f64 1 (*.f64 (cos.f64 x) 3)))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (+.f64 1 (*.f64 (cos.f64 x) 3)) (*.f64 (cos.f64 x) -4))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (+.f64 (neg.f64 (cos.f64 x)) (+.f64 1 (*.f64 (cos.f64 x) -2))) (*.f64 (cos.f64 x) 2))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (+.f64 (*.f64 (cos.f64 x) 2) (+.f64 1 (*.f64 (cos.f64 x) -2))) (neg.f64 (cos.f64 x)))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (+.f64 (*.f64 (cos.f64 x) -2) (+.f64 1 (*.f64 (cos.f64 x) -2))) (*.f64 (cos.f64 x) 3))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (-.f64 1 (*.f64 (cos.f64 x) -2)) (*.f64 (cos.f64 x) -3))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(+.f64 (-.f64 1 (*.f64 (cos.f64 x) 3)) (*.f64 (cos.f64 x) 2))
(+.f64 (*.f64 2 (cos.f64 x)) (-.f64 1 (*.f64 (cos.f64 x) 3)))
(*.f64 1 (-.f64 1 (cos.f64 x)))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(*.f64 (+.f64 (cos.f64 x) -1) -1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(*.f64 -1 (+.f64 (cos.f64 x) -1))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(*.f64 (-.f64 1 (cos.f64 x)) 1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(/.f64 (+.f64 (cos.f64 x) -1) -1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(/.f64 (-.f64 1 (cos.f64 x)) 1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(/.f64 (/.f64 (-.f64 1 (cos.f64 x)) -1) -1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(/.f64 (+.f64 2 (*.f64 (cos.f64 x) -2)) 2)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(/.f64 (-.f64 (+.f64 -1 (neg.f64 (cos.f64 x))) (*.f64 (cos.f64 x) -2)) -1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(/.f64 (-.f64 (+.f64 -1 (*.f64 (cos.f64 x) 4)) (*.f64 (cos.f64 x) 3)) -1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(/.f64 (+.f64 2 (-.f64 (cos.f64 (neg.f64 (-.f64 (PI.f64) x))) (cos.f64 x))) 2)
(+.f64 1 (/.f64 (-.f64 (cos.f64 (neg.f64 (-.f64 (PI.f64) x))) (cos.f64 x)) 2))
(+.f64 1 (/.f64 (-.f64 (cos.f64 (-.f64 x (PI.f64))) (cos.f64 x)) 2))
(+.f64 1 (/.f64 (-.f64 (cos.f64 (-.f64 (PI.f64) x)) (cos.f64 x)) 2))
(/.f64 (+.f64 2 (+.f64 (neg.f64 (cos.f64 x)) (cos.f64 (neg.f64 (-.f64 (PI.f64) x))))) 2)
(+.f64 1 (/.f64 (-.f64 (cos.f64 (neg.f64 (-.f64 (PI.f64) x))) (cos.f64 x)) 2))
(+.f64 1 (/.f64 (-.f64 (cos.f64 (-.f64 x (PI.f64))) (cos.f64 x)) 2))
(+.f64 1 (/.f64 (-.f64 (cos.f64 (-.f64 (PI.f64) x)) (cos.f64 x)) 2))
(/.f64 (*.f64 -1 (/.f64 (-.f64 1 (cos.f64 x)) -1)) 1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(pow.f64 (-.f64 1 (cos.f64 x)) 1)
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(neg.f64 (+.f64 (cos.f64 x) -1))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))
(neg.f64 (/.f64 (-.f64 1 (cos.f64 x)) -1))
(+.f64 1 (neg.f64 (cos.f64 x)))
(-.f64 1 (cos.f64 x))

eval10.0ms (0.2%)

Compiler

Compiled 560 to 372 computations (33.6% saved)

prune10.0ms (0.2%)

Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New48351
Fresh000
Picked011
Done000
Total48452
Error
0.0b
Counts
52 → 4
Alt Table
Click to see full alt table
StatusErrorProgram
33.0b
(-.f64 1 (cos.f64 x))
0.0b
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
0.0b
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
0.1b
(*.f64 1/2 (pow.f64 x 2))
Compiler

Compiled 41 to 34 computations (17.1% saved)

localize5.0ms (0.1%)

Local error

Found 1 expressions with local error:

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

Compiled 12 to 9 computations (25% saved)

series1.0ms (0%)

Counts
1 → 0
Calls

3 calls:

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

rewrite12.0ms (0.2%)

Algorithm
batch-egg-rewrite
Rules
12×rational_best-simplify-2
10×rational_best-4
10×rational_best-2
10×rational_best-3
10×rational_best-1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0713
14513
26613
36713
Stop Event
saturated
Counts
1 → 5
Calls
Call 1
Inputs
(*.f64 1/2 (pow.f64 x 2))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 1/2 (pow.f64 x 2)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 1/2 (pow.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (*.f64 1/2 (pow.f64 x 2)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 1/2 (pow.f64 x 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/2 (pow.f64 x 2)) 1)))))

simplify10.0ms (0.2%)

Algorithm
egg-herbie
Rules
rational_best-simplify-2
rational_best-simplify-6
rational_best-simplify-4
rational_best-simplify-3
exponential-simplify-11
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01465
11665
22165
32265
Stop Event
saturated
Counts
5 → 6
Calls
Call 1
Inputs
(+.f64 (*.f64 1/2 (pow.f64 x 2)) 0)
(+.f64 0 (*.f64 1/2 (pow.f64 x 2)))
(-.f64 (*.f64 1/2 (pow.f64 x 2)) 0)
(/.f64 (*.f64 1/2 (pow.f64 x 2)) 1)
(pow.f64 (*.f64 1/2 (pow.f64 x 2)) 1)
Outputs
(+.f64 (*.f64 1/2 (pow.f64 x 2)) 0)
(*.f64 1/2 (pow.f64 x 2))
(+.f64 0 (*.f64 1/2 (pow.f64 x 2)))
(*.f64 1/2 (pow.f64 x 2))
(-.f64 (*.f64 1/2 (pow.f64 x 2)) 0)
(*.f64 1/2 (pow.f64 x 2))
(/.f64 (*.f64 1/2 (pow.f64 x 2)) 1)
(*.f64 1/2 (pow.f64 x 2))
(pow.f64 (*.f64 1/2 (pow.f64 x 2)) 1)
(*.f64 1/2 (pow.f64 x 2))

localize15.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
0.0b
(*.f64 1/2 (pow.f64 x 2))
0.1b
(*.f64 -1/24 (pow.f64 x 4))
Compiler

Compiled 33 to 26 computations (21.2% saved)

series2.0ms (0%)

Counts
2 → 3
Calls

6 calls:

TimeVariablePointExpression
0.0ms
x
@inf
(*.f64 -1/24 (pow.f64 x 4))
0.0ms
x
@inf
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
0.0ms
x
@0
(*.f64 -1/24 (pow.f64 x 4))
0.0ms
x
@0
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
0.0ms
x
@-inf
(*.f64 -1/24 (pow.f64 x 4))

rewrite13.0ms (0.3%)

Algorithm
batch-egg-rewrite
Rules
20×rational_best-simplify-2
18×rational_best-simplify-1
16×rational_best-4
16×rational_best-2
16×rational_best-3
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01244
17744
210544
310744
Stop Event
saturated
Counts
2 → 10
Calls
Call 1
Inputs
(*.f64 -1/24 (pow.f64 x 4))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 -1/24 (pow.f64 x 4)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 -1/24 (pow.f64 x 4)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (*.f64 -1/24 (pow.f64 x 4)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 -1/24 (pow.f64 x 4)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 1)))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)))))

simplify13.0ms (0.3%)

Algorithm
egg-herbie
Rules
10×rational_best-simplify-1
rational_best-simplify-2
rational_best-simplify-6
rational_best-simplify-4
rational_best-simplify-3
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
024259
128259
237259
341259
441259
Stop Event
saturated
Counts
13 → 13
Calls
Call 1
Inputs
(*.f64 1/2 (pow.f64 x 2))
(*.f64 -1/24 (pow.f64 x 4))
(*.f64 -1/24 (pow.f64 x 4))
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0)
(+.f64 0 (*.f64 -1/24 (pow.f64 x 4)))
(-.f64 (*.f64 -1/24 (pow.f64 x 4)) 0)
(/.f64 (*.f64 -1/24 (pow.f64 x 4)) 1)
(pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 1)
(-.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 0)
(*.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)
(*.f64 1 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))))
(/.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)
(pow.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)
Outputs
(*.f64 1/2 (pow.f64 x 2))
(*.f64 -1/24 (pow.f64 x 4))
(*.f64 -1/24 (pow.f64 x 4))
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0)
(*.f64 -1/24 (pow.f64 x 4))
(+.f64 0 (*.f64 -1/24 (pow.f64 x 4)))
(*.f64 -1/24 (pow.f64 x 4))
(-.f64 (*.f64 -1/24 (pow.f64 x 4)) 0)
(*.f64 -1/24 (pow.f64 x 4))
(/.f64 (*.f64 -1/24 (pow.f64 x 4)) 1)
(*.f64 -1/24 (pow.f64 x 4))
(pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 1)
(*.f64 -1/24 (pow.f64 x 4))
(-.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 0)
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(*.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(*.f64 1 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(/.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(pow.f64 (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/2 (pow.f64 x 2))) 1)
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))

localize23.0ms (0.5%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))
0.0b
(*.f64 1/2 (pow.f64 x 2))
0.0b
(*.f64 1/720 (pow.f64 x 6))
0.1b
(*.f64 -1/24 (pow.f64 x 4))
Compiler

Compiled 60 to 48 computations (20% saved)

series1.0ms (0%)

Counts
2 → 3
Calls

6 calls:

TimeVariablePointExpression
0.0ms
x
@0
(*.f64 1/720 (pow.f64 x 6))
0.0ms
x
@inf
(*.f64 1/720 (pow.f64 x 6))
0.0ms
x
@inf
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))
0.0ms
x
@0
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))
0.0ms
x
@-inf
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))

rewrite12.0ms (0.3%)

Algorithm
batch-egg-rewrite
Rules
20×rational_best-simplify-2
18×rational_best-simplify-1
16×rational_best-4
16×rational_best-2
16×rational_best-3
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01244
17744
210544
310744
Stop Event
saturated
Counts
2 → 10
Calls
Call 1
Inputs
(*.f64 1/720 (pow.f64 x 6))
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 1/720 (pow.f64 x 6)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 1/720 (pow.f64 x 6)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (*.f64 1/720 (pow.f64 x 6)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 1/720 (pow.f64 x 6)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/720 (pow.f64 x 6)) 1)))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 0)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)))))

simplify13.0ms (0.3%)

Algorithm
egg-herbie
Rules
10×rational_best-simplify-1
rational_best-simplify-2
rational_best-simplify-6
rational_best-simplify-4
rational_best-simplify-3
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
024259
128259
237259
341259
441259
Stop Event
saturated
Counts
13 → 13
Calls
Call 1
Inputs
(*.f64 -1/24 (pow.f64 x 4))
(*.f64 1/720 (pow.f64 x 6))
(*.f64 1/720 (pow.f64 x 6))
(+.f64 (*.f64 1/720 (pow.f64 x 6)) 0)
(+.f64 0 (*.f64 1/720 (pow.f64 x 6)))
(-.f64 (*.f64 1/720 (pow.f64 x 6)) 0)
(/.f64 (*.f64 1/720 (pow.f64 x 6)) 1)
(pow.f64 (*.f64 1/720 (pow.f64 x 6)) 1)
(-.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 0)
(*.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)
(*.f64 1 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))))
(/.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)
(pow.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)
Outputs
(*.f64 -1/24 (pow.f64 x 4))
(*.f64 1/720 (pow.f64 x 6))
(*.f64 1/720 (pow.f64 x 6))
(+.f64 (*.f64 1/720 (pow.f64 x 6)) 0)
(*.f64 1/720 (pow.f64 x 6))
(+.f64 0 (*.f64 1/720 (pow.f64 x 6)))
(*.f64 1/720 (pow.f64 x 6))
(-.f64 (*.f64 1/720 (pow.f64 x 6)) 0)
(*.f64 1/720 (pow.f64 x 6))
(/.f64 (*.f64 1/720 (pow.f64 x 6)) 1)
(*.f64 1/720 (pow.f64 x 6))
(pow.f64 (*.f64 1/720 (pow.f64 x 6)) 1)
(*.f64 1/720 (pow.f64 x 6))
(-.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 0)
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))
(*.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))
(*.f64 1 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))))
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))
(/.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))
(pow.f64 (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/24 (pow.f64 x 4))) 1)
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))

eval16.0ms (0.3%)

Compiler

Compiled 704 to 592 computations (15.9% saved)

prune7.0ms (0.2%)

Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New49049
Fresh000
Picked011
Done033
Total49453
Error
0.0b
Counts
53 → 4
Alt Table
Click to see full alt table
StatusErrorProgram
33.0b
(-.f64 1 (cos.f64 x))
0.0b
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
0.0b
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
0.1b
(*.f64 1/2 (pow.f64 x 2))
Compiler

Compiled 41 to 34 computations (17.1% saved)

regimes8.0ms (0.2%)

Counts
4 → 1
Calls
Call 1
Inputs
(-.f64 1 (cos.f64 x))
(*.f64 1/2 (pow.f64 x 2))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
Outputs
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
Calls

3 calls:

3.0ms
x
2.0ms
(cos.f64 x)
2.0ms
(-.f64 1 (cos.f64 x))
Results
ErrorSegmentsBranch
0.0b1x
0.0b1(-.f64 1 (cos.f64 x))
0.0b1(cos.f64 x)
Compiler

Compiled 48 to 38 computations (20.8% saved)

regimes9.0ms (0.2%)

Counts
3 → 1
Calls
Call 1
Inputs
(-.f64 1 (cos.f64 x))
(*.f64 1/2 (pow.f64 x 2))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
Outputs
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
Calls

3 calls:

3.0ms
x
2.0ms
(-.f64 1 (cos.f64 x))
2.0ms
(cos.f64 x)
Results
ErrorSegmentsBranch
0.0b1x
0.0b1(-.f64 1 (cos.f64 x))
0.0b1(cos.f64 x)
Compiler

Compiled 31 to 24 computations (22.6% saved)

regimes8.0ms (0.2%)

Accuracy

Total -32.9b remaining (-24035.3%)

Threshold costs -32.9b (-24035.3%)

Counts
2 → 1
Calls
Call 1
Inputs
(-.f64 1 (cos.f64 x))
(*.f64 1/2 (pow.f64 x 2))
Outputs
(*.f64 1/2 (pow.f64 x 2))
Calls

3 calls:

4.0ms
x
2.0ms
(-.f64 1 (cos.f64 x))
2.0ms
(cos.f64 x)
Results
ErrorSegmentsBranch
0.1b1x
0.1b1(-.f64 1 (cos.f64 x))
0.1b1(cos.f64 x)
Compiler

Compiled 20 to 15 computations (25% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
022104
Stop Event
done
saturated
Calls
Call 1
Inputs
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(*.f64 1/2 (pow.f64 x 2))
(-.f64 1 (cos.f64 x))
Outputs
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(*.f64 1/2 (pow.f64 x 2))
(-.f64 1 (cos.f64 x))
Compiler

Compiled 41 to 34 computations (17.1% saved)

soundness0.0ms (0%)

end32.0ms (0.7%)

Compiler

Compiled 38 to 31 computations (18.4% saved)

Profiling

Loading profile data...