Diagrams.TwoD.Arc:arcBetween from diagrams-lib-1.3.0.3

Time bar (total: 1.1s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze2.0ms (0.2%)

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

Compiled 21 to 11 computations (47.6% saved)

sample746.0ms (68.4%)

Memory
25.9MiB live, 1 101.3MiB allocated
Samples
484.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 308.0ms
ival-mult: 163.0ms (52.9% of total)
ival-div: 58.0ms (18.8% of total)
ival-add: 39.0ms (12.7% of total)
ival-sub: 36.0ms (11.7% of total)
ival-true: 6.0ms (1.9% of total)
exact: 5.0ms (1.6% of total)
ival-assert: 3.0ms (1% of total)
Bogosity

explain119.0ms (10.9%)

Memory
-15.3MiB live, 225.2MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
1290-0-(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
190-0-(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
00-0-(*.f64 (*.f64 y #s(literal 4 binary64)) y)
00-0-(*.f64 y #s(literal 4 binary64))
00-0-#s(literal 4 binary64)
00-0-(*.f64 x x)
00-0-(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
00-0-y
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
/.f64(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))o/o1200
(*.f64 (*.f64 y #s(literal 4 binary64)) y)overflow75
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))overflow120
(*.f64 x x)overflow64
(*.f64 (*.f64 y #s(literal 4 binary64)) y)overflow75
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))overflow120
(*.f64 x x)overflow64
-.f64(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))nan-rescue190
(*.f64 x x)overflow64
(*.f64 (*.f64 y #s(literal 4 binary64)) y)overflow75
/.f64(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))u/u90
(*.f64 (*.f64 y #s(literal 4 binary64)) y)underflow59
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))underflow9
(*.f64 x x)underflow58
(*.f64 (*.f64 y #s(literal 4 binary64)) y)underflow59
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))underflow9
(*.f64 x x)underflow58
Confusion
Predicted +Predicted -
+1290
-0127
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+12900
-00127
Precision?
1.0
Recall?
1.0
Freqs
test
numberfreq
0127
1110
219
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
34.0ms512×0valid
Compiler

Compiled 176 to 40 computations (77.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 18.0ms
ival-mult: 10.0ms (56.5% of total)
ival-div: 3.0ms (16.9% of total)
ival-sub: 2.0ms (11.3% of total)
ival-add: 2.0ms (11.3% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess3.0ms (0.2%)

Memory
5.7MiB live, 5.7MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Outputs
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Compiler

Compiled 19 to 9 computations (52.6% saved)

eval0.0ms (0%)

Memory
0.2MiB live, 0.2MiB allocated
Compiler

Compiled 0 to 2 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 19 to 9 computations (52.6% saved)

simplify0.0ms (0%)

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

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
cost-diff0
(*.f64 x x)
cost-diff0
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
cost-diff0
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Calls
Call 1
Inputs
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 x x)
x
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
Outputs
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 x x)
x
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))

localize26.0ms (2.4%)

Memory
2.0MiB live, 39.1MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 x x)
accuracy0.00390625
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy4.195295986641647
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy31.664800559209326
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Samples
19.0ms256×0valid
Compiler

Compiled 104 to 20 computations (80.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 9.0ms
ival-mult: 5.0ms (57.6% of total)
ival-sub: 1.0ms (11.5% of total)
ival-div: 1.0ms (11.5% of total)
ival-add: 1.0ms (11.5% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series7.0ms (0.7%)

Memory
13.0MiB live, 13.0MiB allocated
Counts
5 → 24
Calls
Call 1
Inputs
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 x x)
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
Outputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
(pow x 2)
(* 4 (pow y 2))
(+ (* 4 (pow y 2)) (pow x 2))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* 4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
(* (pow y 2) (+ 4 (/ (pow x 2) (pow y 2))))
Calls

6 calls:

TimeVariablePointExpression
2.0ms
y
@inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (+ (* x x) (* (* y 4) y)))
1.0ms
x
@inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (+ (* x x) (* (* y 4) y)))
1.0ms
x
@0
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (+ (* x x) (* (* y 4) y)))
1.0ms
y
@0
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (+ (* x x) (* (* y 4) y)))
1.0ms
y
@-inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)) (* x x) (* (* y 4) y) (+ (* x x) (* (* y 4) y)))

simplify1.0ms (0.1%)

Memory
1.1MiB live, 1.1MiB allocated
Algorithm
egg-herbie
Counts
24 → 5
Calls
Call 1
Inputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
(pow x 2)
(* 4 (pow y 2))
(+ (* 4 (pow y 2)) (pow x 2))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* 4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
(* (pow y 2) (+ 4 (/ (pow x 2) (pow y 2))))
Outputs
-1
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(*.f64 x x)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(* -4 (pow y 2))
(+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))

rewrite0.0ms (0%)

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

eval4.0ms (0.4%)

Memory
-34.5MiB live, 2.2MiB allocated
Compiler

Compiled 278 to 22 computations (92.1% saved)

prune2.0ms (0.2%)

Memory
4.0MiB live, 4.0MiB allocated
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New9312
Fresh000
Picked011
Done000
Total9413
Accuracy
51.3%
Counts
13 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.6%
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
4.1%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.7%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
Compiler

Compiled 96 to 48 computations (50% saved)

simplify1.0ms (0.1%)

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

Found 9 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
cost-diff0
(*.f64 x x)
cost-diff0
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
cost-diff0
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
cost-diff0
(*.f64 y #s(literal 4 binary64))
cost-diff0
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
cost-diff0
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
cost-diff0
(*.f64 x x)
cost-diff0
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
Calls
Call 1
Inputs
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
(*.f64 x x)
x
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 x x)
x
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
Outputs
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
(*.f64 x x)
x
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 x x)
x
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)

localize29.0ms (2.6%)

Memory
3.9MiB live, 46.8MiB allocated
Localize:

Found 9 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy0.0
(*.f64 x x)
accuracy4.195295986641647
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy61.208486713229085
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
accuracy0.0
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy62.28709594887124
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy0.0
(*.f64 x x)
accuracy61.815985798131415
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
Samples
21.0ms256×0valid
Compiler

Compiled 210 to 28 computations (86.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-mult: 8.0ms (64.1% of total)
ival-div: 2.0ms (16% of total)
ival-sub: 1.0ms (8% of total)
ival-add: 1.0ms (8% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series5.0ms (0.4%)

Memory
9.5MiB live, 9.5MiB allocated
Counts
7 → 22
Calls
Call 1
Inputs
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
(*.f64 x x)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(*.f64 y #s(literal 4 binary64))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
Outputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(pow x 2)
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(* 4 (pow y 2))
(* 4 y)
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
Calls

6 calls:

TimeVariablePointExpression
1.0ms
y
@-inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* (* y 4) y) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))
1.0ms
y
@inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* (* y 4) y) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))
1.0ms
y
@0
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* (* y 4) y) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))
1.0ms
x
@inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* (* y 4) y) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))
1.0ms
x
@-inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* (* y 4) y) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))

simplify1.0ms (0.1%)

Memory
1.1MiB live, 1.1MiB allocated
Algorithm
egg-herbie
Counts
22 → 7
Calls
Call 1
Inputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(pow x 2)
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(* 4 (pow y 2))
(* 4 y)
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
Outputs
-1
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(*.f64 x x)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
(pow x 2)
(*.f64 y #s(literal 4 binary64))
(* -4 (pow y 2))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(- (pow x 2) (* 4 (pow y 2)))
(-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y))

rewrite0.0ms (0%)

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

eval2.0ms (0.1%)

Memory
3.3MiB live, 3.3MiB allocated
Compiler

Compiled 512 to 27 computations (94.7% saved)

prune3.0ms (0.3%)

Memory
5.9MiB live, 5.9MiB allocated
Pruning

6 alts after pruning (2 fresh and 4 done)

PrunedKeptTotal
New14216
Fresh000
Picked033
Done011
Total14620
Accuracy
51.6%
Counts
20 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.6%
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
4.1%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.7%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
3.3%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
Compiler

Compiled 156 to 76 computations (51.3% saved)

simplify1.0ms (0.1%)

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

Found 7 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 y #s(literal 4 binary64))
cost-diff0
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
cost-diff0
(-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
cost-diff0
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
cost-diff0
(*.f64 y #s(literal 4 binary64))
cost-diff0
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
cost-diff0
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
Calls
Call 1
Inputs
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
Outputs
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
(*.f64 y #s(literal 4 binary64))
y
#s(literal 4 binary64)
(*.f64 (*.f64 y #s(literal 4 binary64)) y)

localize27.0ms (2.4%)

Memory
2.9MiB live, 41.0MiB allocated
Localize:

Found 7 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy4.195295986641647
(-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
accuracy61.208486713229085
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
accuracy61.86722116127646
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
accuracy0.0
(*.f64 y #s(literal 4 binary64))
accuracy61.815985798131415
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
accuracy61.86722116127646
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
Samples
19.0ms256×0valid
Compiler

Compiled 172 to 27 computations (84.3% saved)

Precisions
Click to see histograms. Total time spent on operations: 12.0ms
ival-mult: 8.0ms (68.8% of total)
ival-sub: 1.0ms (8.6% of total)
ival-div: 1.0ms (8.6% of total)
ival-add: 1.0ms (8.6% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series6.0ms (0.6%)

Memory
-31.6MiB live, 6.8MiB allocated
Counts
5 → 21
Calls
Call 1
Inputs
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
(*.f64 y #s(literal 4 binary64))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
Outputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(pow x 2)
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(* 4 y)
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
Calls

6 calls:

TimeVariablePointExpression
3.0ms
y
@inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))
1.0ms
y
@-inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))
1.0ms
x
@-inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))
1.0ms
x
@inf
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))
0.0ms
x
@0
((/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (* x x) (* y 4) (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (- (* x x) (* (* y 4) y)))

simplify1.0ms (0%)

Memory
0.9MiB live, 0.9MiB allocated
Algorithm
egg-herbie
Counts
21 → 5
Calls
Call 1
Inputs
-1
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
(pow x 2)
(* -4 (pow y 2))
(- (pow x 2) (* 4 (pow y 2)))
1
(- (+ 1 (* -4 (/ (pow y 2) (pow x 2)))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* -4 (/ (pow y 2) (pow x 2))))) (* 4 (/ (pow y 2) (pow x 2))))
(- (+ 1 (+ (* -4 (/ (pow y 2) (pow x 2))) (* 16 (/ (* (pow y 4) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 6))))) (+ (* 4 (/ (* (pow y 2) (- (* -4 (pow y 2)) (* 4 (pow y 2)))) (pow x 4))) (* 4 (/ (pow y 2) (pow x 2)))))
(* (pow x 2) (+ 1 (* -4 (/ (pow y 2) (pow x 2)))))
(+ 1 (* -8 (/ (pow y 2) (pow x 2))))
(+ 1 (* (pow y 2) (- (* 32 (/ (pow y 2) (pow x 4))) (* 8 (/ 1 (pow x 2))))))
(+ 1 (* (pow y 2) (- (* (pow y 2) (+ (* -128 (/ (pow y 2) (pow x 6))) (* 32 (/ 1 (pow x 4))))) (* 8 (/ 1 (pow x 2))))))
(* 4 y)
(+ (* -4 (pow y 2)) (pow x 2))
(- (* 1/4 (/ (pow x 2) (pow y 2))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* -1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (* -1/4 (/ (pow x 2) (pow y 2)))))
(- (+ (* 1/16 (/ (* (pow x 4) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 6))) (* 1/4 (/ (pow x 2) (pow y 2)))) (+ 1 (+ (* -1/4 (/ (pow x 2) (pow y 2))) (* 1/4 (/ (* (pow x 2) (- (* 1/4 (pow x 2)) (* -1/4 (pow x 2)))) (pow y 4))))))
(* (pow y 2) (- (/ (pow x 2) (pow y 2)) 4))
Outputs
-1
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
(- (* 1/2 (/ (pow x 2) (pow y 2))) 1)
#s(approx (* x x) (*.f64 y #s(literal 4 binary64)))
(- (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow y 4))) (* 1/2 (/ 1 (pow y 2))))) 1)
(*.f64 y #s(literal 4 binary64))
(- (* (pow x 2) (+ (* (pow x 2) (- (* 1/32 (/ (pow x 2) (pow y 6))) (* 1/8 (/ 1 (pow y 4))))) (* 1/2 (/ 1 (pow y 2))))) 1)
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
(pow x 2)
(-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))

rewrite0.0ms (0%)

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

eval1.0ms (0.1%)

Memory
2.8MiB live, 2.8MiB allocated
Compiler

Compiled 449 to 23 computations (94.9% saved)

prune4.0ms (0.4%)

Memory
7.6MiB live, 7.6MiB allocated
Pruning

6 alts after pruning (0 fresh and 6 done)

PrunedKeptTotal
New13013
Fresh000
Picked022
Done044
Total13619
Accuracy
51.6%
Counts
19 → 6
Alt Table
Click to see full alt table
StatusAccuracyProgram
49.6%
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
4.1%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 #s(approx (* x x) (*.f64 y #s(literal 4 binary64))) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.7%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 (*.f64 y #s(literal 4 binary64)) y))
3.4%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
3.3%
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
Compiler

Compiled 312 to 99 computations (68.3% saved)

regimes14.0ms (1.3%)

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

5 calls:

4.0ms
x
3.0ms
y
2.0ms
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
2.0ms
(*.f64 x x)
2.0ms
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Results
AccuracySegmentsBranch
49.6%1x
49.6%1y
49.6%1(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
49.6%1(*.f64 x x)
49.6%1(*.f64 (*.f64 y #s(literal 4 binary64)) y)
Compiler

Compiled 29 to 21 computations (27.6% saved)

regimes11.0ms (1%)

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

5 calls:

2.0ms
x
2.0ms
y
2.0ms
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
2.0ms
(*.f64 x x)
2.0ms
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Results
AccuracySegmentsBranch
4.1%1x
4.1%1y
4.1%1(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
4.1%1(*.f64 x x)
4.1%1(*.f64 (*.f64 y #s(literal 4 binary64)) y)
Compiler

Compiled 29 to 21 computations (27.6% saved)

regimes14.0ms (1.3%)

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

5 calls:

6.0ms
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
2.0ms
x
2.0ms
y
2.0ms
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
2.0ms
(*.f64 x x)
Results
AccuracySegmentsBranch
3.4%1x
3.4%1(*.f64 (*.f64 y #s(literal 4 binary64)) y)
3.4%1y
3.4%1(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.4%1(*.f64 x x)
Compiler

Compiled 29 to 21 computations (27.6% saved)

regimes10.0ms (0.9%)

Memory
-6.4MiB live, 30.5MiB allocated
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

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

5 calls:

5.0ms
x
1.0ms
y
1.0ms
(*.f64 (*.f64 y #s(literal 4 binary64)) y)
1.0ms
(*.f64 x x)
1.0ms
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
Results
AccuracySegmentsBranch
3.3%1(*.f64 x x)
3.3%1(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
3.3%1x
3.3%1(*.f64 (*.f64 y #s(literal 4 binary64)) y)
3.3%1y
Compiler

Compiled 29 to 21 computations (27.6% saved)

simplify5.0ms (0.4%)

Memory
17.6MiB live, 17.6MiB allocated
Algorithm
egg-herbie
Calls
Call 1
Inputs
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))
Outputs
(/.f64 (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)) (+.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (-.f64 (*.f64 x x) (*.f64 (*.f64 y #s(literal 4 binary64)) y)))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) (*.f64 x x))
#s(approx (/ (- (* x x) (* (* y 4) y)) (+ (* x x) (* (* y 4) y))) #s(approx (* x x) (*.f64 y #s(literal 4 binary64))))

soundness1.0ms (0.1%)

Memory
2.7MiB live, 2.7MiB allocated
Stop Event
done
Compiler

Compiled 98 to 20 computations (79.6% saved)

preprocess44.0ms (4%)

Memory
-14.4MiB live, 104.9MiB allocated
Compiler

Compiled 396 to 104 computations (73.7% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...