sqrt E (should all be same)

Time bar (total: 2.0s)

analyze1.0ms (0%)

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

Compiled 10 to 8 computations (20% saved)

sample1.1s (57.2%)

Results
994.0ms8256×body256valid
Bogosity

preprocess91.0ms (4.7%)

Algorithm
egg-herbie
Rules
1068×fma-neg
982×distribute-lft-out
896×fma-def
886×hypot-def
744×distribute-lft-neg-in
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01234
12614
26814
323514
4104714
5282914
6583014
7789414
Stop Event
node limit
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
(sqrt.f64 (+.f64 (pow.f64 (neg.f64 x) 2) (pow.f64 (neg.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)
(sqrt.f64 (+.f64 (pow.f64 (neg.f64 x) 2) (pow.f64 (neg.f64 x) 2)))
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(hypot.f64 x x)
Symmetry

(abs x)

Compiler

Compiled 10 to 8 computations (20% saved)

simplify118.0ms (6%)

Algorithm
egg-herbie
Rules
2556×fma-def
1482×distribute-lft-out
1118×hypot-def
988×count-2
868×unswap-sqr
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0817
1147
2337
3567
41217
53807
613817
725897
839327
948607
1056267
1166377
1274947
Stop Event
node limit
Counts
1 → 3
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 18 to 12 computations (33.3% saved)

prune2.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New123
Fresh101
Picked000
Done000
Total224
Accurracy
100.0%
Counts
4 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
55.2%
(sqrt.f64 (*.f64 2 (*.f64 x x)))
100.0%
(hypot.f64 x x)
55.2%
(sqrt.f64 (*.f64 2 (*.f64 x x)))
Compiler

Compiled 22 to 14 computations (36.4% saved)

localize29.0ms (1.5%)

Local Accuracy

Found 2 expressions with local accuracy:

NewAccuracyProgram
100.0%
(hypot.f64 x x)
55.2%
(sqrt.f64 (*.f64 2 (*.f64 x x)))
Compiler

Compiled 22 to 10 computations (54.5% saved)

series3.0ms (0.2%)

Counts
2 → 24
Calls

6 calls:

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

rewrite62.0ms (3.1%)

Algorithm
batch-egg-rewrite
Rules
1392×pow1
1280×add-exp-log
1280×log1p-expm1-u
1280×expm1-log1p-u
1250×add-log-exp
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0934
118114
2209814
Stop Event
node limit
Counts
2 → 50
Calls
Call 1
Inputs
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(hypot.f64 x x)
Outputs
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(*.f64 x (sqrt.f64 2))
(*.f64 (hypot.f64 x x) 1)
(*.f64 1 (hypot.f64 x x))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 2 (*.f64 x x))))
(*.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) (cbrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 (*.f64 2 x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(*.f64 (pow.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4)) 1/2) (pow.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) 1/2))
(*.f64 (pow.f64 (*.f64 2 x) 1/2) (sqrt.f64 x))
(pow.f64 (hypot.f64 x x) 1)
(pow.f64 (cbrt.f64 (hypot.f64 x x)) 3)
(pow.f64 (pow.f64 (hypot.f64 x x) 3) 1/3)
(pow.f64 (*.f64 2 (*.f64 x x)) 1/2)
(pow.f64 (sqrt.f64 (hypot.f64 x x)) 2)
(fabs.f64 (hypot.f64 x x))
(log.f64 (exp.f64 (hypot.f64 x x)))
(cbrt.f64 (pow.f64 (hypot.f64 x x) 3))
(expm1.f64 (log1p.f64 (hypot.f64 x x)))
(hypot.f64 x x)
(exp.f64 (log.f64 (hypot.f64 x x)))
(log1p.f64 (expm1.f64 (hypot.f64 x x)))
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(*.f64 x (sqrt.f64 2))
(*.f64 (hypot.f64 x x) 1)
(*.f64 1 (hypot.f64 x x))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 2 (*.f64 x x))))
(*.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) (cbrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 (*.f64 2 x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(*.f64 (pow.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4)) 1/2) (pow.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) 1/2))
(*.f64 (pow.f64 (*.f64 2 x) 1/2) (sqrt.f64 x))
(pow.f64 (hypot.f64 x x) 1)
(pow.f64 (cbrt.f64 (hypot.f64 x x)) 3)
(pow.f64 (pow.f64 (hypot.f64 x x) 3) 1/3)
(pow.f64 (*.f64 2 (*.f64 x x)) 1/2)
(pow.f64 (sqrt.f64 (hypot.f64 x x)) 2)
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(fabs.f64 (hypot.f64 x x))
(log.f64 (exp.f64 (hypot.f64 x x)))
(cbrt.f64 (pow.f64 (hypot.f64 x x) 3))
(expm1.f64 (log1p.f64 (hypot.f64 x x)))
(exp.f64 (log.f64 (hypot.f64 x x)))
(log1p.f64 (expm1.f64 (hypot.f64 x x)))

simplify68.0ms (3.5%)

Algorithm
egg-herbie
Rules
1006×log-prod
694×fma-neg
664×exp-prod
580×fma-def
564×sqr-pow
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0621384
11171198
23751012
318511012
440521012
558451012
Stop Event
node limit
Counts
74 → 36
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))
(*.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))
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(*.f64 x (sqrt.f64 2))
(*.f64 (hypot.f64 x x) 1)
(*.f64 1 (hypot.f64 x x))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 2 (*.f64 x x))))
(*.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) (cbrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 (*.f64 2 x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(*.f64 (pow.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4)) 1/2) (pow.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) 1/2))
(*.f64 (pow.f64 (*.f64 2 x) 1/2) (sqrt.f64 x))
(pow.f64 (hypot.f64 x x) 1)
(pow.f64 (cbrt.f64 (hypot.f64 x x)) 3)
(pow.f64 (pow.f64 (hypot.f64 x x) 3) 1/3)
(pow.f64 (*.f64 2 (*.f64 x x)) 1/2)
(pow.f64 (sqrt.f64 (hypot.f64 x x)) 2)
(fabs.f64 (hypot.f64 x x))
(log.f64 (exp.f64 (hypot.f64 x x)))
(cbrt.f64 (pow.f64 (hypot.f64 x x) 3))
(expm1.f64 (log1p.f64 (hypot.f64 x x)))
(hypot.f64 x x)
(exp.f64 (log.f64 (hypot.f64 x x)))
(log1p.f64 (expm1.f64 (hypot.f64 x x)))
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(*.f64 x (sqrt.f64 2))
(*.f64 (hypot.f64 x x) 1)
(*.f64 1 (hypot.f64 x x))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 2 (*.f64 x x))))
(*.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) (cbrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 (*.f64 2 x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(*.f64 (pow.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4)) 1/2) (pow.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) 1/2))
(*.f64 (pow.f64 (*.f64 2 x) 1/2) (sqrt.f64 x))
(pow.f64 (hypot.f64 x x) 1)
(pow.f64 (cbrt.f64 (hypot.f64 x x)) 3)
(pow.f64 (pow.f64 (hypot.f64 x x) 3) 1/3)
(pow.f64 (*.f64 2 (*.f64 x x)) 1/2)
(pow.f64 (sqrt.f64 (hypot.f64 x x)) 2)
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(fabs.f64 (hypot.f64 x x))
(log.f64 (exp.f64 (hypot.f64 x x)))
(cbrt.f64 (pow.f64 (hypot.f64 x x) 3))
(expm1.f64 (log1p.f64 (hypot.f64 x x)))
(exp.f64 (log.f64 (hypot.f64 x x)))
(log1p.f64 (expm1.f64 (hypot.f64 x 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))
(*.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))
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 (hypot.f64 x x) 1)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 1 (hypot.f64 x x))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 2 (*.f64 x x))))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 (*.f64 2 x) x)))
(*.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) (cbrt.f64 (hypot.f64 x x)))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 (*.f64 2 x) x)))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 2 (*.f64 x x))))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 (*.f64 2 x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 2 x)))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4)))) (sqrt.f64 (cbrt.f64 (*.f64 (*.f64 2 x) x))))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4)))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 (pow.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4)) 1/2) (pow.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) 1/2))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4)))) (sqrt.f64 (cbrt.f64 (*.f64 (*.f64 2 x) x))))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4)))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (pow.f64 (*.f64 2 x) 1/2) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 2 x)))
(pow.f64 (hypot.f64 x x) 1)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(pow.f64 (cbrt.f64 (hypot.f64 x x)) 3)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(pow.f64 (pow.f64 (hypot.f64 x x) 3) 1/3)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(pow.f64 (*.f64 2 (*.f64 x x)) 1/2)
(sqrt.f64 (*.f64 (*.f64 2 x) x))
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(pow.f64 (sqrt.f64 (hypot.f64 x x)) 2)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(fabs.f64 (hypot.f64 x x))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(log.f64 (exp.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(cbrt.f64 (pow.f64 (hypot.f64 x x) 3))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(expm1.f64 (log1p.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(hypot.f64 x x)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(exp.f64 (log.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(log1p.f64 (expm1.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 (hypot.f64 x x) 1)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 1 (hypot.f64 x x))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 2 (*.f64 x x))))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 (*.f64 2 x) x)))
(*.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) (cbrt.f64 (hypot.f64 x x)))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 (*.f64 2 x) x)))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (cbrt.f64 (*.f64 2 (*.f64 x x))))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 (sqrt.f64 2) x)
(*.f64 (sqrt.f64 (*.f64 2 x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 2 x)))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4)))) (sqrt.f64 (cbrt.f64 (*.f64 (*.f64 2 x) x))))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4)))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(*.f64 (pow.f64 (cbrt.f64 (*.f64 (pow.f64 x 4) 4)) 1/2) (pow.f64 (cbrt.f64 (*.f64 2 (*.f64 x x))) 1/2))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4)))) (sqrt.f64 (cbrt.f64 (*.f64 (*.f64 2 x) x))))
(*.f64 (sqrt.f64 (cbrt.f64 (*.f64 4 (pow.f64 x 4)))) (sqrt.f64 (cbrt.f64 (*.f64 2 (*.f64 x x)))))
(*.f64 (pow.f64 (*.f64 2 x) 1/2) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 (*.f64 2 x)))
(pow.f64 (hypot.f64 x x) 1)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(pow.f64 (cbrt.f64 (hypot.f64 x x)) 3)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(pow.f64 (pow.f64 (hypot.f64 x x) 3) 1/3)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(pow.f64 (*.f64 2 (*.f64 x x)) 1/2)
(sqrt.f64 (*.f64 (*.f64 2 x) x))
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(pow.f64 (sqrt.f64 (hypot.f64 x x)) 2)
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(sqrt.f64 (*.f64 (*.f64 2 x) x))
(fabs.f64 (hypot.f64 x x))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(log.f64 (exp.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(cbrt.f64 (pow.f64 (hypot.f64 x x) 3))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(expm1.f64 (log1p.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(exp.f64 (log.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)
(log1p.f64 (expm1.f64 (hypot.f64 x x)))
(+.f64 (+.f64 1 (hypot.f64 x x)) -1)
(+.f64 (hypot.f64 x x) 0)
(hypot.f64 x x)

eval6.0ms (0.3%)

Compiler

Compiled 263 to 150 computations (43% saved)

prune5.0ms (0.2%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New35136
Fresh000
Picked112
Done000
Total36238
Accurracy
100.0%
Counts
38 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.3%
(*.f64 (sqrt.f64 2) x)
100.0%
(hypot.f64 x x)
99.3%
(*.f64 (sqrt.f64 2) x)
Compiler

Compiled 18 to 12 computations (33.3% saved)

localize44.0ms (2.3%)

Local Accuracy

Found 1 expressions with local accuracy:

NewAccuracyProgram
99.3%
(*.f64 (sqrt.f64 2) x)
Compiler

Compiled 10 to 8 computations (20% saved)

series0.0ms (0%)

Counts
1 → 0
Calls

3 calls:

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

rewrite87.0ms (4.4%)

Algorithm
batch-egg-rewrite
Rules
1182×pow1
1084×add-exp-log
1084×log1p-expm1-u
1084×expm1-log1p-u
1058×add-log-exp
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
113811
2150811
Stop Event
node limit
Counts
1 → 11
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 2) x)
Outputs
(-.f64 (+.f64 1 (*.f64 (sqrt.f64 2) x)) 1)
(pow.f64 (*.f64 (sqrt.f64 2) x) 1)
(pow.f64 (cbrt.f64 (*.f64 (sqrt.f64 2) x)) 3)
(pow.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3) 1/3)
(pow.f64 (sqrt.f64 (*.f64 (sqrt.f64 2) x)) 2)
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(log.f64 (pow.f64 (exp.f64 x) (sqrt.f64 2)))
(cbrt.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3))
(expm1.f64 (log1p.f64 (*.f64 (sqrt.f64 2) x)))
(exp.f64 (log.f64 (*.f64 (sqrt.f64 2) x)))
(log1p.f64 (expm1.f64 (*.f64 (sqrt.f64 2) x)))

simplify60.0ms (3.1%)

Algorithm
egg-herbie
Rules
1896×log-prod
954×fma-neg
806×*-commutative
676×distribute-lft-out
640×distribute-rgt-in
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
032253
179187
2271121
31535121
44437121
56814121
Stop Event
node limit
Counts
11 → 14
Calls
Call 1
Inputs
(-.f64 (+.f64 1 (*.f64 (sqrt.f64 2) x)) 1)
(pow.f64 (*.f64 (sqrt.f64 2) x) 1)
(pow.f64 (cbrt.f64 (*.f64 (sqrt.f64 2) x)) 3)
(pow.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3) 1/3)
(pow.f64 (sqrt.f64 (*.f64 (sqrt.f64 2) x)) 2)
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(log.f64 (pow.f64 (exp.f64 x) (sqrt.f64 2)))
(cbrt.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3))
(expm1.f64 (log1p.f64 (*.f64 (sqrt.f64 2) x)))
(exp.f64 (log.f64 (*.f64 (sqrt.f64 2) x)))
(log1p.f64 (expm1.f64 (*.f64 (sqrt.f64 2) x)))
Outputs
(-.f64 (+.f64 1 (*.f64 (sqrt.f64 2) x)) 1)
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(pow.f64 (*.f64 (sqrt.f64 2) x) 1)
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(pow.f64 (cbrt.f64 (*.f64 (sqrt.f64 2) x)) 3)
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(pow.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3) 1/3)
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(pow.f64 (sqrt.f64 (*.f64 (sqrt.f64 2) x)) 2)
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(log.f64 (pow.f64 (exp.f64 x) (sqrt.f64 2)))
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(cbrt.f64 (pow.f64 (*.f64 (sqrt.f64 2) x) 3))
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(expm1.f64 (log1p.f64 (*.f64 (sqrt.f64 2) x)))
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(exp.f64 (log.f64 (*.f64 (sqrt.f64 2) x)))
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)
(log1p.f64 (expm1.f64 (*.f64 (sqrt.f64 2) x)))
(+.f64 1 (-.f64 (*.f64 (sqrt.f64 2) x) 1))
(+.f64 (*.f64 (sqrt.f64 2) x) 0)
(*.f64 (sqrt.f64 2) x)

eval3.0ms (0.1%)

Compiler

Compiled 92 to 77 computations (16.3% saved)

prune3.0ms (0.1%)

Pruning

2 alts after pruning (0 fresh and 2 done)

PrunedKeptTotal
New14014
Fresh000
Picked011
Done011
Total14216
Accurracy
100.0%
Counts
16 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.3%
(*.f64 (sqrt.f64 2) x)
Compiler

Compiled 31 to 21 computations (32.3% saved)

regimes13.0ms (0.7%)

Accuracy

Total -28.9b remaining (-246222.1%)

Threshold costs -28.9b (-246222.1%)

Counts
4 → 1
Calls
Call 1
Inputs
(hypot.f64 x x)
(*.f64 (sqrt.f64 2) x)
(sqrt.f64 (*.f64 2 (*.f64 x x)))
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
Outputs
(hypot.f64 x x)
Calls

4 calls:

4.0ms
x
3.0ms
(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
3.0ms
(+.f64 (pow.f64 x 2) (pow.f64 x 2))
3.0ms
(pow.f64 x 2)
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(sqrt.f64 (+.f64 (pow.f64 x 2) (pow.f64 x 2)))
100.0%1(+.f64 (pow.f64 x 2) (pow.f64 x 2))
100.0%1(pow.f64 x 2)
Compiler

Compiled 45 to 32 computations (28.9% saved)

simplify3.0ms (0.2%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
047
Stop Event
done
saturated
Calls
Call 1
Inputs
(hypot.f64 x x)
Outputs
(hypot.f64 x x)
Compiler

Compiled 4 to 2 computations (50% saved)

soundness221.0ms (11.3%)

Rules
2556×fma-def
1482×distribute-lft-out
1118×hypot-def
988×count-2
868×unswap-sqr
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
0817
1147
2337
3567
41217
53807
613817
725897
839327
948607
1056267
1166377
1274947
Stop Event
node limit
Compiler

Compiled 28 to 15 computations (46.4% saved)

end0.0ms (0%)

preprocess21.0ms (1.1%)

Remove

(abs x)

Compiler

Compiled 34 to 22 computations (35.3% saved)

Profiling

Loading profile data...