sqrt A (should all be same)

Time bar (total: 1.1s)

analyze0.0ms (0%)

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

Compiled 10 to 5 computations (50% saved)

sample791.0ms (68.9%)

Results
781.0ms8256×body256valid
Bogosity

preprocess21.0ms (1.8%)

Algorithm
egg-herbie
Rules
174×fma-def
40×associate-*r*
28×distribute-lft-neg-in
22×distribute-lft-in
22×neg-sub0
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01114
13114
27514
318314
428414
534114
Stop Event
saturated
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
(sqrt.f64 (+.f64 (*.f64 (neg.f64 x) (neg.f64 x)) (*.f64 (neg.f64 x) (neg.f64 x))))
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
(hypot.f64 x x)
(sqrt.f64 (+.f64 (*.f64 (neg.f64 x) (neg.f64 x)) (*.f64 (neg.f64 x) (neg.f64 x))))
(hypot.f64 x x)
Symmetry

(abs x)

Compiler

Compiled 10 to 5 computations (50% saved)

simplify3.0ms (0.3%)

Algorithm
egg-herbie
Rules
*-commutative
associate-*r*
count-2
fma-def
hypot-def
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
077
1147
2177
3207
Stop Event
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
Outputs
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 x x)))
(hypot.f64 x x)

eval0.0ms (0%)

Compiler

Compiled 12 to 5 computations (58.3% saved)

prune1.0ms (0.1%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Accurracy
100.0%
Counts
3 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
100.0%
(hypot.f64 x x)
Compiler

Compiled 8 to 4 computations (50% saved)

localize14.0ms (1.2%)

Local Accuracy

Found 1 expressions with local accuracy:

NewAccuracyProgram
100.0%
(hypot.f64 x x)
Compiler

Compiled 6 to 3 computations (50% saved)

series2.0ms (0.2%)

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)

rewrite47.0ms (4.1%)

Algorithm
batch-egg-rewrite
Rules
738×pow1
704×add-sqr-sqrt
696×*-un-lft-identity
674×add-exp-log
674×log1p-expm1-u
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
047
1807
29337
Stop Event
node limit
Counts
1 → 41
Calls
Call 1
Inputs
(hypot.f64 x x)
Outputs
(+.f64 0 (hypot.f64 x x))
(+.f64 (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x x)))) (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x x)))))
(+.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x))) 2)) (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x)))))
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(*.f64 (hypot.f64 x x) 1)
(*.f64 1 (hypot.f64 x x))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2))
(*.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2) (cbrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 x) (pow.f64 (+.f64 x x) 1/2))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2)) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 4) 1/2))
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 x x))) (pow.f64 (pow.f64 (hypot.f64 x x) 3/2) 1/2))
(*.f64 (cbrt.f64 (pow.f64 (hypot.f64 x x) 5/2)) (cbrt.f64 (sqrt.f64 (hypot.f64 x x))))
(*.f64 (cbrt.f64 (pow.f64 (*.f64 (hypot.f64 x x) (cbrt.f64 (hypot.f64 x x))) 2)) (cbrt.f64 (cbrt.f64 (hypot.f64 x x))))
(*.f64 (pow.f64 1 1/3) (hypot.f64 x x))
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(*.f64 (pow.f64 (sqrt.f64 (cbrt.f64 (hypot.f64 x x))) 3) (pow.f64 (sqrt.f64 (cbrt.f64 (hypot.f64 x x))) 3))
(*.f64 (pow.f64 (pow.f64 (*.f64 (hypot.f64 x x) (cbrt.f64 (hypot.f64 x x))) 2) 1/3) (cbrt.f64 (cbrt.f64 (hypot.f64 x x))))
(*.f64 (pow.f64 (pow.f64 (hypot.f64 x x) 5/2) 1/3) (cbrt.f64 (sqrt.f64 (hypot.f64 x x))))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 4) 1/2) (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2)))
(*.f64 (pow.f64 (pow.f64 (hypot.f64 x x) 3/2) 1/2) (sqrt.f64 (sqrt.f64 (hypot.f64 x x))))
(*.f64 (pow.f64 2 1/2) x)
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 5) 1/2) (sqrt.f64 (cbrt.f64 (hypot.f64 x 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 (sqrt.f64 (hypot.f64 x x)) 2)
(pow.f64 (*.f64 x (+.f64 x x)) 1/2)
(pow.f64 (E.f64) (log.f64 (hypot.f64 x x)))
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (hypot.f64 x x))) 2)) (cbrt.f64 (log.f64 (hypot.f64 x x))))
(pow.f64 (exp.f64 (sqrt.f64 (log.f64 (hypot.f64 x x)))) (sqrt.f64 (log.f64 (hypot.f64 x x))))
(sqrt.f64 (*.f64 x (+.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)))
(exp.f64 (*.f64 (log.f64 (cbrt.f64 (hypot.f64 x x))) 3))
(exp.f64 (*.f64 (*.f64 3 (log.f64 (hypot.f64 x x))) 1/3))
(exp.f64 (*.f64 (log.f64 (sqrt.f64 (hypot.f64 x x))) 2))
(exp.f64 (*.f64 (*.f64 2 (log.f64 (hypot.f64 x x))) 1/2))
(log1p.f64 (expm1.f64 (hypot.f64 x x)))

simplify54.0ms (4.7%)

Algorithm
egg-herbie
Rules
924×associate-*r*
884×log-prod
766×associate-*l*
738×associate-+r+
718×associate-+l+
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0116717
1249681
2686669
34006669
Stop Event
node limit
Counts
53 → 55
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 0 (hypot.f64 x x))
(+.f64 (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x x)))) (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x x)))))
(+.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x))) 2)) (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x)))))
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(*.f64 (hypot.f64 x x) 1)
(*.f64 1 (hypot.f64 x x))
(*.f64 (cbrt.f64 (hypot.f64 x x)) (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2))
(*.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2) (cbrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 x) (pow.f64 (+.f64 x x) 1/2))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(*.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2)) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 4) 1/2))
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 x x))) (pow.f64 (pow.f64 (hypot.f64 x x) 3/2) 1/2))
(*.f64 (cbrt.f64 (pow.f64 (hypot.f64 x x) 5/2)) (cbrt.f64 (sqrt.f64 (hypot.f64 x x))))
(*.f64 (cbrt.f64 (pow.f64 (*.f64 (hypot.f64 x x) (cbrt.f64 (hypot.f64 x x))) 2)) (cbrt.f64 (cbrt.f64 (hypot.f64 x x))))
(*.f64 (pow.f64 1 1/3) (hypot.f64 x x))
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(*.f64 (pow.f64 (sqrt.f64 (cbrt.f64 (hypot.f64 x x))) 3) (pow.f64 (sqrt.f64 (cbrt.f64 (hypot.f64 x x))) 3))
(*.f64 (pow.f64 (pow.f64 (*.f64 (hypot.f64 x x) (cbrt.f64 (hypot.f64 x x))) 2) 1/3) (cbrt.f64 (cbrt.f64 (hypot.f64 x x))))
(*.f64 (pow.f64 (pow.f64 (hypot.f64 x x) 5/2) 1/3) (cbrt.f64 (sqrt.f64 (hypot.f64 x x))))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 4) 1/2) (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2)))
(*.f64 (pow.f64 (pow.f64 (hypot.f64 x x) 3/2) 1/2) (sqrt.f64 (sqrt.f64 (hypot.f64 x x))))
(*.f64 (pow.f64 2 1/2) x)
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 5) 1/2) (sqrt.f64 (cbrt.f64 (hypot.f64 x 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 (sqrt.f64 (hypot.f64 x x)) 2)
(pow.f64 (*.f64 x (+.f64 x x)) 1/2)
(pow.f64 (E.f64) (log.f64 (hypot.f64 x x)))
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (hypot.f64 x x))) 2)) (cbrt.f64 (log.f64 (hypot.f64 x x))))
(pow.f64 (exp.f64 (sqrt.f64 (log.f64 (hypot.f64 x x)))) (sqrt.f64 (log.f64 (hypot.f64 x x))))
(sqrt.f64 (*.f64 x (+.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)))
(exp.f64 (*.f64 (log.f64 (cbrt.f64 (hypot.f64 x x))) 3))
(exp.f64 (*.f64 (*.f64 3 (log.f64 (hypot.f64 x x))) 1/3))
(exp.f64 (*.f64 (log.f64 (sqrt.f64 (hypot.f64 x x))) 2))
(exp.f64 (*.f64 (*.f64 2 (log.f64 (hypot.f64 x x))) 1/2))
(log1p.f64 (expm1.f64 (hypot.f64 x x)))
Outputs
(*.f64 (sqrt.f64 2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 (sqrt.f64 2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 x (sqrt.f64 2)))
(*.f64 x (neg.f64 (sqrt.f64 2)))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 x (sqrt.f64 2)))
(*.f64 x (neg.f64 (sqrt.f64 2)))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 x (sqrt.f64 2)))
(*.f64 x (neg.f64 (sqrt.f64 2)))
(*.f64 -1 (*.f64 (sqrt.f64 2) x))
(neg.f64 (*.f64 x (sqrt.f64 2)))
(*.f64 x (neg.f64 (sqrt.f64 2)))
(+.f64 0 (hypot.f64 x x))
(hypot.f64 x x)
(+.f64 (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x x)))) (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x x)))))
(hypot.f64 x x)
(+.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x))) 2)) (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x)))))
(+.f64 (*.f64 2 (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x))))) (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x)))))
(*.f64 3 (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x)))))
(*.f64 (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x x)))) 3)
(-.f64 (+.f64 1 (hypot.f64 x x)) 1)
(hypot.f64 x x)
(*.f64 (hypot.f64 x x) 1)
(hypot.f64 x x)
(*.f64 1 (hypot.f64 x x))
(hypot.f64 x x)
(*.f64 (cbrt.f64 (hypot.f64 x x)) (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2))
(hypot.f64 x x)
(*.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2) (cbrt.f64 (hypot.f64 x x)))
(hypot.f64 x x)
(*.f64 (sqrt.f64 x) (pow.f64 (+.f64 x x) 1/2))
(*.f64 (sqrt.f64 x) (sqrt.f64 (+.f64 x x)))
(*.f64 (sqrt.f64 (hypot.f64 x x)) (sqrt.f64 (hypot.f64 x x)))
(hypot.f64 x x)
(*.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2)) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 4) 1/2))
(hypot.f64 x x)
(*.f64 (sqrt.f64 (sqrt.f64 (hypot.f64 x x))) (pow.f64 (pow.f64 (hypot.f64 x x) 3/2) 1/2))
(hypot.f64 x x)
(*.f64 (cbrt.f64 (pow.f64 (hypot.f64 x x) 5/2)) (cbrt.f64 (sqrt.f64 (hypot.f64 x x))))
(*.f64 (cbrt.f64 (sqrt.f64 (hypot.f64 x x))) (cbrt.f64 (pow.f64 (hypot.f64 x x) 5/2)))
(*.f64 (cbrt.f64 (pow.f64 (*.f64 (hypot.f64 x x) (cbrt.f64 (hypot.f64 x x))) 2)) (cbrt.f64 (cbrt.f64 (hypot.f64 x x))))
(*.f64 (cbrt.f64 (cbrt.f64 (hypot.f64 x x))) (cbrt.f64 (pow.f64 (*.f64 (hypot.f64 x x) (cbrt.f64 (hypot.f64 x x))) 2)))
(*.f64 (cbrt.f64 (cbrt.f64 (hypot.f64 x x))) (cbrt.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 4) 2)))
(*.f64 (cbrt.f64 (cbrt.f64 (hypot.f64 x x))) (cbrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 8)))
(*.f64 (pow.f64 1 1/3) (hypot.f64 x x))
(hypot.f64 x x)
(*.f64 (pow.f64 1 1/2) (hypot.f64 x x))
(hypot.f64 x x)
(*.f64 (pow.f64 (sqrt.f64 (cbrt.f64 (hypot.f64 x x))) 3) (pow.f64 (sqrt.f64 (cbrt.f64 (hypot.f64 x x))) 3))
(hypot.f64 x x)
(*.f64 (pow.f64 (pow.f64 (*.f64 (hypot.f64 x x) (cbrt.f64 (hypot.f64 x x))) 2) 1/3) (cbrt.f64 (cbrt.f64 (hypot.f64 x x))))
(*.f64 (cbrt.f64 (cbrt.f64 (hypot.f64 x x))) (cbrt.f64 (pow.f64 (*.f64 (hypot.f64 x x) (cbrt.f64 (hypot.f64 x x))) 2)))
(*.f64 (cbrt.f64 (cbrt.f64 (hypot.f64 x x))) (cbrt.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 4) 2)))
(*.f64 (cbrt.f64 (cbrt.f64 (hypot.f64 x x))) (cbrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 8)))
(*.f64 (pow.f64 (pow.f64 (hypot.f64 x x) 5/2) 1/3) (cbrt.f64 (sqrt.f64 (hypot.f64 x x))))
(*.f64 (cbrt.f64 (sqrt.f64 (hypot.f64 x x))) (cbrt.f64 (pow.f64 (hypot.f64 x x) 5/2)))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 4) 1/2) (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 2)))
(hypot.f64 x x)
(*.f64 (pow.f64 (pow.f64 (hypot.f64 x x) 3/2) 1/2) (sqrt.f64 (sqrt.f64 (hypot.f64 x x))))
(hypot.f64 x x)
(*.f64 (pow.f64 2 1/2) x)
(*.f64 x (sqrt.f64 2))
(*.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x x)) 5) 1/2) (sqrt.f64 (cbrt.f64 (hypot.f64 x x))))
(hypot.f64 x x)
(pow.f64 (hypot.f64 x x) 1)
(hypot.f64 x x)
(pow.f64 (cbrt.f64 (hypot.f64 x x)) 3)
(hypot.f64 x x)
(pow.f64 (pow.f64 (hypot.f64 x x) 3) 1/3)
(hypot.f64 x x)
(pow.f64 (sqrt.f64 (hypot.f64 x x)) 2)
(hypot.f64 x x)
(pow.f64 (*.f64 x (+.f64 x x)) 1/2)
(hypot.f64 x x)
(pow.f64 (E.f64) (log.f64 (hypot.f64 x x)))
(hypot.f64 x x)
(pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (hypot.f64 x x))) 2)) (cbrt.f64 (log.f64 (hypot.f64 x x))))
(pow.f64 (exp.f64 (sqrt.f64 (log.f64 (hypot.f64 x x)))) (sqrt.f64 (log.f64 (hypot.f64 x x))))
(sqrt.f64 (*.f64 x (+.f64 x x)))
(hypot.f64 x x)
(log.f64 (exp.f64 (hypot.f64 x x)))
(hypot.f64 x x)
(cbrt.f64 (pow.f64 (hypot.f64 x x) 3))
(hypot.f64 x x)
(expm1.f64 (log1p.f64 (hypot.f64 x x)))
(hypot.f64 x x)
(exp.f64 (log.f64 (hypot.f64 x x)))
(hypot.f64 x x)
(exp.f64 (*.f64 (log.f64 (cbrt.f64 (hypot.f64 x x))) 3))
(hypot.f64 x x)
(exp.f64 (*.f64 (*.f64 3 (log.f64 (hypot.f64 x x))) 1/3))
(hypot.f64 x x)
(exp.f64 (*.f64 (log.f64 (sqrt.f64 (hypot.f64 x x))) 2))
(hypot.f64 x x)
(exp.f64 (*.f64 (*.f64 2 (log.f64 (hypot.f64 x x))) 1/2))
(hypot.f64 x x)
(log1p.f64 (expm1.f64 (hypot.f64 x x)))
(hypot.f64 x x)

eval9.0ms (0.8%)

Compiler

Compiled 507 to 205 computations (59.6% saved)

prune8.0ms (0.7%)

Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New54155
Fresh000
Picked011
Done000
Total54256
Accurracy
100.0%
Counts
56 → 2
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(hypot.f64 x x)
99.4%
(*.f64 (sqrt.f64 2) x)
100.0%
(hypot.f64 x x)
99.4%
(*.f64 (sqrt.f64 2) x)
Compiler

Compiled 18 to 12 computations (33.3% saved)

localize22.0ms (1.9%)

Local Accuracy

Found 1 expressions with local accuracy:

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

Compiled 10 to 8 computations (20% saved)

series1.0ms (0.1%)

Counts
1 → 0
Calls

3 calls:

TimeVariablePointExpression
0.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 (4.1%)

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)))

simplify64.0ms (5.6%)

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.2%)

Compiler

Compiled 92 to 77 computations (16.3% saved)

prune3.0ms (0.2%)

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.4%
(*.f64 (sqrt.f64 2) x)
Compiler

Compiled 25 to 14 computations (44% saved)

regimes13.0ms (1.1%)

Accuracy

Total -31.1b remaining (-398422.8%)

Threshold costs -31.1b (-398422.8%)

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

4 calls:

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

Compiled 39 to 18 computations (53.8% saved)

simplify4.0ms (0.3%)

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)

soundness13.0ms (1.2%)

Rules
*-commutative
associate-*r*
count-2
fma-def
hypot-def
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
077
1147
2177
3207
Stop Event
saturated
Compiler

Compiled 12 to 5 computations (58.3% saved)

end0.0ms (0%)

preprocess28.0ms (2.4%)

Remove

(abs x)

Compiler

Compiled 34 to 16 computations (52.9% saved)

Profiling

Loading profile data...