Details

Time bar (total: 1.6s)

analyze8.0ms (0.5%)

Algorithm
search
Search
TrueOtherFalseIter
0%50%50%0
0%50%50%1
0%50%50%2
0%50%50%3
31.2%18.7%50%4
40.6%9.4%50%5
45.3%4.7%50%6
47.6%2.3%50%7
48.8%1.2%50%8
49.4%0.6%50%9
49.7%0.3%50%10
49.8%0.1%50%11
49.9%0.1%50%12
49.9%0%50%13
50%0%50%14
Compiler

Compiled 29 to 19 computations (34.5% saved)

sample1.0s (64.2%)

Results
1.0s8256×body128valid
Compiler

Compiled 58 to 38 computations (34.5% saved)

preprocess30.0ms (1.9%)

Algorithm
egg-herbie
Rules
554×associate-/r*_binary64
513×distribute-rgt-in_binary64
416×associate-/r/_binary64
349×fma-def_binary64
319×associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01131
14026
220017
3131613
4358513
011
Stop Event
saturated
node limit
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
Outputs
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
(/.f64 (/.f64 (*.f64 i (*.f64 i (*.f64 i i))) (*.f64 4 (*.f64 i i))) (+.f64 (*.f64 4 (*.f64 i i)) -1))
(*.f64 (/.f64 i (fma.f64 4 (*.f64 i i) -1)) (/.f64 (pow.f64 i 3) (*.f64 i (*.f64 i 4))))
(*.f64 (/.f64 i (fma.f64 (*.f64 i i) 4 -1)) (/.f64 i 4))
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
Compiler

Compiled 26 to 17 computations (34.6% saved)

simplify21.0ms (1.3%)

Algorithm
egg-herbie
Rules
554×associate-/r*_binary64
513×distribute-rgt-in_binary64
416×associate-/r/_binary64
349×fma-def_binary64
319×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
01131
14026
220017
3131613
4358513
Stop Event
node limit
Counts
1 → 2
Calls
Call 1
Inputs
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
Outputs
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
(/.f64 (/.f64 (*.f64 i (*.f64 i (*.f64 i i))) (*.f64 4 (*.f64 i i))) (+.f64 (*.f64 4 (*.f64 i i)) -1))
(*.f64 (/.f64 i (fma.f64 4 (*.f64 i i) -1)) (/.f64 (pow.f64 i 3) (*.f64 i (*.f64 i 4))))
(*.f64 (/.f64 i (fma.f64 (*.f64 i i) 4 -1)) (/.f64 i 4))
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))

prune4.0ms (0.3%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
5.4b
Counts
3 → 2
Alt Table
StatusErrorProgram
48.3b
(/.f64 (/.f64 (*.f64 (*.f64 i i) (*.f64 i i)) (*.f64 (*.f64 2 i) (*.f64 2 i))) (-.f64 (*.f64 (*.f64 2 i) (*.f64 2 i)) 1))
5.5b
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
Compiler

Compiled 107 to 74 computations (30.8% saved)

localize7.0ms (0.4%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(-.f64 4 (/.f64 i (pow.f64 i 3)))
0.2b
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
10.0b
(/.f64 i (pow.f64 i 3))

series4.0ms (0.3%)

Counts
3 → 36
Calls

9 calls:

TimeVariablePointExpression
1.0ms
i
@0
(/.f64 i (pow.f64 i 3))
1.0ms
i
@0
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
1.0ms
i
@inf
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
0.0ms
i
@-inf
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
0.0ms
i
@inf
(/.f64 i (pow.f64 i 3))

rewrite49.0ms (3.1%)

Algorithm
batch-egg-rewrite
Rules
436×log-prod_binary64
172×expm1-udef_binary64
172×log1p-udef_binary64
168×pow1/3_binary64
150×pow3_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0930
121521
2267421
Stop Event
node limit
Counts
3 → 113
Calls
Call 1
Inputs
(/.f64 i (pow.f64 i 3))
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
(-.f64 4 (/.f64 i (pow.f64 i 3)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (pow.f64 i -2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (exp.f64 (pow.f64 i -2))) (cbrt.f64 (exp.f64 (pow.f64 i -2))))) (log.f64 (cbrt.f64 (exp.f64 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (pow.f64 i -2)))) (log.f64 (sqrt.f64 (exp.f64 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (pow.f64 i -2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 i (pow.f64 i -3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 i -2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 i -2) (/.f64 i i))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 i -2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 i) i) (pow.f64 (/.f64 (cbrt.f64 i) i) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (/.f64 (cbrt.f64 i) i) 2) (/.f64 (cbrt.f64 i) i))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 i) 2) (*.f64 (cbrt.f64 i) (pow.f64 i -3)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 i) (/.f64 1 i))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 i) (/.f64 i (*.f64 i i)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 i) (*.f64 (sqrt.f64 i) (pow.f64 i -3)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 i) (/.f64 1 (neg.f64 (pow.f64 i 3))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 i -3) i)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 i) 2) i) (/.f64 (cbrt.f64 i) (*.f64 i i)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 i) i) (/.f64 (sqrt.f64 i) (*.f64 i i)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 i) (*.f64 i i)) (/.f64 (sqrt.f64 i) i))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 i) 2) 1) (/.f64 (cbrt.f64 i) (pow.f64 i 3)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 i) 1) (/.f64 (sqrt.f64 i) (pow.f64 i 3)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 i) 2) (*.f64 i i)) (/.f64 (cbrt.f64 i) i))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 i 3/2)) (/.f64 i (pow.f64 i 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 i) 2) (pow.f64 i 3/2)) (/.f64 (cbrt.f64 i) (pow.f64 i 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 i -2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 i -2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 i i) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (cbrt.f64 i) i) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1 i) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1 (pow.f64 i 6)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (*.f64 i i) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 i (neg.f64 (pow.f64 i 3))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (pow.f64 i -2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 1 (pow.f64 i 6)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 -2 (log.f64 i)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 -2 (log.f64 i)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 i -2)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))) (cbrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))))) (log.f64 (cbrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))) (log.f64 (sqrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/4 (/.f64 1 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) (pow.f64 (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) 2) (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (sqrt.f64 (-.f64 4 (pow.f64 i -2)))) (/.f64 1/2 (sqrt.f64 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1/4 (/.f64 1 (neg.f64 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (-.f64 4 (pow.f64 i -2))) 1/4)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/4 (-.f64 64 (/.f64 1 (pow.f64 i 6)))) (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/4 (-.f64 16 (pow.f64 (pow.f64 i -2) 2))) (+.f64 (pow.f64 i -2) 4))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1/2 (sqrt.f64 (-.f64 4 (pow.f64 i -2)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 16 (/.f64 (pow.f64 i -2) 1/4)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (-.f64 16 (/.f64 (pow.f64 i -2) 1/4)) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 4 (neg.f64 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 4 (*.f64 (neg.f64 (pow.f64 i -2)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (neg.f64 (pow.f64 i -2)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (-.f64 4 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2)))) (cbrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2)))))) (log.f64 (cbrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2))))) (log.f64 (sqrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 4 (pow.f64 i -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 4 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 4 (pow.f64 i -2))) (pow.f64 (cbrt.f64 (-.f64 4 (pow.f64 i -2))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (-.f64 4 (pow.f64 i -2))) 2) (cbrt.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 4 (pow.f64 i -2))) (sqrt.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 64 (/.f64 1 (pow.f64 i 6))) (/.f64 1 (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 16 (pow.f64 (pow.f64 i -2) 2)) (/.f64 1 (+.f64 (pow.f64 i -2) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16) (-.f64 64 (/.f64 1 (pow.f64 i 6)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 i -2) 4) (-.f64 16 (pow.f64 (pow.f64 i -2) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 64 (/.f64 1 (pow.f64 i 6))) (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 16 (pow.f64 (pow.f64 i -2) 2)) (+.f64 (pow.f64 i -2) 4))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 64 (/.f64 1 (pow.f64 i 6)))) (neg.f64 (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 16 (pow.f64 (pow.f64 i -2) 2))) (neg.f64 (+.f64 (pow.f64 i -2) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 64 (pow.f64 (neg.f64 (pow.f64 i -2)) 3)) (+.f64 16 (-.f64 (*.f64 (neg.f64 (pow.f64 i -2)) (neg.f64 (pow.f64 i -2))) (*.f64 4 (neg.f64 (pow.f64 i -2))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 16 (*.f64 (neg.f64 (pow.f64 i -2)) (neg.f64 (pow.f64 i -2)))) (-.f64 4 (neg.f64 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 4 (pow.f64 i -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 4 (pow.f64 i -2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 4 (pow.f64 i -2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 4 (pow.f64 i -2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16) (-.f64 64 (/.f64 1 (pow.f64 i 6)))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (+.f64 (pow.f64 i -2) 4) (-.f64 16 (pow.f64 (pow.f64 i -2) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 4 (pow.f64 i -2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 i (neg.f64 (pow.f64 i -3)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (neg.f64 (pow.f64 i -2)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (/.f64 (cbrt.f64 i) i) 2) (neg.f64 (/.f64 (cbrt.f64 i) i)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 1 i) (neg.f64 (/.f64 1 i)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (neg.f64 i) (pow.f64 i -3) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cbrt.f64 (neg.f64 (pow.f64 i -2))) (cbrt.f64 (neg.f64 (pow.f64 i -2)))) (cbrt.f64 (neg.f64 (pow.f64 i -2))) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (neg.f64 (pow.f64 i -2))) (sqrt.f64 (neg.f64 (pow.f64 i -2))) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 -1 (pow.f64 i -2) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (neg.f64 (pow.f64 (/.f64 (cbrt.f64 i) i) 2)) (/.f64 (cbrt.f64 i) i) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (neg.f64 (/.f64 1 i)) (/.f64 1 i) 4)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (-.f64 4 (pow.f64 i -2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 4 (pow.f64 i -2))))))))

simplify35.0ms (2.2%)

Algorithm
egg-herbie
Rules
453×associate-*l*_binary64
438×fma-neg_binary64
320×cancel-sign-sub-inv_binary64
296×associate-*r*_binary64
251×times-frac_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
044372
1108370
2295366
31091366
44377366
Stop Event
node limit
Counts
149 → 135
Calls
Call 1
Inputs
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(*.f64 -1/4 (pow.f64 i 2))
(neg.f64 (+.f64 (pow.f64 i 4) (*.f64 1/4 (pow.f64 i 2))))
(neg.f64 (+.f64 (pow.f64 i 4) (+.f64 (*.f64 1/4 (pow.f64 i 2)) (*.f64 4 (pow.f64 i 6)))))
(neg.f64 (+.f64 (pow.f64 i 4) (+.f64 (*.f64 1/4 (pow.f64 i 2)) (+.f64 (*.f64 16 (pow.f64 i 8)) (*.f64 4 (pow.f64 i 6))))))
1/16
(+.f64 1/16 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))))
(+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4)))))
(+.f64 (*.f64 1/1024 (/.f64 1 (pow.f64 i 6))) (+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4))))))
1/16
(+.f64 1/16 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))))
(+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4)))))
(+.f64 (*.f64 1/1024 (/.f64 1 (pow.f64 i 6))) (+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4))))))
(/.f64 -1 (pow.f64 i 2))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
4
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
4
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
Outputs
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(*.f64 -1/4 (pow.f64 i 2))
(*.f64 (*.f64 i i) -1/4)
(*.f64 i (*.f64 i -1/4))
(neg.f64 (+.f64 (pow.f64 i 4) (*.f64 1/4 (pow.f64 i 2))))
(neg.f64 (+.f64 (pow.f64 i 4) (*.f64 (*.f64 i i) 1/4)))
(-.f64 (*.f64 (*.f64 i i) -1/4) (pow.f64 i 4))
(*.f64 (*.f64 i i) (neg.f64 (fma.f64 i i 1/4)))
(*.f64 i (-.f64 (*.f64 i -1/4) (pow.f64 i 3)))
(neg.f64 (+.f64 (pow.f64 i 4) (+.f64 (*.f64 1/4 (pow.f64 i 2)) (*.f64 4 (pow.f64 i 6)))))
(neg.f64 (+.f64 (pow.f64 i 4) (fma.f64 1/4 (*.f64 i i) (*.f64 4 (pow.f64 i 6)))))
(-.f64 (neg.f64 (pow.f64 i 4)) (fma.f64 (*.f64 i i) 1/4 (*.f64 4 (pow.f64 i 6))))
(-.f64 (*.f64 i (*.f64 i -1/4)) (fma.f64 4 (pow.f64 i 6) (pow.f64 i 4)))
(neg.f64 (+.f64 (pow.f64 i 4) (+.f64 (*.f64 1/4 (pow.f64 i 2)) (+.f64 (*.f64 16 (pow.f64 i 8)) (*.f64 4 (pow.f64 i 6))))))
(neg.f64 (+.f64 (pow.f64 i 4) (fma.f64 1/4 (*.f64 i i) (fma.f64 16 (pow.f64 i 8) (*.f64 4 (pow.f64 i 6))))))
(-.f64 (neg.f64 (pow.f64 i 4)) (fma.f64 (*.f64 i i) 1/4 (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))))
(neg.f64 (fma.f64 (*.f64 i i) (fma.f64 i i 1/4) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))))
(-.f64 (*.f64 (pow.f64 i 6) -4) (fma.f64 (*.f64 i i) (fma.f64 i i 1/4) (*.f64 16 (pow.f64 i 8))))
1/16
(+.f64 1/16 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))))
(+.f64 1/16 (/.f64 1/64 (*.f64 i i)))
(+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4)))))
(+.f64 1/16 (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/256 (pow.f64 i 4))))
(+.f64 (*.f64 1/1024 (/.f64 1 (pow.f64 i 6))) (+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4))))))
(+.f64 (+.f64 1/16 (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/256 (pow.f64 i 4)))) (/.f64 1/1024 (pow.f64 i 6)))
(+.f64 (+.f64 (/.f64 1/1024 (pow.f64 i 6)) (+.f64 1/16 (/.f64 1/64 (*.f64 i i)))) (/.f64 1/256 (pow.f64 i 4)))
(+.f64 (/.f64 1/64 (*.f64 i i)) (+.f64 (/.f64 1/1024 (pow.f64 i 6)) (+.f64 1/16 (/.f64 1/256 (pow.f64 i 4)))))
(+.f64 1/16 (+.f64 (/.f64 1/256 (pow.f64 i 4)) (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/1024 (pow.f64 i 6)))))
1/16
(+.f64 1/16 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))))
(+.f64 1/16 (/.f64 1/64 (*.f64 i i)))
(+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4)))))
(+.f64 1/16 (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/256 (pow.f64 i 4))))
(+.f64 (*.f64 1/1024 (/.f64 1 (pow.f64 i 6))) (+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4))))))
(+.f64 (+.f64 1/16 (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/256 (pow.f64 i 4)))) (/.f64 1/1024 (pow.f64 i 6)))
(+.f64 (+.f64 (/.f64 1/1024 (pow.f64 i 6)) (+.f64 1/16 (/.f64 1/64 (*.f64 i i)))) (/.f64 1/256 (pow.f64 i 4)))
(+.f64 (/.f64 1/64 (*.f64 i i)) (+.f64 (/.f64 1/1024 (pow.f64 i 6)) (+.f64 1/16 (/.f64 1/256 (pow.f64 i 4)))))
(+.f64 1/16 (+.f64 (/.f64 1/256 (pow.f64 i 4)) (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/1024 (pow.f64 i 6)))))
(/.f64 -1 (pow.f64 i 2))
(/.f64 -1 (*.f64 i i))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
4
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
4
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))

prune100.0ms (6.2%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New1332135
Fresh101
Picked011
Done000
Total1343137
Error
0b
Counts
137 → 3
Alt Table
StatusErrorProgram
32.1b
(*.f64 -1/4 (pow.f64 i 2))
5.5b
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
5.5b
(/.f64 1/4 (-.f64 4 (*.f64 i (pow.f64 i -3))))
Compiler

Compiled 1747 to 1427 computations (18.3% saved)

localize5.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(-.f64 4 (*.f64 i (pow.f64 i -3)))
0.2b
(/.f64 1/4 (-.f64 4 (*.f64 i (pow.f64 i -3))))
9.8b
(*.f64 i (pow.f64 i -3))

series2.0ms (0.2%)

Counts
3 → 36
Calls

9 calls:

TimeVariablePointExpression
0.0ms
i
@0
(*.f64 i (pow.f64 i -3))
0.0ms
i
@inf
(*.f64 i (pow.f64 i -3))
0.0ms
i
@0
(/.f64 1/4 (-.f64 4 (*.f64 i (pow.f64 i -3))))
0.0ms
i
@inf
(/.f64 1/4 (-.f64 4 (*.f64 i (pow.f64 i -3))))
0.0ms
i
@-inf
(*.f64 i (pow.f64 i -3))

rewrite46.0ms (2.9%)

Algorithm
batch-egg-rewrite
Rules
429×log-prod_binary64
255×pow2_binary64
177×expm1-udef_binary64
177×log1p-udef_binary64
173×pow1/3_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0930
121121
2258221
Stop Event
node limit
Counts
3 → 95
Calls
Call 1
Inputs
(*.f64 i (pow.f64 i -3))
(/.f64 1/4 (-.f64 4 (*.f64 i (pow.f64 i -3))))
(-.f64 4 (*.f64 i (pow.f64 i -3)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (pow.f64 i -2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (pow.f64 i -2))) 2)) (log.f64 (cbrt.f64 (exp.f64 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (pow.f64 i -2)))) (log.f64 (sqrt.f64 (exp.f64 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (pow.f64 i -2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 i -2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 i -2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (pow.f64 i -2)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (pow.f64 i -2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 i -2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (pow.f64 i -2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 i -2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 -2 (log.f64 i)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 -2 (log.f64 i)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 i -2)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))) 2)) (log.f64 (cbrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))) (log.f64 (sqrt.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/4 (/.f64 1 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) (pow.f64 (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) 2) (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/2 (sqrt.f64 (-.f64 4 (pow.f64 i -2)))) (/.f64 1/2 (sqrt.f64 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1/4 (/.f64 1 (neg.f64 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (-.f64 4 (pow.f64 i -2))) 1/4)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/4 (-.f64 64 (pow.f64 (pow.f64 i -2) 3))) (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1/4 (-.f64 16 (pow.f64 (pow.f64 i -2) 2))) (+.f64 (pow.f64 i -2) 4))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1/2 (sqrt.f64 (-.f64 4 (pow.f64 i -2)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 16 (/.f64 (pow.f64 i -2) 1/4)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (-.f64 16 (/.f64 (pow.f64 i -2) 1/4)) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 1/16 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 1/4 (-.f64 4 (pow.f64 i -2)))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 4 (neg.f64 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 4 (*.f64 (neg.f64 (pow.f64 i -2)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (neg.f64 (pow.f64 i -2)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (-.f64 4 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2))))) (log.f64 (sqrt.f64 (exp.f64 (-.f64 4 (pow.f64 i -2))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 4 (pow.f64 i -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 4 (pow.f64 i -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 4 (pow.f64 i -2))) (pow.f64 (cbrt.f64 (-.f64 4 (pow.f64 i -2))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (-.f64 4 (pow.f64 i -2))) 2) (cbrt.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 4 (pow.f64 i -2))) (sqrt.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 64 (pow.f64 (pow.f64 i -2) 3)) (/.f64 1 (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 16 (pow.f64 (pow.f64 i -2) 2)) (/.f64 1 (+.f64 (pow.f64 i -2) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16) (-.f64 64 (pow.f64 (pow.f64 i -2) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 i -2) 4) (-.f64 16 (pow.f64 (pow.f64 i -2) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 64 (pow.f64 (pow.f64 i -2) 3)) (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 16 (pow.f64 (pow.f64 i -2) 2)) (+.f64 (pow.f64 i -2) 4))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 64 (pow.f64 (pow.f64 i -2) 3))) (neg.f64 (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 16 (pow.f64 (pow.f64 i -2) 2))) (neg.f64 (+.f64 (pow.f64 i -2) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 64 (pow.f64 (neg.f64 (pow.f64 i -2)) 3)) (+.f64 16 (-.f64 (pow.f64 (neg.f64 (pow.f64 i -2)) 2) (*.f64 4 (neg.f64 (pow.f64 i -2))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 16 (pow.f64 (neg.f64 (pow.f64 i -2)) 2)) (-.f64 4 (neg.f64 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 4 (pow.f64 i -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 4 (pow.f64 i -2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 4 (pow.f64 i -2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 4 (pow.f64 i -2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (pow.f64 i -2) (+.f64 (pow.f64 i -2) 4) 16) (-.f64 64 (pow.f64 (pow.f64 i -2) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (+.f64 (pow.f64 i -2) 4) (-.f64 16 (pow.f64 (pow.f64 i -2) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 4 (pow.f64 i -2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (-.f64 4 (pow.f64 i -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 4 (pow.f64 i -2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 i (neg.f64 (pow.f64 i -3)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 i -3) (neg.f64 i) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (neg.f64 (pow.f64 i -2)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (pow.f64 i -2)) 2) (neg.f64 (cbrt.f64 (pow.f64 i -2))) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (pow.f64 i -2)) (neg.f64 (sqrt.f64 (pow.f64 i -2))) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (neg.f64 i) (pow.f64 i -3) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (neg.f64 (pow.f64 i -2))) 2) (cbrt.f64 (neg.f64 (pow.f64 i -2))) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (neg.f64 (pow.f64 i -2))) (sqrt.f64 (neg.f64 (pow.f64 i -2))) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 -1 (pow.f64 i -2) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (neg.f64 (pow.f64 i -3)) i 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (neg.f64 (pow.f64 (cbrt.f64 (pow.f64 i -2)) 2)) (cbrt.f64 (pow.f64 i -2)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (neg.f64 (sqrt.f64 (pow.f64 i -2))) (sqrt.f64 (pow.f64 i -2)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (neg.f64 i) 1) (pow.f64 i -3) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (neg.f64 i) (cbrt.f64 (pow.f64 i -6))) (cbrt.f64 (pow.f64 i -3)) 4)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (neg.f64 i) (pow.f64 i -3/2)) (pow.f64 i -3/2) 4)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (-.f64 4 (pow.f64 i -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (-.f64 4 (pow.f64 i -2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 4 (pow.f64 i -2))))))))

simplify36.0ms (2.3%)

Algorithm
egg-herbie
Rules
453×associate-*l*_binary64
438×fma-neg_binary64
320×cancel-sign-sub-inv_binary64
296×associate-*r*_binary64
251×times-frac_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
044372
1108370
2295366
31091366
44377366
Stop Event
node limit
Counts
131 → 117
Calls
Call 1
Inputs
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (pow.f64 i 2))
(*.f64 -1/4 (pow.f64 i 2))
(neg.f64 (+.f64 (pow.f64 i 4) (*.f64 1/4 (pow.f64 i 2))))
(neg.f64 (+.f64 (pow.f64 i 4) (+.f64 (*.f64 1/4 (pow.f64 i 2)) (*.f64 4 (pow.f64 i 6)))))
(neg.f64 (+.f64 (pow.f64 i 4) (+.f64 (*.f64 1/4 (pow.f64 i 2)) (+.f64 (*.f64 16 (pow.f64 i 8)) (*.f64 4 (pow.f64 i 6))))))
1/16
(+.f64 1/16 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))))
(+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4)))))
(+.f64 (*.f64 1/1024 (/.f64 1 (pow.f64 i 6))) (+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4))))))
1/16
(+.f64 1/16 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))))
(+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4)))))
(+.f64 (*.f64 1/1024 (/.f64 1 (pow.f64 i 6))) (+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4))))))
(/.f64 -1 (pow.f64 i 2))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
4
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
4
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
Outputs
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(/.f64 1 (pow.f64 i 2))
(/.f64 1 (*.f64 i i))
(*.f64 -1/4 (pow.f64 i 2))
(*.f64 (*.f64 i i) -1/4)
(*.f64 i (*.f64 i -1/4))
(neg.f64 (+.f64 (pow.f64 i 4) (*.f64 1/4 (pow.f64 i 2))))
(neg.f64 (+.f64 (pow.f64 i 4) (*.f64 (*.f64 i i) 1/4)))
(-.f64 (*.f64 (*.f64 i i) -1/4) (pow.f64 i 4))
(*.f64 (*.f64 i i) (neg.f64 (fma.f64 i i 1/4)))
(*.f64 i (-.f64 (*.f64 i -1/4) (pow.f64 i 3)))
(neg.f64 (+.f64 (pow.f64 i 4) (+.f64 (*.f64 1/4 (pow.f64 i 2)) (*.f64 4 (pow.f64 i 6)))))
(neg.f64 (+.f64 (pow.f64 i 4) (fma.f64 1/4 (*.f64 i i) (*.f64 4 (pow.f64 i 6)))))
(-.f64 (neg.f64 (pow.f64 i 4)) (fma.f64 (*.f64 i i) 1/4 (*.f64 4 (pow.f64 i 6))))
(-.f64 (*.f64 i (*.f64 i -1/4)) (fma.f64 4 (pow.f64 i 6) (pow.f64 i 4)))
(neg.f64 (+.f64 (pow.f64 i 4) (+.f64 (*.f64 1/4 (pow.f64 i 2)) (+.f64 (*.f64 16 (pow.f64 i 8)) (*.f64 4 (pow.f64 i 6))))))
(neg.f64 (+.f64 (pow.f64 i 4) (fma.f64 1/4 (*.f64 i i) (fma.f64 16 (pow.f64 i 8) (*.f64 4 (pow.f64 i 6))))))
(-.f64 (neg.f64 (pow.f64 i 4)) (fma.f64 (*.f64 i i) 1/4 (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))))
(neg.f64 (fma.f64 (*.f64 i i) (fma.f64 i i 1/4) (fma.f64 4 (pow.f64 i 6) (*.f64 16 (pow.f64 i 8)))))
(-.f64 (*.f64 (pow.f64 i 6) -4) (fma.f64 (*.f64 i i) (fma.f64 i i 1/4) (*.f64 16 (pow.f64 i 8))))
1/16
(+.f64 1/16 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))))
(+.f64 1/16 (/.f64 1/64 (*.f64 i i)))
(+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4)))))
(+.f64 1/16 (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/256 (pow.f64 i 4))))
(+.f64 (*.f64 1/1024 (/.f64 1 (pow.f64 i 6))) (+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4))))))
(+.f64 (+.f64 1/16 (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/256 (pow.f64 i 4)))) (/.f64 1/1024 (pow.f64 i 6)))
(+.f64 (+.f64 (/.f64 1/1024 (pow.f64 i 6)) (+.f64 1/16 (/.f64 1/64 (*.f64 i i)))) (/.f64 1/256 (pow.f64 i 4)))
(+.f64 (/.f64 1/64 (*.f64 i i)) (+.f64 (/.f64 1/1024 (pow.f64 i 6)) (+.f64 1/16 (/.f64 1/256 (pow.f64 i 4)))))
(+.f64 1/16 (+.f64 (/.f64 1/256 (pow.f64 i 4)) (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/1024 (pow.f64 i 6)))))
1/16
(+.f64 1/16 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))))
(+.f64 1/16 (/.f64 1/64 (*.f64 i i)))
(+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4)))))
(+.f64 1/16 (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/256 (pow.f64 i 4))))
(+.f64 (*.f64 1/1024 (/.f64 1 (pow.f64 i 6))) (+.f64 1/16 (+.f64 (*.f64 1/64 (/.f64 1 (pow.f64 i 2))) (*.f64 1/256 (/.f64 1 (pow.f64 i 4))))))
(+.f64 (+.f64 1/16 (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/256 (pow.f64 i 4)))) (/.f64 1/1024 (pow.f64 i 6)))
(+.f64 (+.f64 (/.f64 1/1024 (pow.f64 i 6)) (+.f64 1/16 (/.f64 1/64 (*.f64 i i)))) (/.f64 1/256 (pow.f64 i 4)))
(+.f64 (/.f64 1/64 (*.f64 i i)) (+.f64 (/.f64 1/1024 (pow.f64 i 6)) (+.f64 1/16 (/.f64 1/256 (pow.f64 i 4)))))
(+.f64 1/16 (+.f64 (/.f64 1/256 (pow.f64 i 4)) (+.f64 (/.f64 1/64 (*.f64 i i)) (/.f64 1/1024 (pow.f64 i 6)))))
(/.f64 -1 (pow.f64 i 2))
(/.f64 -1 (*.f64 i i))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
4
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
4
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))
(-.f64 4 (/.f64 1 (pow.f64 i 2)))
(-.f64 4 (/.f64 1 (*.f64 i i)))
(+.f64 4 (/.f64 -1 (*.f64 i i)))

prune131.0ms (8.2%)

Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New1170117
Fresh011
Picked011
Done011
Total1173120
Error
0b
Counts
120 → 3
Alt Table
StatusErrorProgram
32.1b
(*.f64 -1/4 (pow.f64 i 2))
5.5b
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
5.5b
(/.f64 1/4 (-.f64 4 (*.f64 i (pow.f64 i -3))))
Compiler

Compiled 1468 to 1259 computations (14.2% saved)

localize3.0ms (0.2%)

prune2.0ms (0.1%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New000
Fresh000
Picked011
Done022
Total033
Error
0b
Counts
3 → 3
Alt Table
StatusErrorProgram
32.1b
(*.f64 -1/4 (pow.f64 i 2))
5.5b
(/.f64 1/4 (-.f64 4 (/.f64 i (pow.f64 i 3))))
5.5b
(/.f64 1/4 (-.f64 4 (*.f64 i (pow.f64 i -3))))
Compiler

Compiled 26 to 21 computations (19.2% saved)

regimes21.0ms (1.3%)

Accuracy

Total 0.3b remaining (97.5%)

Threshold costs 0.3b (97.5%)

Counts
15 → 1
Compiler

Compiled 183 to 137 computations (25.1% saved)

simplify2.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0913
11013
Stop Event
saturated
Calls
Call 1
Inputs
(/.f64 1/4 (+.f64 4 (/.f64 -1 (*.f64 i i))))
Outputs
(/.f64 1/4 (+.f64 4 (/.f64 -1 (*.f64 i i))))

end66.0ms (4.1%)

Stop Event
done
Compiler

Compiled 46 to 37 computations (19.6% saved)

Profiling

Loading profile data...