sqrt C (should all be same)

Time bar (total: 2.0s)

start0.0ms (0%)

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

analyze0.0ms (0%)

Memory
0.2MiB live, 0.2MiB 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)

sample851.0ms (43%)

Memory
37.4MiB live, 733.6MiB allocated; 137ms collecting garbage
Samples
503.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 230.0ms
ival-mult: 133.0ms (57.8% of total)
ival-sqrt: 81.0ms (35.2% of total)
ival-true: 6.0ms (2.6% of total)
exact: 5.0ms (2.2% of total)
ival-assert: 3.0ms (1.3% of total)
adjust: 2.0ms (0.9% of total)
Bogosity

explain79.0ms (4%)

Memory
-5.0MiB live, 96.6MiB allocated; 14ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1440-0-(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)))uflow-rescue750
(*.f64 #s(literal 2 binary64) (*.f64 x x))underflow75
(*.f64 x x)underflow75
sqrt.f64(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))oflow-rescue690
(*.f64 #s(literal 2 binary64) (*.f64 x x))overflow69
(*.f64 x x)overflow69
Confusion
Predicted +Predicted -
+1440
-0112
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+14400
-00112
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0112
1144
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
41.0ms512×0valid
Compiler

Compiled 42 to 19 computations (54.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-mult: 7.0ms (60.2% of total)
ival-sqrt: 3.0ms (25.8% 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)

preprocess18.0ms (0.9%)

Memory
19.5MiB live, 19.5MiB allocated; 0ms 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.2MiB live, 0.2MiB allocated; 0ms collecting garbage
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 6 to 5 computations (16.7% saved)

simplify7.0ms (0.3%)

Memory
3.8MiB live, 3.8MiB 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

localize40.0ms (2%)

Memory
-21.7MiB live, 24.3MiB allocated; 7ms collecting garbage
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 x x)
accuracy0.0
(*.f64 #s(literal 2 binary64) (*.f64 x x))
accuracy33.63154214162149
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
Samples
13.0ms256×0valid
Compiler

Compiled 18 to 7 computations (61.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-mult: 5.0ms (72.1% of total)
ival-sqrt: 2.0ms (28.8% 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
4.5MiB live, 4.5MiB 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))

simplify9.0ms (0.4%)

Memory
8.1MiB live, 8.1MiB 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)))

rewrite40.0ms (2%)

Memory
-14.7MiB live, 28.6MiB allocated; 7ms 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
3.7MiB live, 3.7MiB allocated; 0ms collecting garbage
Compiler

Compiled 155 to 71 computations (54.2% saved)

prune2.0ms (0.1%)

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

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New15318
Fresh000
Picked011
Done000
Total15419
Accuracy
99.5%
Counts
19 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
47.4%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
47.5%
(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.9%
#s(literal 0 binary64)
Compiler

Compiled 28 to 23 computations (17.9% saved)

simplify12.0ms (0.6%)

Memory
14.8MiB live, 14.8MiB 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)

localize154.0ms (7.8%)

Memory
-15.2MiB live, 37.5MiB allocated; 10ms collecting garbage
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(sqrt.f64 x)
accuracy0.1328125
(*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))
accuracy0.18359375
(*.f64 x (sqrt.f64 x))
accuracy33.63154214162149
(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.44921875
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x)
Samples
27.0ms256×0valid
Compiler

Compiled 51 to 15 computations (70.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 16.0ms
ival-mult: 9.0ms (57.9% of total)
ival-sqrt: 6.0ms (38.6% 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)

series7.0ms (0.3%)

Memory
12.5MiB live, 12.5MiB allocated; 0ms collecting garbage
Counts
8 → 11
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))
(sqrt.f64 x)
Outputs
(* x (sqrt 2))
(pow x 2)
(* 2 (pow x 2))
(sqrt (pow x 3))
(sqrt x)
(* -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)))
(* -1 (* (sqrt x) (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)) (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)) (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)) (sqrt x))

simplify136.0ms (6.9%)

Memory
-13.7MiB live, 31.5MiB allocated; 5ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 5 (0.0ms)

IterNodesCost
02645
16445
219745
349245
4134745
5281537
6376837
7419637
8454837
9459137
10459137
11459137
12550337
13560737
14560737
15562237
16562237
17613837
18680737
0680737
Stop Event
iter limit
saturated
Counts
11 → 11
Calls
Call 1
Inputs
(* x (sqrt 2))
(pow x 2)
(* 2 (pow x 2))
(sqrt (pow x 3))
(sqrt x)
(* -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)))
(* -1 (* (sqrt x) (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)))
(sqrt x)
(sqrt.f64 x)
(* -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 x) (*.f64 (sqrt.f64 #s(literal -2 binary64)) (sqrt.f64 #s(literal -1 binary64))))
(* -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)))
(* -1 (* (sqrt x) (pow (sqrt -1) 2)))
(sqrt.f64 x)

rewrite69.0ms (3.5%)

Memory
28.7MiB live, 116.8MiB allocated; 11ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01349
02038
14931
218816
099816
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
8 → 82
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))
(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)))
(*.f64 (neg.f64 (pow.f64 x #s(literal 1/4 binary64))) (neg.f64 (pow.f64 x #s(literal 1/4 binary64))))
(*.f64 (sqrt.f64 (neg.f64 (sqrt.f64 x))) (sqrt.f64 (neg.f64 (sqrt.f64 x))))
(*.f64 (sqrt.f64 (pow.f64 x #s(literal 3/4 binary64))) (sqrt.f64 (pow.f64 x #s(literal 1/4 binary64))))
(*.f64 (sqrt.f64 (pow.f64 x #s(literal 1/4 binary64))) (sqrt.f64 (pow.f64 x #s(literal 3/4 binary64))))
(*.f64 (pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 1/2 binary64)) (pow.f64 (pow.f64 x #s(literal 3/4 binary64)) #s(literal 1/2 binary64)))
(*.f64 (pow.f64 (neg.f64 (sqrt.f64 x)) #s(literal 1/2 binary64)) (pow.f64 (neg.f64 (sqrt.f64 x)) #s(literal 1/2 binary64)))
(*.f64 (pow.f64 (pow.f64 x #s(literal 3/4 binary64)) #s(literal 1/2 binary64)) (pow.f64 (pow.f64 x #s(literal 1/4 binary64)) #s(literal 1/2 binary64)))
(*.f64 (pow.f64 x #s(literal 1/4 binary64)) (pow.f64 x #s(literal 1/4 binary64)))
(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 (*.f64 x x) #s(literal 1/4 binary64))
(pow.f64 (sqrt.f64 x) #s(literal 1 binary64))
(pow.f64 x #s(literal 1/2 binary64))
(sqrt.f64 x)
(fabs.f64 (neg.f64 (sqrt.f64 x)))
(fabs.f64 (sqrt.f64 x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 1/2 binary64)))
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 1/2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 1/2 binary64))))

eval27.0ms (1.4%)

Memory
-36.3MiB live, 26.5MiB allocated; 15ms collecting garbage
Compiler

Compiled 1 386 to 433 computations (68.8% saved)

prune4.0ms (0.2%)

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

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New1042106
Fresh000
Picked033
Done011
Total1046110
Accuracy
99.9%
Counts
110 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
47.3%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64))))
47.4%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
47.5%
(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.9%
#s(literal 0 binary64)
Compiler

Compiled 49 to 41 computations (16.3% saved)

simplify11.0ms (0.6%)

Memory
-29.8MiB live, 17.2MiB allocated; 2ms 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)

localize39.0ms (2%)

Memory
2.1MiB live, 48.1MiB allocated; 4ms collecting garbage
Localize:

Found 8 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 #s(literal 2 binary64) (pow.f64 (sqrt.f64 x) #s(literal 4 binary64)))
accuracy0.0
(sqrt.f64 x)
accuracy0.3832589356003984
(pow.f64 (sqrt.f64 x) #s(literal 4 binary64))
accuracy33.63154214162149
(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.44921875
(*.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
28.0ms256×0valid
Compiler

Compiled 48 to 16 computations (66.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 19.0ms
ival-mult: 6.0ms (31% of total)
ival-sqrt: 5.0ms (25.8% of total)
ival-exp2: 3.0ms (15.5% of total)
ival-pow: 2.0ms (10.3% of total)
ival-pow2: 2.0ms (10.3% 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
6.2MiB live, 6.2MiB 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))

simplify134.0ms (6.8%)

Memory
33.5MiB live, 166.4MiB allocated; 32ms 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)

rewrite44.0ms (2.2%)

Memory
-7.9MiB live, 37.9MiB 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
22.5MiB live, 22.5MiB allocated; 0ms collecting garbage
Compiler

Compiled 1 731 to 458 computations (73.5% saved)

prune6.0ms (0.3%)

Memory
-36.4MiB live, 9.4MiB allocated; 3ms collecting garbage
Pruning

5 alts after pruning (1 fresh and 4 done)

PrunedKeptTotal
New1051106
Fresh000
Picked202
Done044
Total1075112
Accuracy
99.9%
Counts
112 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
47.4%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
47.5%
(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.9%
#s(literal 0 binary64)
Compiler

Compiled 42 to 34 computations (19% saved)

simplify8.0ms (0.4%)

Memory
9.0MiB live, 9.0MiB allocated; 0ms 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.3%)

Memory
33.8MiB live, 33.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.44921875
(*.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.5% of total)
ival-sqrt: 5.0ms (40.5% of total)
ival-pow2: 2.0ms (16.2% 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)

series27.0ms (1.4%)

Memory
-31.4MiB live, 19.8MiB allocated; 20ms 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
26.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))
0.0ms
x
@inf
((pow (sqrt (sqrt 2)) 2) (sqrt (* 2 (* x x))) (* (pow (sqrt (sqrt 2)) 2) x) (sqrt (sqrt 2)) (sqrt 2))

simplify3.0ms (0.1%)

Memory
3.9MiB live, 3.9MiB allocated; 0ms 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)))

rewrite47.0ms (2.4%)

Memory
-3.8MiB live, 42.0MiB allocated; 7ms 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.0MiB live, 10.0MiB allocated; 0ms collecting garbage
Compiler

Compiled 794 to 191 computations (75.9% saved)

prune3.0ms (0.2%)

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

5 alts after pruning (0 fresh and 5 done)

PrunedKeptTotal
New45045
Fresh000
Picked011
Done044
Total45550
Accuracy
99.9%
Counts
50 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
47.4%
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 (*.f64 x (sqrt.f64 x)) (sqrt.f64 x))))
47.5%
(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.9%
#s(literal 0 binary64)
Compiler

Compiled 105 to 65 computations (38.1% saved)

regimes13.0ms (0.6%)

Memory
-27.4MiB live, 18.2MiB allocated; 4ms 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:

5.0ms
(*.f64 x x)
2.0ms
x
2.0ms
(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
2.0ms
(*.f64 #s(literal 2 binary64) (*.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
9.4MiB live, 9.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.9%1(*.f64 x x)
3.9%1(*.f64 #s(literal 2 binary64) (*.f64 x x))
3.9%1(sqrt.f64 (*.f64 #s(literal 2 binary64) (*.f64 x x)))
3.9%1x
Compiler

Compiled 15 to 12 computations (20% saved)

simplify64.0ms (3.2%)

Memory
-8.3MiB live, 37.0MiB allocated; 6ms 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)

derivations39.0ms (1.9%)

Memory
42.4MiB live, 42.4MiB allocated; 0ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

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

Compiled 12 to 10 computations (16.7% saved)

preprocess26.0ms (1.3%)

Memory
-8.8MiB live, 39.1MiB allocated; 9ms 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...