sqrt times

Time bar (total: 1.4s)

start0.0ms (0%)

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

analyze1.0ms (0.1%)

Memory
1.7MiB live, 1.7MiB 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)

sample839.0ms (58.3%)

Memory
3.6MiB live, 600.3MiB allocated; 950ms collecting garbage
Samples
582.0ms8 242×0valid
1.0ms14×1valid
1.0ms16×0invalid
Precisions
Click to see histograms. Total time spent on operations: 463.0ms
ival-mult!: 311.0ms (67.2% of total)
ival-sqrt: 121.0ms (26.2% of total)
ival-sub!: 28.0ms (6.1% of total)
adjust: 2.0ms (0.4% of total)
Bogosity

preprocess112.0ms (7.8%)

Memory
0.3MiB live, 44.7MiB allocated; 14ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01223
13023
24823
37623
425523
5223323
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 12 to 12 computations (0% saved)

series4.0ms (0.3%)

Memory
8.0MiB live, 8.0MiB allocated; 0ms collecting garbage
Counts
6 → 26
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 -1) (sqrt x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (/ (* x (sqrt x)) (sqrt -1))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* -1/8 (/ (* x (sqrt x)) (pow (sqrt -1) 3))) (* 1/2 (/ (sqrt x) (sqrt -1))))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* 1/2 (/ (sqrt x) (sqrt -1))) (* x (+ (* -1/8 (/ (sqrt x) (pow (sqrt -1) 3))) (* 1/16 (/ (* x (sqrt x)) (pow (sqrt -1) 5))))))) (* (sqrt -1) (sqrt x)))))
#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 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (pow (sqrt (/ 1 x)) 2) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (+ (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))) (pow x 2))) (pow (sqrt (/ 1 x)) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (+ (* -1 (/ (+ (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 2))) (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 4))))) (pow x 4))) (pow (sqrt (/ 1 x)) 2)) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (sqrt (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (- (sqrt (/ 1 x)) (* 1/2 (/ 1 (* (pow x 2) (sqrt (/ 1 x)))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/2 (/ 1 (sqrt (/ 1 x)))) (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 3))))) (pow x 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (- (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 5)))) (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 3)))) (pow x 4)))) (/ 1/2 (* (pow x 2) (sqrt (/ 1 x))))))))
#s(approx (- x 1) #s(hole binary64 (* x (- 1 (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (sqrt (/ 1 x))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (- (sqrt (/ 1 x)) (* 1/2 (/ 1 (* (pow x 2) (sqrt (/ 1 x))))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/2 (/ 1 (sqrt (/ 1 x)))) (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 3))))) (pow x 2))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (- (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 5)))) (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 3)))) (pow x 4)))) (/ 1/2 (* (pow x 2) (sqrt (/ 1 x)))))))))
#s(approx (- x 1) #s(hole binary64 (* -1 (* x (- (/ 1 x) 1)))))
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@inf
((* (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))
1.0ms
x
@0
((* (sqrt (- x 1)) (sqrt x)) (sqrt (- x 1)) (- x 1) x 1 (sqrt x))

rewrite66.0ms (4.6%)

Memory
-3.4MiB live, 41.9MiB allocated; 8ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0156673
0161589
0823573
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
32 → 38
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 -1) (sqrt x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (/ (* x (sqrt x)) (sqrt -1))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* -1/8 (/ (* x (sqrt x)) (pow (sqrt -1) 3))) (* 1/2 (/ (sqrt x) (sqrt -1))))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* 1/2 (/ (sqrt x) (sqrt -1))) (* x (+ (* -1/8 (/ (sqrt x) (pow (sqrt -1) 3))) (* 1/16 (/ (* x (sqrt x)) (pow (sqrt -1) 5))))))) (* (sqrt -1) (sqrt x)))))
#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 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (pow (sqrt (/ 1 x)) 2) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (+ (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))) (pow x 2))) (pow (sqrt (/ 1 x)) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (+ (* -1 (/ (+ (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 2))) (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 4))))) (pow x 4))) (pow (sqrt (/ 1 x)) 2)) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (sqrt (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (- (sqrt (/ 1 x)) (* 1/2 (/ 1 (* (pow x 2) (sqrt (/ 1 x)))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/2 (/ 1 (sqrt (/ 1 x)))) (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 3))))) (pow x 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (- (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 5)))) (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 3)))) (pow x 4)))) (/ 1/2 (* (pow x 2) (sqrt (/ 1 x))))))))
#s(approx (- x 1) #s(hole binary64 (* x (- 1 (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (sqrt (/ 1 x))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (- (sqrt (/ 1 x)) (* 1/2 (/ 1 (* (pow x 2) (sqrt (/ 1 x))))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/2 (/ 1 (sqrt (/ 1 x)))) (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 3))))) (pow x 2))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (- (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 5)))) (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 3)))) (pow x 4)))) (/ 1/2 (* (pow x 2) (sqrt (/ 1 x)))))))))
#s(approx (- x 1) #s(hole binary64 (* -1 (* x (- (/ 1 x) 1)))))
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 (pow.f64 x #s(literal 3 binary64)) #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 x (sqrt.f64 (/.f64 x #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 (*.f64 #s(literal -1 binary64) x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (sqrt.f64 (/.f64 x #s(literal -1 binary64))) #s(literal 1/2 binary64) (/.f64 (*.f64 #s(literal -1/8 binary64) (*.f64 (sqrt.f64 x) x)) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64))))) x (sqrt.f64 (*.f64 #s(literal -1 binary64) x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 x (fma.f64 (fma.f64 (/.f64 (sqrt.f64 x) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64)))) #s(literal -1/8 binary64) (*.f64 (/.f64 (*.f64 (sqrt.f64 x) x) (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64))) #s(literal 1/16 binary64))) x (*.f64 (sqrt.f64 (/.f64 x #s(literal -1 binary64))) #s(literal 1/2 binary64))) (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 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #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 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #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)) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (*.f64 x x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) (*.f64 x x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (fma.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (*.f64 x x))) #s(literal 1/2 binary64)) (*.f64 x x)))) (*.f64 x x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 (fma.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/16 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 2 binary64)) (*.f64 x x))) (/.f64 #s(literal 1/8 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))))) (*.f64 (*.f64 x x) (*.f64 x x))))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) (*.f64 x x)))
#s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x))
#s(approx (sqrt (- x 1)) (*.f64 (-.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (*.f64 x x)))) x))
#s(approx (sqrt (- x 1)) (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 3/2 binary64)) (*.f64 x x))) (/.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)))) (*.f64 x x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x))
#s(approx (sqrt (- x 1)) (*.f64 (-.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 3/2 binary64))) (/.f64 #s(literal 1/16 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 5/2 binary64)) (*.f64 x x)))) (*.f64 (*.f64 x x) (*.f64 x x)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (*.f64 x x)))) x))
#s(approx (- x 1) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) x)) x))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 (-.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (*.f64 x x)))) x)))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 3/2 binary64)) (*.f64 x x))) (/.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)))) (*.f64 x x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x)))
#s(approx (sqrt (- x 1)) (neg.f64 (*.f64 (-.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 3/2 binary64))) (/.f64 #s(literal 1/16 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 5/2 binary64)) (*.f64 x x)))) (*.f64 (*.f64 x x) (*.f64 x x)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (*.f64 x x)))) x)))
#s(approx (- x 1) (neg.f64 (*.f64 (-.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 1 binary64)) x)))

eval3.0ms (0.2%)

Memory
6.1MiB live, 6.0MiB allocated; 0ms collecting garbage
Compiler

Compiled 408 to 182 computations (55.4% saved)

prune2.0ms (0.1%)

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

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New29332
Fresh000
Picked011
Done000
Total29433
Accuracy
99.8%
Counts
33 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.2%
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
97.3%
(*.f64 #s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)) (sqrt.f64 x))
48.0%
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
0.0%
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (*.f64 #s(literal -1 binary64) x)))
Compiler

Compiled 32 to 31 computations (3.1% saved)

series7.0ms (0.5%)

Memory
6.5MiB live, 6.5MiB allocated; 0ms collecting garbage
Counts
14 → 48
Calls
Call 1
Inputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (*.f64 #s(literal -1 binary64) x)))
(sqrt.f64 (*.f64 #s(literal -1 binary64) x))
(*.f64 #s(literal -1 binary64) x)
#s(literal -1 binary64)
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 #s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)) (sqrt.f64 x))
#s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x))
(*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)
(/.f64 #s(literal 1 binary64) (sqrt.f64 x))
(sqrt.f64 x)
Outputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (sqrt -1) (sqrt x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (/ (* x (sqrt x)) (sqrt -1))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* -1/8 (/ (* x (sqrt x)) (pow (sqrt -1) 3))) (* 1/2 (/ (sqrt x) (sqrt -1))))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* 1/2 (/ (sqrt x) (sqrt -1))) (* x (+ (* -1/8 (/ (sqrt x) (pow (sqrt -1) 3))) (* 1/16 (/ (* x (sqrt x)) (pow (sqrt -1) 5))))))) (* (sqrt -1) (sqrt x)))))
#s(approx (sqrt (* -1 x)) #s(hole binary64 (sqrt (* -1 x))))
#s(approx (* -1 x) #s(hole binary64 (* -1 x)))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* 1/2 (/ (pow x 2) (sqrt (* -1 x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt (* -1 x)) 3))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt (* -1 x)) 5))) (* 1/8 (/ 1 (pow (sqrt (* -1 x)) 3))))) (* 1/2 (/ 1 (sqrt (* -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 (* (/ 1 (sqrt x)) x) #s(hole binary64 (/ x (sqrt x))))
#s(approx (/ 1 (sqrt x)) #s(hole binary64 (/ 1 (sqrt x))))
#s(approx (sqrt x) #s(hole binary64 (sqrt x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (pow (sqrt (/ 1 x)) 2) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (+ (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))) (pow x 2))) (pow (sqrt (/ 1 x)) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (+ (* -1 (/ (+ (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 2))) (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 4))))) (pow x 4))) (pow (sqrt (/ 1 x)) 2)) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (sqrt (* -1 x)) #s(hole binary64 (* x (sqrt (/ -1 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 (- 1 (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (sqrt (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (- (sqrt (/ 1 x)) (* 1/2 (/ 1 (* (pow x 2) (sqrt (/ 1 x)))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/2 (/ 1 (sqrt (/ 1 x)))) (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 3))))) (pow x 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (- (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 5)))) (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 3)))) (pow x 4)))) (/ 1/2 (* (pow x 2) (sqrt (/ 1 x))))))))
#s(approx (* (/ 1 (sqrt x)) x) #s(hole binary64 (/ 1 (sqrt (/ 1 x)))))
#s(approx (/ 1 (sqrt x)) #s(hole binary64 (/ 1 (* x (sqrt (/ 1 x))))))
#s(approx (sqrt (* -1 x)) #s(hole binary64 (* -1 (* x (sqrt (/ -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 (* x (sqrt (/ 1 x))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (- (sqrt (/ 1 x)) (* 1/2 (/ 1 (* (pow x 2) (sqrt (/ 1 x))))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/2 (/ 1 (sqrt (/ 1 x)))) (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 3))))) (pow x 2))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (- (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 5)))) (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 3)))) (pow x 4)))) (/ 1/2 (* (pow x 2) (sqrt (/ 1 x)))))))))
#s(approx (* (/ 1 (sqrt x)) x) #s(hole binary64 (/ -1 (sqrt (/ 1 x)))))
#s(approx (/ 1 (sqrt x)) #s(hole binary64 (/ -1 (* x (sqrt (/ 1 x))))))
Calls

3 calls:

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

rewrite77.0ms (5.3%)

Memory
5.5MiB live, 51.6MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02481126
0262989
01271968
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
62 → 81
Calls
Call 1
Inputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (*.f64 #s(literal -1 binary64) x)))
(sqrt.f64 (*.f64 #s(literal -1 binary64) x))
(*.f64 #s(literal -1 binary64) x)
#s(literal -1 binary64)
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 #s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)) (sqrt.f64 x))
#s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x))
(*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)
(/.f64 #s(literal 1 binary64) (sqrt.f64 x))
(sqrt.f64 x)
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (sqrt -1) (sqrt x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (/ (* x (sqrt x)) (sqrt -1))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* -1/8 (/ (* x (sqrt x)) (pow (sqrt -1) 3))) (* 1/2 (/ (sqrt x) (sqrt -1))))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* 1/2 (/ (sqrt x) (sqrt -1))) (* x (+ (* -1/8 (/ (sqrt x) (pow (sqrt -1) 3))) (* 1/16 (/ (* x (sqrt x)) (pow (sqrt -1) 5))))))) (* (sqrt -1) (sqrt x)))))
#s(approx (sqrt (* -1 x)) #s(hole binary64 (sqrt (* -1 x))))
#s(approx (* -1 x) #s(hole binary64 (* -1 x)))
#s(approx x #s(hole binary64 x))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* 1/2 (/ (pow x 2) (sqrt (* -1 x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt (* -1 x)) 3))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt (* -1 x)) 5))) (* 1/8 (/ 1 (pow (sqrt (* -1 x)) 3))))) (* 1/2 (/ 1 (sqrt (* -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 (* (/ 1 (sqrt x)) x) #s(hole binary64 (/ x (sqrt x))))
#s(approx (/ 1 (sqrt x)) #s(hole binary64 (/ 1 (sqrt x))))
#s(approx (sqrt x) #s(hole binary64 (sqrt x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (pow (sqrt (/ 1 x)) 2) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (+ (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))) (pow x 2))) (pow (sqrt (/ 1 x)) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (+ (* -1 (/ (+ (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 2))) (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 4))))) (pow x 4))) (pow (sqrt (/ 1 x)) 2)) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (sqrt (* -1 x)) #s(hole binary64 (* x (sqrt (/ -1 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 (- 1 (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (sqrt (/ 1 x)))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (- (sqrt (/ 1 x)) (* 1/2 (/ 1 (* (pow x 2) (sqrt (/ 1 x)))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/2 (/ 1 (sqrt (/ 1 x)))) (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 3))))) (pow x 2)))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* x (- (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 5)))) (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 3)))) (pow x 4)))) (/ 1/2 (* (pow x 2) (sqrt (/ 1 x))))))))
#s(approx (* (/ 1 (sqrt x)) x) #s(hole binary64 (/ 1 (sqrt (/ 1 x)))))
#s(approx (/ 1 (sqrt x)) #s(hole binary64 (/ 1 (* x (sqrt (/ 1 x))))))
#s(approx (sqrt (* -1 x)) #s(hole binary64 (* -1 (* x (sqrt (/ -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 (* x (sqrt (/ 1 x))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (- (sqrt (/ 1 x)) (* 1/2 (/ 1 (* (pow x 2) (sqrt (/ 1 x))))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/2 (/ 1 (sqrt (/ 1 x)))) (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 3))))) (pow x 2))))))))
#s(approx (sqrt (- x 1)) #s(hole binary64 (* -1 (* x (- (+ (sqrt (/ 1 x)) (* -1 (/ (+ (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 5)))) (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 3)))) (pow x 4)))) (/ 1/2 (* (pow x 2) (sqrt (/ 1 x)))))))))
#s(approx (* (/ 1 (sqrt x)) x) #s(hole binary64 (/ -1 (sqrt (/ 1 x)))))
#s(approx (/ 1 (sqrt x)) #s(hole binary64 (/ -1 (* x (sqrt (/ 1 x))))))
Outputs
#s(approx (sqrt (* (- x 1) x)) (sqrt.f64 (neg.f64 x)))
(*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal -1 binary64)))
(pow.f64 (neg.f64 x) #s(literal 1/2 binary64))
(sqrt.f64 (neg.f64 x))
(*.f64 #s(literal -1 binary64) x)
(*.f64 x #s(literal -1 binary64))
(neg.f64 x)
#s(literal -1 binary64)
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 (pow.f64 x #s(literal 3 binary64)) #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 #s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) #s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)))
#s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x))
(*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)
(*.f64 x (/.f64 #s(literal 1 binary64) (sqrt.f64 x)))
(/.f64 (*.f64 #s(literal 1 binary64) x) (sqrt.f64 x))
(pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 1/2 binary64))
(pow.f64 (sqrt.f64 x) #s(literal -1 binary64))
(/.f64 #s(literal -1 binary64) (neg.f64 (sqrt.f64 x)))
(/.f64 #s(literal 1 binary64) (sqrt.f64 x))
(sqrt.f64 (/.f64 #s(literal 1 binary64) x))
(pow.f64 x #s(literal 1/2 binary64))
(sqrt.f64 x)
#s(approx (sqrt (* (- x 1) x)) (sqrt.f64 (neg.f64 x)))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (*.f64 x (sqrt.f64 (/.f64 x #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x))))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (fma.f64 (sqrt.f64 (/.f64 x #s(literal -1 binary64))) #s(literal 1/2 binary64) (/.f64 (*.f64 #s(literal -1/8 binary64) (*.f64 (sqrt.f64 x) x)) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64))))) x (sqrt.f64 (neg.f64 x))))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 x (fma.f64 (fma.f64 (/.f64 (sqrt.f64 x) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64)))) #s(literal -1/8 binary64) (*.f64 (/.f64 (*.f64 (sqrt.f64 x) x) (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64))) #s(literal 1/16 binary64))) x (*.f64 (sqrt.f64 (/.f64 x #s(literal -1 binary64))) #s(literal 1/2 binary64))) (sqrt.f64 (neg.f64 x))))
#s(approx (sqrt (* -1 x)) (sqrt.f64 (neg.f64 x)))
#s(approx (* -1 x) (neg.f64 x))
#s(approx x x)
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (/.f64 (*.f64 x x) (sqrt.f64 (neg.f64 x))) #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x))))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (fma.f64 (/.f64 (*.f64 x x) (*.f64 (*.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x))) (sqrt.f64 (neg.f64 x)))) #s(literal -1/8 binary64) (/.f64 #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x)))) (*.f64 x x) (sqrt.f64 (neg.f64 x))))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (fma.f64 (-.f64 (/.f64 (*.f64 #s(literal 1/16 binary64) (*.f64 x x)) (pow.f64 (neg.f64 x) #s(literal 5/2 binary64))) (/.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x))) (sqrt.f64 (neg.f64 x))))) (*.f64 x x) (/.f64 #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x)))) (*.f64 x x) (sqrt.f64 (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 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #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 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #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 (* (/ 1 (sqrt x)) x) (/.f64 x (sqrt.f64 x)))
#s(approx (/ 1 (sqrt x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)))
#s(approx (sqrt x) (sqrt.f64 x))
#s(approx (sqrt (* (- x 1) x)) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (*.f64 x x)))
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) (*.f64 x x)))
#s(approx (sqrt (* (- x 1) x)) (*.f64 (fma.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (*.f64 x x))) #s(literal 1/2 binary64)) (*.f64 x x)))) (*.f64 x x)))
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 (fma.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/16 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 2 binary64)) (*.f64 x x))) (/.f64 #s(literal 1/8 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))))) (*.f64 (*.f64 x x) (*.f64 x x))))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) (*.f64 x x)))
#s(approx (sqrt (* -1 x)) (*.f64 (sqrt.f64 (/.f64 #s(literal -1 binary64) x)) x))
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
#s(approx (sqrt (* (- x 1) 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) 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) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) x)) x))
#s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x))
#s(approx (sqrt (- x 1)) (*.f64 (-.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (*.f64 x x)))) x))
#s(approx (sqrt (- x 1)) (*.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 3/2 binary64)) (*.f64 x x))) (/.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)))) (*.f64 x x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) x))
#s(approx (sqrt (- x 1)) (*.f64 (-.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 3/2 binary64))) (/.f64 #s(literal 1/16 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 5/2 binary64)) (*.f64 x x)))) (*.f64 (*.f64 x x) (*.f64 x x)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (*.f64 x x)))) x))
#s(approx (* (/ 1 (sqrt x)) x) (/.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))))
#s(approx (/ 1 (sqrt x)) (/.f64 #s(literal 1 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)))
#s(approx (sqrt (* -1 x)) (*.f64 (neg.f64 x) (sqrt.f64 (/.f64 #s(literal -1 binary64) x))))
#s(approx (sqrt (* (- x 1) x)) (*.f64 (neg.f64 x) (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x))))
#s(approx (sqrt (* (- x 1) 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) 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)) (*.f64 (neg.f64 x) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))))
#s(approx (sqrt (- x 1)) (*.f64 (neg.f64 x) (-.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (*.f64 x x))))))
#s(approx (sqrt (- x 1)) (*.f64 (neg.f64 x) (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 3/2 binary64)) (*.f64 x x))) (/.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)))) (*.f64 x x))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)))))
#s(approx (sqrt (- x 1)) (*.f64 (neg.f64 x) (-.f64 (+.f64 (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 3/2 binary64))) (/.f64 #s(literal 1/16 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 5/2 binary64)) (*.f64 x x)))) (*.f64 (*.f64 x x) (*.f64 x x)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (*.f64 x x))))))
#s(approx (* (/ 1 (sqrt x)) x) (/.f64 #s(literal -1 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))))
#s(approx (/ 1 (sqrt x)) (/.f64 #s(literal -1 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)))

eval6.0ms (0.4%)

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

Compiled 702 to 330 computations (53% saved)

prune3.0ms (0.2%)

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

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New65368
Fresh000
Picked213
Done101
Total68472
Accuracy
100.0%
Counts
72 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
48.0%
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
45.7%
(sqrt.f64 #s(approx (* (- x 1) x) (*.f64 x x)))
0.0%
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (neg.f64 x)))
98.8%
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
Compiler

Compiled 32 to 32 computations (0% saved)

series6.0ms (0.4%)

Memory
4.5MiB live, 4.5MiB allocated; 0ms collecting garbage
Counts
13 → 33
Calls
Call 1
Inputs
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
(*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x)
(-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x))
#s(literal 1 binary64)
(/.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
x
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (neg.f64 x)))
(sqrt.f64 (neg.f64 x))
(neg.f64 x)
(sqrt.f64 #s(approx (* (- x 1) x) (*.f64 x x)))
#s(approx (* (- x 1) x) (*.f64 x x))
(*.f64 x x)
Outputs
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (sqrt (* -1 x))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* 1/2 (/ (pow x 2) (sqrt (* -1 x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt (* -1 x)) 3))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt (* -1 x)) 5))) (* 1/8 (/ 1 (pow (sqrt (* -1 x)) 3))))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(hole binary64 -1/2))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(hole binary64 (- x 1/2)))
#s(approx (- 1 (/ 1/2 x)) #s(hole binary64 (/ -1/2 x)))
#s(approx (- 1 (/ 1/2 x)) #s(hole binary64 (/ (- x 1/2) x)))
#s(approx (/ 1/2 x) #s(hole binary64 (/ 1/2 x)))
#s(approx x #s(hole binary64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (sqrt -1) (sqrt x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (/ (* x (sqrt x)) (sqrt -1))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* -1/8 (/ (* x (sqrt x)) (pow (sqrt -1) 3))) (* 1/2 (/ (sqrt x) (sqrt -1))))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* 1/2 (/ (sqrt x) (sqrt -1))) (* x (+ (* -1/8 (/ (sqrt x) (pow (sqrt -1) 3))) (* 1/16 (/ (* x (sqrt x)) (pow (sqrt -1) 5))))))) (* (sqrt -1) (sqrt x)))))
#s(approx (neg x) #s(hole binary64 (* -1 x)))
#s(approx (* (- x 1) x) #s(hole binary64 (* x (- x 1))))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#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 (- 1 (/ 1/2 x)) #s(hole binary64 1))
#s(approx (- 1 (/ 1/2 x)) #s(hole binary64 (- 1 (* 1/2 (/ 1 x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (pow (sqrt (/ 1 x)) 2) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (+ (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))) (pow x 2))) (pow (sqrt (/ 1 x)) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (+ (* -1 (/ (+ (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 2))) (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 4))))) (pow x 4))) (pow (sqrt (/ 1 x)) 2)) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (sqrt (neg x)) #s(hole binary64 (* x (sqrt (/ -1 x)))))
#s(approx (* (- x 1) x) #s(hole binary64 (* (pow x 2) (- 1 (/ 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 (* (- 1 (/ 1/2 x)) x) #s(hole binary64 (* -1 (* x (- (* 1/2 (/ 1 x)) 1)))))
#s(approx (sqrt (neg x)) #s(hole binary64 (* -1 (* x (sqrt (/ -1 x))))))
Calls

3 calls:

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

rewrite84.0ms (5.8%)

Memory
-32.3MiB live, 35.1MiB allocated; 67ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0182743
0191652
0933640
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
46 → 64
Calls
Call 1
Inputs
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
(*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x)
(-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x))
#s(literal 1 binary64)
(/.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
x
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (neg.f64 x)))
(sqrt.f64 (neg.f64 x))
(neg.f64 x)
(sqrt.f64 #s(approx (* (- x 1) x) (*.f64 x x)))
#s(approx (* (- x 1) x) (*.f64 x x))
(*.f64 x x)
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (sqrt (* -1 x))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* 1/2 (/ (pow x 2) (sqrt (* -1 x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt (* -1 x)) 3))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt (* -1 x)) 5))) (* 1/8 (/ 1 (pow (sqrt (* -1 x)) 3))))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(hole binary64 -1/2))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(hole binary64 (- x 1/2)))
#s(approx (- 1 (/ 1/2 x)) #s(hole binary64 (/ -1/2 x)))
#s(approx (- 1 (/ 1/2 x)) #s(hole binary64 (/ (- x 1/2) x)))
#s(approx (/ 1/2 x) #s(hole binary64 (/ 1/2 x)))
#s(approx x #s(hole binary64 x))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (sqrt -1) (sqrt x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* 1/2 (/ (* x (sqrt x)) (sqrt -1))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* -1/8 (/ (* x (sqrt x)) (pow (sqrt -1) 3))) (* 1/2 (/ (sqrt x) (sqrt -1))))) (* (sqrt -1) (sqrt x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (+ (* x (+ (* 1/2 (/ (sqrt x) (sqrt -1))) (* x (+ (* -1/8 (/ (sqrt x) (pow (sqrt -1) 3))) (* 1/16 (/ (* x (sqrt x)) (pow (sqrt -1) 5))))))) (* (sqrt -1) (sqrt x)))))
#s(approx (neg x) #s(hole binary64 (* -1 x)))
#s(approx (* (- x 1) x) #s(hole binary64 (* x (- x 1))))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#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 (- 1 (/ 1/2 x)) #s(hole binary64 1))
#s(approx (- 1 (/ 1/2 x)) #s(hole binary64 (- 1 (* 1/2 (/ 1 x)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (pow (sqrt (/ 1 x)) 2) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (+ (* -1 (/ (+ 1/2 (* 1/8 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 2))))) (pow x 2))) (pow (sqrt (/ 1 x)) 2)))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) #s(hole binary64 (* (pow x 2) (- (+ (* -1 (/ (+ (* 1/8 (/ 1 (pow (sqrt (/ 1 x)) 2))) (* 1/16 (/ 1 (* (pow x 2) (pow (sqrt (/ 1 x)) 4))))) (pow x 4))) (pow (sqrt (/ 1 x)) 2)) (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (sqrt (neg x)) #s(hole binary64 (* x (sqrt (/ -1 x)))))
#s(approx (* (- x 1) x) #s(hole binary64 (* (pow x 2) (- 1 (/ 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 (* (- 1 (/ 1/2 x)) x) #s(hole binary64 (* -1 (* x (- (* 1/2 (/ 1 x)) 1)))))
#s(approx (sqrt (neg x)) #s(hole binary64 (* -1 (* x (sqrt (/ -1 x))))))
Outputs
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
(*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x)
(*.f64 x (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)))
(/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 #s(literal 1/2 binary64) x) (/.f64 #s(literal 1/2 binary64) x))) (+.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)))
(/.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal 3 binary64))) (+.f64 #s(literal 1 binary64) (fma.f64 (/.f64 #s(literal 1/2 binary64) x) (/.f64 #s(literal 1/2 binary64) x) (*.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)))))
(-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x))
(+.f64 #s(literal 1 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 #s(literal 1 binary64) x)))
#s(literal 1 binary64)
(*.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 1/2 binary64))
(*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x))
(/.f64 #s(literal -1/2 binary64) (neg.f64 x))
(/.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
x
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (neg.f64 x)))
(*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 x))
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal -1 binary64)))
(pow.f64 (neg.f64 x) #s(literal 1/2 binary64))
(sqrt.f64 (neg.f64 x))
(*.f64 #s(literal -1 binary64) x)
(*.f64 x #s(literal -1 binary64))
(neg.f64 x)
(pow.f64 #s(approx (* (- x 1) x) (*.f64 x x)) #s(literal 1/2 binary64))
(sqrt.f64 #s(approx (* (- x 1) x) (*.f64 x x)))
#s(approx (* (- x 1) x) (*.f64 x x))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 x x)
(pow.f64 x #s(literal 2 binary64))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (neg.f64 x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (/.f64 (*.f64 x x) (sqrt.f64 (neg.f64 x))) #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (/.f64 (*.f64 x x) (*.f64 (*.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x))) (sqrt.f64 (neg.f64 x)))) #s(literal -1/8 binary64) (/.f64 #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x)))) (*.f64 x x) (sqrt.f64 (neg.f64 x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (-.f64 (/.f64 (*.f64 #s(literal 1/16 binary64) (*.f64 x x)) (pow.f64 (neg.f64 x) #s(literal 5/2 binary64))) (/.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 (sqrt.f64 (neg.f64 x)) (sqrt.f64 (neg.f64 x))) (sqrt.f64 (neg.f64 x))))) (*.f64 x x) (/.f64 #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x)))) (*.f64 x x) (sqrt.f64 (neg.f64 x))))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64))
#s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64)))
#s(approx (- 1 (/ 1/2 x)) (/.f64 #s(literal -1/2 binary64) x))
#s(approx (- 1 (/ 1/2 x)) (/.f64 (-.f64 x #s(literal 1/2 binary64)) x))
#s(approx (/ 1/2 x) (/.f64 #s(literal 1/2 binary64) 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 x (sqrt.f64 (/.f64 x #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 (fma.f64 (sqrt.f64 (/.f64 x #s(literal -1 binary64))) #s(literal 1/2 binary64) (/.f64 (*.f64 #s(literal -1/8 binary64) (*.f64 (sqrt.f64 x) x)) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64))))) x (sqrt.f64 (neg.f64 x))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (fma.f64 x (fma.f64 (fma.f64 (/.f64 (sqrt.f64 x) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64)))) #s(literal -1/8 binary64) (*.f64 (/.f64 (*.f64 (sqrt.f64 x) x) (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64))) #s(literal 1/16 binary64))) x (*.f64 (sqrt.f64 (/.f64 x #s(literal -1 binary64))) #s(literal 1/2 binary64))) (sqrt.f64 (neg.f64 x))))
#s(approx (neg x) (neg.f64 x))
#s(approx (* (- x 1) x) (*.f64 (-.f64 x #s(literal 1 binary64)) x))
#s(approx (* x x) (*.f64 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 (- 1 (/ 1/2 x)) #s(literal 1 binary64))
#s(approx (- 1 (/ 1/2 x)) (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (*.f64 x x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) (*.f64 x x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (fma.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))) (*.f64 x x))) #s(literal 1/2 binary64)) (*.f64 x x)))) (*.f64 x x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (*.f64 (-.f64 (fma.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (neg.f64 (/.f64 (+.f64 (/.f64 #s(literal 1/16 binary64) (*.f64 (pow.f64 (/.f64 #s(literal 1 binary64) x) #s(literal 2 binary64)) (*.f64 x x))) (/.f64 #s(literal 1/8 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) (/.f64 #s(literal 1 binary64) (sqrt.f64 x))))) (*.f64 (*.f64 x x) (*.f64 x x))))) (/.f64 #s(literal 1/2 binary64) (*.f64 x x))) (*.f64 x x)))
#s(approx (sqrt (neg x)) (*.f64 (sqrt.f64 (/.f64 #s(literal -1 binary64) x)) x))
#s(approx (* (- x 1) x) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) x)) (*.f64 x 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 (* (- 1 (/ 1/2 x)) x) (*.f64 (neg.f64 x) (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal 1 binary64))))
#s(approx (sqrt (neg x)) (*.f64 (neg.f64 x) (sqrt.f64 (/.f64 #s(literal -1 binary64) x))))

eval5.0ms (0.3%)

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

Compiled 489 to 254 computations (48.1% saved)

prune2.0ms (0.1%)

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

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New49251
Fresh000
Picked303
Done011
Total52355
Accuracy
100.0%
Counts
55 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
48.0%
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
98.8%
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64))))
1.1%
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64)))
Compiler

Compiled 30 to 30 computations (0% saved)

series2.0ms (0.1%)

Memory
2.5MiB live, 2.5MiB allocated; 0ms collecting garbage
Counts
8 → 15
Calls
Call 1
Inputs
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64)))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64))
#s(literal -1/2 binary64)
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64))))
#s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64)))
(-.f64 x #s(literal 1/2 binary64))
x
#s(literal 1/2 binary64)
Outputs
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (sqrt (* -1 x))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* 1/2 (/ (pow x 2) (sqrt (* -1 x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt (* -1 x)) 3))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt (* -1 x)) 5))) (* 1/8 (/ 1 (pow (sqrt (* -1 x)) 3))))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(hole binary64 -1/2))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(hole binary64 (- x 1/2)))
#s(approx 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 (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 (* (- 1 (/ 1/2 x)) x) #s(hole binary64 (* -1 (* x (- (* 1/2 (/ 1 x)) 1)))))
Calls

3 calls:

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

rewrite126.0ms (8.8%)

Memory
4.1MiB live, 137.5MiB allocated; 17ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
091374
091330
1491326
04460316
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
23 → 30
Calls
Call 1
Inputs
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64)))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64))
#s(literal -1/2 binary64)
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64))))
#s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64)))
(-.f64 x #s(literal 1/2 binary64))
x
#s(literal 1/2 binary64)
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (sqrt (* -1 x))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* 1/2 (/ (pow x 2) (sqrt (* -1 x)))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* -1/8 (/ (pow x 2) (pow (sqrt (* -1 x)) 3))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (sqrt (* (- x 1) x)) #s(hole binary64 (+ (sqrt (* -1 x)) (* (pow x 2) (+ (* (pow x 2) (- (* 1/16 (/ (pow x 2) (pow (sqrt (* -1 x)) 5))) (* 1/8 (/ 1 (pow (sqrt (* -1 x)) 3))))) (* 1/2 (/ 1 (sqrt (* -1 x)))))))))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(hole binary64 -1/2))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(hole binary64 (- x 1/2)))
#s(approx 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 (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 (* (- 1 (/ 1/2 x)) x) #s(hole binary64 (* -1 (* x (- (* 1/2 (/ 1 x)) 1)))))
Outputs
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64)))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64))
#s(literal -1/2 binary64)
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64))))
#s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64)))
(/.f64 (neg.f64 (fma.f64 x x #s(literal -1/4 binary64))) (neg.f64 (-.f64 x #s(literal -1/2 binary64))))
(/.f64 (neg.f64 (fma.f64 (*.f64 x x) x #s(literal -1/8 binary64))) (neg.f64 (fma.f64 x x (fma.f64 #s(literal 1/2 binary64) x #s(literal 1/4 binary64)))))
(/.f64 (fma.f64 x x #s(literal -1/4 binary64)) (-.f64 x #s(literal -1/2 binary64)))
(/.f64 (fma.f64 (*.f64 x x) x #s(literal -1/8 binary64)) (fma.f64 x x (fma.f64 #s(literal 1/2 binary64) x #s(literal 1/4 binary64))))
(-.f64 (/.f64 (*.f64 x x) (-.f64 x #s(literal -1/2 binary64))) (/.f64 #s(literal 1/4 binary64) (-.f64 x #s(literal -1/2 binary64))))
(-.f64 (/.f64 (*.f64 (*.f64 x x) x) (fma.f64 x x (fma.f64 #s(literal 1/2 binary64) x #s(literal 1/4 binary64)))) (/.f64 #s(literal 1/8 binary64) (fma.f64 x x (fma.f64 #s(literal 1/2 binary64) x #s(literal 1/4 binary64)))))
(-.f64 x #s(literal 1/2 binary64))
(+.f64 x #s(literal -1/2 binary64))
x
#s(literal 1/2 binary64)
#s(approx (sqrt (* (- x 1) x)) (sqrt.f64 (neg.f64 x)))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (/.f64 (*.f64 x x) (sqrt.f64 (neg.f64 x))) #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x))))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (*.f64 (fma.f64 (/.f64 #s(literal 1/8 binary64) x) (/.f64 (*.f64 x x) (sqrt.f64 (neg.f64 x))) (/.f64 #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x)))) x) x (sqrt.f64 (neg.f64 x))))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (*.f64 (fma.f64 (*.f64 (fma.f64 (*.f64 x (/.f64 x (pow.f64 (neg.f64 x) #s(literal 5/2 binary64)))) #s(literal 1/16 binary64) (/.f64 #s(literal 1/8 binary64) (*.f64 (sqrt.f64 (neg.f64 x)) x))) x) x (/.f64 #s(literal 1/2 binary64) (sqrt.f64 (neg.f64 x)))) x) x (sqrt.f64 (neg.f64 x))))
#s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64))
#s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64)))
#s(approx x x)
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (/.f64 (+.f64 (/.f64 #s(literal -1/8 binary64) x) #s(literal -1/2 binary64)) x) x x))
#s(approx (sqrt (* (- x 1) x)) (fma.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (+.f64 (/.f64 #s(literal -1/16 binary64) x) #s(literal -1/8 binary64)) (*.f64 x x))) x x))
#s(approx (sqrt (* (- x 1) x)) (neg.f64 x))
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) (neg.f64 x)))
#s(approx (sqrt (* (- x 1) x)) (neg.f64 (fma.f64 (/.f64 (+.f64 (/.f64 #s(literal -1/8 binary64) x) #s(literal -1/2 binary64)) x) x x)))
#s(approx (sqrt (* (- x 1) x)) (neg.f64 (fma.f64 (+.f64 (/.f64 #s(literal -1/2 binary64) x) (/.f64 (+.f64 (/.f64 #s(literal -1/16 binary64) x) #s(literal -1/8 binary64)) (*.f64 x x))) x x)))
#s(approx (* (- 1 (/ 1/2 x)) x) (*.f64 (-.f64 (/.f64 #s(literal 1/2 binary64) x) #s(literal 1 binary64)) (neg.f64 x)))

eval2.0ms (0.1%)

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

Compiled 198 to 109 computations (44.9% saved)

prune2.0ms (0.2%)

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

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New20020
Fresh000
Picked022
Done011
Total20323
Accuracy
100.0%
Counts
23 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
48.0%
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
98.8%
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64))))
1.1%
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64)))
Compiler

Compiled 84 to 74 computations (11.9% saved)

regimes24.0ms (1.7%)

Memory
-36.4MiB live, 18.3MiB allocated; 8ms collecting garbage
Counts
9 → 1
Calls
Call 1
Inputs
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) #s(literal -1/2 binary64)))
#s(approx (sqrt (* (- x 1) x)) #s(approx (* (- 1 (/ 1/2 x)) x) (-.f64 x #s(literal 1/2 binary64))))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (neg.f64 x)))
#s(approx (* (sqrt (- x 1)) (sqrt x)) (sqrt.f64 (*.f64 #s(literal -1 binary64) x)))
(sqrt.f64 #s(approx (* (- x 1) x) (*.f64 x x)))
(sqrt.f64 (*.f64 (-.f64 x #s(literal 1 binary64)) x))
#s(approx (sqrt (* (- x 1) x)) (*.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/2 binary64) x)) x))
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
(*.f64 #s(approx (sqrt (- x 1)) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 x)) x)) (sqrt.f64 x))
Outputs
(*.f64 (sqrt.f64 (-.f64 x #s(literal 1 binary64))) (sqrt.f64 x))
Calls

2 calls:

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

Compiled 7 to 7 computations (0% saved)

regimes5.0ms (0.4%)

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

2 calls:

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

Compiled 7 to 7 computations (0% saved)

regimes2.0ms (0.2%)

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

Total 0.0b remaining (0%)

Threshold costs 0b (0%)

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

2 calls:

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

Compiled 7 to 7 computations (0% saved)

derivations9.0ms (0.6%)

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

Compiled 24 to 21 computations (12.5% saved)

preprocess50.0ms (3.5%)

Memory
-20.4MiB live, 25.8MiB allocated; 4ms collecting garbage
Compiler

Compiled 30 to 27 computations (10% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...