Numeric.Integration.TanhSinh:simpson from integration-0.2.1

Time bar (total: 796.0ms)

analyze0.0ms (0%)

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

Compiled 8 to 5 computations (37.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 0.0ms
ival-add: 0.0ms (0% of total)
ival-mult: 0.0ms (0% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

sample617.0ms (77.5%)

Results
413.0ms8256×0valid
Precisions
Click to see histograms. Total time spent on operations: 135.0ms
ival-mult: 73.0ms (54% of total)
ival-add: 53.0ms (39.2% of total)
const: 7.0ms (5.2% of total)
backward-pass: 2.0ms (1.5% of total)
Bogosity

preprocess19.0ms (2.4%)

Algorithm
egg-herbie
Rules
80×distribute-lft-neg-in
70×associate-*r*
54×cancel-sign-sub-inv
48×distribute-lft-in
44×unsub-neg
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01332
15230
213530
334130
444230
545030
045
1115
2185
3215
0215
Stop Event
iter limit
saturated
saturated
Calls
Call 1
Inputs
(* x (+ y y))
Outputs
(* x (+ y y))
(*.f64 x (*.f64 y #s(literal 2 binary64)))
Call 2
Inputs
(* x (+ y y))
(* (neg x) (+ y y))
(* x (+ (neg y) (neg y)))
(neg (* (neg x) (+ y y)))
(neg (* x (+ (neg y) (neg y))))
(* y (+ x x))
Outputs
(* x (+ y y))
(* (neg x) (+ y y))
(* y (* x -2))
(* x (+ (neg y) (neg y)))
(* y (* x -2))
(neg (* (neg x) (+ y y)))
(* x (+ y y))
(neg (* x (+ (neg y) (neg y))))
(* x (+ y y))
(* y (+ x x))
(* x (+ y y))
Symmetry

(negabs x)

(negabs y)

(sort x y)

explain43.0ms (5.4%)

FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-x
00-0-y
00-0-(+.f64 y y)
00-0-(*.f64 x (+.f64 y y))
Results
27.0ms512×0valid
Compiler

Compiled 33 to 14 computations (57.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 5.0ms (55.2% of total)
ival-add: 3.0ms (33.1% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

eval0.0ms (0%)

Compiler

Compiled 7 to 5 computations (28.6% saved)

prune1.0ms (0.1%)

Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 x (+.f64 y y))
Compiler

Compiled 7 to 4 computations (42.9% saved)

localize28.0ms (3.5%)

Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(+.f64 y y)
cost-diff0
(*.f64 x (+.f64 y y))
accuracy100.0%
(+.f64 y y)
accuracy100.0%
(*.f64 x (+.f64 y y))
Rules
24×*-lowering-*.f32
24×*-lowering-*.f64
*-commutative
count-2
+-lowering-+.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0410
11110
21810
32110
02110
Stop Event
iter limit
saturated
Calls
Call 1
Inputs
(* x (+ y y))
x
(+ y y)
y
Outputs
(* x (+ y y))
(*.f64 x (*.f64 y #s(literal 2 binary64)))
x
(+ y y)
(*.f64 y #s(literal 2 binary64))
y
Results
11.0ms256×0valid
Compiler

Compiled 13 to 5 computations (61.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 4.0ms
ival-mult: 2.0ms (50% of total)
ival-add: 1.0ms (25% of total)
const: 0.0ms (0% of total)
backward-pass: 0.0ms (0% of total)

series7.0ms (0.9%)

Counts
2 → 36
Calls
Call 1
Inputs
#<alt (* x (+ y y))>
#<alt (+ y y)>
Outputs
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 (* x y))>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
#<alt (* 2 y)>
Calls

9 calls:

TimeVariablePointExpression
1.0ms
y
@0
(* x (+ y y))
1.0ms
x
@0
(* x (+ y y))
1.0ms
x
@inf
(* x (+ y y))
0.0ms
y
@inf
(* x (+ y y))
0.0ms
y
@inf
(+ y y)

rewrite37.0ms (4.7%)

Algorithm
batch-egg-rewrite
Rules
56×*-lowering-*.f32
56×*-lowering-*.f64
38×/-lowering-/.f32
38×/-lowering-/.f64
32×+-lowering-+.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
048
1208
01328
Stop Event
iter limit
iter limit
iter limit
unsound
Counts
2 → 25
Calls
Call 1
Inputs
(* x (+ y y))
(+ y y)
Outputs
(+.f64 (*.f64 x y) (*.f64 x y))
(fma.f64 x y (*.f64 x y))
(fma.f64 y x (*.f64 x y))
(/.f64 (+.f64 (pow.f64 (*.f64 x y) #s(literal 3 binary64)) (pow.f64 (*.f64 x y) #s(literal 3 binary64))) (+.f64 (*.f64 (*.f64 x y) (*.f64 x y)) (-.f64 (*.f64 (*.f64 x y) (*.f64 x y)) (*.f64 (*.f64 x y) (*.f64 x y)))))
(/.f64 (-.f64 (*.f64 (*.f64 x y) (*.f64 x y)) (*.f64 (*.f64 x y) (*.f64 x y))) (-.f64 (*.f64 x y) (*.f64 x y)))
(/.f64 (*.f64 x (*.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(/.f64 (*.f64 x #s(literal 0 binary64)) #s(literal 0 binary64))
(/.f64 (*.f64 (*.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) x) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(/.f64 (*.f64 #s(literal 0 binary64) x) #s(literal 0 binary64))
(*.f64 x (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(*.f64 y (+.f64 x x))
(*.f64 (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)) x)
(*.f64 #s(literal 2 binary64) (*.f64 x y))
(*.f64 (*.f64 x #s(literal 2 binary64)) y)
(+.f64 y y)
(-.f64 (/.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 (*.f64 y y) #s(literal 0 binary64)))
(/.f64 (*.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) (+.f64 (*.f64 y y) #s(literal 0 binary64)))
(/.f64 #s(literal 0 binary64) #s(literal 0 binary64))
(/.f64 (neg.f64 (*.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))) (neg.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64))))
(/.f64 #s(literal 1 binary64) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))
(/.f64 #s(literal 1 binary64) (/.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (*.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64)))))
(*.f64 y #s(literal 2 binary64))
(*.f64 (*.f64 (+.f64 (*.f64 y y) #s(literal 0 binary64)) (/.f64 #s(literal 0 binary64) #s(literal 0 binary64))) (/.f64 #s(literal 1 binary64) (+.f64 (*.f64 y y) #s(literal 0 binary64))))
(*.f64 #s(literal 0 binary64) (/.f64 #s(literal 1 binary64) #s(literal 0 binary64)))
(*.f64 #s(literal 2 binary64) y)

simplify10.0ms (1.2%)

Algorithm
egg-herbie
Rules
24×*-lowering-*.f32
24×*-lowering-*.f64
10×*-commutative
associate-*r*
associate-*l*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06156
111156
216156
016156
Stop Event
iter limit
saturated
Counts
36 → 36
Calls
Call 1
Inputs
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 (* x y))
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
(* 2 y)
Outputs
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 (* x y))
(*.f64 y (*.f64 #s(literal 2 binary64) x))
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)
(* 2 y)
(*.f64 #s(literal 2 binary64) y)

eval6.0ms (0.8%)

Compiler

Compiled 449 to 245 computations (45.4% saved)

prune6.0ms (0.7%)

Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New61061
Fresh000
Picked011
Done000
Total61162
Accuracy
100.0%
Counts
62 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(*.f64 x (+.f64 y y))
Compiler

Compiled 14 to 8 computations (42.9% saved)

soundness0.0ms (0%)

Stop Event
done
Compiler

Compiled 7 to 4 computations (42.9% saved)

preprocess22.0ms (2.8%)

Remove

(sort x y)

(negabs y)

(negabs x)

Compiler

Compiled 112 to 64 computations (42.9% saved)

end0.0ms (0%)

Profiling

Loading profile data...