Details

Time bar (total: 2.3s)

analyze95.0ms (4.1%)

Algorithm
search
Search
TrueOtherFalseIter
0%100%0%0
0%100%0%1
0%50%50%2
0%50%50%3
12.5%25%62.5%4
18.7%12.5%68.8%5
21.9%6.2%71.9%6
23.4%3.1%73.5%7
24.2%1.6%74.2%8
24.6%0.8%74.6%9
24.8%0.4%74.8%10
24.9%0.2%74.9%11
24.9%0.1%75%12
Compiler

Compiled 9 to 7 computations (22.2% saved)

sample1.4s (62%)

Results
1.4s8256×body256valid
1.0ms10×body256invalid

preprocess74.0ms (3.2%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
sub-neg_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
11311
21411
011
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(*.f64 (sqrt.f64 (-.f64 x 1)) (sqrt.f64 x))
Outputs
(*.f64 (sqrt.f64 (-.f64 x 1)) (sqrt.f64 x))
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))
Compiler

Compiled 9 to 7 computations (22.2% saved)

simplify41.0ms (1.8%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
sub-neg_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
11311
21411
Stop Event
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 (-.f64 x 1)) (sqrt.f64 x))
Outputs
(*.f64 (sqrt.f64 (-.f64 x 1)) (sqrt.f64 x))
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))

eval1.0ms (0.1%)

Compiler

Compiled 15 to 10 computations (33.3% saved)

prune2.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Error
0.5b
Counts
3 → 1
Alt Table
Click to see full alt table
StatusErrorProgram
0.5b
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))
Compiler

Compiled 8 to 6 computations (25% saved)

localize9.0ms (0.4%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.5b
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))
0.5b
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))

series6.0ms (0.2%)

Counts
1 → 8
Calls

3 calls:

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

rewrite99.0ms (4.3%)

Algorithm
batch-egg-rewrite
Rules
695×pow1_binary64
645×add-log-exp_binary64
645×log1p-expm1-u_binary64
645×expm1-log1p-u_binary64
629×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify205.0ms (8.8%)

Algorithm
egg-herbie
Rules
752×associate-/r/_binary64
677×div-sub_binary64
250×*-commutative_binary64
240×fma-def_binary64
237×distribute-rgt-neg-in_binary64
Iterations

Useful iterations: 4 (0.0ms)

IterNodesCost
03268
18868
224368
366864
4311562
5712062
Stop Event
node limit
Counts
22 → 25
Calls
Call 1
Inputs
x
(-.f64 x 1/2)
(-.f64 x (+.f64 1/2 (*.f64 1/8 (/.f64 1 x))))
(-.f64 x (+.f64 1/2 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x)))))
(*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 -1) 2) x))
(+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (*.f64 1/2 (pow.f64 (sqrt.f64 -1) 2)))
(+.f64 (*.f64 1/8 (/.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (*.f64 1/2 (pow.f64 (sqrt.f64 -1) 2))))
(+.f64 (*.f64 1/8 (/.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 (sqrt.f64 -1) 2) (pow.f64 x 2))) (+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (*.f64 1/2 (pow.f64 (sqrt.f64 -1) 2)))))
Outputs
x
(-.f64 x 1/2)
(+.f64 x -1/2)
(-.f64 x (+.f64 1/2 (*.f64 1/8 (/.f64 1 x))))
(-.f64 x (+.f64 1/2 (/.f64 1/8 x)))
(+.f64 x (-.f64 -1/2 (/.f64 1/8 x)))
(+.f64 x (+.f64 -1/2 (/.f64 -1/8 x)))
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
(-.f64 x (+.f64 1/2 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x)))))
(-.f64 (+.f64 x -1/2) (+.f64 (/.f64 1/8 x) (/.f64 1/16 (*.f64 x x))))
(-.f64 x (+.f64 1/2 (+.f64 (/.f64 1/8 x) (/.f64 1/16 (*.f64 x x)))))
(+.f64 x (-.f64 -1/2 (+.f64 (/.f64 1/8 x) (/.f64 1/16 (*.f64 x x)))))
(+.f64 x (fma.f64 (/.f64 -1 x) (+.f64 1/8 (/.f64 1/16 x)) -1/2))
(+.f64 x (+.f64 -1/2 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))
(*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 -1) 2) x))
x
(+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (*.f64 1/2 (pow.f64 (sqrt.f64 -1) 2)))
(+.f64 x -1/2)
(-.f64 x 1/2)
(+.f64 (*.f64 1/8 (/.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (*.f64 1/2 (pow.f64 (sqrt.f64 -1) 2))))
(-.f64 x (+.f64 1/2 (/.f64 1/8 x)))
(+.f64 x (-.f64 -1/2 (/.f64 1/8 x)))
(+.f64 x (+.f64 -1/2 (/.f64 -1/8 x)))
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
(+.f64 (*.f64 1/8 (/.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 (sqrt.f64 -1) 2) (pow.f64 x 2))) (+.f64 (*.f64 -1 (*.f64 (pow.f64 (sqrt.f64 -1) 2) x)) (*.f64 1/2 (pow.f64 (sqrt.f64 -1) 2)))))
(-.f64 (+.f64 x -1/2) (+.f64 (/.f64 1/8 x) (/.f64 1/16 (*.f64 x x))))
(-.f64 x (+.f64 1/2 (+.f64 (/.f64 1/8 x) (/.f64 1/16 (*.f64 x x)))))
(+.f64 x (-.f64 -1/2 (+.f64 (/.f64 1/8 x) (/.f64 1/16 (*.f64 x x)))))
(+.f64 x (fma.f64 (/.f64 -1 x) (+.f64 1/8 (/.f64 1/16 x)) -1/2))
(+.f64 x (+.f64 -1/2 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))

eval6.0ms (0.3%)

Compiler

Compiled 254 to 206 computations (18.9% saved)

prune6.0ms (0.2%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New20525
Fresh000
Picked011
Done000
Total20626
Error
0b
Counts
26 → 6
Alt Table
Click to see full alt table
StatusErrorProgram
33.5b
(sqrt.f64 (*.f64 x (+.f64 x -1)))
0.5b
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
0.9b
(-.f64 x 1/2)
1.9b
x
0.3b
(+.f64 x (+.f64 -1/2 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))
0.5b
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))
Compiler

Compiled 41 to 30 computations (26.8% saved)

localize9.0ms (0.4%)

Local error

Found 2 expressions with local error:

NewErrorProgram
0.0b
(/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)
0.0b
(/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)

series2.0ms (0.1%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
(/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)
1.0ms
x
@-inf
(/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)
1.0ms
x
@inf
(/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)

rewrite48.0ms (2.1%)

Algorithm
batch-egg-rewrite
Rules
881×pow1_binary64
835×add-log-exp_binary64
835×log1p-expm1-u_binary64
835×expm1-log1p-u_binary64
822×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0710
116310
2217910
Stop Event
node limit
Counts
1 → 31
Calls
Call 1
Inputs
(/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 -1/8 (/.f64 -1/16 x)) (/.f64 1 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) 2) (*.f64 (cbrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) (/.f64 1 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)) (pow.f64 (cbrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)) 2) (cbrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) (*.f64 (sqrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) (/.f64 1 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)) (sqrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1/8 (neg.f64 (/.f64 -1/16 x))) (/.f64 1 (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 x) (+.f64 -1/8 (/.f64 -1/16 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) 2) 1) (/.f64 (cbrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) 1) (/.f64 (sqrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 x) 2)) (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) (cbrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) 2) (pow.f64 (cbrt.f64 x) 2)) (cbrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) (pow.f64 (cbrt.f64 x) 2)) (/.f64 (sqrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) (cbrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 x)) (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) (sqrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) 2) (sqrt.f64 x)) (/.f64 (cbrt.f64 (+.f64 -1/8 (/.f64 -1/16 x))) (sqrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 x (+.f64 -1/8 (/.f64 -1/16 x))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (+.f64 -1/8 (/.f64 -1/16 x)) 3) (pow.f64 x 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))))))

simplify52.0ms (2.2%)

Algorithm
egg-herbie
Rules
513×distribute-neg-frac_binary64
490×associate-/l*_binary64
485×fma-neg_binary64
434×unswap-sqr_binary64
360×div-sub_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
017150
137132
277132
3164132
4420132
51446132
63951132
77381132
Stop Event
node limit
Counts
43 → 36
Calls
Call 1
Inputs
(/.f64 -1/16 (pow.f64 x 2))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(/.f64 -1/8 x)
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(/.f64 -1/8 x)
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
Outputs
(/.f64 -1/16 (pow.f64 x 2))
(/.f64 -1/16 (*.f64 x x))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))
(/.f64 -1/8 x)
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))
(/.f64 -1/8 x)
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))
(neg.f64 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x))))
(neg.f64 (+.f64 (/.f64 1/16 (*.f64 x x)) (/.f64 1/8 x)))
(+.f64 (/.f64 -1/16 (*.f64 x x)) (/.f64 -1/8 x))
(-.f64 (/.f64 -1/8 x) (/.f64 1/16 (*.f64 x x)))

localize2.0ms (0.1%)

localize4.0ms (0.2%)

localize4.0ms (0.2%)

Local error

Found 2 expressions with local error:

NewErrorProgram
31.2b
(sqrt.f64 (*.f64 x (+.f64 x -1)))
31.2b
(sqrt.f64 (*.f64 x (+.f64 x -1)))

series1.0ms (0.1%)

Counts
1 → 8
Calls

3 calls:

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

rewrite41.0ms (1.8%)

Algorithm
batch-egg-rewrite
Rules
646×pow1_binary64
602×add-log-exp_binary64
602×log1p-expm1-u_binary64
602×expm1-log1p-u_binary64
590×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify46.0ms (2%)

Algorithm
egg-herbie
Rules
616×times-frac_binary64
539×fma-neg_binary64
508×div-sub_binary64
500×associate-/r*_binary64
468×cancel-sign-sub-inv_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
02574
16570
215070
336570
488070
5228770
6762170
Stop Event
node limit
Counts
30 → 37
Calls
Call 1
Inputs
x
(-.f64 x 1/2)
(-.f64 x (+.f64 1/2 (*.f64 1/8 (/.f64 1 x))))
(-.f64 x (+.f64 1/2 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x)))))
(*.f64 -1 x)
(+.f64 1/2 (*.f64 -1 x))
(+.f64 1/2 (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 1 x))))
(+.f64 1/2 (+.f64 (*.f64 -1 x) (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x)))))
Outputs
x
(-.f64 x 1/2)
(+.f64 x -1/2)
(-.f64 x (+.f64 1/2 (*.f64 1/8 (/.f64 1 x))))
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
(+.f64 x (-.f64 -1/2 (/.f64 1/8 x)))
(-.f64 x (-.f64 1/2 (/.f64 -1/8 x)))
(+.f64 -1/2 (+.f64 x (/.f64 -1/8 x)))
(+.f64 x (+.f64 -1/2 (/.f64 -1/8 x)))
(-.f64 x (+.f64 1/2 (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x)))))
(-.f64 (+.f64 x -1/2) (+.f64 (/.f64 1/8 x) (/.f64 1/16 (*.f64 x x))))
(-.f64 x (+.f64 1/2 (+.f64 (/.f64 1/8 x) (/.f64 (/.f64 1/16 x) x))))
(+.f64 (-.f64 (+.f64 x -1/2) (/.f64 1/16 (*.f64 x x))) (/.f64 -1/8 x))
(+.f64 x (+.f64 (-.f64 -1/2 (/.f64 1/8 x)) (/.f64 -1/16 (*.f64 x x))))
(+.f64 (+.f64 -1/2 (/.f64 -1/8 x)) (-.f64 x (/.f64 1/16 (*.f64 x x))))
(+.f64 x (+.f64 (+.f64 -1/2 (/.f64 -1/8 x)) (/.f64 -1/16 (*.f64 x x))))
(*.f64 -1 x)
(neg.f64 x)
(+.f64 1/2 (*.f64 -1 x))
(+.f64 1/2 (neg.f64 x))
(-.f64 1/2 x)
(+.f64 1/2 (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 1 x))))
(+.f64 1/2 (fma.f64 -1 x (/.f64 1/8 x)))
(+.f64 (/.f64 1/8 x) (-.f64 1/2 x))
(+.f64 1/2 (-.f64 (/.f64 1/8 x) x))
(-.f64 1/2 (+.f64 x (/.f64 -1/8 x)))
(+.f64 1/2 (+.f64 (*.f64 -1 x) (+.f64 (*.f64 1/16 (/.f64 1 (pow.f64 x 2))) (*.f64 1/8 (/.f64 1 x)))))
(+.f64 1/2 (fma.f64 -1 x (+.f64 (/.f64 1/8 x) (/.f64 1/16 (*.f64 x x)))))
(+.f64 (+.f64 (/.f64 1/8 x) (-.f64 1/2 x)) (/.f64 (/.f64 1/16 x) x))
(+.f64 (/.f64 1/16 (*.f64 x x)) (+.f64 (/.f64 1/8 x) (-.f64 1/2 x)))
(+.f64 (+.f64 1/2 (/.f64 1/8 x)) (-.f64 (/.f64 1/16 (*.f64 x x)) x))
(+.f64 (/.f64 1/16 (*.f64 x x)) (-.f64 1/2 (+.f64 x (/.f64 -1/8 x))))

eval20.0ms (0.9%)

Compiler

Compiled 918 to 696 computations (24.2% saved)

prune12.0ms (0.5%)

Pruning

6 alts after pruning (1 fresh and 5 done)

PrunedKeptTotal
New73073
Fresh011
Picked011
Done044
Total73679
Error
0b
Counts
79 → 6
Alt Table
Click to see full alt table
StatusErrorProgram
33.5b
(sqrt.f64 (*.f64 x (+.f64 x -1)))
0.5b
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
0.9b
(-.f64 x 1/2)
1.9b
x
0.3b
(+.f64 x (+.f64 -1/2 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))
0.5b
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))
Compiler

Compiled 41 to 30 computations (26.8% saved)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune3.0ms (0.1%)

Pruning

6 alts after pruning (1 fresh and 5 done)

PrunedKeptTotal
New000
Fresh011
Picked000
Done055
Total066
Error
0b
Counts
6 → 6
Alt Table
Click to see full alt table
StatusErrorProgram
33.5b
(sqrt.f64 (*.f64 x (+.f64 x -1)))
0.5b
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
0.9b
(-.f64 x 1/2)
1.9b
x
0.3b
(+.f64 x (+.f64 -1/2 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))
0.5b
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))
Compiler

Compiled 41 to 30 computations (26.8% saved)

eval0.0ms (0%)

Compiler

Compiled 1 to 1 computations (0% saved)

prune3.0ms (0.1%)

Pruning

6 alts after pruning (1 fresh and 5 done)

PrunedKeptTotal
New000
Fresh011
Picked000
Done055
Total066
Error
0b
Counts
6 → 6
Alt Table
Click to see full alt table
StatusErrorProgram
33.5b
(sqrt.f64 (*.f64 x (+.f64 x -1)))
0.5b
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
0.9b
(-.f64 x 1/2)
1.9b
x
0.3b
(+.f64 x (+.f64 -1/2 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))
0.5b
(*.f64 (sqrt.f64 (+.f64 x -1)) (sqrt.f64 x))
Compiler

Compiled 41 to 30 computations (26.8% saved)

regimes28.0ms (1.2%)

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

2 calls:

21.0ms
x
5.0ms
(*.f64 (sqrt.f64 (-.f64 x 1)) (sqrt.f64 x))
Results
ErrorSegmentsBranch
0.3b1x
0.3b1(*.f64 (sqrt.f64 (-.f64 x 1)) (sqrt.f64 x))
Compiler

Compiled 53 to 36 computations (32.1% saved)

regimes5.0ms (0.2%)

Counts
3 → 1
Calls
Call 1
Inputs
x
(-.f64 x 1/2)
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
Outputs
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
Calls

1 calls:

4.0ms
x
Results
ErrorSegmentsBranch
0.5b1x
Compiler

Compiled 14 to 9 computations (35.7% saved)

regimes5.0ms (0.2%)

Accuracy

Total -1.1b remaining (-125.3%)

Threshold costs -1.1b (-125.3%)

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

1 calls:

4.0ms
x
Results
ErrorSegmentsBranch
0.9b1x
Compiler

Compiled 7 to 4 computations (42.9% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
sub-neg_binary64
*-commutative_binary64
distribute-neg-frac_binary64
neg-sub0_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01631
12331
23031
33231
43331
Stop Event
saturated
Calls
Call 1
Inputs
(+.f64 x (+.f64 -1/2 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
(-.f64 x 1/2)
x
Outputs
(+.f64 x (+.f64 -1/2 (/.f64 (+.f64 -1/8 (/.f64 -1/16 x)) x)))
(-.f64 (+.f64 x -1/2) (/.f64 1/8 x))
(+.f64 (+.f64 x -1/2) (/.f64 -1/8 x))
(-.f64 x 1/2)
(+.f64 x -1/2)
x

end50.0ms (2.2%)

Stop Event
fuel
Compiler

Compiled 49 to 35 computations (28.6% saved)

Profiling

Loading profile data...