Numeric.Integration.TanhSinh:nonNegative from integration-0.2.1

Time bar (total: 3.4s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze1.0ms (0%)

Memory
2.8MiB live, 2.8MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
50%50%50%0%0%0%0%2
75%75%25%0%0%0%0%3
87.5%87.5%12.5%0%0%0%0%4
93.8%93.7%6.2%0%0%0%0%5
96.9%96.8%3.1%0%0%0%0%6
98.4%98.4%1.6%0%0%0%0%7
99.2%99.2%0.8%0%0%0%0%8
99.6%99.6%0.4%0%0%0%0%9
99.8%99.8%0.2%0%0%0%0%10
99.9%99.9%0.1%0%0%0%0%11
100%99.9%0%0%0%0%0%12
Compiler

Compiled 7 to 6 computations (14.3% saved)

sample912.0ms (27%)

Memory
-120.7MiB live, 830.7MiB allocated
Samples
684.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 411.0ms
ival-div: 326.0ms (79.4% of total)
ival-sub: 71.0ms (17.3% of total)
ival-true: 6.0ms (1.5% of total)
exact: 4.0ms (1% of total)
ival-assert: 3.0ms (0.7% of total)
Bogosity

explain54.0ms (1.6%)

Memory
-10.0MiB live, 84.8MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(/.f64 x (-.f64 #s(literal 1 binary64) x))
00-0-(-.f64 #s(literal 1 binary64) x)
00-0-#s(literal 1 binary64)
00-0-x
Confusion
Predicted +Predicted -
+00
-0256
Precision
0/0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-00256
Precision?
0/0
Recall?
0/0
Freqs
test
numberfreq
0256
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-001
Precision?
0/0
Recall?
0/0
Samples
18.0ms512×0valid
Compiler

Compiled 29 to 16 computations (44.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 8.0ms
ival-div: 4.0ms (49.9% of total)
ival-sub: 3.0ms (37.5% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess24.0ms (0.7%)

Memory
-11.1MiB live, 63.2MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0615
12011
24710
310010
419510
528410
629510
730910
832210
045
065
1105
2145
3195
4265
5365
6515
7745
8965
91045
101065
01065
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Outputs
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Compiler

Compiled 5 to 4 computations (20% saved)

eval0.0ms (0%)

Memory
0.3MiB live, 0.3MiB allocated
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.9MiB live, 0.9MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Compiler

Compiled 5 to 4 computations (20% saved)

simplify4.0ms (0.1%)

Memory
4.5MiB live, 4.5MiB allocated
Algorithm
egg-herbie
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(-.f64 #s(literal 1 binary64) x)
cost-diff0
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0410
0610
11010
21410
31910
42610
53610
65110
77410
89610
910410
1010610
010610
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(/.f64 x (-.f64 #s(literal 1 binary64) x))
x
(-.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)
Outputs
(/.f64 x (-.f64 #s(literal 1 binary64) x))
x
(-.f64 #s(literal 1 binary64) x)
#s(literal 1 binary64)

localize13.0ms (0.4%)

Memory
11.1MiB live, 11.1MiB allocated
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0
(-.f64 #s(literal 1 binary64) x)
accuracy0.00390625
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Samples
9.0ms256×0valid
Compiler

Compiled 12 to 6 computations (50% saved)

Precisions
Click to see histograms. Total time spent on operations: 4.0ms
ival-div: 2.0ms (53.8% of total)
ival-sub: 1.0ms (26.9% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series29.0ms (0.8%)

Memory
-45.4MiB live, 2.5MiB allocated
Counts
2 → 24
Calls
Call 1
Inputs
#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())
#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())
Outputs
#s(alt x (taylor 0 x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* x (+ 1 x)))) (taylor 0 x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* x (+ 1 (* x (+ 1 x)))))) (taylor 0 x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt 1 (taylor 0 x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* -1 x)) (taylor 0 x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* -1 x)) (taylor 0 x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (+ 1 (* -1 x)) (taylor 0 x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt -1 (taylor inf x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) x)) 1) (taylor inf x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 x) (taylor inf x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (- (/ 1 x) 1)) (taylor inf x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (- (/ 1 x) 1)) (taylor inf x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* x (- (/ 1 x) 1)) (taylor inf x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt -1 (taylor -inf x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) x)) 1) (taylor -inf x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1) (taylor -inf x) (#s(alt (/.f64 x (-.f64 #s(literal 1 binary64) x)) (patch (/.f64 x (-.f64 #s(literal 1 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 x) (taylor -inf x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- 1 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- 1 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- 1 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 #s(literal 1 binary64) x) (patch (-.f64 #s(literal 1 binary64) x) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
26.0ms
x
@-inf
((/ x (- 1 x)) (- 1 x))
0.0ms
x
@inf
((/ x (- 1 x)) (- 1 x))
0.0ms
x
@0
((/ x (- 1 x)) (- 1 x))

simplify164.0ms (4.9%)

Memory
21.0MiB live, 94.2MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
033135
193120
2220114
3545112
41047112
51955112
63384112
74540112
84656112
94656112
104818112
114893112
124893112
04893109
Stop Event
iter limit
saturated
Counts
24 → 23
Calls
Call 1
Inputs
x
(* x (+ 1 x))
(* x (+ 1 (* x (+ 1 x))))
(* x (+ 1 (* x (+ 1 (* x (+ 1 x))))))
1
(+ 1 (* -1 x))
(+ 1 (* -1 x))
(+ 1 (* -1 x))
-1
(* -1 (+ 1 (/ 1 x)))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x)))
(* -1 x)
(* x (- (/ 1 x) 1))
(* x (- (/ 1 x) 1))
(* x (- (/ 1 x) 1))
-1
(* -1 (+ 1 (/ 1 x)))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1)
(* -1 x)
(* -1 (* x (- 1 (/ 1 x))))
(* -1 (* x (- 1 (/ 1 x))))
(* -1 (* x (- 1 (/ 1 x))))
Outputs
x
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 (* x (+ 1 x))))
(fma.f64 (fma.f64 x x x) x x)
(* x (+ 1 (* x (+ 1 (* x (+ 1 x))))))
(*.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) x) (-.f64 x #s(literal -1 binary64)))
1
#s(literal 1 binary64)
(+ 1 (* -1 x))
(-.f64 #s(literal 1 binary64) x)
(+ 1 (* -1 x))
(-.f64 #s(literal 1 binary64) x)
(+ 1 (* -1 x))
(-.f64 #s(literal 1 binary64) x)
-1
#s(literal -1 binary64)
(* -1 (+ 1 (/ 1 x)))
(-.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) x))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 (-.f64 (/.f64 #s(literal 1 binary64) x) #s(literal -1 binary64)) x))
(- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x)))
(*.f64 (-.f64 (/.f64 (/.f64 #s(literal -1 binary64) x) x) #s(literal 1 binary64)) (-.f64 (/.f64 #s(literal 1 binary64) x) #s(literal -1 binary64)))
(* -1 x)
(neg.f64 x)
(* x (- (/ 1 x) 1))
(-.f64 #s(literal 1 binary64) x)
(* x (- (/ 1 x) 1))
(-.f64 #s(literal 1 binary64) x)
(* x (- (/ 1 x) 1))
(-.f64 #s(literal 1 binary64) x)
-1
#s(literal -1 binary64)
(* -1 (+ 1 (/ 1 x)))
(-.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) x))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 (-.f64 (/.f64 #s(literal 1 binary64) x) #s(literal -1 binary64)) x))
(- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1)
(*.f64 (-.f64 (/.f64 (/.f64 #s(literal -1 binary64) x) x) #s(literal 1 binary64)) (-.f64 (/.f64 #s(literal 1 binary64) x) #s(literal -1 binary64)))
(* -1 x)
(neg.f64 x)
(* -1 (* x (- 1 (/ 1 x))))
(-.f64 #s(literal 1 binary64) x)
(* -1 (* x (- 1 (/ 1 x))))
(-.f64 #s(literal 1 binary64) x)
(* -1 (* x (- 1 (/ 1 x))))
(-.f64 #s(literal 1 binary64) x)

rewrite162.0ms (4.8%)

Memory
23.6MiB live, 173.3MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
048
068
1298
21838
316128
093478
Stop Event
iter limit
node limit
iter limit
Counts
2 → 425
Calls
Call 1
Inputs
(/.f64 x (-.f64 #s(literal 1 binary64) x))
(-.f64 #s(literal 1 binary64) x)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval75.0ms (2.2%)

Memory
-23.9MiB live, 174.0MiB allocated
Compiler

Compiled 10 226 to 1 289 computations (87.4% saved)

prune14.0ms (0.4%)

Memory
-34.9MiB live, 38.2MiB allocated
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New4462448
Fresh000
Picked011
Done000
Total4463449
Accuracy
100.0%
Counts
449 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 x (-.f64 #s(literal 1 binary64) x))
47.7%
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
54.1%
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
Compiler

Compiled 12 to 10 computations (16.7% saved)

simplify16.0ms (0.5%)

Memory
37.3MiB live, 37.3MiB allocated
Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(fma.f64 x x x)
cost-diff0
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
cost-diff0
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0823
01023
11723
22223
33323
44023
56723
69723
717423
827323
929823
1032523
1135423
1243423
1350023
1450623
050623
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
#s(literal -1 binary64)
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
(fma.f64 x x x)
x
Outputs
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
#s(literal -1 binary64)
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
(fma.f64 x x x)
x

localize22.0ms (0.6%)

Memory
-36.8MiB live, 41.9MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0
(fma.f64 x x x)
accuracy33.458016203444494
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
accuracy29.39584968251383
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
Samples
14.0ms256×0valid
Compiler

Compiled 19 to 9 computations (52.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-div: 2.0ms (30.5% of total)
ival-mult: 2.0ms (30.5% of total)
ival-sub: 1.0ms (15.2% of total)
ival-add: 1.0ms (15.2% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series2.0ms (0.1%)

Memory
3.7MiB live, 3.7MiB allocated
Counts
3 → 36
Calls
Call 1
Inputs
#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())
#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())
#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())
Outputs
#s(alt x (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* x (+ 1 x)))) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* x (+ 1 (* x (+ 1 x)))))) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* x (+ 1 x)))) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* x (+ 1 (* x (+ 1 x)))))) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt -1 (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* -1 (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) x)) 1) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt -1 (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) x)) 1) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt -1 (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (* -1 (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) x)) 1) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) (patch #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #<representation binary64>) () ())) ())
#s(alt -1 (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) x)) 1) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) (fma.f64 x x x)) (patch #s(approx (/ x (- 1 x)) (fma.f64 x x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt (fma.f64 x x x) (patch (fma.f64 x x x) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@inf
((/ x (- 1 x)) (/ x (- 1 x)) (+ (* x x) x))
0.0ms
x
@-inf
((/ x (- 1 x)) (/ x (- 1 x)) (+ (* x x) x))
0.0ms
x
@0
((/ x (- 1 x)) (/ x (- 1 x)) (+ (* x x) x))

simplify265.0ms (7.8%)

Memory
4.8MiB live, 83.8MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
027240
183228
2192216
3471212
41273212
53937212
67129212
08035193
Stop Event
iter limit
node limit
Counts
36 → 33
Calls
Call 1
Inputs
x
(* x (+ 1 x))
(* x (+ 1 (* x (+ 1 x))))
(* x (+ 1 (* x (+ 1 (* x (+ 1 x))))))
x
(* x (+ 1 x))
(* x (+ 1 (* x (+ 1 x))))
(* x (+ 1 (* x (+ 1 (* x (+ 1 x))))))
x
(* x (+ 1 x))
(* x (+ 1 x))
(* x (+ 1 x))
-1
(* -1 (+ 1 (/ 1 x)))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x)))
-1
(* -1 (+ 1 (/ 1 x)))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x)))
(pow x 2)
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
-1
(* -1 (+ 1 (/ 1 x)))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1)
-1
(* -1 (+ 1 (/ 1 x)))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1)
(pow x 2)
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
Outputs
x
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 (* x (+ 1 x))))
(fma.f64 (fma.f64 x x x) x x)
(* x (+ 1 (* x (+ 1 (* x (+ 1 x))))))
(*.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) x) (-.f64 x #s(literal -1 binary64)))
x
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 (* x (+ 1 x))))
(fma.f64 (fma.f64 x x x) x x)
(* x (+ 1 (* x (+ 1 (* x (+ 1 x))))))
(*.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) x) (-.f64 x #s(literal -1 binary64)))
x
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 x))
(fma.f64 x x x)
-1
#s(literal -1 binary64)
(* -1 (+ 1 (/ 1 x)))
(-.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) x))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 (/.f64 (-.f64 x #s(literal -1 binary64)) x) x))
(- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x)))
(*.f64 (/.f64 (-.f64 #s(literal -1 binary64) x) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 1 binary64)))
-1
#s(literal -1 binary64)
(* -1 (+ 1 (/ 1 x)))
(-.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) x))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 (/.f64 (-.f64 x #s(literal -1 binary64)) x) x))
(- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x)))
(*.f64 (/.f64 (-.f64 #s(literal -1 binary64) x) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 1 binary64)))
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
-1
#s(literal -1 binary64)
(* -1 (+ 1 (/ 1 x)))
(-.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) x))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 (/.f64 (-.f64 x #s(literal -1 binary64)) x) x))
(- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1)
(*.f64 (/.f64 (-.f64 #s(literal -1 binary64) x) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 1 binary64)))
-1
#s(literal -1 binary64)
(* -1 (+ 1 (/ 1 x)))
(-.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) x))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 (/.f64 (-.f64 x #s(literal -1 binary64)) x) x))
(- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1)
(*.f64 (/.f64 (-.f64 #s(literal -1 binary64) x) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 1 binary64)))
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)

rewrite154.0ms (4.5%)

Memory
32.9MiB live, 71.4MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0821
01021
14721
230321
3302521
01064121
Stop Event
iter limit
node limit
iter limit
Counts
3 → 178
Calls
Call 1
Inputs
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
(fma.f64 x x x)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval190.0ms (5.6%)

Memory
-26.4MiB live, 49.0MiB allocated
Compiler

Compiled 3 400 to 577 computations (83% saved)

prune5.0ms (0.1%)

Memory
17.9MiB live, 17.9MiB allocated
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New2101211
Fresh000
Picked022
Done011
Total2104214
Accuracy
100.0%
Counts
214 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 x (-.f64 #s(literal 1 binary64) x))
47.7%
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
3.4%
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
54.1%
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
Compiler

Compiled 17 to 14 computations (17.6% saved)

simplify40.0ms (1.2%)

Memory
-19.1MiB live, 24.5MiB allocated
Algorithm
egg-herbie
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x x)
cost-diff0
#s(approx (+ (* x x) x) (*.f64 x x))
cost-diff0
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0928
01028
11728
22328
33428
44128
56828
69828
717528
827428
929728
1032428
1135328
1243528
1350128
1450628
050626
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
#s(approx (+ (* x x) x) (*.f64 x x))
(*.f64 x x)
x
Outputs
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
#s(approx (+ (* x x) x) (*.f64 x x))
(*.f64 x x)
x

localize48.0ms (1.4%)

Memory
1.6MiB live, 37.4MiB allocated
Localize:

Found 3 expressions of interest:

NewMetricScoreProgram
accuracy0
(*.f64 x x)
accuracy28.59478542973559
#s(approx (+ (* x x) x) (*.f64 x x))
accuracy33.458016203444494
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
Samples
42.0ms256×0valid
Compiler

Compiled 16 to 8 computations (50% saved)

Precisions
Click to see histograms. Total time spent on operations: 36.0ms
ival-sub: 31.0ms (85.1% of total)
ival-div: 2.0ms (5.5% of total)
ival-mult: 2.0ms (5.5% of total)
ival-add: 1.0ms (2.7% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series2.0ms (0.1%)

Memory
4.3MiB live, 4.3MiB allocated
Counts
3 → 36
Calls
Call 1
Inputs
#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())
#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
Outputs
#s(alt x (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* x (+ 1 x)))) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* x (+ 1 (* x (+ 1 x)))))) (taylor 0 x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt x (taylor 0 x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 x)) (taylor 0 x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt -1 (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (* -1 (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) x)) 1) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor inf x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt -1 (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (* -1 (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (/ 1 x)) x)) 1) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1) (taylor -inf x) (#s(alt #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) (patch #s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (/ 1 x))) (taylor -inf x) (#s(alt #s(approx (+ (* x x) x) (*.f64 x x)) (patch #s(approx (+ (* x x) x) (*.f64 x x)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@inf
((/ x (- 1 x)) (+ (* x x) x) (* x x))
0.0ms
x
@-inf
((/ x (- 1 x)) (+ (* x x) x) (* x x))
0.0ms
x
@0
((/ x (- 1 x)) (+ (* x x) x) (* x x))

simplify266.0ms (7.9%)

Memory
27.3MiB live, 225.0MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
027182
183176
2192170
3473168
41275168
54018168
67206168
08103154
Stop Event
iter limit
node limit
Counts
36 → 34
Calls
Call 1
Inputs
x
(* x (+ 1 x))
(* x (+ 1 (* x (+ 1 x))))
(* x (+ 1 (* x (+ 1 (* x (+ 1 x))))))
x
(* x (+ 1 x))
(* x (+ 1 x))
(* x (+ 1 x))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
-1
(* -1 (+ 1 (/ 1 x)))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x)))
(pow x 2)
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
-1
(* -1 (+ 1 (/ 1 x)))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1)
(pow x 2)
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(* (pow x 2) (+ 1 (/ 1 x)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
Outputs
x
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 (* x (+ 1 x))))
(fma.f64 (fma.f64 x x x) x x)
(* x (+ 1 (* x (+ 1 (* x (+ 1 x))))))
(*.f64 (+.f64 (pow.f64 x #s(literal 3 binary64)) x) (-.f64 x #s(literal -1 binary64)))
x
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 x))
(fma.f64 x x x)
(* x (+ 1 x))
(fma.f64 x x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
-1
#s(literal -1 binary64)
(* -1 (+ 1 (/ 1 x)))
(-.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) x))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 (/.f64 (-.f64 x #s(literal -1 binary64)) x) x))
(- (* -1 (/ (+ 1 (/ 1 x)) (pow x 2))) (+ 1 (/ 1 x)))
(*.f64 (/.f64 (-.f64 #s(literal -1 binary64) x) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 1 binary64)))
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
-1
#s(literal -1 binary64)
(* -1 (+ 1 (/ 1 x)))
(-.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) x))
(- (* -1 (/ (+ 1 (/ 1 x)) x)) 1)
(-.f64 #s(literal -1 binary64) (/.f64 (/.f64 (-.f64 x #s(literal -1 binary64)) x) x))
(- (* -1 (/ (+ 1 (+ (/ 1 x) (/ 1 (pow x 2)))) x)) 1)
(*.f64 (/.f64 (-.f64 #s(literal -1 binary64) x) (pow.f64 x #s(literal 3 binary64))) (fma.f64 x x #s(literal 1 binary64)))
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(* (pow x 2) (+ 1 (/ 1 x)))
(fma.f64 x x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)

rewrite275.0ms (8.1%)

Memory
-23.2MiB live, 134.0MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0927
01027
14727
230427
3303927
01064425
Stop Event
iter limit
node limit
iter limit
Counts
3 → 19
Calls
Call 1
Inputs
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
#s(approx (+ (* x x) x) (*.f64 x x))
(*.f64 x x)
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval6.0ms (0.2%)

Memory
17.8MiB live, 17.8MiB allocated
Compiler

Compiled 360 to 95 computations (73.6% saved)

prune7.0ms (0.2%)

Memory
-24.7MiB live, 12.1MiB allocated
Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New53053
Fresh000
Picked011
Done033
Total53457
Accuracy
100.0%
Counts
57 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(/.f64 x (-.f64 #s(literal 1 binary64) x))
47.7%
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
3.4%
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
54.1%
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
Compiler

Compiled 34 to 25 computations (26.5% saved)

regimes4.0ms (0.1%)

Memory
9.9MiB live, 9.9MiB allocated
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Outputs
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Calls

2 calls:

2.0ms
x
2.0ms
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(/.f64 x (-.f64 #s(literal 1 binary64) x))
Compiler

Compiled 6 to 5 computations (16.7% saved)

regimes4.0ms (0.1%)

Memory
8.4MiB live, 8.4MiB allocated
Counts
3 → 2
Calls
Call 1
Inputs
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
Outputs
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
#s(approx (/ x (- 1 x)) (fma.f64 x x x))
Calls

2 calls:

2.0ms
x
2.0ms
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Results
AccuracySegmentsBranch
99.7%3x
99.7%2(/.f64 x (-.f64 #s(literal 1 binary64) x))
Compiler

Compiled 6 to 5 computations (16.7% saved)

regimes3.0ms (0.1%)

Memory
7.6MiB live, 7.6MiB allocated
Accuracy

Total -33.4b remaining (-113.7%)

Threshold costs -33.4b (-113.7%)

Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
#s(approx (/ x (- 1 x)) #s(approx (+ (* x x) x) (*.f64 x x)))
Outputs
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
Calls

2 calls:

2.0ms
x
1.0ms
(/.f64 x (-.f64 #s(literal 1 binary64) x))
Results
AccuracySegmentsBranch
54.1%1x
54.1%1(/.f64 x (-.f64 #s(literal 1 binary64) x))
Compiler

Compiled 6 to 5 computations (16.7% saved)

bsearch0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated
Algorithm
left-value
Steps
TimeLeftRight
0.0ms
-0.999999998575359
-1.3042846197005237e-15
Compiler

Compiled 8 to 8 computations (0% saved)

simplify41.0ms (1.2%)

Memory
-15.3MiB live, 69.0MiB allocated
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01337
11837
22137
32337
42437
Stop Event
saturated
Calls
Call 1
Inputs
(/.f64 x (-.f64 #s(literal 1 binary64) x))
(if (<=.f64 (/.f64 x (-.f64 #s(literal 1 binary64) x)) #s(literal -1/2 binary64)) #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #s(approx (/ x (- 1 x)) (fma.f64 x x x)))
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))
Outputs
(/.f64 x (-.f64 #s(literal 1 binary64) x))
(if (<=.f64 (/.f64 x (-.f64 #s(literal 1 binary64) x)) #s(literal -1/2 binary64)) #s(approx (/ x (- 1 x)) #s(literal -1 binary64)) #s(approx (/ x (- 1 x)) (fma.f64 x x x)))
#s(approx (/ x (- 1 x)) #s(literal -1 binary64))

soundness553.0ms (16.3%)

Memory
2.5MiB live, 123.4MiB allocated
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
033135
193120
2220114
3545112
41047112
51955112
63384112
74540112
84656112
94656112
104818112
114893112
124893112
04893109
Stop Event
done
iter limit
saturated
Compiler

Compiled 28 to 17 computations (39.3% saved)

preprocess26.0ms (0.8%)

Memory
15.7MiB live, 92.9MiB allocated
Compiler

Compiled 54 to 30 computations (44.4% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...