sqrt times

Time bar (total: 1.1s)

start0.0ms (0%)

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

analyze1.0ms (0.1%)

Memory
2.8MiB live, 2.8MiB allocated; 0ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
0%0%50%0%0%50%0%2
50%25%25%0%0%50%0%3
66.7%25%12.5%0%0%62.5%0%4
80%25%6.2%0%0%68.7%0%5
88.9%25%3.1%0%0%71.8%0%6
94.1%25%1.6%0%0%73.4%0%7
97%25%0.8%0%0%74.2%0%8
98.5%25%0.4%0%0%74.6%0%9
99.2%25%0.2%0%0%74.8%0%10
99.6%25%0.1%0%0%74.9%0%11
99.8%25%0%0%0%74.9%0%12
Compiler

Compiled 9 to 8 computations (11.1% saved)

sample648.0ms (60%)

Memory
-13.9MiB live, 701.1MiB allocated; 182ms collecting garbage
Samples
409.0ms8 246×0valid
1.0ms10×1valid
1.0ms15×0invalid
Precisions
Click to see histograms. Total time spent on operations: 194.0ms
ival-sqrt: 131.0ms (67.6% of total)
ival-mult!: 33.0ms (17% of total)
ival-sub!: 27.0ms (13.9% of total)
adjust: 2.0ms (1% of total)
Bogosity

explain72.0ms (6.7%)

Memory
29.3MiB live, 76.3MiB allocated; 3ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
00-0-(sqrt.f64 (-.f64 x #s(literal 1 binary64)))
00-0-(sqrt.f64 x)
00-0-(-.f64 x #s(literal 1 binary64))
00-0-#s(literal 1 binary64)
00-0-x
Confusion
Predicted +Predicted -
+00
-0256
Precision
0/0
Recall
0/0
Confusion?
Predicted +Predicted MaybePredicted -
+000
-00256
Precision?
0/0
Recall?
0/0
Freqs
test
numberfreq
0256
Total Confusion?
Predicted +Predicted MaybePredicted -
+000
-001
Precision?
0/0
Recall?
0/0
Samples
41.0ms512×0valid
Compiler

Compiled 47 to 22 computations (53.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 31.0ms
ival-sqrt: 27.0ms (87.7% of total)
ival-sub!: 2.0ms (6.5% of total)
ival-mult!: 2.0ms (6.5% of total)
adjust: 0.0ms (0% of total)

preprocess73.0ms (6.8%)

Memory
-40.1MiB live, 50.0MiB allocated; 8ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01226
12026
22526
33526
46926
525026
6193626
7507126
Stop Event
node-limit
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.2%
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Compiler

Compiled 14 to 12 computations (14.3% saved)

series6.0ms (0.5%)

Memory
10.5MiB live, 10.5MiB allocated; 0ms collecting garbage
Counts
6 → 32
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(sqrt.f64 (-.f64 x #s(literal 1 binary64)))
(-.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
(sqrt.f64 x)
Outputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (sqrt x) (sqrt -1))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (* (sqrt (pow x 3)) (/ 1 (sqrt -1)))) (* (sqrt x) (sqrt -1)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* -1/8 (* (sqrt x) (/ 1 (pow (sqrt -1) 3)))) (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))) (* (pow x 2) (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 3)))) (* 1/16 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 5)))))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (sqrt -1)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* 1/2 (/ x (sqrt -1))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* x (+ (* -1/8 (/ x (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* x (+ (* x (- (* 1/16 (/ x (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))))
#s(approx (- x 1) #s(hole binary64 -1))
#s(approx (- x 1) #s(hole binary64 (- x 1)))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt x) #s(hole binary64 (sqrt x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (- 1 (* 1/2 (/ 1 x))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 x))) x))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 x))) (pow x 2)))) (* 1/2 (/ 1 x))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (sqrt x)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (* -1/2 (sqrt (/ 1 (pow x 3))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (* -1/8 (sqrt (/ 1 (pow x 5)))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* -1/16 (sqrt (/ 1 (pow x 7))))))))))
#s(approx (- x 1) #s(hole binary64 x))
#s(approx (- x 1) #s(hole binary64 (* x (- 1 (/ 1 x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (pow (sqrt -1) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1/2 (/ (pow (sqrt -1) 2) x)) (pow (sqrt -1) 2))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1 (/ (+ (* 1/8 (/ (pow (sqrt -1) 2) x)) (* 1/2 (pow (sqrt -1) 2))) x)) (pow (sqrt -1) 2))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1 (/ (+ (* -1 (/ (+ (* -1/8 (pow (sqrt -1) 2)) (* -1/16 (/ (pow (sqrt -1) 2) x))) x)) (* 1/2 (pow (sqrt -1) 2))) x)) (pow (sqrt -1) 2))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* (sqrt x) (pow (sqrt -1) 2)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))))
#s(approx (- x 1) #s(hole binary64 (* -1 (* x (- (/ 1 x) 1)))))
#s(approx (sqrt x) #s(hole binary64 (* -1 (* (sqrt x) (pow (sqrt -1) 2)))))
Calls

3 calls:

TimeVariablePointExpression
2.0ms
x
@-inf
((* (sqrt (- x 1)) (sqrt x)) (sqrt (- x 1)) (- x 1) x 1 (sqrt x))
1.0ms
x
@0
((* (sqrt (- x 1)) (sqrt x)) (sqrt (- x 1)) (- x 1) x 1 (sqrt x))
1.0ms
x
@inf
((* (sqrt (- x 1)) (sqrt x)) (sqrt (- x 1)) (- x 1) x 1 (sqrt x))

rewrite76.0ms (7.1%)

Memory
-4.2MiB live, 50.6MiB allocated; 8ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0188753
0193596
01106575
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
38 → 44
Calls
Call 1
Inputs
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(sqrt.f64 (-.f64 x #s(literal 1 binary64)))
(-.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
(sqrt.f64 x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (sqrt x) (sqrt -1))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (* (sqrt (pow x 3)) (/ 1 (sqrt -1)))) (* (sqrt x) (sqrt -1)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* -1/8 (* (sqrt x) (/ 1 (pow (sqrt -1) 3)))) (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))) (* (pow x 2) (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 3)))) (* 1/16 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 5)))))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (sqrt -1)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* 1/2 (/ x (sqrt -1))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* x (+ (* -1/8 (/ x (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* x (+ (* x (- (* 1/16 (/ x (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))))
#s(approx (- x 1) #s(hole binary64 -1))
#s(approx (- x 1) #s(hole binary64 (- x 1)))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt x) #s(hole binary64 (sqrt x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (- 1 (* 1/2 (/ 1 x))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 x))) x))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 x))) (pow x 2)))) (* 1/2 (/ 1 x))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (sqrt x)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (* -1/2 (sqrt (/ 1 (pow x 3))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (* -1/8 (sqrt (/ 1 (pow x 5)))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* -1/16 (sqrt (/ 1 (pow x 7))))))))))
#s(approx (- x 1) #s(hole binary64 x))
#s(approx (- x 1) #s(hole binary64 (* x (- 1 (/ 1 x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (pow (sqrt -1) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1/2 (/ (pow (sqrt -1) 2) x)) (pow (sqrt -1) 2))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1 (/ (+ (* 1/8 (/ (pow (sqrt -1) 2) x)) (* 1/2 (pow (sqrt -1) 2))) x)) (pow (sqrt -1) 2))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1 (/ (+ (* -1 (/ (+ (* -1/8 (pow (sqrt -1) 2)) (* -1/16 (/ (pow (sqrt -1) 2) x))) x)) (* 1/2 (pow (sqrt -1) 2))) x)) (pow (sqrt -1) 2))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* (sqrt x) (pow (sqrt -1) 2)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))))
#s(approx (- x 1) #s(hole binary64 (* -1 (* x (- (/ 1 x) 1)))))
#s(approx (sqrt x) #s(hole binary64 (* -1 (* (sqrt x) (pow (sqrt -1) 2)))))
Outputs
(*.f64 (sqrt.f64 x) (sqrt.f64 (-.f64 x #s(literal 1 binary64))))
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
(pow.f64 (-.f64 x #s(literal 1 binary64)) #s(literal 1/2 binary64))
(sqrt.f64 (-.f64 x #s(literal 1 binary64)))
(/.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
(/.f64 (-.f64 (*.f64 (*.f64 x x) x) #s(literal 1 binary64)) (fma.f64 x x (+.f64 #s(literal 1 binary64) (*.f64 x #s(literal 1 binary64)))))
(-.f64 x #s(literal 1 binary64))
x
#s(literal 1 binary64)
(pow.f64 x #s(literal 1/2 binary64))
(sqrt.f64 x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (*.f64 #s(literal -1 binary64) x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal 1/2 binary64) (sqrt.f64 (*.f64 #s(literal -1 binary64) x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64))) (*.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))))) (*.f64 x x) (sqrt.f64 (*.f64 #s(literal -1 binary64) x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))) (*.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x)))) (/.f64 #s(literal 1 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64))) (*.f64 (*.f64 (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -5 binary64)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) #s(literal 1/16 binary64))) (*.f64 x x))) (*.f64 x x) (sqrt.f64 (*.f64 #s(literal -1 binary64) x))))
#s(approx (sqrt (- x 1)) (sqrt.f64 #s(literal -1 binary64)))
#s(approx (sqrt (- x 1)) (fma.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))))
#s(approx (sqrt (- x 1)) (fma.f64 (fma.f64 (/.f64 x (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64))) #s(literal -1/8 binary64) (/.f64 #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64)))) x (sqrt.f64 #s(literal -1 binary64))))
#s(approx (sqrt (- x 1)) (fma.f64 (fma.f64 (-.f64 (*.f64 (/.f64 x (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64))) #s(literal 1/16 binary64)) (/.f64 #s(literal 1/8 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) x (/.f64 #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64)))) x (sqrt.f64 #s(literal -1 binary64))))
#s(approx (- x 1) #s(literal -1 binary64))
#s(approx (- x 1) (-.f64 x #s(literal 1 binary64)))
#s(approx x x)
#s(approx (sqrt x) (sqrt.f64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) x) #s(literal 1/2 binary64)) x)) #s(literal 1 binary64)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/16 binary64) x) #s(literal 1/8 binary64)) (*.f64 x x))) #s(literal 1 binary64)) (/.f64 #s(literal 1/2 binary64) x)) x))
#s(approx (sqrt (- x 1)) (sqrt.f64 x))
#s(approx (sqrt (- x 1)) (*.f64 (fma.f64 #s(literal -1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x))
#s(approx (sqrt (- x 1)) (*.f64 (+.f64 (fma.f64 (sqrt.f64 (pow.f64 x #s(literal -5 binary64))) #s(literal -1/8 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x))
#s(approx (sqrt (- x 1)) (*.f64 (+.f64 (fma.f64 #s(literal -1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) (fma.f64 (sqrt.f64 (pow.f64 x #s(literal -7 binary64))) #s(literal -1/16 binary64) (*.f64 (sqrt.f64 (pow.f64 x #s(literal -5 binary64))) #s(literal -1/8 binary64)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x))
#s(approx (- x 1) x)
#s(approx (- x 1) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) x)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (neg.f64 (*.f64 #s(literal -1 binary64) x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (neg.f64 (*.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1 binary64)) x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (neg.f64 (*.f64 (+.f64 (neg.f64 (/.f64 (-.f64 (/.f64 #s(literal -1/8 binary64) x) #s(literal 1/2 binary64)) x)) #s(literal -1 binary64)) x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (neg.f64 (*.f64 (+.f64 (neg.f64 (/.f64 (-.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/16 binary64) x) #s(literal 1/8 binary64)) x)) #s(literal 1/2 binary64)) x)) #s(literal -1 binary64)) x)))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 #s(literal -1 binary64) (sqrt.f64 x))))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal -1 binary64)) #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) #s(literal -1 binary64))) x)))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 (fma.f64 (*.f64 (sqrt.f64 (pow.f64 x #s(literal -5 binary64))) #s(literal -1 binary64)) #s(literal -1/8 binary64) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal -1 binary64)) #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) #s(literal -1 binary64)))) x)))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 (fma.f64 (*.f64 (sqrt.f64 (pow.f64 x #s(literal -5 binary64))) #s(literal -1 binary64)) #s(literal -1/8 binary64) (fma.f64 (*.f64 (sqrt.f64 (pow.f64 x #s(literal -7 binary64))) #s(literal -1 binary64)) #s(literal 1/16 binary64) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal -1 binary64)) #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) #s(literal -1 binary64))))) x)))
#s(approx (- x 1) (neg.f64 (*.f64 (-.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 1 binary64)) x)))
#s(approx (sqrt x) (neg.f64 (*.f64 #s(literal -1 binary64) (sqrt.f64 x))))

eval4.0ms (0.4%)

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

Compiled 750 to 211 computations (71.9% saved)

prune2.0ms (0.2%)

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

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New36339
Fresh000
Picked101
Done000
Total37340
Accuracy
100.0%
Counts
40 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
97.0%
(*.f64 (sqrt.f64 #s(approx (- x 1) x)) (sqrt.f64 x))
50.9%
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
97.7%
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
Compiler

Compiled 24 to 19 computations (20.8% saved)

series3.0ms (0.3%)

Memory
5.0MiB live, 5.0MiB allocated; 0ms collecting garbage
Counts
10 → 48
Calls
Call 1
Inputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
x
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
(*.f64 (-.f64 x #s(literal 1 binary64)) x)
(-.f64 x #s(literal 1 binary64))
#s(literal 1 binary64)
(*.f64 (sqrt.f64 #s(approx (- x 1) x)) (sqrt.f64 x))
(sqrt.f64 #s(approx (- x 1) x))
#s(approx (- x 1) x)
(sqrt.f64 x)
Outputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (sqrt x) (sqrt -1))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (* (sqrt (pow x 3)) (/ 1 (sqrt -1)))) (* (sqrt x) (sqrt -1)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* -1/8 (* (sqrt x) (/ 1 (pow (sqrt -1) 3)))) (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))) (* (pow x 2) (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 3)))) (* 1/16 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 5)))))))))))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* (sqrt x) (sqrt -1))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (* 1/2 (* (sqrt (pow x 3)) (/ 1 (sqrt -1)))) (* (sqrt x) (sqrt -1)))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* -1/8 (* (sqrt x) (/ 1 (pow (sqrt -1) 3)))) (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))) (* (pow x 2) (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 3)))) (* 1/16 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 5)))))))))))
#s(approx (* (- x 1) x) #s(hole binary64 (* -1 x)))
#s(approx (* (- x 1) x) #s(hole binary64 (* x (- x 1))))
#s(approx (- x 1) #s(hole binary64 -1))
#s(approx (- x 1) #s(hole binary64 (- x 1)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (sqrt -1)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* 1/2 (/ x (sqrt -1))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* x (+ (* -1/8 (/ x (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* x (+ (* x (- (* 1/16 (/ x (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))))
#s(approx (sqrt x) #s(hole binary64 (sqrt x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (- 1 (* 1/2 (/ 1 x))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 x))) x))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 x))) (pow x 2)))) (* 1/2 (/ 1 x))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 x))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* x (- 1 (* 1/2 (/ 1 x))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 x))) x))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 x))) (pow x 2)))) (* 1/2 (/ 1 x))))))
#s(approx (* (- x 1) x) #s(hole binary64 (pow x 2)))
#s(approx (* (- x 1) x) #s(hole binary64 (* (pow x 2) (- 1 (/ 1 x)))))
#s(approx (- x 1) #s(hole binary64 x))
#s(approx (- x 1) #s(hole binary64 (* x (- 1 (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (sqrt x)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (* -1/2 (sqrt (/ 1 (pow x 3))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (* -1/8 (sqrt (/ 1 (pow x 5)))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* -1/16 (sqrt (/ 1 (pow x 7))))))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (pow (sqrt -1) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1/2 (/ (pow (sqrt -1) 2) x)) (pow (sqrt -1) 2))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1 (/ (+ (* 1/8 (/ (pow (sqrt -1) 2) x)) (* 1/2 (pow (sqrt -1) 2))) x)) (pow (sqrt -1) 2))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1 (/ (+ (* -1 (/ (+ (* -1/8 (pow (sqrt -1) 2)) (* -1/16 (/ (pow (sqrt -1) 2) x))) x)) (* 1/2 (pow (sqrt -1) 2))) x)) (pow (sqrt -1) 2))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* -1 x)))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* -1 (* x (- 1 (* 1/2 (/ 1 x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 x))) x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (+ (/ 1/16 (pow x 2)) (* 1/8 (/ 1 x)))) x)))))))
#s(approx (- x 1) #s(hole binary64 (* -1 (* x (- (/ 1 x) 1)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* (sqrt x) (pow (sqrt -1) 2)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))))
#s(approx (sqrt x) #s(hole binary64 (* -1 (* (sqrt x) (pow (sqrt -1) 2)))))
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
((* (sqrt (- x 1)) (sqrt x)) x (sqrt (* (- x 1) x)) (* (- x 1) x) (- x 1) 1 (* (sqrt (- x 1)) (sqrt x)) (sqrt (- x 1)) (- x 1) (sqrt x))
1.0ms
x
@inf
((* (sqrt (- x 1)) (sqrt x)) x (sqrt (* (- x 1) x)) (* (- x 1) x) (- x 1) 1 (* (sqrt (- x 1)) (sqrt x)) (sqrt (- x 1)) (- x 1) (sqrt x))
1.0ms
x
@0
((* (sqrt (- x 1)) (sqrt x)) x (sqrt (* (- x 1) x)) (* (- x 1) x) (- x 1) 1 (* (sqrt (- x 1)) (sqrt x)) (sqrt (- x 1)) (- x 1) (sqrt x))

rewrite52.0ms (4.8%)

Memory
15.0MiB live, 60.9MiB allocated; 5ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02211122
0229919
01219892
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
58 → 68
Calls
Call 1
Inputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
x
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
(*.f64 (-.f64 x #s(literal 1 binary64)) x)
(-.f64 x #s(literal 1 binary64))
#s(literal 1 binary64)
(*.f64 (sqrt.f64 #s(approx (- x 1) x)) (sqrt.f64 x))
(sqrt.f64 #s(approx (- x 1) x))
#s(approx (- x 1) x)
(sqrt.f64 x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (sqrt x) (sqrt -1))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (* (sqrt (pow x 3)) (/ 1 (sqrt -1)))) (* (sqrt x) (sqrt -1)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* -1/8 (* (sqrt x) (/ 1 (pow (sqrt -1) 3)))) (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))) (* (pow x 2) (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 3)))) (* 1/16 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 5)))))))))))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* (sqrt x) (sqrt -1))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (* 1/2 (* (sqrt (pow x 3)) (/ 1 (sqrt -1)))) (* (sqrt x) (sqrt -1)))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* -1/8 (* (sqrt x) (/ 1 (pow (sqrt -1) 3)))) (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (* (sqrt x) (sqrt -1)) (* (pow x 2) (+ (* 1/2 (* (sqrt (/ 1 x)) (/ 1 (sqrt -1)))) (* (pow x 2) (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 3)))) (* 1/16 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 5)))))))))))
#s(approx (* (- x 1) x) #s(hole binary64 (* -1 x)))
#s(approx (* (- x 1) x) #s(hole binary64 (* x (- x 1))))
#s(approx (- x 1) #s(hole binary64 -1))
#s(approx (- x 1) #s(hole binary64 (- x 1)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (sqrt -1)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* 1/2 (/ x (sqrt -1))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* x (+ (* -1/8 (/ x (pow (sqrt -1) 3))) (* 1/2 (/ 1 (sqrt -1))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (+ (sqrt -1) (* x (+ (* x (- (* 1/16 (/ x (pow (sqrt -1) 5))) (* 1/8 (/ 1 (pow (sqrt -1) 3))))) (* 1/2 (/ 1 (sqrt -1))))))))
#s(approx (sqrt x) #s(hole binary64 (sqrt x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (- 1 (* 1/2 (/ 1 x))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 x))) x))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 x))) (pow x 2)))) (* 1/2 (/ 1 x))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 x))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* x (- 1 (* 1/2 (/ 1 x))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 x))) x))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* x (- (+ 1 (* -1 (/ (+ 1/8 (* 1/16 (/ 1 x))) (pow x 2)))) (* 1/2 (/ 1 x))))))
#s(approx (* (- x 1) x) #s(hole binary64 (pow x 2)))
#s(approx (* (- x 1) x) #s(hole binary64 (* (pow x 2) (- 1 (/ 1 x)))))
#s(approx (- x 1) #s(hole binary64 x))
#s(approx (- x 1) #s(hole binary64 (* x (- 1 (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (sqrt x)))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (* -1/2 (sqrt (/ 1 (pow x 3))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (* -1/8 (sqrt (/ 1 (pow x 5)))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (+ (* -1/2 (sqrt (/ 1 (pow x 3)))) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* -1/16 (sqrt (/ 1 (pow x 7))))))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (pow (sqrt -1) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1/2 (/ (pow (sqrt -1) 2) x)) (pow (sqrt -1) 2))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1 (/ (+ (* 1/8 (/ (pow (sqrt -1) 2) x)) (* 1/2 (pow (sqrt -1) 2))) x)) (pow (sqrt -1) 2))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* -1 (* x (+ (* -1 (/ (+ (* -1 (/ (+ (* -1/8 (pow (sqrt -1) 2)) (* -1/16 (/ (pow (sqrt -1) 2) x))) x)) (* 1/2 (pow (sqrt -1) 2))) x)) (pow (sqrt -1) 2))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* -1 x)))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* -1 (* x (- 1 (* 1/2 (/ 1 x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (* 1/8 (/ 1 x))) x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (* -1 (* x (+ 1 (* -1 (/ (+ 1/2 (+ (/ 1/16 (pow x 2)) (* 1/8 (/ 1 x)))) x)))))))
#s(approx (- x 1) #s(hole binary64 (* -1 (* x (- (/ 1 x) 1)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* (sqrt x) (pow (sqrt -1) 2)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow (sqrt -1) 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (pow (sqrt -1) 2))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))))))
#s(approx (sqrt x) #s(hole binary64 (* -1 (* (sqrt x) (pow (sqrt -1) 2)))))
Outputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
x
(*.f64 (sqrt.f64 x) (sqrt.f64 (-.f64 x #s(literal 1 binary64))))
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(pow.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x) #s(literal 1/2 binary64))
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
(*.f64 (-.f64 x #s(literal 1 binary64)) x)
(*.f64 x (-.f64 x #s(literal 1 binary64)))
(/.f64 (-.f64 (*.f64 x x) #s(literal 1 binary64)) (+.f64 x #s(literal 1 binary64)))
(/.f64 (-.f64 (*.f64 (*.f64 x x) x) #s(literal 1 binary64)) (fma.f64 x x (+.f64 #s(literal 1 binary64) (*.f64 x #s(literal 1 binary64)))))
(-.f64 x #s(literal 1 binary64))
#s(literal 1 binary64)
(*.f64 (sqrt.f64 #s(approx (- x 1) x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(approx (- x 1) x)))
(sqrt.f64 (*.f64 #s(approx (- x 1) x) x))
(pow.f64 #s(approx (- x 1) x) #s(literal 1/2 binary64))
(sqrt.f64 #s(approx (- x 1) x))
#s(approx (- x 1) x)
(pow.f64 x #s(literal 1/2 binary64))
(sqrt.f64 x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (neg.f64 x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64))) (*.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))))) (*.f64 x x) (sqrt.f64 (neg.f64 x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))) (*.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x)))) (/.f64 #s(literal 1 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64))) (*.f64 (*.f64 (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -5 binary64)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) #s(literal 1/16 binary64))) (*.f64 x x))) (*.f64 x x) (sqrt.f64 (neg.f64 x))))
#s(approx x x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (neg.f64 x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64))) (*.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))))) (*.f64 x x) (sqrt.f64 (neg.f64 x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))) (*.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x)))) (/.f64 #s(literal 1 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64))) (*.f64 (*.f64 (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -5 binary64)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) #s(literal 1/16 binary64))) (*.f64 x x))) (*.f64 x x) (sqrt.f64 (neg.f64 x))))
#s(approx (* (- x 1) x) (neg.f64 x))
#s(approx (* (- x 1) x) (*.f64 (-.f64 x #s(literal 1 binary64)) x))
#s(approx (- x 1) #s(literal -1 binary64))
#s(approx (- x 1) (-.f64 x #s(literal 1 binary64)))
#s(approx (sqrt (- x 1)) (sqrt.f64 #s(literal -1 binary64)))
#s(approx (sqrt (- x 1)) (fma.f64 (/.f64 x (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))))
#s(approx (sqrt (- x 1)) (fma.f64 (fma.f64 (/.f64 x (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64))) #s(literal -1/8 binary64) (/.f64 #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64)))) x (sqrt.f64 #s(literal -1 binary64))))
#s(approx (sqrt (- x 1)) (fma.f64 (fma.f64 (-.f64 (*.f64 (/.f64 x (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64))) #s(literal 1/16 binary64)) (/.f64 #s(literal 1/8 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) x (/.f64 #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64)))) x (sqrt.f64 #s(literal -1 binary64))))
#s(approx (sqrt x) (sqrt.f64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) x) #s(literal 1/2 binary64)) x)) #s(literal 1 binary64)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/16 binary64) x) #s(literal 1/8 binary64)) (*.f64 x x))) #s(literal 1 binary64)) (/.f64 #s(literal 1/2 binary64) x)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) x) #s(literal 1/2 binary64)) x)) #s(literal 1 binary64)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/16 binary64) x) #s(literal 1/8 binary64)) (*.f64 x x))) #s(literal 1 binary64)) (/.f64 #s(literal 1/2 binary64) x)) x))
#s(approx (* (- x 1) x) (*.f64 x x))
#s(approx (* (- x 1) x) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) x)) (*.f64 x x)))
#s(approx (- x 1) x)
#s(approx (- x 1) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) x)) x))
#s(approx (sqrt (- x 1)) (sqrt.f64 x))
#s(approx (sqrt (- x 1)) (*.f64 (fma.f64 #s(literal -1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x))
#s(approx (sqrt (- x 1)) (*.f64 (+.f64 (fma.f64 (sqrt.f64 (pow.f64 x #s(literal -5 binary64))) #s(literal -1/8 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x))
#s(approx (sqrt (- x 1)) (*.f64 (+.f64 (fma.f64 #s(literal -1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) (fma.f64 (sqrt.f64 (pow.f64 x #s(literal -7 binary64))) #s(literal -1/16 binary64) (*.f64 (sqrt.f64 (pow.f64 x #s(literal -5 binary64))) #s(literal -1/8 binary64)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (neg.f64 (neg.f64 x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (neg.f64 x) (+.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal -1 binary64))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (neg.f64 x) (+.f64 (neg.f64 (/.f64 (-.f64 (/.f64 #s(literal -1/8 binary64) x) #s(literal 1/2 binary64)) x)) #s(literal -1 binary64))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (neg.f64 x) (+.f64 (neg.f64 (/.f64 (-.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/16 binary64) x) #s(literal 1/8 binary64)) x)) #s(literal 1/2 binary64)) x)) #s(literal -1 binary64))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (neg.f64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (neg.f64 x) (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (neg.f64 x) (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) x) #s(literal 1/2 binary64)) x)) #s(literal 1 binary64))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (neg.f64 x) (+.f64 (neg.f64 (/.f64 (+.f64 (+.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1/16 binary64) (*.f64 x x))) (/.f64 #s(literal 1/8 binary64) x)) x)) #s(literal 1 binary64))))
#s(approx (- x 1) (*.f64 (neg.f64 x) (-.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 1 binary64))))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 #s(literal -1 binary64) (sqrt.f64 x))))
#s(approx (sqrt (- x 1)) (*.f64 (neg.f64 x) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal -1 binary64)) #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) #s(literal -1 binary64)))))
#s(approx (sqrt (- x 1)) (*.f64 (neg.f64 x) (fma.f64 (*.f64 (sqrt.f64 (pow.f64 x #s(literal -5 binary64))) #s(literal -1 binary64)) #s(literal -1/8 binary64) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal -1 binary64)) #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) #s(literal -1 binary64))))))
#s(approx (sqrt (- x 1)) (*.f64 (neg.f64 x) (fma.f64 (*.f64 (sqrt.f64 (pow.f64 x #s(literal -5 binary64))) #s(literal -1 binary64)) #s(literal -1/8 binary64) (fma.f64 (*.f64 (sqrt.f64 (pow.f64 x #s(literal -7 binary64))) #s(literal -1 binary64)) #s(literal 1/16 binary64) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 x x) x))) #s(literal -1 binary64)) #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) #s(literal -1 binary64)))))))
#s(approx (sqrt x) (neg.f64 (*.f64 #s(literal -1 binary64) (sqrt.f64 x))))

eval9.0ms (0.9%)

Memory
-29.9MiB live, 14.0MiB allocated; 8ms collecting garbage
Compiler

Compiled 912 to 237 computations (74% saved)

prune2.0ms (0.2%)

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

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New52052
Fresh000
Picked033
Done000
Total52355
Accuracy
100.0%
Counts
55 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
97.0%
(*.f64 (sqrt.f64 #s(approx (- x 1) x)) (sqrt.f64 x))
50.9%
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
97.7%
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
Compiler

Compiled 55 to 36 computations (34.5% saved)

regimes4.0ms (0.3%)

Memory
8.4MiB live, 8.4MiB allocated; 0ms collecting garbage
Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
(*.f64 (sqrt.f64 #s(approx (- x 1) x)) (sqrt.f64 x))
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Outputs
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Calls

2 calls:

2.0ms
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
2.0ms
x
Results
AccuracySegmentsBranch
99.2%1(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
99.2%1x
Compiler

Compiled 8 to 7 computations (12.5% saved)

regimes3.0ms (0.3%)

Memory
7.5MiB live, 7.5MiB allocated; 0ms collecting garbage
Counts
3 → 2
Calls
Call 1
Inputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
(*.f64 (sqrt.f64 #s(approx (- x 1) x)) (sqrt.f64 x))
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
Outputs
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
Calls

2 calls:

2.0ms
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
1.0ms
x
Results
AccuracySegmentsBranch
100.0%2(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
100.0%2x
Compiler

Compiled 8 to 7 computations (12.5% saved)

regimes3.0ms (0.2%)

Memory
5.9MiB live, 5.9MiB allocated; 0ms collecting garbage
Accuracy

Total -0.5b remaining (-34%)

Threshold costs -0.5b (-34%)

Counts
2 → 1
Calls
Call 1
Inputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
(*.f64 (sqrt.f64 #s(approx (- x 1) x)) (sqrt.f64 x))
Outputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) x)
Calls

2 calls:

1.0ms
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
1.0ms
x
Results
AccuracySegmentsBranch
97.7%1(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
97.7%1x
Compiler

Compiled 8 to 7 computations (12.5% saved)

bsearch2.0ms (0.2%)

Memory
2.3MiB live, 2.3MiB allocated; 0ms collecting garbage
Algorithm
binary-search
Stop Event
predicate-same
Steps
TimeLeftRight
1.0ms
4188238757583202.5
2.8202640414345884e+20
Samples
1.0ms16×0valid
Compiler

Compiled 25 to 24 computations (4% saved)

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

derivations51.0ms (4.7%)

Memory
-34.2MiB live, 11.1MiB allocated; 4ms collecting garbage
Stop Event
done
Compiler

Compiled 35 to 17 computations (51.4% saved)

preprocess68.0ms (6.3%)

Memory
30.5MiB live, 80.1MiB allocated; 13ms collecting garbage
Compiler

Compiled 84 to 46 computations (45.2% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...