sqrt C (should all be same)

Time bar (total: 2.0s)

start0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated; 0ms collecting garbage

analyze1.0ms (0%)

Memory
1.0MiB live, 1.0MiB allocated; 0ms collecting garbage
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 8 to 7 computations (12.5% saved)

sample849.0ms (42.1%)

Memory
26.3MiB live, 720.8MiB allocated; 115ms collecting garbage
Samples
509.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 358.0ms
ival-mult: 244.0ms (68.1% of total)
ival-sqrt: 98.0ms (27.3% of total)
ival-true: 6.0ms (1.7% of total)
exact: 5.0ms (1.4% of total)
adjust: 3.0ms (0.8% of total)
ival-assert: 3.0ms (0.8% of total)
Bogosity

explain69.0ms (3.4%)

Memory
-31.4MiB live, 71.2MiB allocated; 15ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1180-5(-3.4178191561041045e-158)(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
00-0-#s(literal 2 binary64)
00-0-(*.f64 x x)
00-0-(*.f64 #s(literal 2 binary64) (*.f64 x x))
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
sqrt.f64(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))oflow-rescue580
(*.f64 #s(literal 2 binary64) (*.f64 x x))overflow58
(*.f64 x x)overflow58
sqrt.f64(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))uflow-rescue550
(*.f64 #s(literal 2 binary64) (*.f64 x x))underflow55
(*.f64 x x)underflow55
Confusion
Predicted +Predicted -
+1135
-0138
Precision
1.0
Recall
0.9576271186440678
Confusion?
Predicted +Predicted MaybePredicted -
+11305
-00138
Precision?
1.0
Recall?
0.9576271186440678
Freqs
test
numberfreq
0143
1113
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
26.0ms512×0valid
Compiler

Compiled 42 to 19 computations (54.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 15.0ms
ival-mult: 11.0ms (73.7% of total)
ival-sqrt: 3.0ms (20.1% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess134.0ms (6.7%)

Memory
-3.6MiB live, 42.1MiB allocated; 5ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0713
12213
28313
313113
422313
524913
626913
056
086
1186
2566
31226
41876
52236
62466
72666
02663
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
Outputs
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
(hypot.f64 x x)
Symmetry

(abs x)

Compiler

Compiled 6 to 5 computations (16.7% saved)

eval0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated; 0ms collecting garbage
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
1.7MiB live, 1.7MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
58.2%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
Compiler

Compiled 6 to 5 computations (16.7% saved)

simplify7.0ms (0.3%)

Memory
9.6MiB live, 9.6MiB allocated; 0ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x x)
cost-diff0
(*.f64 #s(literal 2 binary64) (*.f64 x x))
cost-diff3
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0516
0816
11816
25616
312216
418716
522316
624616
726616
026613
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
(*.f64 #s(literal 2 binary64) (*.f64 x x))
#s(literal 2 binary64)
(*.f64 x x)
x
Outputs
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
(hypot.f64 x x)
(*.f64 #s(literal 2 binary64) (*.f64 x x))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
#s(literal 2 binary64)
(*.f64 x x)
x

localize15.0ms (0.8%)

Memory
16.5MiB live, 16.5MiB allocated; 0ms collecting garbage
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 x x)
accuracy0.015625
(*.f64 #s(literal 2 binary64) (*.f64 x x))
accuracy26.721168087135922
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
Samples
11.0ms256×0valid
Compiler

Compiled 18 to 7 computations (61.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 5.0ms
ival-mult: 3.0ms (56.1% of total)
ival-sqrt: 2.0ms (37.4% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series3.0ms (0.2%)

Memory
2.4MiB live, 2.4MiB allocated; 0ms collecting garbage
Counts
3 → 4
Calls
Call 1
Inputs
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
(*.f64 #s(literal 2 binary64) (*.f64 x x))
(*.f64 x x)
Outputs
(* x (sqrt 2))
(* 2 (pow x 2))
(pow x 2)
(* -1 (* x (sqrt 2)))
Calls

3 calls:

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

simplify8.0ms (0.4%)

Memory
3.2MiB live, 3.2MiB allocated; 0ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0817
11817
24317
39217
422817
543717
648517
048517
Stop Event
iter limit
saturated
Counts
4 → 4
Calls
Call 1
Inputs
(* x (sqrt 2))
(* 2 (pow x 2))
(pow x 2)
(* -1 (* x (sqrt 2)))
Outputs
(* x (sqrt 2))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(* 2 (pow x 2))
(*.f64 (*.f64 #s(literal 2 binary64) x) x)
(pow x 2)
(*.f64 x x)
(* -1 (* x (sqrt 2)))
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))

rewrite58.0ms (2.9%)

Memory
-22.1MiB live, 24.0MiB allocated; 5ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0514
0813
12413
21025
07775
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
3 → 15
Calls
Call 1
Inputs
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
(*.f64 #s(literal 2 binary64) (*.f64 x x))
(*.f64 x x)
Outputs
#s(literal 0 binary64)
#s(literal 0 binary64)
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)))
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) x))
(*.f64 x x)
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 2 binary64))
(pow.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1/2 binary64))
(pow.f64 x #s(literal 2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1 binary64))
(neg.f64 (*.f64 x x))
(sqrt.f64 (pow.f64 x #s(literal 4 binary64)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))))

eval2.0ms (0.1%)

Memory
4.6MiB live, 4.6MiB allocated; 0ms collecting garbage
Compiler

Compiled 155 to 71 computations (54.2% saved)

prune2.0ms (0.1%)

Memory
4.2MiB live, 4.2MiB allocated; 0ms collecting garbage
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New15318
Fresh000
Picked011
Done000
Total15419
Accuracy
99.6%
Counts
19 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
58.1%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
58.2%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
99.3%
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
3.8%
#s(literal 0 binary64)
Compiler

Compiled 28 to 23 computations (17.9% saved)

simplify12.0ms (0.6%)

Memory
20.7MiB live, 20.7MiB allocated; 0ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x (sqrt.f64 x))
cost-diff0
(*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x)))
cost-diff3
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
cost-diff4
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
cost-diff0
(sqrt.f64 #s(literal 2 binary64))
cost-diff0
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
cost-diff0
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01454
02154
14042
210442
324842
442242
550442
654442
757842
057836
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(literal 0 binary64)
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
x
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
(*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x)))
#s(literal 2 binary64)
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
(*.f64 x (sqrt.f64 x))
x
(sqrt.f64 x)
Outputs
#s(literal 0 binary64)
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
x
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
(hypot.f64 x x)
(*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x)))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
#s(literal 2 binary64)
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
(*.f64 x x)
(*.f64 x (sqrt.f64 x))
(*.f64 (sqrt.f64 x) x)
x
(sqrt.f64 x)

localize53.0ms (2.6%)

Memory
-41.0MiB live, 60.4MiB allocated; 31ms collecting garbage
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0.015625
(*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x)))
accuracy0.1796875
(*.f64 x (sqrt.f64 x))
accuracy0.1875
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
accuracy26.721168087135922
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
accuracy0.0
(sqrt.f64 #s(literal 2 binary64))
accuracy0.0
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
accuracy0.44140625
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
Samples
26.0ms256×0valid
Compiler

Compiled 51 to 15 computations (70.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 15.0ms
ival-mult: 9.0ms (58.1% of total)
ival-sqrt: 6.0ms (38.7% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series6.0ms (0.3%)

Memory
12.1MiB live, 12.1MiB allocated; 0ms collecting garbage
Counts
7 → 9
Calls
Call 1
Inputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(sqrt.f64 #s(literal 2 binary64))
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
(*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x)))
(*.f64 x (sqrt.f64 x))
Outputs
(* x (sqrt 2))
(pow x 2)
(* 2 (pow x 2))
(sqrt (pow x 3))
(* -1 (* x (sqrt 2)))
(* -1 (* (pow x 2) (pow (sqrt -1) 2)))
(* -1 (* x (* (sqrt -2) (sqrt -1))))
(* -2 (* (pow x 2) (pow (sqrt -1) 2)))
(* -1 (* (sqrt (pow x 3)) (pow (sqrt -1) 2)))
Calls

3 calls:

TimeVariablePointExpression
4.0ms
x
@-inf
((sqrt (* 2 (* x x))) (* (sqrt 2) x) (sqrt 2) (* (* x (sqrt x)) (sqrt x)) (sqrt (* 2 (* (* x (sqrt x)) (sqrt x)))) (* 2 (* (* x (sqrt x)) (sqrt x))) (* x (sqrt x)))
1.0ms
x
@inf
((sqrt (* 2 (* x x))) (* (sqrt 2) x) (sqrt 2) (* (* x (sqrt x)) (sqrt x)) (sqrt (* 2 (* (* x (sqrt x)) (sqrt x)))) (* 2 (* (* x (sqrt x)) (sqrt x))) (* x (sqrt x)))
1.0ms
x
@0
((sqrt (* 2 (* x x))) (* (sqrt 2) x) (sqrt 2) (* (* x (sqrt x)) (sqrt x)) (sqrt (* 2 (* (* x (sqrt x)) (sqrt x)))) (* 2 (* (* x (sqrt x)) (sqrt x))) (* x (sqrt x)))

simplify134.0ms (6.6%)

Memory
9.8MiB live, 56.0MiB allocated; 5ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 5 (0.0ms)

IterNodesCost
02341
15641
217141
344341
4123941
5264233
6359833
7403033
8438233
9442533
10442533
11442533
12532733
13543133
14543133
15544333
16544333
17593233
18674333
0674333
Stop Event
iter limit
saturated
Counts
9 → 9
Calls
Call 1
Inputs
(* x (sqrt 2))
(pow x 2)
(* 2 (pow x 2))
(sqrt (pow x 3))
(* -1 (* x (sqrt 2)))
(* -1 (* (pow x 2) (pow (sqrt -1) 2)))
(* -1 (* x (* (sqrt -2) (sqrt -1))))
(* -2 (* (pow x 2) (pow (sqrt -1) 2)))
(* -1 (* (sqrt (pow x 3)) (pow (sqrt -1) 2)))
Outputs
(* x (sqrt 2))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(pow x 2)
(*.f64 x x)
(* 2 (pow x 2))
#s(literal 0 binary64)
(sqrt (pow x 3))
(sqrt.f64 (pow.f64 x #s(literal 3 binary64)))
(* -1 (* x (sqrt 2)))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x))
(* -1 (* (pow x 2) (pow (sqrt -1) 2)))
(*.f64 x x)
(* -1 (* x (* (sqrt -2) (sqrt -1))))
(*.f64 (neg.f64 (sqrt.f64 #s(literal -1 binary64))) (*.f64 (sqrt.f64 #s(literal -2 binary64)) x))
(* -2 (* (pow x 2) (pow (sqrt -1) 2)))
#s(literal 0 binary64)
(* -1 (* (sqrt (pow x 3)) (pow (sqrt -1) 2)))
(sqrt.f64 (pow.f64 x #s(literal 3 binary64)))

rewrite74.0ms (3.7%)

Memory
1.2MiB live, 101.9MiB allocated; 12ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01347
02036
14929
218814
099814
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
7 → 64
Calls
Call 1
Inputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(sqrt.f64 #s(literal 2 binary64))
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
(*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x)))
(*.f64 x (sqrt.f64 x))
Outputs
#s(approx (sqrt (* 2 (* x x))) #s(literal 0 binary64))
#s(literal 0 binary64)
(*.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(*.f64 (fabs.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (fabs.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))
(pow.f64 (exp.f64 (log.f64 #s(literal 2 binary64))) #s(literal 1/2 binary64))
(pow.f64 #s(literal 4 binary64) #s(literal 1/4 binary64))
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64))
(sqrt.f64 #s(literal 2 binary64))
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)))
(+.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))))
(*.f64 (*.f64 x (pow.f64 x #s(literal 3/4 binary64))) (pow.f64 x #s(literal 1/4 binary64)))
(*.f64 (*.f64 x (pow.f64 x #s(literal 1/4 binary64))) (pow.f64 x #s(literal 3/4 binary64)))
(*.f64 (*.f64 (pow.f64 x #s(literal 3/2 binary64)) (pow.f64 x #s(literal 1/4 binary64))) (pow.f64 x #s(literal 1/4 binary64)))
(*.f64 (fabs.f64 (pow.f64 x #s(literal 3/2 binary64))) (sqrt.f64 x))
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)))
(*.f64 (pow.f64 (pow.f64 x #s(literal 3/4 binary64)) #s(literal 2 binary64)) (sqrt.f64 x))
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (*.f64 (pow.f64 x #s(literal 1/4 binary64)) (pow.f64 x #s(literal 3/2 binary64))))
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (*.f64 (pow.f64 x #s(literal 3/4 binary64)) x))
(*.f64 (neg.f64 (sqrt.f64 x)) (pow.f64 x #s(literal 3/2 binary64)))
(*.f64 (pow.f64 x #s(literal 3/4 binary64)) (*.f64 (pow.f64 x #s(literal 1/4 binary64)) x))
(*.f64 (pow.f64 x #s(literal 3/2 binary64)) (neg.f64 (sqrt.f64 x)))
(*.f64 (pow.f64 x #s(literal 3/2 binary64)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (fabs.f64 (pow.f64 x #s(literal 3/2 binary64))))
(*.f64 (sqrt.f64 x) (pow.f64 (pow.f64 x #s(literal 3/4 binary64)) #s(literal 2 binary64)))
(*.f64 (sqrt.f64 x) (pow.f64 x #s(literal 3/2 binary64)))
(*.f64 x x)
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 2 binary64))
(pow.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1/2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1 binary64))
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 x x))
(sqrt.f64 (pow.f64 x #s(literal 4 binary64)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))))
#s(literal 0 binary64)
#s(literal 0 binary64)
(*.f64 (*.f64 (sqrt.f64 x) (pow.f64 x #s(literal 3/4 binary64))) (pow.f64 x #s(literal 1/4 binary64)))
(*.f64 (*.f64 x (pow.f64 x #s(literal 1/4 binary64))) (pow.f64 x #s(literal 1/4 binary64)))
(*.f64 (*.f64 (pow.f64 x #s(literal 1/4 binary64)) (neg.f64 (sqrt.f64 x))) (*.f64 (pow.f64 x #s(literal 1/4 binary64)) (neg.f64 (sqrt.f64 x))))
(*.f64 (*.f64 (neg.f64 (sqrt.f64 x)) (pow.f64 x #s(literal 1/4 binary64))) (*.f64 (neg.f64 (sqrt.f64 x)) (pow.f64 x #s(literal 1/4 binary64))))
(*.f64 (pow.f64 (neg.f64 (sqrt.f64 x)) #s(literal 3/2 binary64)) (pow.f64 (neg.f64 (sqrt.f64 x)) #s(literal 3/2 binary64)))
(*.f64 (pow.f64 (pow.f64 x #s(literal 3/4 binary64)) #s(literal 3/2 binary64)) (pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 3/2 binary64)))
(*.f64 (pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 3/2 binary64)) (pow.f64 (pow.f64 x #s(literal 3/4 binary64)) #s(literal 3/2 binary64)))
(*.f64 (pow.f64 (sqrt.f64 x) #s(literal 3/2 binary64)) (pow.f64 (sqrt.f64 x) #s(literal 3/2 binary64)))
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (*.f64 (pow.f64 x #s(literal 3/4 binary64)) (sqrt.f64 x)))
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (*.f64 (pow.f64 x #s(literal 1/4 binary64)) x))
(*.f64 (neg.f64 (sqrt.f64 x)) x)
(*.f64 (pow.f64 x #s(literal 3/4 binary64)) (pow.f64 x #s(literal 3/4 binary64)))
(*.f64 (sqrt.f64 x) x)
(*.f64 x (neg.f64 (sqrt.f64 x)))
(*.f64 x (sqrt.f64 x))
(pow.f64 (*.f64 x (*.f64 x x)) #s(literal 1/2 binary64))
(pow.f64 (*.f64 (*.f64 x x) x) #s(literal 1/2 binary64))
(pow.f64 (*.f64 x x) #s(literal 3/4 binary64))
(pow.f64 (sqrt.f64 x) #s(literal 3 binary64))
(pow.f64 x #s(literal 3/2 binary64))
(neg.f64 (pow.f64 x #s(literal 3/2 binary64)))
(sqrt.f64 (*.f64 x (*.f64 x x)))
(sqrt.f64 (*.f64 (*.f64 x x) x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 3/2 binary64)))

eval18.0ms (0.9%)

Memory
-10.1MiB live, 30.2MiB allocated; 13ms collecting garbage
Compiler

Compiled 826 to 280 computations (66.1% saved)

prune3.0ms (0.2%)

Memory
11.5MiB live, 11.5MiB allocated; 0ms collecting garbage
Pruning

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New66268
Fresh000
Picked033
Done011
Total66672
Accuracy
100.0%
Counts
72 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
57.9%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
58.1%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
58.2%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
99.1%
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x))
99.3%
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
3.8%
#s(literal 0 binary64)
Compiler

Compiled 49 to 41 computations (16.3% saved)

simplify10.0ms (0.5%)

Memory
12.8MiB live, 12.8MiB allocated; 0ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
cost-diff0
(sqrt.f64 x)
cost-diff0
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
cost-diff0
(*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)))
cost-diff0
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
cost-diff0
(pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))
cost-diff0
(*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x)
cost-diff0
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x))
cost-diff3
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01554
02254
13648
28545
317545
429445
536545
638845
740845
040842
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x))
(*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x)
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))
#s(literal 2 binary64)
#s(literal 1/4 binary64)
x
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
(*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)))
#s(literal 2 binary64)
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
(sqrt.f64 x)
x
#s(literal 4 binary64)
Outputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x))
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x)
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
(sqrt.f64 #s(literal 2 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))
#s(literal 2 binary64)
#s(literal 1/4 binary64)
x
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
(sqrt.f64 (*.f64 (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)) #s(literal 2 binary64)))
(*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)))
(*.f64 (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)) #s(literal 2 binary64))
#s(literal 2 binary64)
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
(sqrt.f64 x)
x
#s(literal 4 binary64)

localize45.0ms (2.2%)

Memory
-1.7MiB live, 42.8MiB allocated; 10ms collecting garbage
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(sqrt.f64 x)
accuracy0.015625
(*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)))
accuracy0.5184328125901448
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
accuracy26.721168087135922
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
accuracy0.0
(pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))
accuracy0.0
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x))
accuracy0.44140625
(*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x)
accuracy1.0
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
Samples
36.0ms256×0valid
Compiler

Compiled 48 to 16 computations (66.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 27.0ms
ival-sqrt: 12.0ms (44.7% of total)
ival-mult: 6.0ms (22.3% of total)
ival-exp2: 3.0ms (11.2% of total)
ival-pow: 2.0ms (7.4% of total)
ival-pow2: 2.0ms (7.4% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series4.0ms (0.2%)

Memory
5.1MiB live, 5.1MiB allocated; 0ms collecting garbage
Counts
8 → 9
Calls
Call 1
Inputs
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x))
(*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x)
(pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
(*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)))
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
(sqrt.f64 x)
Outputs
(* x (sqrt 2))
(* 2 (pow x 2))
(pow x 2)
(sqrt x)
(* -1 (* x (sqrt 2)))
(* -1 (* x (* (pow (sqrt -1) 2) (sqrt 2))))
(* 2 (* (pow x 2) (pow (sqrt -1) 4)))
(* (pow x 2) (pow (sqrt -1) 4))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
Calls

3 calls:

TimeVariablePointExpression
3.0ms
x
@-inf
((pow (pow 2 1/4) 2) (sqrt (* 2 (* x x))) (* (pow (pow 2 1/4) 2) x) (pow 2 1/4) (sqrt (* 2 (pow (sqrt x) 4))) (* 2 (pow (sqrt x) 4)) (pow (sqrt x) 4) (sqrt x))
1.0ms
x
@inf
((pow (pow 2 1/4) 2) (sqrt (* 2 (* x x))) (* (pow (pow 2 1/4) 2) x) (pow 2 1/4) (sqrt (* 2 (pow (sqrt x) 4))) (* 2 (pow (sqrt x) 4)) (pow (sqrt x) 4) (sqrt x))
1.0ms
x
@0
((pow (pow 2 1/4) 2) (sqrt (* 2 (* x x))) (* (pow (pow 2 1/4) 2) x) (pow 2 1/4) (sqrt (* 2 (pow (sqrt x) 4))) (* 2 (pow (sqrt x) 4)) (pow (sqrt x) 4) (sqrt x))

simplify147.0ms (7.3%)

Memory
-17.6MiB live, 123.6MiB allocated; 33ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02033
14733
214933
335633
4122133
5268233
6324733
7412533
8637933
0806633
Stop Event
iter limit
node limit
Counts
9 → 9
Calls
Call 1
Inputs
(* x (sqrt 2))
(* 2 (pow x 2))
(pow x 2)
(sqrt x)
(* -1 (* x (sqrt 2)))
(* -1 (* x (* (pow (sqrt -1) 2) (sqrt 2))))
(* 2 (* (pow x 2) (pow (sqrt -1) 4)))
(* (pow x 2) (pow (sqrt -1) 4))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
Outputs
(* x (sqrt 2))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(* 2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(pow x 2)
(*.f64 x x)
(sqrt x)
(sqrt.f64 x)
(* -1 (* x (sqrt 2)))
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))
(* -1 (* x (* (pow (sqrt -1) 2) (sqrt 2))))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(* 2 (* (pow x 2) (pow (sqrt -1) 4)))
(*.f64 (*.f64 x x) #s(literal 2 binary64))
(* (pow x 2) (pow (sqrt -1) 4))
(*.f64 x x)
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(sqrt.f64 x)

rewrite70.0ms (3.5%)

Memory
-9.1MiB live, 36.0MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01548
02238
16532
223316
0139116
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
8 → 102
Calls
Call 1
Inputs
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x))
(*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x)
(pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
(*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)))
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
(sqrt.f64 x)
Outputs
(*.f64 (*.f64 (pow.f64 #s(literal 8 binary64) #s(literal 1/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)))
(*.f64 (*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)))) (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))))
(*.f64 (pow.f64 (pow.f64 #s(literal 8 binary64) #s(literal 1/8 binary64)) #s(literal 1 binary64)) (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)))
(*.f64 (pow.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))) #s(literal 1 binary64)) (pow.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))) #s(literal 1 binary64)))
(*.f64 (pow.f64 #s(literal 8 binary64) #s(literal 1/8 binary64)) (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (pow.f64 #s(literal 8 binary64) #s(literal 1/8 binary64))))
(*.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))) (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))))
(*.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))) (*.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))) (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))))
(*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)) (pow.f64 (pow.f64 #s(literal 8 binary64) #s(literal 1/8 binary64)) #s(literal 1 binary64)))
(*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)) (pow.f64 #s(literal 8 binary64) #s(literal 1/8 binary64)))
(*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)))
(pow.f64 (exp.f64 #s(literal 2 binary64)) (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))
(pow.f64 #s(literal 16 binary64) #s(literal 1/8 binary64))
(pow.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))) #s(literal 2 binary64))
(pow.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)) #s(literal 4 binary64))
(pow.f64 #s(literal 4 binary64) #s(literal 1/4 binary64))
(pow.f64 (sqrt.f64 #s(literal 2 binary64)) #s(literal 1 binary64))
(pow.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) #s(literal 2 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64))
(/.f64 (-.f64 (*.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))) (*.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))) (-.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))))
(/.f64 (+.f64 (pow.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) #s(literal 3 binary64)) (pow.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) #s(literal 3 binary64))) (fma.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (-.f64 (*.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))) (*.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))))))
(neg.f64 (*.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))) (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))))
(neg.f64 (*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)))))
(fma.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) (*.f64 (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))))
(fma.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))))
(fma.f64 #s(literal 2 binary64) (*.f64 (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))
(sqrt.f64 #s(literal 2 binary64))
(fabs.f64 (sqrt.f64 #s(literal 2 binary64)))
(exp.f64 (*.f64 (log.f64 #s(literal 4 binary64)) #s(literal 1/4 binary64)))
(exp.f64 (*.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 1 binary64)))
(exp.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))
(+.f64 (*.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))) (*.f64 (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))))
(+.f64 (*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))) (*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))))
(+.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))
(+.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))
#s(approx (sqrt (* 2 (* x x))) #s(literal 0 binary64))
#s(literal 0 binary64)
(*.f64 (*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)))
(*.f64 (neg.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)))) (neg.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)))))
(*.f64 (pow.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))) #s(literal 1 binary64)) (pow.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))) #s(literal 1 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/16 binary64)) (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))))
(*.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))) (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))))
(*.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)) (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)))
(pow.f64 (exp.f64 #s(literal 1/4 binary64)) (log.f64 #s(literal 2 binary64)))
(pow.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64))) #s(literal 2 binary64))
(pow.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/16 binary64)) #s(literal 2 binary64))
(pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))
(pow.f64 (sqrt.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))
(pow.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)) #s(literal 1 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))
(/.f64 (-.f64 (*.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))) (*.f64 (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))))) (-.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))))
(/.f64 (+.f64 (pow.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) #s(literal 3 binary64)) (pow.f64 (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) #s(literal 3 binary64))) (fma.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (-.f64 (*.f64 (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))) (*.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))))))
(neg.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))))
(sqrt.f64 (sqrt.f64 #s(literal 2 binary64)))
(fabs.f64 (neg.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64))))
(fabs.f64 (pow.f64 #s(literal 4 binary64) #s(literal 1/8 binary64)))
(exp.f64 (*.f64 (*.f64 #s(literal 1/8 binary64) (log.f64 #s(literal 2 binary64))) #s(literal 2 binary64)))
(exp.f64 (*.f64 (log.f64 #s(literal 4 binary64)) #s(literal 1/8 binary64)))
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))
(+.f64 (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))))
(+.f64 (cosh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))) (sinh.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64))))
#s(literal 0 binary64)
#s(literal 0 binary64)
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.f64 x)))
(*.f64 (pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 4 binary64)) (pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 4 binary64)))
(*.f64 x x)
(*.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) x))
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 2 binary64))
(pow.f64 (exp.f64 #s(literal 4 binary64)) (log.f64 (sqrt.f64 x)))
(pow.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1/2 binary64))
(pow.f64 x #s(literal 2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1 binary64))
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
(/.f64 (-.f64 (*.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))) (*.f64 (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))))) (-.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))))
(/.f64 (+.f64 (pow.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) #s(literal 3 binary64)) (pow.f64 (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) #s(literal 3 binary64))) (fma.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (-.f64 (*.f64 (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))) (*.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))))))
(neg.f64 (*.f64 x x))
(sqrt.f64 (pow.f64 x #s(literal 4 binary64)))
(fabs.f64 (*.f64 x x))
(exp.f64 (fma.f64 (log.f64 (sqrt.f64 x)) #s(literal 2 binary64) (*.f64 (log.f64 (sqrt.f64 x)) #s(literal 2 binary64))))
(exp.f64 (*.f64 (*.f64 (log.f64 (sqrt.f64 x)) #s(literal 2 binary64)) #s(literal 2 binary64)))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
(+.f64 (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))))
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))))
(*.f64 (pow.f64 (sqrt.f64 x) #s(literal 1/2 binary64)) (pow.f64 (sqrt.f64 x) #s(literal 1/2 binary64)))
(*.f64 (neg.f64 (pow.f64 x #s(literal 1/4 binary64))) (neg.f64 (pow.f64 x #s(literal 1/4 binary64))))
(*.f64 (fabs.f64 (pow.f64 x #s(literal 1/4 binary64))) (fabs.f64 (pow.f64 x #s(literal 1/4 binary64))))
(*.f64 (sqrt.f64 (sqrt.f64 x)) (sqrt.f64 (sqrt.f64 x)))
(*.f64 (pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 1 binary64)) (pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 1 binary64)))
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (pow.f64 x #s(literal 1/4 binary64)))
(pow.f64 (exp.f64 #s(literal 1/2 binary64)) (log.f64 x))
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 1/2 binary64))
(pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 2 binary64))
(pow.f64 x #s(literal 1/2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1/4 binary64))
(pow.f64 (sqrt.f64 x) #s(literal 1 binary64))
(sqrt.f64 x)
(fabs.f64 (sqrt.f64 x))
(exp.f64 (/.f64 (*.f64 (log.f64 (sqrt.f64 x)) #s(literal 2 binary64)) #s(literal 2 binary64)))
(exp.f64 (*.f64 (log.f64 (sqrt.f64 x)) #s(literal 1 binary64)))
(exp.f64 (log.f64 (sqrt.f64 x)))
(+.f64 (cosh.f64 (log.f64 (sqrt.f64 x))) (sinh.f64 (log.f64 (sqrt.f64 x))))

eval13.0ms (0.7%)

Memory
25.7MiB live, 25.7MiB allocated; 0ms collecting garbage
Compiler

Compiled 1 731 to 458 computations (73.5% saved)

prune3.0ms (0.2%)

Memory
8.9MiB live, 8.9MiB allocated; 0ms collecting garbage
Pruning

5 alts after pruning (1 fresh and 4 done)

PrunedKeptTotal
New1051106
Fresh000
Picked202
Done044
Total1075112
Accuracy
100.0%
Counts
112 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
58.1%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
58.2%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
99.1%
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
99.3%
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
3.8%
#s(literal 0 binary64)
Compiler

Compiled 42 to 34 computations (19% saved)

simplify13.0ms (0.6%)

Memory
-35.3MiB live, 8.8MiB allocated; 5ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(sqrt.f64 (sqrt.f64 #s(literal 2 binary64)))
cost-diff0
(*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x)
cost-diff0
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
cost-diff3
(pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01033
01430
12624
27424
315824
426024
530624
632924
734924
034921
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
(*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x)
(pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64))
(sqrt.f64 (sqrt.f64 #s(literal 2 binary64)))
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
x
Outputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x)
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64))
(sqrt.f64 #s(literal 2 binary64))
(sqrt.f64 (sqrt.f64 #s(literal 2 binary64)))
(sqrt.f64 #s(literal 2 binary64))
#s(literal 2 binary64)
x

localize25.0ms (1.2%)

Memory
40.8MiB live, 40.8MiB allocated; 0ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(sqrt.f64 #s(literal 2 binary64))
accuracy0.0
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
accuracy0.44140625
(*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x)
accuracy1.0
(pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64))
Samples
19.0ms256×0valid
Compiler

Compiled 27 to 11 computations (59.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-mult: 5.0ms (40.9% of total)
ival-sqrt: 5.0ms (40.9% of total)
ival-pow2: 2.0ms (16.4% of total)
ival-true: 0.0ms (0% of total)
adjust: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series1.0ms (0.1%)

Memory
2.4MiB live, 2.4MiB allocated; 0ms collecting garbage
Counts
5 → 2
Calls
Call 1
Inputs
(pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64))
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
(*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x)
(sqrt.f64 (sqrt.f64 #s(literal 2 binary64)))
(sqrt.f64 #s(literal 2 binary64))
Outputs
(* x (sqrt 2))
(* -1 (* x (sqrt 2)))
Calls

3 calls:

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

simplify7.0ms (0.4%)

Memory
-50.6MiB live, 3.2MiB allocated; 10ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
069
1139
2279
3289
0289
Stop Event
iter limit
saturated
Counts
2 → 2
Calls
Call 1
Inputs
(* x (sqrt 2))
(* -1 (* x (sqrt 2)))
Outputs
(* x (sqrt 2))
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
(* -1 (* x (sqrt 2)))
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))

rewrite60.0ms (3%)

Memory
20.1MiB live, 65.1MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01031
01426
14021
216011
0112511
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
5 → 66
Calls
Call 1
Inputs
(pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64))
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
(*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x)
(sqrt.f64 (sqrt.f64 #s(literal 2 binary64)))
(sqrt.f64 #s(literal 2 binary64))
Outputs
(*.f64 (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)))
(*.f64 (neg.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))) (neg.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))))
(*.f64 (pow.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) #s(literal 1 binary64)) (pow.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) #s(literal 1 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(*.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))
(pow.f64 (exp.f64 (log.f64 #s(literal 2 binary64))) #s(literal 1/2 binary64))
(pow.f64 (exp.f64 #s(literal 2 binary64)) (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64))))
(pow.f64 #s(literal 4 binary64) #s(literal 1/4 binary64))
(pow.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) #s(literal 2 binary64))
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
(pow.f64 (sqrt.f64 #s(literal 2 binary64)) #s(literal 1 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64))
(/.f64 (-.f64 (*.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))) (*.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))) (-.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))))
(/.f64 (+.f64 (pow.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) #s(literal 3 binary64)) (pow.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) #s(literal 3 binary64))) (fma.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (-.f64 (*.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))) (*.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))))))
(neg.f64 (*.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(neg.f64 (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))))
(fma.f64 #s(literal 2 binary64) (*.f64 (sinh.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64)))) (cosh.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64))))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))
(sqrt.f64 #s(literal 2 binary64))
(fabs.f64 (sqrt.f64 #s(literal 2 binary64)))
(exp.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))
(+.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))
(+.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))
#s(approx (sqrt (* 2 (* x x))) #s(literal 0 binary64))
#s(literal 0 binary64)
(*.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))))
(*.f64 (fabs.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) (fabs.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))))
(*.f64 (sqrt.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))) (sqrt.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))))
(*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) #s(literal 1 binary64)) (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) #s(literal 1 binary64)))
(*.f64 (pow.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) #s(literal 1/2 binary64)) (pow.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) #s(literal 1/2 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)))
(pow.f64 (exp.f64 #s(literal 1/2 binary64)) (log.f64 (sqrt.f64 #s(literal 2 binary64))))
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) #s(literal 2 binary64))
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 1 binary64))
(pow.f64 (sqrt.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))
(sqrt.f64 (sqrt.f64 #s(literal 2 binary64)))
(fabs.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(fabs.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))
(exp.f64 (/.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)))
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/4 binary64)))
(exp.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64))))
(+.f64 (cosh.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64)))) (sinh.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64)))))
(*.f64 (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)))
(*.f64 (neg.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))) (neg.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))))
(*.f64 (pow.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) #s(literal 1 binary64)) (pow.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) #s(literal 1 binary64)))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/8 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(*.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))
(pow.f64 (exp.f64 (log.f64 #s(literal 2 binary64))) #s(literal 1/2 binary64))
(pow.f64 (exp.f64 #s(literal 2 binary64)) (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64))))
(pow.f64 #s(literal 4 binary64) #s(literal 1/4 binary64))
(pow.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) #s(literal 2 binary64))
(pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64))
(pow.f64 (sqrt.f64 #s(literal 2 binary64)) #s(literal 1 binary64))
(pow.f64 #s(literal 2 binary64) #s(literal 1/2 binary64))
(/.f64 (-.f64 (*.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))) (*.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))) (-.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))))
(/.f64 (+.f64 (pow.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) #s(literal 3 binary64)) (pow.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) #s(literal 3 binary64))) (fma.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (-.f64 (*.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))) (*.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))))))
(neg.f64 (*.f64 (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))) (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64))))
(neg.f64 (*.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) (neg.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)))))
(fma.f64 #s(literal 2 binary64) (*.f64 (sinh.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64)))) (cosh.f64 (*.f64 #s(literal 1/4 binary64) (log.f64 #s(literal 2 binary64))))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))
(sqrt.f64 #s(literal 2 binary64))
(fabs.f64 (sqrt.f64 #s(literal 2 binary64)))
(exp.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64))))
(+.f64 (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))
(+.f64 (cosh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))) (sinh.f64 (log.f64 (sqrt.f64 #s(literal 2 binary64)))))

eval5.0ms (0.3%)

Memory
10.4MiB live, 10.4MiB allocated; 0ms collecting garbage
Compiler

Compiled 794 to 191 computations (75.9% saved)

prune3.0ms (0.2%)

Memory
7.7MiB live, 7.7MiB allocated; 0ms collecting garbage
Pruning

5 alts after pruning (0 fresh and 5 done)

PrunedKeptTotal
New45045
Fresh000
Picked011
Done044
Total45550
Accuracy
100.0%
Counts
50 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
58.1%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
58.2%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
99.1%
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
99.3%
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
3.8%
#s(literal 0 binary64)
Compiler

Compiled 105 to 65 computations (38.1% saved)

regimes14.0ms (0.7%)

Memory
-24.5MiB live, 20.6MiB allocated; 5ms collecting garbage
Counts
7 → 1
Calls
Call 1
Inputs
#s(literal 0 binary64)
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (sqrt.f64 (sqrt.f64 #s(literal 2 binary64))) #s(literal 2 binary64)) x))
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
#s(approx (sqrt (* 2 (* x x))) (*.f64 (pow.f64 (pow.f64 #s(literal 2 binary64) #s(literal 1/4 binary64)) #s(literal 2 binary64)) x))
Outputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
Calls

4 calls:

6.0ms
(*.f64 #s(literal 2 binary64) (*.f64 x x))
2.0ms
x
2.0ms
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
2.0ms
(*.f64 x x)
Results
AccuracySegmentsBranch
99.3%1(*.f64 x x)
99.3%1(*.f64 #s(literal 2 binary64) (*.f64 x x))
99.3%1(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
99.3%1x
Compiler

Compiled 15 to 12 computations (20% saved)

regimes4.0ms (0.2%)

Memory
10.4MiB live, 10.4MiB allocated; 0ms collecting garbage
Accuracy

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

Counts
1 → 1
Calls
Call 1
Inputs
#s(literal 0 binary64)
Outputs
#s(literal 0 binary64)
Calls

4 calls:

1.0ms
x
1.0ms
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
1.0ms
(*.f64 #s(literal 2 binary64) (*.f64 x x))
1.0ms
(*.f64 x x)
Results
AccuracySegmentsBranch
3.8%1(*.f64 x x)
3.8%1(*.f64 #s(literal 2 binary64) (*.f64 x x))
3.8%1(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
3.8%1x
Compiler

Compiled 15 to 12 computations (20% saved)

simplify38.0ms (1.9%)

Memory
1.9MiB live, 46.9MiB allocated; 5ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0912
11912
25612
312812
419812
526012
645012
7212012
8330012
Stop Event
node limit
Calls
Call 1
Inputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(literal 0 binary64)
Outputs
#s(approx (sqrt (* 2 (* x x))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))
#s(literal 0 binary64)

derivations81.0ms (4%)

Memory
-14.3MiB live, 53.0MiB allocated; 62ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
0514
0813
12413
21025
07775
0817
11817
24317
39217
422817
543717
648517
048517
Stop Event
done
iter limit
saturated
iter limit
iter limit
iter limit
unsound
iter limit
Compiler

Compiled 12 to 10 computations (16.7% saved)

preprocess23.0ms (1.1%)

Memory
-12.6MiB live, 35.0MiB allocated; 7ms collecting garbage
Compiler

Compiled 58 to 48 computations (17.2% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated; 0ms collecting garbage

Profiling

Loading profile data...