Details

Time bar (total: 3.5s)

analyze14.0ms (0.4%)

Algorithm
search
Search
TrueOtherFalseIter
0%100%0%0
0%100%0%1
0%100%0%2
50%50%0%3
75%25%0%4
87.5%12.5%0%5
93.7%6.2%0%6
96.8%3.1%0%7
98.4%1.6%0%8
99.2%0.8%0%9
99.6%0.4%0%10
99.8%0.2%0%11
99.9%0.1%0%12
Compiler

Compiled 10 to 8 computations (20% saved)

sample1.3s (38.6%)

Results
1.3s8256×body256valid
0.0msbody256invalid

preprocess164.0ms (4.7%)

Algorithm
egg-herbie
Rules
1278×fma-def_binary64
776×distribute-rgt-out_binary64
559×hypot-def_binary64
494×count-2_binary64
444×associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
069
1124
2304
3534
41184
53844
613824
726424
840094
949724
1057494
1167764
1276624
011
Stop Event
saturated
node limit
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
Outputs
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(hypot.f64 x x)
Compiler

Compiled 10 to 8 computations (20% saved)

simplify102.0ms (2.9%)

Algorithm
egg-herbie
Rules
1278×fma-def_binary64
776×distribute-rgt-out_binary64
559×hypot-def_binary64
494×count-2_binary64
444×associate-*l*_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
069
1124
2304
3534
41184
53844
613824
726424
840094
949724
1057494
1167764
1276624
Stop Event
node limit
Counts
1 → 2
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
Outputs
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(hypot.f64 x x)

eval1.0ms (0%)

Compiler

Compiled 12 to 8 computations (33.3% saved)

prune1.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
0.1b
Counts
3 → 1
Alt Table
Click to see full alt table
StatusErrorProgram
0.1b
(hypot.f64 x x)
Compiler

Compiled 4 to 2 computations (50% saved)

localize3.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.1b
(hypot.f64 x x)
Compiler

Compiled 5 to 2 computations (60% saved)

series3.0ms (0.1%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
(hypot.f64 x x)
1.0ms
x
@inf
(hypot.f64 x x)
1.0ms
x
@0
(hypot.f64 x x)

rewrite89.0ms (2.6%)

Algorithm
batch-egg-rewrite
Rules
356×log1p-udef_binary64
279×associate-*r*_binary64
271×pow1_binary64
259×associate-*l*_binary64
259×add-sqr-sqrt_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
034
1604
26964
378794
Stop Event
node limit
Counts
1 → 103
Calls
Call 1
Inputs
(hypot.f64 x x)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x x) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (/.f64 0 0)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (/.f64 0 0)) 2))) (log.f64 (cbrt.f64 (exp.f64 (/.f64 0 0)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (/.f64 0 0)))) (log.f64 (sqrt.f64 (exp.f64 (/.f64 0 0)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 x x) (/.f64 0 0)) (*.f64 (*.f64 x x) (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (/.f64 0 0) (*.f64 x x)) (*.f64 (/.f64 0 0) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (/.f64 0 0)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 x 4) 0) (/.f64 (pow.f64 x 4) 0))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 x (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 x (*.f64 (+.f64 x x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 x (*.f64 (+.f64 x x) (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x x) (*.f64 (+.f64 x x) (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 x) (cbrt.f64 (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 x) (+.f64 (pow.f64 (cbrt.f64 x) 5) (pow.f64 (cbrt.f64 x) 5)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 x) (*.f64 (pow.f64 (cbrt.f64 x) 2) (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 x) 2) (+.f64 (*.f64 x (cbrt.f64 x)) (*.f64 x (cbrt.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 x) 2) (*.f64 (cbrt.f64 x) (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 x) (pow.f64 (+.f64 x x) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 x) (+.f64 (pow.f64 x 3/2) (pow.f64 x 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 0 0) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 0 0) (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 0 0) (pow.f64 1 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 0 0) (pow.f64 1 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 0 (/.f64 1 0))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (cbrt.f64 x)) (+.f64 (pow.f64 (cbrt.f64 x) 2) (pow.f64 (cbrt.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 x 3/2) (+.f64 (sqrt.f64 x) (sqrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (*.f64 (*.f64 x x) (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (pow.f64 x 6)) (/.f64 1 (+.f64 0 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 x x) x)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 x) 5) (+.f64 (cbrt.f64 x) (cbrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 4 (pow.f64 x 4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 2) (pow.f64 (cbrt.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 2) x)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 2 1/2) x)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (sqrt.f64 x)) (pow.f64 x 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 0 0) x) (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 0 0) 2) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (pow.f64 (cbrt.f64 x) 2)) (*.f64 x (cbrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (*.f64 x (cbrt.f64 x))) (pow.f64 (cbrt.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (pow.f64 x 3/2)) (sqrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (pow.f64 (cbrt.f64 x) 5)) (cbrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 0 (pow.f64 x 4)) (*.f64 2 (pow.f64 x 6))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 0 0)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 2 (pow.f64 x 6)) (+.f64 0 (pow.f64 x 4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (pow.f64 x 6)) (*.f64 2 (pow.f64 x 6))) (*.f64 (+.f64 0 (pow.f64 x 4)) (+.f64 0 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (cbrt.f64 (*.f64 2 (pow.f64 x 6))) (cbrt.f64 (+.f64 0 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (*.f64 2 (pow.f64 x 6))) (sqrt.f64 (+.f64 0 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 0) (sqrt.f64 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 2 (pow.f64 x 6))) (neg.f64 (+.f64 0 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 0 (*.f64 2 (pow.f64 x 6))) (*.f64 0 (+.f64 0 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (pow.f64 x 6)) 0) (*.f64 (+.f64 0 (pow.f64 x 4)) 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 1 (/.f64 0 0)) 3) 1) (+.f64 (*.f64 (+.f64 1 (/.f64 0 0)) (+.f64 1 (/.f64 0 0))) (+.f64 1 (+.f64 1 (/.f64 0 0)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (+.f64 1 (/.f64 0 0)) (+.f64 1 (/.f64 0 0))) 1) (+.f64 (+.f64 1 (/.f64 0 0)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (pow.f64 x 6)) 1) (+.f64 0 (pow.f64 x 4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (pow.f64 x 6)) (/.f64 0 0)) (+.f64 0 (pow.f64 x 4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 0 (/.f64 0 0)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (/.f64 0 0) (*.f64 2 (pow.f64 x 6))) (+.f64 0 (pow.f64 x 4)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 1/4)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 1/9)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 4)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 9)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 2/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 6)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 1/6)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 3/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 5/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 5)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 0 0) 4/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (log.f64 (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (cbrt.f64 (pow.f64 (log.f64 (/.f64 0 0)) 2))) (cbrt.f64 (log.f64 (/.f64 0 0))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (/.f64 0 0)))) (sqrt.f64 (log.f64 (/.f64 0 0))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (neg.f64 (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 0 0))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 0 0)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 0 0)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 0 0)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 0 0)) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x x (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x x) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 2) (*.f64 x (cbrt.f64 x)) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (pow.f64 x 3/2) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x (cbrt.f64 x)) (pow.f64 (cbrt.f64 x) 2) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x 3/2) (sqrt.f64 x) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 5) (cbrt.f64 x) (*.f64 x x))))))

simplify14.0ms (0.4%)

Algorithm
egg-herbie
Rules
38×fma-def_binary64
sub-neg_binary64
+-commutative_binary64
*-commutative_binary64
distribute-lft-in_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0780
11280
22580
32980
43380
55180
67380
78480
89680
912180
Stop Event
saturated
Counts
115 → 105
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
Outputs
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))

eval22.0ms (0.6%)

Compiler

Compiled 899 to 665 computations (26% saved)

prune16.0ms (0.5%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1005105
Fresh000
Picked011
Done000
Total1006106
Error
0.0b
Counts
106 → 6
Alt Table
Click to see full alt table
StatusErrorProgram
60.6b
(*.f64 (*.f64 x x) 2)
31.0b
(*.f64 (sqrt.f64 2) x)
0.1b
(hypot.f64 x x)
31.7b
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
64.0b
(/.f64 0 0)
32.0b
(*.f64 (sqrt.f64 2) (neg.f64 x))
Compiler

Compiled 62 to 46 computations (25.8% saved)

localize4.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.5b
(*.f64 (sqrt.f64 2) x)
Compiler

Compiled 9 to 7 computations (22.2% saved)

series2.0ms (0%)

Counts
1 → 0
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
(*.f64 (sqrt.f64 2) x)
0.0ms
x
@inf
(*.f64 (sqrt.f64 2) x)
0.0ms
x
@-inf
(*.f64 (sqrt.f64 2) x)

rewrite47.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
417×pow1_binary64
403×add-sqr-sqrt_binary64
395×*-un-lft-identity_binary64
386×add-log-exp_binary64
386×log1p-expm1-u_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
056
11006
210756
Stop Event
node limit
Counts
1 → 15
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 2) x)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (sqrt.f64 2) x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (sqrt.f64 2)) x))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (sqrt.f64 2)) x))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 (sqrt.f64 2)) x)) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (sqrt.f64 2)) x))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (sqrt.f64 2) x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 2) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2 (*.f64 x x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (sqrt.f64 2) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (sqrt.f64 2) x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 2 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (sqrt.f64 2)) x))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (sqrt.f64 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (sqrt.f64 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (sqrt.f64 2) x)))))))

simplify6.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
000
Stop Event
saturated
Counts
15 → 15
Calls
Call 1
Inputs
Outputs

localize2.0ms (0.1%)

Compiler

Compiled 5 to 5 computations (0% saved)

localize4.0ms (0.1%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (*.f64 x x) 2)
Compiler

Compiled 11 to 5 computations (54.5% saved)

series2.0ms (0%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
(*.f64 (*.f64 x x) 2)
1.0ms
x
@inf
(*.f64 (*.f64 x x) 2)
0.0ms
x
@-inf
(*.f64 (*.f64 x x) 2)

rewrite38.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
423×pow1_binary64
409×add-sqr-sqrt_binary64
402×*-un-lft-identity_binary64
390×add-log-exp_binary64
390×log1p-expm1-u_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
057
11017
211247
Stop Event
node limit
Counts
1 → 16
Calls
Call 1
Inputs
(*.f64 (*.f64 x x) 2)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x x) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (*.f64 x x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 (*.f64 x x)) 2)) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (*.f64 x x)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (*.f64 x x)) 2))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (*.f64 x x)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 x x) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 x 4) 4) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (*.f64 x x) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (*.f64 x x) 2)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (sqrt.f64 2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 x 4) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (*.f64 x x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (*.f64 x x) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 x x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 x x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 x x) 2)))))))

simplify185.0ms (5.3%)

Algorithm
egg-herbie
Rules
1082×sqr-pow_binary64
617×cube-prod_binary64
558×fabs-mul_binary64
523×pow-sqr_binary64
445×associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0584
11184
22284
34384
410584
532984
6125984
7213284
8229684
9248084
10268884
11298484
12337984
13386084
14442684
15511884
16595184
17634384
18663184
19691184
20698584
21701984
22796084
Stop Event
node limit
Counts
28 → 18
Calls
Call 1
Inputs
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
Outputs
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))

localize6.0ms (0.2%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.5b
(*.f64 (sqrt.f64 2) (neg.f64 x))
Compiler

Compiled 12 to 8 computations (33.3% saved)

series1.0ms (0%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
(*.f64 (sqrt.f64 2) (neg.f64 x))
0.0ms
x
@inf
(*.f64 (sqrt.f64 2) (neg.f64 x))
0.0ms
x
@-inf
(*.f64 (sqrt.f64 2) (neg.f64 x))

rewrite39.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
450×pow1_binary64
437×add-sqr-sqrt_binary64
428×*-un-lft-identity_binary64
418×add-log-exp_binary64
417×log1p-expm1-u_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
068
11256
214736
Stop Event
node limit
Counts
1 → 13
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 2) (neg.f64 x))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 0 (*.f64 (sqrt.f64 2) x))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (sqrt.f64 2) x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 2) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (sqrt.f64 2) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (sqrt.f64 2) x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (*.f64 (sqrt.f64 2) x))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 2 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (sqrt.f64 2)) x))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (sqrt.f64 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (sqrt.f64 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (sqrt.f64 2) x)))))))

simplify12.0ms (0.4%)

Algorithm
egg-herbie
Rules
38×fma-def_binary64
sub-neg_binary64
+-commutative_binary64
*-commutative_binary64
distribute-lft-in_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0796
11296
22596
32996
43396
55196
67396
78496
89696
912196
Stop Event
saturated
Counts
25 → 15
Calls
Call 1
Inputs
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
Outputs
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 (sqrt.f64 2) x))
(*.f64 (sqrt.f64 2) (neg.f64 x))

localize7.0ms (0.2%)

Local error

Found 1 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
Compiler

Compiled 18 to 5 computations (72.2% saved)

series2.0ms (0.1%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
2.0ms
x
@-inf
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
0.0ms
x
@0
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
0.0ms
x
@inf
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))

rewrite98.0ms (2.8%)

Algorithm
batch-egg-rewrite
Rules
417×pow1_binary64
408×prod-diff_binary64
401×add-sqr-sqrt_binary64
394×add-log-exp_binary64
393×log1p-expm1-u_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
069
11294
218204
Stop Event
node limit
Counts
1 → 38
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 x x)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 x x) (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x x) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (+.f64 x x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 x x) 0) (/.f64 (*.f64 x x) 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 x x 0) (*.f64 2 (pow.f64 x 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 2 (pow.f64 x 3)) (fma.f64 x x 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 0 0)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (pow.f64 x 3)) (*.f64 2 (pow.f64 x 3))) (*.f64 (fma.f64 x x 0) (fma.f64 x x 0)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (cbrt.f64 (*.f64 2 (pow.f64 x 3))) (cbrt.f64 (fma.f64 x x 0)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 0) (sqrt.f64 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (*.f64 2 (pow.f64 x 3))) (sqrt.f64 (fma.f64 x x 0)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 2 (pow.f64 x 3))) (neg.f64 (fma.f64 x x 0)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 0 (*.f64 2 (pow.f64 x 3))) (*.f64 0 (fma.f64 x x 0)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (pow.f64 x 3)) 0) (*.f64 (fma.f64 x x 0) 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (pow.f64 x 3)) (+.f64 x x)) (fma.f64 x x 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 0 (+.f64 x x)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 x (*.f64 2 (pow.f64 x 3))) (fma.f64 x x 0))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 x x) (*.f64 2 (pow.f64 x 3))) (fma.f64 x x 0))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 x x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 x x) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 x x) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 x x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 x x) 1/4)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 x x) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 x x) 3/2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 2) x))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (+.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 (sqrt.f64 x) (sqrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (sqrt.f64 x) x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 x x)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) x)))))

simplify18.0ms (0.5%)

Algorithm
egg-herbie
Rules
248×fma-def_binary64
22×distribute-rgt-in_binary64
21×associate-*l*_binary64
21×sub-neg_binary64
19×distribute-lft-in_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
012100
121100
253100
3104100
4119100
5167100
6239100
7276100
8322100
9499100
10527100
Stop Event
saturated
Counts
50 → 41
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 -1 (*.f64 (sqrt.f64 -1) (*.f64 (sqrt.f64 -2) x)))
(*.f64 -1 (*.f64 (sqrt.f64 -1) (*.f64 (sqrt.f64 -2) x)))
(*.f64 -1 (*.f64 (sqrt.f64 -1) (*.f64 (sqrt.f64 -2) x)))
(*.f64 -1 (*.f64 (sqrt.f64 -1) (*.f64 (sqrt.f64 -2) x)))
Outputs
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) x)
(*.f64 -1 (*.f64 (sqrt.f64 -1) (*.f64 (sqrt.f64 -2) x)))
(neg.f64 (*.f64 (*.f64 (sqrt.f64 -1) (sqrt.f64 -2)) x))
(*.f64 (*.f64 (sqrt.f64 -1) (sqrt.f64 -2)) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 -1) (*.f64 (sqrt.f64 -2) x)))
(neg.f64 (*.f64 (*.f64 (sqrt.f64 -1) (sqrt.f64 -2)) x))
(*.f64 (*.f64 (sqrt.f64 -1) (sqrt.f64 -2)) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 -1) (*.f64 (sqrt.f64 -2) x)))
(neg.f64 (*.f64 (*.f64 (sqrt.f64 -1) (sqrt.f64 -2)) x))
(*.f64 (*.f64 (sqrt.f64 -1) (sqrt.f64 -2)) (neg.f64 x))
(*.f64 -1 (*.f64 (sqrt.f64 -1) (*.f64 (sqrt.f64 -2) x)))
(neg.f64 (*.f64 (*.f64 (sqrt.f64 -1) (sqrt.f64 -2)) x))
(*.f64 (*.f64 (sqrt.f64 -1) (sqrt.f64 -2)) (neg.f64 x))

eval22.0ms (0.6%)

Compiler

Compiled 675 to 448 computations (33.6% saved)

prune13.0ms (0.4%)

Pruning

8 alts after pruning (3 fresh and 5 done)

PrunedKeptTotal
New86389
Fresh000
Picked011
Done145
Total87895
Error
0.0b
Counts
95 → 8
Alt Table
Click to see full alt table
StatusErrorProgram
60.6b
(*.f64 (*.f64 x x) 2)
31.0b
(*.f64 (sqrt.f64 2) x)
0.1b
(hypot.f64 x x)
62.4b
(/.f64 1 (+.f64 x x))
61.0b
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
56.7b
(+.f64 x x)
31.7b
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
32.0b
(*.f64 (sqrt.f64 2) (neg.f64 x))
Compiler

Compiled 49 to 34 computations (30.6% saved)

localize2.0ms (0.1%)

Compiler

Compiled 5 to 2 computations (60% saved)

localize10.0ms (0.3%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(*.f64 (*.f64 x x) 2)
0.0b
(+.f64 1 (*.f64 (*.f64 x x) 2))
1.0b
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
Compiler

Compiled 28 to 16 computations (42.9% saved)

series2.0ms (0.1%)

Counts
2 → 24
Calls

6 calls:

TimeVariablePointExpression
1.0ms
x
@inf
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
0.0ms
x
@0
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
0.0ms
x
@0
(+.f64 1 (*.f64 (*.f64 x x) 2))
0.0ms
x
@inf
(+.f64 1 (*.f64 (*.f64 x x) 2))
0.0ms
x
@-inf
(+.f64 1 (*.f64 (*.f64 x x) 2))

rewrite62.0ms (1.8%)

Algorithm
batch-egg-rewrite
Rules
798×pow1_binary64
749×add-log-exp_binary64
748×log1p-expm1-u_binary64
748×expm1-log1p-u_binary64
736×add-exp-log_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0823
117715
2237515
Stop Event
node limit
Counts
2 → 82
Calls
Call 1
Inputs
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
(+.f64 1 (*.f64 (*.f64 x x) 2))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (fma.f64 x (*.f64 x 2) -1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (fma.f64 x (*.f64 x 2) -1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x (*.f64 x 2)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 x (*.f64 x 2) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (fma.f64 x (*.f64 x 2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 x (*.f64 x 2) -1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 x (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 x (*.f64 x 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (*.f64 x 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 x (*.f64 x 2))) (cbrt.f64 (*.f64 4 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4))) (cbrt.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 x) 2) (*.f64 (cbrt.f64 x) (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 x 4)) (*.f64 (pow.f64 (cbrt.f64 x) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (sqrt.f64 2)) (*.f64 x (sqrt.f64 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1) (/.f64 1 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) (+.f64 (*.f64 x (*.f64 x 2)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1) (/.f64 1 (+.f64 (*.f64 x (*.f64 x 2)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x 2) x)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (hypot.f64 1 (*.f64 x (sqrt.f64 2))) 1) (-.f64 (hypot.f64 1 (*.f64 x (sqrt.f64 2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (cbrt.f64 (pow.f64 x 4))) (pow.f64 (cbrt.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) (+.f64 (*.f64 x (*.f64 x 2)) 2)) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) (+.f64 (*.f64 x (*.f64 x 2)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) (-.f64 1 (*.f64 (fma.f64 x (*.f64 x 2) 1) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1) (+.f64 (*.f64 x (*.f64 x 2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1) (-.f64 (fma.f64 x (*.f64 x 2) 1) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1)) (neg.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) (+.f64 (*.f64 x (*.f64 x 2)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1)) (neg.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (fma.f64 x (*.f64 x 2) -1) 3)) (+.f64 1 (-.f64 (*.f64 (fma.f64 x (*.f64 x 2) -1) (fma.f64 x (*.f64 x 2) -1)) (fma.f64 x (*.f64 x 2) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (*.f64 (fma.f64 x (*.f64 x 2) -1) (fma.f64 x (*.f64 x 2) -1))) (-.f64 1 (fma.f64 x (*.f64 x 2) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (*.f64 x 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 x (*.f64 x 2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (sqrt.f64 2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 8 (pow.f64 (*.f64 x x) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 4 (pow.f64 x 4)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 x) (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 8 (pow.f64 (*.f64 x x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 x (*.f64 x 2) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2) (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (hypot.f64 1 (*.f64 x (sqrt.f64 2))) (hypot.f64 1 (*.f64 x (sqrt.f64 2))) -1)))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (-.f64 1 (*.f64 x (*.f64 x 2)))) (/.f64 (*.f64 4 (pow.f64 x 4)) (-.f64 1 (*.f64 x (*.f64 x 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 x (*.f64 x 2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 x (*.f64 x 2) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2) (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2) (*.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 1 (*.f64 x (sqrt.f64 2))) (hypot.f64 1 (*.f64 x (sqrt.f64 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 1 (*.f64 x (sqrt.f64 2))) (*.f64 (hypot.f64 1 (*.f64 x (sqrt.f64 2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (*.f64 8 (pow.f64 (*.f64 x x) 3))) (/.f64 1 (+.f64 1 (+.f64 (*.f64 4 (pow.f64 x 4)) (*.f64 -2 (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (*.f64 4 (pow.f64 x 4))) (/.f64 1 (-.f64 1 (*.f64 x (*.f64 x 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (+.f64 (*.f64 4 (pow.f64 x 4)) (*.f64 -2 (*.f64 x x)))) (+.f64 1 (*.f64 8 (pow.f64 (*.f64 x x) 3)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 1 (*.f64 x (*.f64 x 2))) (-.f64 1 (*.f64 4 (pow.f64 x 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (*.f64 8 (pow.f64 (*.f64 x x) 3))) (+.f64 1 (+.f64 (*.f64 4 (pow.f64 x 4)) (*.f64 -2 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (*.f64 8 (pow.f64 (*.f64 x x) 3))) (+.f64 (*.f64 4 (pow.f64 x 4)) (-.f64 1 (*.f64 x (*.f64 x 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (*.f64 4 (pow.f64 x 4))) (-.f64 1 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 1 (*.f64 8 (pow.f64 (*.f64 x x) 3)))) (neg.f64 (+.f64 1 (+.f64 (*.f64 4 (pow.f64 x 4)) (*.f64 -2 (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (*.f64 4 (pow.f64 x 4)))) (neg.f64 (-.f64 1 (*.f64 x (*.f64 x 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 4 (pow.f64 x 4)) 1) (fma.f64 x (*.f64 x 2) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 1 (*.f64 8 (pow.f64 (*.f64 x x) 3))) 1) (+.f64 1 (+.f64 (*.f64 4 (pow.f64 x 4)) (*.f64 -2 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 1 (*.f64 4 (pow.f64 x 4))) 1) (-.f64 1 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x (*.f64 x 2) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 1 (*.f64 x (sqrt.f64 2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x (*.f64 x 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x (*.f64 x 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x x) 2 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 2 (*.f64 x x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4))) (cbrt.f64 (*.f64 x (*.f64 x 2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x (sqrt.f64 2)) (*.f64 x (sqrt.f64 2)) 1)))))

simplify200.0ms (5.7%)

Algorithm
egg-herbie
Rules
1082×sqr-pow_binary64
617×cube-prod_binary64
555×fabs-mul_binary64
523×pow-sqr_binary64
441×associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07171
116171
226171
351171
4118171
5337171
61254171
72157171
82321171
92505171
102713171
113013171
123406171
133885171
144453171
155141171
165978171
176374171
186664171
196938171
207008171
217042171
227983171
Stop Event
node limit
Counts
106 → 86
Calls
Call 1
Inputs
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
1
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(*.f64 2 (pow.f64 x 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(*.f64 2 (pow.f64 x 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
Outputs
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
1
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)

localize4.0ms (0.1%)

Compiler

Compiled 11 to 5 computations (54.5% saved)

eval39.0ms (1.1%)

Compiler

Compiled 1414 to 1090 computations (22.9% saved)

prune27.0ms (0.8%)

Pruning

9 alts after pruning (2 fresh and 7 done)

PrunedKeptTotal
New1022104
Fresh000
Picked101
Done077
Total1039112
Error
0.0b
Counts
112 → 9
Alt Table
Click to see full alt table
StatusErrorProgram
60.6b
(*.f64 (*.f64 x x) 2)
31.0b
(*.f64 (sqrt.f64 2) x)
56.7b
(+.f64 x x)
61.5b
(-.f64 1 1)
61.0b
(-.f64 (-.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1) 1)
31.7b
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
0.1b
(hypot.f64 x x)
61.0b
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
32.0b
(*.f64 (sqrt.f64 2) (neg.f64 x))
Compiler

Compiled 59 to 44 computations (25.4% saved)

localize2.0ms (0.1%)

Compiler

Compiled 5 to 5 computations (0% saved)

localize16.0ms (0.5%)

Local error

Found 3 expressions with local error:

NewErrorProgram
0.0b
(+.f64 (*.f64 x (*.f64 x 2)) 2)
0.0b
(-.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1)
1.0b
(-.f64 (-.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1) 1)
Compiler

Compiled 39 to 29 computations (25.6% saved)

series2.0ms (0.1%)

Counts
3 → 36
Calls

9 calls:

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

rewrite115.0ms (3.3%)

Algorithm
batch-egg-rewrite
Rules
988×pow1_binary64
928×add-log-exp_binary64
926×log1p-expm1-u_binary64
926×expm1-log1p-u_binary64
106×add-sqr-sqrt_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0929
121123
2289923
Stop Event
node limit
Counts
3 → 147
Calls
Call 1
Inputs
(-.f64 (-.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1) 1)
(-.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1)
(+.f64 (*.f64 x (*.f64 x 2)) 2)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 2 (fma.f64 x (*.f64 x 2) -2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x (*.f64 x 2)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 x (*.f64 x 2) 2) -2)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 x (*.f64 x 2) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (fma.f64 x (*.f64 x 2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 x (*.f64 x 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x 2) x)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (*.f64 x 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 x (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 x (*.f64 x 2))) (pow.f64 (cbrt.f64 (*.f64 x (*.f64 x 2))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 x (*.f64 x 2))) 2) (cbrt.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 x x)) (*.f64 (cbrt.f64 x) (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 x 2)) 2) (*.f64 (cbrt.f64 (*.f64 x 2)) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (sqrt.f64 2)) (*.f64 x (sqrt.f64 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 x 2)) (*.f64 (sqrt.f64 (*.f64 x 2)) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1) (/.f64 1 (+.f64 (fma.f64 x (*.f64 x 2) 2) (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1) (/.f64 1 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) 1) (-.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (pow.f64 (cbrt.f64 (*.f64 x 2)) 2)) (cbrt.f64 (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (sqrt.f64 (*.f64 x 2))) (sqrt.f64 (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (*.f64 x 2) (cbrt.f64 (*.f64 x x))) (cbrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (*.f64 x 2) (sqrt.f64 x)) (sqrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (fma.f64 x (*.f64 x 2) 2) (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2)) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 x (*.f64 x 2) 2) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1) (+.f64 (fma.f64 x (*.f64 x 2) 2) (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) (-.f64 1 (*.f64 (fma.f64 x (*.f64 x 2) 1) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1) (fma.f64 x (*.f64 x 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1) (-.f64 (fma.f64 x (*.f64 x 2) 1) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) -1)) (neg.f64 (+.f64 (fma.f64 x (*.f64 x 2) 2) (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1)) (neg.f64 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3) 8) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) (+.f64 4 (*.f64 (fma.f64 x (*.f64 x 2) 2) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) 4) (+.f64 (fma.f64 x (*.f64 x 2) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (*.f64 x 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 x (*.f64 x 2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (sqrt.f64 2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 x) (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 x (*.f64 x 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 x (*.f64 x 2) 2) -2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 x (*.f64 x 2) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2) (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) 2) (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) -2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) -2)))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 2 (-.f64 (*.f64 x (*.f64 x 2)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 2 (+.f64 (*.f64 x (*.f64 x 2)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x (*.f64 x 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (fma.f64 x (*.f64 x 2) 2) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 x (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (fma.f64 x (*.f64 x 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 x (*.f64 x 2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 x (*.f64 x 2) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2) (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2) (*.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) (*.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3) -1) (/.f64 1 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) (+.f64 (*.f64 x (*.f64 x 2)) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) -1) (/.f64 1 (+.f64 (*.f64 x (*.f64 x 2)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) 1) (-.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) (+.f64 (*.f64 x (*.f64 x 2)) 3)) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (*.f64 x (*.f64 x 2)) 3) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3) -1) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) (+.f64 (*.f64 x (*.f64 x 2)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3) -1) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) (-.f64 1 (*.f64 (fma.f64 x (*.f64 x 2) 2) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) -1) (+.f64 (*.f64 x (*.f64 x 2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) -1) (-.f64 (fma.f64 x (*.f64 x 2) 2) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3) -1)) (neg.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) (+.f64 (*.f64 x (*.f64 x 2)) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) -1)) (neg.f64 (+.f64 (*.f64 x (*.f64 x 2)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 3) 1) (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) (-.f64 1 (*.f64 x (*.f64 x 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) 1) (-.f64 (*.f64 x (*.f64 x 2)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3) -1) 1) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) (+.f64 (*.f64 x (*.f64 x 2)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2) -1) 1) (+.f64 (*.f64 x (*.f64 x 2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x (*.f64 x 2) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 x (*.f64 x 2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log.f64 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x (*.f64 x 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x 2) x 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x (*.f64 x 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 x (*.f64 x 2) 2) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x x) 2 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 x (*.f64 x 2))) 2) (cbrt.f64 (*.f64 x (*.f64 x 2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) 2) (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x (sqrt.f64 2)) (*.f64 x (sqrt.f64 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) -1)))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (fma.f64 x (*.f64 x 2) 2) 0)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (*.f64 x (*.f64 x 2)) 3) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) (fma.f64 x (*.f64 x 2) -2)) (/.f64 4 (fma.f64 x (*.f64 x 2) -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 x (*.f64 x 2) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 x (*.f64 x 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) 2) (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) 2) (*.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) (*.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 8 (pow.f64 (*.f64 x (*.f64 x 2)) 3)) (/.f64 1 (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) (-.f64 4 (*.f64 (*.f64 x x) 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) -4) (/.f64 1 (fma.f64 x (*.f64 x 2) -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (*.f64 x x) 1) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) (-.f64 4 (*.f64 (*.f64 x x) 4))) (+.f64 8 (pow.f64 (*.f64 x (*.f64 x 2)) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 x (*.f64 x 2) -2) (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) -4)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 8 (pow.f64 (*.f64 x (*.f64 x 2)) 3)) (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) (-.f64 4 (*.f64 (*.f64 x x) 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 8 (pow.f64 (*.f64 x (*.f64 x 2)) 3)) (+.f64 4 (-.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) (*.f64 (*.f64 x x) 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) -1) (*.f64 x (*.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) -4) (fma.f64 x (*.f64 x 2) -2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 8 (pow.f64 (*.f64 x (*.f64 x 2)) 3))) (neg.f64 (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) (-.f64 4 (*.f64 (*.f64 x x) 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) -4)) (neg.f64 (fma.f64 x (*.f64 x 2) -2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3) 1) (+.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) (-.f64 1 (fma.f64 x (*.f64 x 2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 3)) (+.f64 1 (-.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2) (fma.f64 x (*.f64 x 2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (fma.f64 x (*.f64 x 2) 1) 2)) (-.f64 1 (fma.f64 x (*.f64 x 2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 4 (pow.f64 (*.f64 x (*.f64 x 2)) 2)) (-.f64 2 (*.f64 x (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 8 (pow.f64 (*.f64 x (*.f64 x 2)) 3)) 1) (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) (-.f64 4 (*.f64 (*.f64 x x) 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (pow.f64 (*.f64 x (*.f64 x 2)) 2) -4) 1) (fma.f64 x (*.f64 x 2) -2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x (*.f64 x 2) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 2)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 x (*.f64 x 2) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x (*.f64 x 2) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 x (*.f64 x 2) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x (*.f64 x 2) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x 2) x 2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x (*.f64 x 2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 x (*.f64 x 2) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x x) 2 2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 2) (cbrt.f64 (fma.f64 x (*.f64 x 2) 1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 x (*.f64 x 2))) 2) (cbrt.f64 (*.f64 x (*.f64 x 2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) (sqrt.f64 (fma.f64 x (*.f64 x 2) 1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x (sqrt.f64 2)) (*.f64 x (sqrt.f64 2)) 2)))))

simplify182.0ms (5.2%)

Algorithm
egg-herbie
Rules
1082×sqr-pow_binary64
560×cube-prod_binary64
553×fabs-mul_binary64
523×pow-sqr_binary64
452×associate-*l*_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08258
119258
232258
362258
4134258
5377258
61356258
72296258
82480258
92664258
102872258
113174258
123569258
134050258
144616258
155306258
166139258
176529258
186815258
197089258
207165258
217201258
Stop Event
node limit
Counts
183 → 154
Calls
Call 1
Inputs
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (pow.f64 x 2))
1
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(*.f64 2 (pow.f64 x 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(*.f64 2 (pow.f64 x 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
2
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(*.f64 2 (pow.f64 x 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(*.f64 2 (pow.f64 x 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
Outputs
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
1
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
(+.f64 (*.f64 2 (pow.f64 x 2)) 1)
(fma.f64 2 (*.f64 x x) 1)
(fma.f64 x (*.f64 2 x) 1)
2
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))
(+.f64 (*.f64 2 (pow.f64 x 2)) 2)
(fma.f64 2 (*.f64 x x) 2)
(*.f64 2 (fma.f64 x x 1))

eval68.0ms (1.9%)

Compiler

Compiled 2389 to 1884 computations (21.1% saved)

prune24.0ms (0.7%)

Pruning

9 alts after pruning (0 fresh and 9 done)

PrunedKeptTotal
New1540154
Fresh000
Picked011
Done088
Total1549163
Error
0.0b
Counts
163 → 9
Alt Table
Click to see full alt table
StatusErrorProgram
60.6b
(*.f64 (*.f64 x x) 2)
31.0b
(*.f64 (sqrt.f64 2) x)
56.7b
(+.f64 x x)
61.5b
(-.f64 1 1)
61.0b
(-.f64 (-.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1) 1)
31.7b
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
0.1b
(hypot.f64 x x)
61.0b
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
32.0b
(*.f64 (sqrt.f64 2) (neg.f64 x))
Compiler

Compiled 59 to 44 computations (25.4% saved)

regimes178.0ms (5.1%)

Counts
12 → 1
Calls
Call 1
Inputs
(-.f64 1 1)
(+.f64 x x)
(/.f64 0 0)
(/.f64 1 (+.f64 x x))
(*.f64 (*.f64 x x) 2)
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
(-.f64 (-.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1) 1)
(hypot.f64 x x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 2) (neg.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
Outputs
(hypot.f64 x x)
Calls

7 calls:

60.0ms
(pow.f64 x 2)
47.0ms
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
41.0ms
x
10.0ms
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
5.0ms
(+.f64 (pow.f64 x 2) (pow.f64 x 2))
Results
ErrorSegmentsBranch
0.1b1x
0.1b1(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
0.1b1(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
0.1b1(+.f64 (pow.f64 x 2) (pow.f64 x 2))
0.1b1(+.f64 (pow.f64 x 2) (pow.f64 x 2))
0.1b1(pow.f64 x 2)
0.1b1(pow.f64 x 2)
Compiler

Compiled 111 to 78 computations (29.7% saved)

regimes17.0ms (0.5%)

Accuracy

Total -7.3b remaining (-13%)

Threshold costs -7.3b (-13%)

Counts
7 → 1
Calls
Call 1
Inputs
(-.f64 1 1)
(+.f64 x x)
(/.f64 0 0)
(/.f64 1 (+.f64 x x))
(*.f64 (*.f64 x x) 2)
(-.f64 (+.f64 1 (*.f64 (*.f64 x x) 2)) 1)
(-.f64 (-.f64 (+.f64 (*.f64 x (*.f64 x 2)) 2) 1) 1)
Outputs
(+.f64 x x)
Calls

1 calls:

13.0ms
x
Results
ErrorSegmentsBranch
56.7b1x
Compiler

Compiled 42 to 29 computations (31% saved)

simplify5.0ms (0.1%)

Algorithm
egg-herbie
Rules
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
079
189
Stop Event
done
saturated
Calls
Call 1
Inputs
(hypot.f64 x x)
(+.f64 x x)
(-.f64 1 1)
Outputs
(hypot.f64 x x)
(+.f64 x x)
(-.f64 1 1)
0
Compiler

Compiled 10 to 6 computations (40% saved)

soundness228.0ms (6.5%)

Algorithm
egg-herbie
Rules
1278×fma-def_binary64
776×distribute-rgt-out_binary64
559×hypot-def_binary64
494×count-2_binary64
444×associate-*l*_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
069
1124
2304
3534
41184
53844
613824
726424
840094
949724
1057494
1167764
1276624
Stop Event
node limit
Compiler

Compiled 31 to 19 computations (38.7% saved)

end19.0ms (0.6%)

Compiler

Compiled 8 to 4 computations (50% saved)

Profiling

Loading profile data...