Linear.Quaternion:$clog from linear-1.19.1.3

Time bar (total: 2.6s)

start0.0ms (0%)

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

analyze37.0ms (1.4%)

Memory
-8.8MiB live, 37.0MiB allocated; 9ms collecting garbage
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
50%50%50%0.1%0%0%0%3
50%50%50%0.1%0%0%0%4
62.5%62.4%37.5%0.1%0%0%0%5
66.7%62.4%31.2%0.1%0%6.2%0%6
75%65.6%21.9%0.1%0%12.5%0%7
80%68.7%17.2%0.1%0%14%0%8
85.7%70.2%11.7%0.1%0%18%0%9
88.9%71.8%9%0.1%0%19.1%0%10
92.3%72.6%6%0.1%0%21.3%0%11
94.1%73.4%4.6%0.1%0%22%0%12
Compiler

Compiled 8 to 7 computations (12.5% saved)

sample1.1s (43.4%)

Memory
5.7MiB live, 1 332.8MiB allocated; 585ms collecting garbage
Samples
834.0ms8 256×0valid
17.0ms358×0invalid
Precisions
Click to see histograms. Total time spent on operations: 249.0ms
ival-mult!: 103.0ms (41.4% of total)
ival-sqrt: 95.0ms (38.2% of total)
ival-add!: 50.0ms (20.1% of total)
adjust: 2.0ms (0.8% of total)
Bogosity

preprocess23.0ms (0.9%)

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

Useful iterations: 0 (0.0ms)

IterNodesCost
01738
15138
214138
Stop Event
node-limit
Alt Table
Click to see full alt table
StatusAccuracyProgram
67.6%
(sqrt.f64 (+.f64 (*.f64 x x) y))
Symmetry

(abs x)

Compiler

Compiled 12 to 10 computations (16.7% saved)

series166.0ms (6.3%)

Memory
-4.6MiB live, 94.7MiB allocated; 27ms collecting garbage
Counts
5 → 30
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) y))
(+.f64 (*.f64 x x) y)
(*.f64 x x)
x
y
Outputs
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 y))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (sqrt.f64 y)))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y)))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 (pow.f64 x #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y)))))))
#s(approx (+ (* x x) y) y)
#s(approx (+ (* x x) y) (+.f64 y (pow.f64 x #s(literal 2 binary64))))
#s(approx (* x x) (pow.f64 x #s(literal 2 binary64)))
#s(approx x x)
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (+ (* x x) y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))))
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 #s(literal -1/8 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 y (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))
#s(approx (+ (* x x) y) (*.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) y))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))))
#s(approx (+ (* x x) y) (*.f64 #s(literal -1 binary64) (*.f64 y (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) y)) #s(literal 1 binary64)))))
Calls

6 calls:

TimeVariablePoint
15.0ms
y
-inf
1.0ms
x
inf
1.0ms
x
-inf
1.0ms
x
0
1.0ms
y
inf

rewrite190.0ms (7.2%)

Memory
11.0MiB live, 95.1MiB allocated; 62ms collecting garbage
Counts
5 → 15
Calls
Call 1
Inputs
(sqrt.f64 (+.f64 (*.f64 x x) y))
(+.f64 (*.f64 x x) y)
(*.f64 x x)
x
y
Outputs
(fabs.f64 (sqrt.f64 (fma.f64 x x y)))
(pow.f64 (fma.f64 x x y) #s(literal 1/2 binary64))
(sqrt.f64 (fma.f64 x x y))
(+.f64 (*.f64 x x) y)
(+.f64 y (*.f64 x x))
(-.f64 (*.f64 x x) (neg.f64 y))
(fma.f64 x x y)
(fma.f64 (neg.f64 x) (neg.f64 x) y)
(fma.f64 (fabs.f64 x) (fabs.f64 x) y)
(*.f64 x x)
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(pow.f64 x #s(literal 2 binary64))
x
y

eval6.0ms (0.2%)

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

Compiled 849 to 179 computations (78.9% saved)

prune31.0ms (1.2%)

Memory
-47.8MiB live, 5.0MiB allocated; 37ms collecting garbage
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New36541
Fresh000
Picked101
Done000
Total37542
Accuracy
100.0%
Counts
42 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
67.6%
(sqrt.f64 (fma.f64 x x y))
32.0%
(sqrt.f64 #s(approx (+ (* x x) y) y))
31.9%
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))
70.7%
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))
1.2%
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x))
Compiler

Compiled 108 to 84 computations (22.2% saved)

series185.0ms (7%)

Memory
45.8MiB live, 93.3MiB allocated; 18ms collecting garbage
Counts
22 → 46
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))
(*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))
x
(+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))
#s(literal 1 binary64)
(*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))
#s(literal 1/2 binary64)
(/.f64 y (pow.f64 x #s(literal 2 binary64)))
y
(pow.f64 x #s(literal 2 binary64))
#s(literal 2 binary64)
(sqrt.f64 #s(approx (+ (* x x) y) y))
#s(approx (+ (* x x) y) y)
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x))
(*.f64 #s(literal -1 binary64) x)
#s(literal -1 binary64)
(sqrt.f64 (fma.f64 x x y))
(fma.f64 x x y)
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))
(*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))
(sqrt.f64 (/.f64 #s(literal 1 binary64) y))
(/.f64 #s(literal 1 binary64) y)
Outputs
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 y))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (sqrt.f64 y)))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y)))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 (pow.f64 x #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y)))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal 1/2 binary64) (/.f64 y x)))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (/.f64 (fma.f64 #s(literal 1/2 binary64) y (pow.f64 x #s(literal 2 binary64))) x))
#s(approx x x)
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (/.f64 (fma.f64 #s(literal 1/2 binary64) y (pow.f64 x #s(literal 2 binary64))) (pow.f64 x #s(literal 2 binary64))))
#s(approx (/ y (pow x 2)) (/.f64 y (pow.f64 x #s(literal 2 binary64))))
#s(approx (pow x 2) (pow.f64 x #s(literal 2 binary64)))
#s(approx (+ (* x x) y) y)
#s(approx (+ (* x x) y) (+.f64 y (pow.f64 x #s(literal 2 binary64))))
#s(approx (* -1 x) (*.f64 #s(literal -1 binary64) x))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))
#s(approx (+ (* x x) y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal -1 binary64) (*.f64 x (-.f64 (*.f64 #s(literal -1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))) #s(literal 1 binary64)))))
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 #s(literal -1/8 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 y (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (+.f64 x (*.f64 #s(literal 1/2 binary64) (/.f64 y x))))
#s(approx (sqrt (/ 1 y)) (/.f64 (sqrt.f64 y) y))
#s(approx (/ 1 y) (/.f64 #s(literal 1 binary64) y))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 y (fma.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x) (/.f64 x y))))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 y (+.f64 (/.f64 #s(literal 1 binary64) y) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 2 binary64)))))))
#s(approx (+ (* x x) y) (*.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) y))))
#s(approx (sqrt (/ 1 y)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal -1 binary64) (*.f64 y (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 x y)) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x))))))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 y (fma.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 2 binary64))) (/.f64 #s(literal 1 binary64) y))))
#s(approx (+ (* x x) y) (*.f64 #s(literal -1 binary64) (*.f64 y (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) y)) #s(literal 1 binary64)))))
Calls

6 calls:

TimeVariablePoint
3.0ms
y
inf
3.0ms
y
-inf
2.0ms
x
0
2.0ms
y
0
1.0ms
x
inf

rewrite229.0ms (8.7%)

Memory
-9.9MiB live, 182.7MiB allocated; 98ms collecting garbage
Counts
22 → 58
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))
(*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))
x
(+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))
#s(literal 1 binary64)
(*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))
#s(literal 1/2 binary64)
(/.f64 y (pow.f64 x #s(literal 2 binary64)))
y
(pow.f64 x #s(literal 2 binary64))
#s(literal 2 binary64)
(sqrt.f64 #s(approx (+ (* x x) y) y))
#s(approx (+ (* x x) y) y)
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x))
(*.f64 #s(literal -1 binary64) x)
#s(literal -1 binary64)
(sqrt.f64 (fma.f64 x x y))
(fma.f64 x x y)
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))
(*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))
(sqrt.f64 (/.f64 #s(literal 1 binary64) y))
(/.f64 #s(literal 1 binary64) y)
Outputs
#s(approx (sqrt (+ (* x x) y)) (*.f64 (fma.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64) #s(literal 1 binary64)) x))
(*.f64 (fma.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64) #s(literal 1 binary64)) x)
(*.f64 x (fma.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64) #s(literal 1 binary64)))
(+.f64 (*.f64 #s(literal 1 binary64) x) (*.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)) x))
(+.f64 (*.f64 x #s(literal 1 binary64)) (*.f64 x (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x))))
(fma.f64 #s(literal 1 binary64) x (*.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)) x))
(fma.f64 x #s(literal 1 binary64) (*.f64 x (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x))))
x
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)))
(+.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)) #s(literal 1 binary64))
(-.f64 #s(literal 1 binary64) (neg.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x))))
(-.f64 #s(literal 1 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 y (*.f64 x x))))
(fma.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64) #s(literal 1 binary64))
(fma.f64 #s(literal 1/2 binary64) (/.f64 y (*.f64 x x)) #s(literal 1 binary64))
#s(literal 1 binary64)
(cosh.f64 #s(literal 0 binary64))
(exp.f64 #s(literal 0 binary64))
(*.f64 #s(literal 1/2 binary64) (/.f64 y (*.f64 x x)))
(*.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64))
(/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x))
#s(literal 1/2 binary64)
(*.f64 y (/.f64 #s(literal 1 binary64) (*.f64 x x)))
(/.f64 y (*.f64 x x))
(/.f64 (neg.f64 y) (neg.f64 (*.f64 x x)))
y
(*.f64 x x)
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(pow.f64 x #s(literal 2 binary64))
#s(literal 2 binary64)
(+.f64 #s(literal 1 binary64) #s(literal 1 binary64))
(sqrt.f64 #s(approx (+ (* x x) y) y))
#s(approx (+ (* x x) y) y)
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
(*.f64 #s(literal -1 binary64) x)
(*.f64 x #s(literal -1 binary64))
(neg.f64 x)
#s(literal -1 binary64)
(neg.f64 #s(literal 1 binary64))
(fabs.f64 (sqrt.f64 (fma.f64 x x y)))
(pow.f64 (fma.f64 x x y) #s(literal 1/2 binary64))
(sqrt.f64 (fma.f64 x x y))
(+.f64 (*.f64 x x) y)
(+.f64 y (*.f64 x x))
(-.f64 (*.f64 x x) (neg.f64 y))
(fma.f64 x x y)
(fma.f64 (neg.f64 x) (neg.f64 x) y)
(fma.f64 (fabs.f64 x) (fabs.f64 x) y)
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))
(*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))
(*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) y)
(fabs.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))
(pow.f64 (/.f64 #s(literal 1 binary64) y) #s(literal 1/2 binary64))
(sqrt.f64 (/.f64 #s(literal 1 binary64) y))
(*.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) y))
(/.f64 #s(literal 1 binary64) y)
(/.f64 #s(literal -1 binary64) (neg.f64 y))
(pow.f64 y #s(literal -1 binary64))

eval53.0ms (2%)

Memory
-22.9MiB live, 23.5MiB allocated; 3ms collecting garbage
Compiler

Compiled 1 862 to 383 computations (79.4% saved)

prune7.0ms (0.3%)

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

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New87289
Fresh000
Picked325
Done000
Total90494
Accuracy
100.0%
Counts
94 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
67.6%
(sqrt.f64 (fma.f64 x x y))
32.0%
(sqrt.f64 #s(approx (+ (* x x) y) y))
70.2%
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))))
1.2%
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
Compiler

Compiled 42 to 33 computations (21.4% saved)

series174.0ms (6.6%)

Memory
-2.0MiB live, 89.9MiB allocated; 45ms collecting garbage
Counts
7 → 36
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
(neg.f64 x)
x
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))))
(*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))
#s(literal 1 binary64)
Outputs
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 y))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (sqrt.f64 y)))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y)))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 (pow.f64 x #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y)))))))
#s(approx (neg x) (*.f64 #s(literal -1 binary64) x))
#s(approx x x)
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal 1/2 binary64) (/.f64 y x)))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (/.f64 (fma.f64 #s(literal 1/2 binary64) y (pow.f64 x #s(literal 2 binary64))) x))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (/.f64 (fma.f64 #s(literal 1/2 binary64) y (pow.f64 x #s(literal 2 binary64))) (pow.f64 x #s(literal 2 binary64))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal -1 binary64) (*.f64 x (-.f64 (*.f64 #s(literal -1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))) #s(literal 1 binary64)))))
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 #s(literal -1/8 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 y (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (+.f64 x (*.f64 #s(literal 1/2 binary64) (/.f64 y x))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 y (fma.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x) (/.f64 x y))))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 y (+.f64 (/.f64 #s(literal 1 binary64) y) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 2 binary64)))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))))
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal -1 binary64) (*.f64 y (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 x y)) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x))))))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 y (fma.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 2 binary64))) (/.f64 #s(literal 1 binary64) y))))
Calls

6 calls:

TimeVariablePoint
2.0ms
x
-inf
1.0ms
x
inf
1.0ms
x
0
1.0ms
y
inf
1.0ms
y
-inf

rewrite213.0ms (8.1%)

Memory
-9.7MiB live, 82.0MiB allocated; 21ms collecting garbage
Counts
7 → 9
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
(neg.f64 x)
x
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))))
(*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))
#s(literal 1 binary64)
Outputs
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
(neg.f64 x)
x
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (/ (* 1/2 y) (* x x))) #s(literal 1 binary64))))
(*.f64 x #s(approx (+ 1 (/ (* 1/2 y) (* x x))) #s(literal 1 binary64)))
#s(approx (+ 1 (/ (* 1/2 y) (* x x))) #s(literal 1 binary64))
#s(literal 1 binary64)
(cosh.f64 #s(literal 0 binary64))
(exp.f64 #s(literal 0 binary64))

eval8.0ms (0.3%)

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

Compiled 1 140 to 212 computations (81.4% saved)

prune4.0ms (0.2%)

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

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New41041
Fresh000
Picked022
Done022
Total41445
Accuracy
100.0%
Counts
45 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
67.6%
(sqrt.f64 (fma.f64 x x y))
32.0%
(sqrt.f64 #s(approx (+ (* x x) y) y))
70.2%
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))))
1.2%
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
Compiler

Compiled 42 to 33 computations (21.4% saved)

regimes96.0ms (3.7%)

Memory
16.7MiB live, 62.6MiB allocated; 6ms collecting garbage
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

Counts
1 → 1
3 → 1
4 → 2
8 → 2
Calls
Call 1
Inputs
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
Outputs
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
Call 2
Inputs
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
(sqrt.f64 #s(approx (+ (* x x) y) y))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x))
Outputs
(sqrt.f64 #s(approx (+ (* x x) y) y))
Call 3
Inputs
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
(sqrt.f64 #s(approx (+ (* x x) y) y))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))))
Outputs
(sqrt.f64 #s(approx (+ (* x x) y) y))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))))
Call 4
Inputs
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x))
(sqrt.f64 #s(approx (+ (* x x) y) y))
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))))
(sqrt.f64 (fma.f64 x x y))
(sqrt.f64 (+.f64 (*.f64 x x) y))
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))
Outputs
(sqrt.f64 (fma.f64 x x y))
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))))
Calls

19 calls:

45.0ms
x
6.0ms
(sqrt.f64 (+.f64 (*.f64 x x) y))
5.0ms
(sqrt.f64 (+.f64 (*.f64 x x) y))
5.0ms
(+.f64 (*.f64 x x) y)
5.0ms
(*.f64 x x)
Results
AccuracySegmentsBranch
1.2%1y
1.2%1(*.f64 x x)
1.2%1(+.f64 (*.f64 x x) y)
1.2%1(sqrt.f64 (+.f64 (*.f64 x x) y))
1.2%1x
32.0%1(+.f64 (*.f64 x x) y)
32.0%1(sqrt.f64 (+.f64 (*.f64 x x) y))
32.0%1y
32.0%1(*.f64 x x)
32.0%1x
90.6%2(*.f64 x x)
75.9%2(+.f64 (*.f64 x x) y)
75.9%2(sqrt.f64 (+.f64 (*.f64 x x) y))
90.6%2x
100.0%2(*.f64 x x)
100.0%2(+.f64 (*.f64 x x) y)
100.0%2(sqrt.f64 (+.f64 (*.f64 x x) y))
100.0%2x
85.5%2y
Compiler

Compiled 152 to 102 computations (32.9% saved)

bsearch3.0ms (0.1%)

Memory
3.1MiB live, 3.1MiB allocated; 0ms collecting garbage
Algorithm
binary-search
Stop Event
predicate-same
Steps
TimeLeftRight
3.0ms
2.865747020582078e+131
1.7428571019573107e+143
Samples
1.0ms32×0valid
Compiler

Compiled 59 to 54 computations (8.5% saved)

Precisions
Click to see histograms. Total time spent on operations: 1.0ms
adjust: 0.0ms (0% of total)
ival-add!: 0.0ms (0% of total)
ival-sqrt: 0.0ms (0% of total)
ival-mult!: 0.0ms (0% of total)

bsearch9.0ms (0.3%)

Memory
7.5MiB live, 7.5MiB allocated; 0ms collecting garbage
Algorithm
binary-search
Stop Event
narrow-enough
Steps
TimeLeftRight
8.0ms
2.0166228006230857e-35
5.546210022483705e-35
Samples
3.0ms80×0valid
1.0ms22×0invalid
Compiler

Compiled 149 to 130 computations (12.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 2.0ms
ival-sqrt: 1.0ms (61.6% of total)
ival-mult!: 1.0ms (61.6% of total)
adjust: 0.0ms (0% of total)
ival-add!: 0.0ms (0% of total)

derivations1.0ms (0%)

Memory
1.5MiB live, 1.5MiB allocated; 0ms collecting garbage
Stop Event
done
Compiler

Compiled 78 to 28 computations (64.1% saved)

preprocess48.0ms (1.8%)

Memory
-0.5MiB live, 50.6MiB allocated; 19ms collecting garbage
Remove

(abs x)

Compiler

Compiled 240 to 143 computations (40.4% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...