Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, G

Time bar (total: 3.2s)

start0.0ms (0%)

Memory
0.1MiB live, 0.1MiB allocated

analyze0.0ms (0%)

Memory
0.9MiB live, 0.9MiB allocated
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
100%100%0%0%0%0%0%1
Compiler

Compiled 7 to 7 computations (0% saved)

sample939.0ms (29%)

Memory
-15.2MiB live, 1 148.9MiB allocated
Samples
557.0ms8 256×0valid
Precisions
Click to see histograms. Total time spent on operations: 228.0ms
ival-div: 138.0ms (60.4% of total)
ival-sub: 74.0ms (32.4% of total)
exact: 7.0ms (3.1% of total)
ival-true: 5.0ms (2.2% of total)
ival-assert: 3.0ms (1.3% of total)
Bogosity

explain163.0ms (5%)

Memory
8.1MiB live, 87.2MiB allocated
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
00-0-#s(literal 1 binary64)
00-0-#s(literal 3 binary64)
00-0-(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
00-0-(/.f64 #s(literal 1 binary64) #s(literal 3 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
83.0ms512×0valid
Compiler

Compiled 31 to 19 computations (38.7% saved)

Precisions
Click to see histograms. Total time spent on operations: 7.0ms
ival-div: 4.0ms (54.3% of total)
ival-sub: 2.0ms (27.2% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

preprocess13.0ms (0.4%)

Memory
24.3MiB live, 24.3MiB allocated
Algorithm
egg-herbie
Rules
16×distribute-lft-neg-in
14×sub-neg
12×cancel-sign-sub-inv
10×associate--r+
10×distribute-neg-in
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
089
1189
2396
3636
4966
51046
61066
053
083
1133
2143
0143
Stop Event
iter limit
saturated
iter limit
saturated
Calls
Call 1
Inputs
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
Outputs
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
(-.f64 x #s(literal 1/3 binary64))
Compiler

Compiled 5 to 5 computations (0% saved)

eval0.0ms (0%)

Memory
0.4MiB live, 0.4MiB allocated
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.9MiB live, 0.9MiB allocated
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
Compiler

Compiled 5 to 5 computations (0% saved)

simplify21.0ms (0.6%)

Memory
-33.0MiB live, 6.3MiB allocated
Algorithm
egg-herbie
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
cost-diff0
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
cost-diff704
(/.f64 #s(literal 1 binary64) #s(literal 3 binary64))
Rules
lower-+.f64
lower-+.f32
lift-/.f64
1-exp
lift--.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
057
087
1137
2147
0147
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
x
(/.f64 #s(literal 1 binary64) #s(literal 3 binary64))
#s(literal 1 binary64)
#s(literal 3 binary64)
Outputs
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
(-.f64 x #s(literal 1/3 binary64))
x
(/.f64 #s(literal 1 binary64) #s(literal 3 binary64))
#s(literal 1/3 binary64)
#s(literal 1 binary64)
#s(literal 3 binary64)

localize13.0ms (0.4%)

Memory
22.3MiB live, 22.3MiB allocated
Localize:

Found 2 expressions of interest:

NewMetricScoreProgram
accuracy0
(/.f64 #s(literal 1 binary64) #s(literal 3 binary64))
accuracy0.00390625
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
Samples
8.0ms256×0valid
Compiler

Compiled 13 to 7 computations (46.2% saved)

Precisions
Click to see histograms. Total time spent on operations: 4.0ms
ival-div: 2.0ms (56.7% of total)
ival-sub: 1.0ms (28.4% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)

series1.0ms (0%)

Memory
2.0MiB live, 2.0MiB allocated
Counts
2 → 12
Calls
Call 1
Inputs
#s(alt (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) (patch (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)) #<representation binary64>) () ())
#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())
Outputs
#s(alt -1/3 (taylor 0 x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) (patch (-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64))) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@inf
((/ 1 3) (- x (/ 1 3)))
0.0ms
x
@-inf
((/ 1 3) (- x (/ 1 3)))
0.0ms
x
@0
((/ 1 3) (- x (/ 1 3)))

simplify29.0ms (0.9%)

Memory
-18.9MiB live, 22.3MiB allocated
Algorithm
egg-herbie
Rules
192×lower-fma.f64
192×lower-fma.f32
144×lower-*.f64
144×lower-*.f32
96×times-frac
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01330
13230
27530
315830
441230
552330
657630
759930
860130
060130
Stop Event
iter limit
saturated
Counts
12 → 10
Calls
Call 1
Inputs
-1/3
(- x 1/3)
(- x 1/3)
(- x 1/3)
x
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
Outputs
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
x
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))

rewrite203.0ms (6.3%)

Memory
12.2MiB live, 204.7MiB allocated
Rules
6 912×lower-fma.f64
6 912×lower-fma.f32
4 474×lower-*.f64
4 474×lower-*.f32
3 944×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
054
084
1274
21294
39794
085574
Stop Event
iter limit
node limit
iter limit
Counts
2 → 313
Calls
Call 1
Inputs
(/.f64 #s(literal 1 binary64) #s(literal 3 binary64))
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval42.0ms (1.3%)

Memory
9.3MiB live, 81.2MiB allocated
Compiler

Compiled 8 097 to 759 computations (90.6% saved)

prune5.0ms (0.2%)

Memory
19.0MiB live, 19.0MiB allocated
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New3203323
Fresh000
Picked101
Done000
Total3213324
Accuracy
100.0%
Counts
324 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
72.6%
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
100.0%
(-.f64 x #s(literal 1/3 binary64))
46.4%
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
Compiler

Compiled 25 to 16 computations (36% saved)

simplify11.0ms (0.3%)

Memory
-41.0MiB live, 7.9MiB allocated
Algorithm
egg-herbie
Localize:

Found 6 expressions of interest:

NewMetricScoreProgram
cost-diff0
(-.f64 x #s(literal -1/3 binary64))
cost-diff0
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))
cost-diff0
(/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
cost-diff0
(*.f64 x x)
cost-diff0
(-.f64 x #s(literal 1/3 binary64))
cost-diff0
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
Rules
36×lower-+.f64
36×lower-+.f32
30×lower-fma.f32
26×lower-fma.f64
26×lower-*.f32
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01763
02563
13963
25062
36062
46662
06662
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
#s(literal -1/3 binary64)
(-.f64 x #s(literal 1/3 binary64))
x
#s(literal 1/3 binary64)
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
(*.f64 x x)
x
(/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))
(-.f64 x #s(literal -1/3 binary64))
#s(literal -1/3 binary64)
#s(literal 1/9 binary64)
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
#s(literal -1/27 binary64)
Outputs
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
#s(literal -1/3 binary64)
(-.f64 x #s(literal 1/3 binary64))
x
#s(literal 1/3 binary64)
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
(+.f64 (/.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))))
(*.f64 x x)
x
(/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
(/.f64 x (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64)))
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))
(fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))
(-.f64 x #s(literal -1/3 binary64))
#s(literal -1/3 binary64)
#s(literal 1/9 binary64)
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
(/.f64 #s(literal -1/27 binary64) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64)))
#s(literal -1/27 binary64)

localize59.0ms (1.8%)

Memory
7.6MiB live, 80.8MiB allocated
Localize:

Found 6 expressions of interest:

NewMetricScoreProgram
accuracy0.00390625
(-.f64 x #s(literal -1/3 binary64))
accuracy0.32749183350931843
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
accuracy16.30469391107203
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
accuracy16.43482054660281
(/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
accuracy0.00390625
(-.f64 x #s(literal 1/3 binary64))
accuracy34.318560062960444
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
Samples
40.0ms247×0valid
2.0ms1valid
1.0ms2valid
Compiler

Compiled 71 to 20 computations (71.8% saved)

Precisions
Click to see histograms. Total time spent on operations: 33.0ms
const: 11.0ms (33% of total)
ival-sub: 9.0ms (27% of total)
ival-div: 5.0ms (15% of total)
ival-mult: 5.0ms (15% of total)
ival-add: 2.0ms (6% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series8.0ms (0.2%)

Memory
19.7MiB live, 19.7MiB allocated
Counts
8 → 96
Calls
Call 1
Inputs
#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())
#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())
#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())
#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())
#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())
#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())
Outputs
#s(alt -1/3 (taylor 0 x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt -1/3 (taylor 0 x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* -27 x))) (taylor 0 x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) (taylor 0 x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) (taylor 0 x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt 1/9 (taylor 0 x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/9 (* 1/3 x)) (taylor 0 x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/9 (* x (+ 1/3 x))) (taylor 0 x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/9 (* x (+ 1/3 x))) (taylor 0 x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt 1/3 (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt -1/3 (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt -1/3 (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* x (+ 1 (* -9 (pow x 2)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (/ 1 x) (taylor inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- 1 (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) (taylor inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) (taylor inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) (taylor inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (/ -1/27 (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) (patch #s(approx (- x (/ 1 3)) #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (-.f64 x #s(literal 1/3 binary64)) (patch (-.f64 x #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (/ 1 x) (taylor -inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) (taylor -inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) (taylor -inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) (taylor -inf x) (#s(alt (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) (taylor -inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt (* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x))))) (taylor -inf x) (#s(alt (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) (patch (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (/ -1/27 (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
2.0ms
x
@inf
((- x (/ 1 3)) (- x 1/3) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (+ (* x (- x -1/3)) 1/9) (- x -1/3) (+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9)))
2.0ms
x
@-inf
((- x (/ 1 3)) (- x 1/3) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (+ (* x (- x -1/3)) 1/9) (- x -1/3) (+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9)))
2.0ms
x
@0
((- x (/ 1 3)) (- x 1/3) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (+ (* x (- x -1/3)) 1/9) (- x -1/3) (+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9)))

simplify132.0ms (4.1%)

Memory
9.8MiB live, 165.4MiB allocated
Algorithm
egg-herbie
Rules
10 196×lower-fma.f64
10 196×lower-fma.f32
3 368×lower-*.f64
3 368×lower-*.f32
1 996×lower--.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0122482
1346478
2846470
32476466
46522466
08425450
Stop Event
iter limit
node limit
Counts
96 → 88
Calls
Call 1
Inputs
-1/3
(- x 1/3)
(- x 1/3)
(- x 1/3)
-1/3
(- x 1/3)
(- x 1/3)
(- x 1/3)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(* 9 x)
(* x (+ 9 (* -27 x)))
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27))))
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27))))
1/9
(+ 1/9 (* 1/3 x))
(+ 1/9 (* x (+ 1/3 x)))
(+ 1/9 (* x (+ 1/3 x)))
1/3
(+ 1/3 x)
(+ 1/3 x)
(+ 1/3 x)
-1/3
(- x 1/3)
(- x 1/3)
(- x 1/3)
-1/3
(- x 1/3)
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3)
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3)
x
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
x
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(/ 1 x)
(/ (- 1 (* 1/3 (/ 1 x))) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x)
(pow x 2)
(* (pow x 2) (+ 1 (* 1/3 (/ 1 x))))
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x)))))
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x)))))
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
x
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(/ -1/27 (pow x 2))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(/ 1 x)
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x))
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x))
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x))
(pow x 2)
(* (pow x 2) (+ 1 (* 1/3 (/ 1 x))))
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x)))))
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x)))))
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(/ -1/27 (pow x 2))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2))
Outputs
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* x (+ 9 (* -27 x)))
(*.f64 (fma.f64 #s(literal -27 binary64) x #s(literal 9 binary64)) x)
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27))))
(*.f64 (fma.f64 (fma.f64 #s(literal 243 binary64) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x)
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27))))
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal -729 binary64) x #s(literal 243 binary64)) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x)
1/9
#s(literal 1/9 binary64)
(+ 1/9 (* 1/3 x))
(fma.f64 #s(literal 1/3 binary64) x #s(literal 1/9 binary64))
(+ 1/9 (* x (+ 1/3 x)))
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64))
(+ 1/9 (* x (+ 1/3 x)))
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64))
1/3
#s(literal 1/3 binary64)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3)
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -9 binary64) (-.f64 x #s(literal 1/3 binary64)))
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3)
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 27 binary64) x #s(literal -9 binary64)) (-.f64 x #s(literal 1/3 binary64)))
x
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
x
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(/ 1 x)
(/.f64 #s(literal 1 binary64) x)
(/ (- 1 (* 1/3 (/ 1 x))) x)
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x)
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x)
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (* 1/3 (/ 1 x))))
(*.f64 (+.f64 #s(literal 1/3 binary64) x) x)
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x)))))
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64))
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x)))))
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64))
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
x
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(/ -1/27 (pow x 2))
(/.f64 #s(literal -1/27 binary64) (*.f64 x x))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x)
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x))
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(/ 1 x)
(/.f64 #s(literal 1 binary64) x)
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x))
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x)
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x))
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x))
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(pow x 2)
(*.f64 x x)
(* (pow x 2) (+ 1 (* 1/3 (/ 1 x))))
(*.f64 (+.f64 #s(literal 1/3 binary64) x) x)
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x)))))
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64))
(* (pow x 2) (+ 1 (+ (/ 1/9 (pow x 2)) (* 1/3 (/ 1 x)))))
(fma.f64 (+.f64 #s(literal 1/3 binary64) x) x #s(literal 1/9 binary64))
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(/ -1/27 (pow x 2))
(/.f64 #s(literal -1/27 binary64) (*.f64 x x))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x)
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2))
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2))
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x))

rewrite191.0ms (5.9%)

Memory
-17.9MiB live, 348.5MiB allocated
Rules
8 592×lower-fma.f32
8 588×lower-fma.f64
5 618×lower-*.f32
5 616×lower-*.f64
3 818×lower-/.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01756
02539
19839
272439
0893039
Stop Event
iter limit
node limit
iter limit
Counts
8 → 673
Calls
Call 1
Inputs
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
(-.f64 x #s(literal 1/3 binary64))
(*.f64 x x)
(/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))
(-.f64 x #s(literal -1/3 binary64))
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval124.0ms (3.8%)

Memory
0.3MiB live, 310.1MiB allocated
Compiler

Compiled 29 206 to 2 012 computations (93.1% saved)

prune18.0ms (0.6%)

Memory
9.3MiB live, 56.0MiB allocated
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New9521953
Fresh000
Picked123
Done000
Total9533956
Accuracy
100.0%
Counts
956 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
48.5%
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
100.0%
(-.f64 x #s(literal 1/3 binary64))
46.4%
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
Compiler

Compiled 21 to 18 computations (14.3% saved)

simplify5.0ms (0.2%)

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

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 #s(literal 9 binary64) x)
cost-diff0
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
cost-diff0
(*.f64 x x)
cost-diff0
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
Rules
32×lower-+.f64
32×lower-+.f32
30×lower-fma.f32
26×lower-fma.f64
26×lower-*.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01664
02464
13464
24264
35164
45764
05764
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
(*.f64 x x)
x
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
(*.f64 #s(literal 9 binary64) x)
#s(literal 9 binary64)
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
#s(literal -1/27 binary64)
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))
(-.f64 x #s(literal -1/3 binary64))
#s(literal -1/3 binary64)
#s(literal 1/9 binary64)
Outputs
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
(fma.f64 #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (*.f64 x x) (/.f64 #s(literal -1/27 binary64) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))))
(*.f64 x x)
x
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
(*.f64 #s(literal 9 binary64) x)
#s(literal 9 binary64)
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
(/.f64 #s(literal -1/27 binary64) (fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64)))
#s(literal -1/27 binary64)
(fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))
(fma.f64 (-.f64 x #s(literal -1/3 binary64)) x #s(literal 1/9 binary64))
(-.f64 x #s(literal -1/3 binary64))
#s(literal -1/3 binary64)
#s(literal 1/9 binary64)

localize44.0ms (1.4%)

Memory
-17.2MiB live, 57.5MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.00390625
(-.f64 x #s(literal -1/3 binary64))
accuracy0.32749183350931843
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
accuracy16.30469391107203
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
accuracy34.04931918856098
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
Samples
30.0ms247×0valid
1.0ms1valid
1.0ms2valid
Compiler

Compiled 64 to 16 computations (75% saved)

Precisions
Click to see histograms. Total time spent on operations: 24.0ms
const: 9.0ms (37.2% of total)
ival-mult: 7.0ms (28.9% of total)
ival-div: 4.0ms (16.5% of total)
ival-add: 2.0ms (8.3% of total)
ival-sub: 1.0ms (4.1% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series5.0ms (0.2%)

Memory
8.7MiB live, 8.7MiB allocated
Counts
6 → 72
Calls
Call 1
Inputs
#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())
#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())
#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())
#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())
Outputs
#s(alt -1/3 (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* -27 x))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt -1/3 (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* x (+ 1 (* -9 (pow x 2)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt 1/3 (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (/ 1 x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (/ (- 1 (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (/ -1/27 (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (/ 1 x) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (/ -1/27 (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt (-.f64 x #s(literal -1/3 binary64)) (patch (-.f64 x #s(literal -1/3 binary64)) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (/ -1/27 (+ (* x (- x -1/3)) 1/9)) (- x -1/3))
1.0ms
x
@inf
((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (/ -1/27 (+ (* x (- x -1/3)) 1/9)) (- x -1/3))
1.0ms
x
@0
((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (/ -1/27 (+ (* x (- x -1/3)) 1/9)) (- x -1/3))

simplify152.0ms (4.7%)

Memory
0.4MiB live, 155.7MiB allocated
Algorithm
egg-herbie
Rules
11 306×lower-fma.f64
11 306×lower-fma.f32
3 488×lower-*.f64
3 488×lower-*.f32
1 718×lower--.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0112386
1314382
2763382
32214378
46741378
08114369
Stop Event
iter limit
node limit
Counts
72 → 68
Calls
Call 1
Inputs
-1/3
(- x 1/3)
(- x 1/3)
(- x 1/3)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(* 9 x)
(* x (+ 9 (* -27 x)))
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27))))
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27))))
(* 9 x)
(* 9 x)
(* 9 x)
(* 9 x)
-1/3
(- x 1/3)
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3)
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3)
1/3
(+ 1/3 x)
(+ 1/3 x)
(+ 1/3 x)
x
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(/ 1 x)
(/ (- 1 (* 1/3 (/ 1 x))) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x)
(* 9 x)
(* 9 x)
(* 9 x)
(* 9 x)
(/ -1/27 (pow x 2))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(/ 1 x)
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x))
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x))
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x))
(* 9 x)
(* 9 x)
(* 9 x)
(* 9 x)
(/ -1/27 (pow x 2))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2))
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
Outputs
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* x (+ 9 (* -27 x)))
(*.f64 (fma.f64 #s(literal -27 binary64) x #s(literal 9 binary64)) x)
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27))))
(*.f64 (fma.f64 (fma.f64 #s(literal 243 binary64) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x)
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27))))
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal -729 binary64) x #s(literal 243 binary64)) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3)
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -9 binary64) (-.f64 x #s(literal 1/3 binary64)))
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3)
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 27 binary64) x #s(literal -9 binary64)) (-.f64 x #s(literal 1/3 binary64)))
1/3
#s(literal 1/3 binary64)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
x
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(/ 1 x)
(/.f64 #s(literal 1 binary64) x)
(/ (- 1 (* 1/3 (/ 1 x))) x)
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x)
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x)
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(/ -1/27 (pow x 2))
(/.f64 #s(literal -1/27 binary64) (*.f64 x x))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x)
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x))
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x))
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(/ 1 x)
(/.f64 #s(literal 1 binary64) x)
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x))
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x)
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x))
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x))
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(/ -1/27 (pow x 2))
(/.f64 #s(literal -1/27 binary64) (*.f64 x x))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x)
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2))
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2))
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x))
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)

rewrite198.0ms (6.1%)

Memory
11.8MiB live, 254.9MiB allocated
Rules
7 612×lower-fma.f32
7 608×lower-fma.f64
4 594×lower-*.f32
4 590×lower-*.f64
3 156×lower-/.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01653
02453
18853
259153
3657653
0812653
Stop Event
iter limit
node limit
iter limit
Counts
6 → 231
Calls
Call 1
Inputs
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
(*.f64 x x)
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
(*.f64 #s(literal 9 binary64) x)
(/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64)))
(-.f64 x #s(literal -1/3 binary64))
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval71.0ms (2.2%)

Memory
-6.7MiB live, 68.8MiB allocated
Compiler

Compiled 9 846 to 941 computations (90.4% saved)

prune5.0ms (0.2%)

Memory
18.6MiB live, 18.6MiB allocated
Pruning

3 alts after pruning (1 fresh and 2 done)

PrunedKeptTotal
New2981299
Fresh000
Picked101
Done022
Total2993302
Accuracy
100.0%
Counts
302 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
48.5%
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))))
100.0%
(-.f64 x #s(literal 1/3 binary64))
46.4%
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
Compiler

Compiled 20 to 18 computations (10% saved)

simplify8.0ms (0.2%)

Memory
-28.7MiB live, 8.6MiB allocated
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 #s(literal 9 binary64) x)
cost-diff0
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
cost-diff0
(*.f64 x x)
cost-diff0
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))))
Rules
36×lower-+.f64
36×lower-+.f32
34×lower-fma.f32
30×lower-fma.f64
30×lower-*.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01774
02474
13574
24374
35274
45874
05872
Stop Event
iter limit
saturated
iter limit
Calls
Call 1
Inputs
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))))
(*.f64 x x)
x
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
(*.f64 #s(literal 9 binary64) x)
#s(literal 9 binary64)
(/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))
#s(literal -1/27 binary64)
(fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))
#s(approx (- x -1/3) #s(literal 1/3 binary64))
#s(literal 1/3 binary64)
#s(literal 1/9 binary64)
Outputs
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))))
(fma.f64 #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (*.f64 x x) (/.f64 #s(literal -1/27 binary64) (fma.f64 #s(approx (- x -1/3) #s(literal 1/3 binary64)) x #s(literal 1/9 binary64))))
(*.f64 x x)
x
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
(*.f64 #s(literal 9 binary64) x)
#s(literal 9 binary64)
(/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))
(/.f64 #s(literal -1/27 binary64) (fma.f64 #s(approx (- x -1/3) #s(literal 1/3 binary64)) x #s(literal 1/9 binary64)))
#s(literal -1/27 binary64)
(fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))
(fma.f64 #s(approx (- x -1/3) #s(literal 1/3 binary64)) x #s(literal 1/9 binary64))
#s(approx (- x -1/3) #s(literal 1/3 binary64))
#s(literal 1/3 binary64)
#s(literal 1/9 binary64)

localize48.0ms (1.5%)

Memory
30.4MiB live, 70.3MiB allocated
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.32749183350931843
(/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))
accuracy16.30469391107203
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))))
accuracy34.04931918856098
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
accuracy34.11723812524532
#s(approx (- x -1/3) #s(literal 1/3 binary64))
Samples
31.0ms247×0valid
7.0ms2valid
1.0ms1valid
Compiler

Compiled 64 to 17 computations (73.4% saved)

Precisions
Click to see histograms. Total time spent on operations: 31.0ms
const: 12.0ms (38.2% of total)
ival-div: 9.0ms (28.7% of total)
ival-mult: 6.0ms (19.1% of total)
ival-add: 2.0ms (6.4% of total)
ival-sub: 1.0ms (3.2% of total)
adjust: 0.0ms (0% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series8.0ms (0.3%)

Memory
-24.5MiB live, 11.1MiB allocated
Counts
6 → 72
Calls
Call 1
Inputs
#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())
#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())
#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())
#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())
#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())
#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())
Outputs
#s(alt -1/3 (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor 0 x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* -27 x))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* x (- (* 243 (pow x 2)) 27)))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27)))) (taylor 0 x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor 0 x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt 1/3 (taylor 0 x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (+ 1/3 x) (taylor 0 x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt -1/3 (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- x 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* x (+ 1 (* -9 (pow x 2)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3) (taylor 0 x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* x (- 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (/ 1 x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (/ (- 1 (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x) (taylor inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt x (taylor inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (/ -1/27 (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2)) (taylor inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (* -1 (* x (- (* 1/3 (/ 1 x)) 1))) (taylor -inf x) (#s(alt (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) (patch (fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (pow x 2) (taylor -inf x) (#s(alt (*.f64 x x) (patch (*.f64 x x) #<representation binary64>) () ())) ())
#s(alt (/ 1 x) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* 1/3 (/ 1 x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x)) (taylor -inf x) (#s(alt #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (patch #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt (* 9 x) (taylor -inf x) (#s(alt (*.f64 #s(literal 9 binary64) x) (patch (*.f64 #s(literal 9 binary64) x) #<representation binary64>) () ())) ())
#s(alt x (taylor -inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (* x (+ 1 (* 1/3 (/ 1 x)))) (taylor -inf x) (#s(alt #s(approx (- x -1/3) #s(literal 1/3 binary64)) (patch #s(approx (- x -1/3) #s(literal 1/3 binary64)) #<representation binary64>) () ())) ())
#s(alt (/ -1/27 (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
#s(alt (/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2)) (taylor -inf x) (#s(alt (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) (patch (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))) #<representation binary64>) () ())) ())
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@-inf
((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (- x -1/3) (/ -1/27 (+ (* x (- x -1/3)) 1/9)))
1.0ms
x
@inf
((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (- x -1/3) (/ -1/27 (+ (* x (- x -1/3)) 1/9)))
1.0ms
x
@0
((+ (* (* x x) (/ x (+ (* x (- x -1/3)) 1/9))) (/ -1/27 (+ (* x (- x -1/3)) 1/9))) (* x x) (/ x (+ (* x (- x -1/3)) 1/9)) (* 9 x) (- x -1/3) (/ -1/27 (+ (* x (- x -1/3)) 1/9)))

simplify162.0ms (5%)

Memory
-12.5MiB live, 164.9MiB allocated
Algorithm
egg-herbie
Rules
11 306×lower-fma.f64
11 306×lower-fma.f32
3 488×lower-*.f64
3 488×lower-*.f32
1 718×lower--.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0112386
1314382
2762382
32209378
46754378
08127369
Stop Event
iter limit
node limit
Counts
72 → 68
Calls
Call 1
Inputs
-1/3
(- x 1/3)
(- x 1/3)
(- x 1/3)
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(* 9 x)
(* x (+ 9 (* -27 x)))
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27))))
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27))))
(* 9 x)
(* 9 x)
(* 9 x)
(* 9 x)
1/3
(+ 1/3 x)
(+ 1/3 x)
(+ 1/3 x)
-1/3
(- x 1/3)
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3)
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3)
x
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(* x (- 1 (* 1/3 (/ 1 x))))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(/ 1 x)
(/ (- 1 (* 1/3 (/ 1 x))) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x)
(* 9 x)
(* 9 x)
(* 9 x)
(* 9 x)
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
(/ -1/27 (pow x 2))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(pow x 2)
(pow x 2)
(pow x 2)
(pow x 2)
(/ 1 x)
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x))
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x))
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x))
(* 9 x)
(* 9 x)
(* 9 x)
(* 9 x)
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
(* x (+ 1 (* 1/3 (/ 1 x))))
(/ -1/27 (pow x 2))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2))
Outputs
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* x (+ 9 (* -27 x)))
(*.f64 (fma.f64 #s(literal -27 binary64) x #s(literal 9 binary64)) x)
(* x (+ 9 (* x (- (* 243 (pow x 2)) 27))))
(*.f64 (fma.f64 (fma.f64 #s(literal 243 binary64) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x)
(* x (+ 9 (* x (- (* (pow x 2) (+ 243 (* -729 x))) 27))))
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal -729 binary64) x #s(literal 243 binary64)) (*.f64 x x) #s(literal -27 binary64)) x #s(literal 9 binary64)) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
1/3
#s(literal 1/3 binary64)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
(+ 1/3 x)
(+.f64 #s(literal 1/3 binary64) x)
-1/3
#s(literal -1/3 binary64)
(- x 1/3)
(-.f64 x #s(literal 1/3 binary64))
(- (* x (+ 1 (* -9 (pow x 2)))) 1/3)
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -9 binary64) (-.f64 x #s(literal 1/3 binary64)))
(- (* x (+ 1 (* (pow x 2) (- (* 27 x) 9)))) 1/3)
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 27 binary64) x #s(literal -9 binary64)) (-.f64 x #s(literal 1/3 binary64)))
x
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(* x (- 1 (* 1/3 (/ 1 x))))
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(/ 1 x)
(/.f64 #s(literal 1 binary64) x)
(/ (- 1 (* 1/3 (/ 1 x))) x)
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (* 1/3 (/ 1 x))) x)
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(/ (- (+ 1 (/ 1/27 (pow x 3))) (+ (* 1/3 (/ 1 x)) (* 1/81 (/ 1 (pow x 4))))) x)
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(/ -1/27 (pow x 2))
(/.f64 #s(literal -1/27 binary64) (*.f64 x x))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x)
(/ (- (* 1/81 (/ 1 x)) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x))
(/ (- (+ (* 1/81 (/ 1 x)) (* 1/2187 (/ 1 (pow x 4)))) (+ 1/27 (/ 1/729 (pow x 3)))) (pow x 2))
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x))
x
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(* -1 (* x (- (* 1/3 (/ 1 x)) 1)))
(-.f64 x #s(literal 1/3 binary64))
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(pow x 2)
(*.f64 x x)
(/ 1 x)
(/.f64 #s(literal 1 binary64) x)
(* -1 (/ (- (* 1/3 (/ 1 x)) 1) x))
(/.f64 (-.f64 #s(literal 1 binary64) (/.f64 #s(literal 1/3 binary64) x)) x)
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) 1/3) x)) 1) x))
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/27 binary64) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(* -1 (/ (- (* -1 (/ (- (* 1/27 (/ 1 (pow x 2))) (+ 1/3 (/ 1/81 (pow x 3)))) x)) 1) x))
(/.f64 (-.f64 (/.f64 (-.f64 (/.f64 (-.f64 #s(literal 1/27 binary64) (/.f64 #s(literal 1/81 binary64) x)) (*.f64 x x)) #s(literal 1/3 binary64)) x) #s(literal -1 binary64)) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
(* 9 x)
(*.f64 #s(literal 9 binary64) x)
x
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(* x (+ 1 (* 1/3 (/ 1 x))))
(+.f64 #s(literal 1/3 binary64) x)
(/ -1/27 (pow x 2))
(/.f64 #s(literal -1/27 binary64) (*.f64 x x))
(/ (- (* 1/81 (/ 1 x)) 1/27) (pow x 2))
(/.f64 (/.f64 (-.f64 (/.f64 #s(literal 1/81 binary64) x) #s(literal 1/27 binary64)) x) x)
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) 1/81) x)) 1/27) (pow x 2))
(/.f64 (-.f64 (/.f64 #s(literal -1/729 binary64) (pow.f64 x #s(literal 3 binary64))) (-.f64 (/.f64 #s(literal -1/81 binary64) x) #s(literal -1/27 binary64))) (*.f64 x x))
(/ (- (* -1 (/ (- (* 1/729 (/ 1 (pow x 2))) (+ 1/81 (/ 1/2187 (pow x 3)))) x)) 1/27) (pow x 2))
(/.f64 (-.f64 (-.f64 #s(literal -1/27 binary64) (/.f64 (-.f64 #s(literal -1/81 binary64) (/.f64 #s(literal 1/2187 binary64) (pow.f64 x #s(literal 3 binary64)))) x)) (/.f64 #s(literal 1/729 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 x x))

rewrite281.0ms (8.7%)

Memory
31.4MiB live, 188.1MiB allocated
Rules
9 086×lower-fma.f32
9 082×lower-fma.f64
5 514×lower-*.f32
5 510×lower-*.f64
3 798×lower-/.f32
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01761
02461
110161
272761
3788361
0873659
Stop Event
iter limit
node limit
iter limit
Counts
6 → 161
Calls
Call 1
Inputs
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))))
(*.f64 x x)
#s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x))
(*.f64 #s(literal 9 binary64) x)
#s(approx (- x -1/3) #s(literal 1/3 binary64))
(/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64)))
Outputs
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>
#<batchref>

eval40.0ms (1.2%)

Memory
1.3MiB live, 39.7MiB allocated
Compiler

Compiled 7 187 to 540 computations (92.5% saved)

prune23.0ms (0.7%)

Memory
-22.6MiB live, 15.7MiB allocated
Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New2290229
Fresh000
Picked011
Done022
Total2293232
Accuracy
100.0%
Counts
232 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
48.5%
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))))
100.0%
(-.f64 x #s(literal 1/3 binary64))
46.4%
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
Compiler

Compiled 81 to 43 computations (46.9% saved)

regimes5.0ms (0.2%)

Memory
10.5MiB live, 10.5MiB allocated
Counts
6 → 1
Calls
Call 1
Inputs
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
(-.f64 x #s(literal 1/3 binary64))
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x #s(approx (- x -1/3) #s(literal 1/3 binary64)) #s(literal 1/9 binary64))))
(fma.f64 (*.f64 x x) #s(approx (/ x (+ (* x (- x -1/3)) 1/9)) (*.f64 #s(literal 9 binary64) x)) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
(fma.f64 (*.f64 x x) (/.f64 x (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))) (/.f64 #s(literal -1/27 binary64) (fma.f64 x (-.f64 x #s(literal -1/3 binary64)) #s(literal 1/9 binary64))))
Outputs
(-.f64 x #s(literal 1/3 binary64))
Calls

2 calls:

2.0ms
x
2.0ms
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
Compiler

Compiled 6 to 6 computations (0% saved)

regimes3.0ms (0.1%)

Memory
7.0MiB live, 7.0MiB allocated
Accuracy

Total -0.0b remaining (-0%)

Threshold costs -0b (-0%)

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

2 calls:

1.0ms
x
1.0ms
(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
Results
AccuracySegmentsBranch
46.4%1x
46.4%1(-.f64 x (/.f64 #s(literal 1 binary64) #s(literal 3 binary64)))
Compiler

Compiled 6 to 6 computations (0% saved)

simplify26.0ms (0.8%)

Memory
-9.4MiB live, 37.3MiB allocated
Algorithm
egg-herbie
Rules
+-commutative-binary64-+.f64
sub-neg-binary64-neg.f64-+.f64--.f64
1-exp-binary32-exp.f32
*-commutative-binary64-*.f64
1-exp-binary64-exp.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
098
1148
2188
3208
4218
Stop Event
saturated
Calls
Call 1
Inputs
(-.f64 x #s(literal 1/3 binary64))
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))
Outputs
(-.f64 x #s(literal 1/3 binary64))
#s(approx (- x (/ 1 3)) #s(literal -1/3 binary64))

soundness154.0ms (4.8%)

Memory
-12.6MiB live, 140.0MiB allocated
Rules
6 912×lower-fma.f64
6 912×lower-fma.f32
4 474×lower-*.f64
4 474×lower-*.f32
3 944×lower-/.f64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01330
13230
27530
315830
441230
552330
657630
759930
860130
060130
054
084
1274
21294
39794
085574
Stop Event
done
iter limit
node limit
iter limit
iter limit
saturated
Compiler

Compiled 14 to 14 computations (0% saved)

preprocess21.0ms (0.7%)

Memory
23.4MiB live, 60.0MiB allocated
Compiler

Compiled 20 to 20 computations (0% saved)

end0.0ms (0%)

Memory
0.0MiB live, 0.0MiB allocated

Profiling

Loading profile data...