Details

Time bar (total: 6.7s)

analyze213.0ms (3.2%)

Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
0%0%100%0%0%0%0%2
0%0%100%0%0%0%0%3
37.5%37.5%62.5%0%0%0%0%4
43.8%43.7%56.2%0%0%0%0%5
46.9%46.9%53.1%0%0%0%0%6
48.4%48.4%51.5%0%0%0%0%7
49.2%49.2%50.8%0%0%0%0%8
49.6%49.6%50.4%0%0%0%0%9
49.8%49.8%50.2%0%0%0%0%10
49.9%49.9%50.1%0%0%0%0%11
50%49.9%50%0%0%0%0%12
Compiler

Compiled 9 to 7 computations (22.2% saved)

sample6.1s (90.7%)

Results
3.8s2026×body2048valid
1.4s3051×body1024valid
440.0ms1619×body512valid
275.0ms1464×body256valid
154.0ms94×body4096valid
7.0msbody8192valid
Bogosity

preprocess28.0ms (0.4%)

Algorithm
egg-herbie
Rules
196×fma-def
118×associate-*r*
90×*-commutative
80×associate-+l-
74×associate-/l*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0911
11911
22511
33611
45811
58511
612611
720611
836811
959811
1081711
1186111
011
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(/.f64 (-.f64 1 (cos.f64 x)) (sin.f64 x))
Outputs
(/.f64 (-.f64 1 (cos.f64 x)) (sin.f64 x))
(tan.f64 (/.f64 x 2))
Compiler

Compiled 9 to 7 computations (22.2% saved)

simplify25.0ms (0.4%)

Algorithm
egg-herbie
Rules
196×fma-def
118×associate-*r*
90×*-commutative
80×associate-+l-
74×associate-/l*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0911
11911
22511
33611
45811
58511
612611
720611
836811
959811
1081711
1186111
Stop Event
saturated
Counts
1 → 2
Calls
Call 1
Inputs
(/.f64 (-.f64 1 (cos.f64 x)) (sin.f64 x))
Outputs
(/.f64 (-.f64 1 (cos.f64 x)) (sin.f64 x))
(tan.f64 (/.f64 x 2))

eval1.0ms (0%)

Compiler

Compiled 12 to 9 computations (25% saved)

prune1.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New112
Fresh101
Picked000
Done000
Total213
Accurracy
100.0%
Counts
3 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(tan.f64 (/.f64 x 2))
Compiler

Compiled 5 to 4 computations (20% saved)

localize6.0ms (0.1%)

Local Accuracy

Found 1 expressions with local accuracy:

NewAccuracyProgram
100.0%
(tan.f64 (/.f64 x 2))
Compiler

Compiled 10 to 7 computations (30% saved)

series2.0ms (0%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
(tan.f64 (/.f64 x 2))
0.0ms
x
@inf
(tan.f64 (/.f64 x 2))
0.0ms
x
@-inf
(tan.f64 (/.f64 x 2))

rewrite49.0ms (0.7%)

Algorithm
batch-egg-rewrite
Rules
1392×add-sqr-sqrt
1366×*-un-lft-identity
1276×add-cube-cbrt
1264×add-cbrt-cube
1250×add-exp-log
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0711
114811
2172311
Stop Event
node limit
Counts
1 → 20
Calls
Call 1
Inputs
(tan.f64 (/.f64 x 2))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (tan.f64 (*.f64 x 1/2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (tan.f64 (*.f64 x 1/2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (tan.f64 (*.f64 x 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) (sqrt.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sin.f64 (*.f64 x 1/2)) (/.f64 1 (cos.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (cos.f64 (*.f64 x 1/2)) (sin.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (sin.f64 (*.f64 x 1/2))) (neg.f64 (cos.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (tan.f64 (*.f64 x 1/2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (tan.f64 (*.f64 x 1/2))))))))

simplify67.0ms (1%)

Algorithm
egg-herbie
Rules
854×associate-*r/
720×fma-def
682×*-commutative
650×associate-*r*
574×associate-*l/
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
068804
1147708
2524612
32040612
44521612
56576612
Stop Event
node limit
Counts
32 → 36
Calls
Call 1
Inputs
(*.f64 1/2 x)
(+.f64 (*.f64 1/2 x) (*.f64 1/24 (pow.f64 x 3)))
(+.f64 (*.f64 1/2 x) (+.f64 (*.f64 1/240 (pow.f64 x 5)) (*.f64 1/24 (pow.f64 x 3))))
(+.f64 (*.f64 1/2 x) (+.f64 (*.f64 1/240 (pow.f64 x 5)) (+.f64 (*.f64 17/40320 (pow.f64 x 7)) (*.f64 1/24 (pow.f64 x 3)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(-.f64 (+.f64 1 (tan.f64 (*.f64 x 1/2))) 1)
(*.f64 (tan.f64 (*.f64 x 1/2)) 1)
(*.f64 1 (tan.f64 (*.f64 x 1/2)))
(*.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) (sqrt.f64 (tan.f64 (*.f64 x 1/2))))
(*.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2))
(*.f64 (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))
(*.f64 (sin.f64 (*.f64 x 1/2)) (/.f64 1 (cos.f64 (*.f64 x 1/2))))
(/.f64 1 (/.f64 (cos.f64 (*.f64 x 1/2)) (sin.f64 (*.f64 x 1/2))))
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
(/.f64 (neg.f64 (sin.f64 (*.f64 x 1/2))) (neg.f64 (cos.f64 (*.f64 x 1/2))))
(pow.f64 (tan.f64 (*.f64 x 1/2)) 1)
(pow.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) 2)
(pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 3)
(pow.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3) 1/3)
(sqrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 2))
(log.f64 (exp.f64 (tan.f64 (*.f64 x 1/2))))
(cbrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3))
(expm1.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2))))
(exp.f64 (log.f64 (tan.f64 (*.f64 x 1/2))))
(log1p.f64 (expm1.f64 (tan.f64 (*.f64 x 1/2))))
Outputs
(*.f64 1/2 x)
(+.f64 (*.f64 1/2 x) (*.f64 1/24 (pow.f64 x 3)))
(fma.f64 1/2 x (*.f64 1/24 (pow.f64 x 3)))
(fma.f64 1/24 (pow.f64 x 3) (*.f64 1/2 x))
(+.f64 (*.f64 1/2 x) (+.f64 (*.f64 1/240 (pow.f64 x 5)) (*.f64 1/24 (pow.f64 x 3))))
(fma.f64 1/2 x (fma.f64 1/240 (pow.f64 x 5) (*.f64 1/24 (pow.f64 x 3))))
(fma.f64 1/2 x (fma.f64 1/24 (pow.f64 x 3) (*.f64 1/240 (pow.f64 x 5))))
(fma.f64 1/24 (pow.f64 x 3) (fma.f64 1/240 (pow.f64 x 5) (*.f64 1/2 x)))
(+.f64 (*.f64 1/2 x) (+.f64 (*.f64 1/240 (pow.f64 x 5)) (+.f64 (*.f64 17/40320 (pow.f64 x 7)) (*.f64 1/24 (pow.f64 x 3)))))
(fma.f64 1/2 x (fma.f64 1/240 (pow.f64 x 5) (fma.f64 17/40320 (pow.f64 x 7) (*.f64 1/24 (pow.f64 x 3)))))
(fma.f64 1/2 x (fma.f64 1/240 (pow.f64 x 5) (fma.f64 1/24 (pow.f64 x 3) (*.f64 17/40320 (pow.f64 x 7)))))
(fma.f64 1/2 x (fma.f64 1/24 (pow.f64 x 3) (fma.f64 1/240 (pow.f64 x 5) (*.f64 17/40320 (pow.f64 x 7)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(-.f64 (+.f64 1 (tan.f64 (*.f64 x 1/2))) 1)
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(*.f64 (tan.f64 (*.f64 x 1/2)) 1)
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(*.f64 1 (tan.f64 (*.f64 x 1/2)))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(*.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) (sqrt.f64 (tan.f64 (*.f64 x 1/2))))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(*.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(*.f64 (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(*.f64 (sin.f64 (*.f64 x 1/2)) (/.f64 1 (cos.f64 (*.f64 x 1/2))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 1 (/.f64 (cos.f64 (*.f64 x 1/2)) (sin.f64 (*.f64 x 1/2))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (neg.f64 (sin.f64 (*.f64 x 1/2))) (neg.f64 (cos.f64 (*.f64 x 1/2))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(pow.f64 (tan.f64 (*.f64 x 1/2)) 1)
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(pow.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) 2)
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 3)
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(pow.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3) 1/3)
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(sqrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 2))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(log.f64 (exp.f64 (tan.f64 (*.f64 x 1/2))))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(cbrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(expm1.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2))))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(exp.f64 (log.f64 (tan.f64 (*.f64 x 1/2))))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))
(log1p.f64 (expm1.f64 (tan.f64 (*.f64 x 1/2))))
(+.f64 1 (-.f64 (tan.f64 (*.f64 1/2 x)) 1))
(+.f64 (tan.f64 (*.f64 1/2 x)) 0)
(tan.f64 (*.f64 1/2 x))

eval14.0ms (0.2%)

Compiler

Compiled 350 to 283 computations (19.1% saved)

prune5.0ms (0.1%)

Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New34236
Fresh000
Picked011
Done000
Total34337
Accurracy
100.0%
Counts
37 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.8%
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
49.4%
(*.f64 1/2 x)
100.0%
(tan.f64 (/.f64 x 2))
Compiler

Compiled 19 to 15 computations (21.1% saved)

localize3.0ms (0%)

Compiler

Compiled 6 to 4 computations (33.3% saved)

localize13.0ms (0.2%)

Local Accuracy

Found 1 expressions with local accuracy:

NewAccuracyProgram
99.8%
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
Compiler

Compiled 23 to 17 computations (26.1% saved)

series0.0ms (0%)

Counts
1 → 12
Calls

3 calls:

TimeVariablePointExpression
0.0ms
x
@0
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
0.0ms
x
@-inf
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
0.0ms
x
@inf
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))

rewrite53.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
1814×add-sqr-sqrt
1796×*-un-lft-identity
1668×add-cube-cbrt
1648×add-cbrt-cube
182×pow1
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0911
118311
2221511
Stop Event
node limit
Counts
1 → 33
Calls
Call 1
Inputs
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sin.f64 (*.f64 x 1/2)) (/.f64 1 (cos.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (tan.f64 (*.f64 x 1/2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (tan.f64 (*.f64 x 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) (sqrt.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (*.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (cos.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (*.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (cos.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (cos.f64 (*.f64 x 1/2))) (sin.f64 (*.f64 x 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (neg.f64 (cos.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (cos.f64 (*.f64 x 1/2)))) (/.f64 (sin.f64 (*.f64 x 1/2)) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (/.f64 (sin.f64 (*.f64 x 1/2)) (cbrt.f64 (cos.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) 1) (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (cbrt.f64 (cos.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) 1) (/.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))) (/.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (tan.f64 (*.f64 x 1/2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1 (tan.f64 (*.f64 x 1/2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (sin.f64 (*.f64 x 1/2)) (neg.f64 (cos.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (tan.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (tan.f64 (*.f64 x 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x tan.f64 (*.f64 x 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (tan.f64 (*.f64 x 1/2))))))))

simplify51.0ms (0.8%)

Algorithm
egg-herbie
Rules
1216×associate-/r/
956×associate-*r*
902×distribute-rgt-in
892×distribute-lft-in
814×associate-*l*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0106939
1251939
2857939
33771939
Stop Event
node limit
Counts
45 → 49
Calls
Call 1
Inputs
(*.f64 1/2 x)
(+.f64 (*.f64 1/2 x) (*.f64 1/24 (pow.f64 x 3)))
(+.f64 (*.f64 1/2 x) (+.f64 (*.f64 1/240 (pow.f64 x 5)) (*.f64 1/24 (pow.f64 x 3))))
(+.f64 (*.f64 1/2 x) (+.f64 (*.f64 1/240 (pow.f64 x 5)) (+.f64 (*.f64 17/40320 (pow.f64 x 7)) (*.f64 1/24 (pow.f64 x 3)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(-.f64 (exp.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2)))) 1)
(*.f64 (sin.f64 (*.f64 x 1/2)) (/.f64 1 (cos.f64 (*.f64 x 1/2))))
(*.f64 (tan.f64 (*.f64 x 1/2)) 1)
(*.f64 1 (tan.f64 (*.f64 x 1/2)))
(*.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) (sqrt.f64 (tan.f64 (*.f64 x 1/2))))
(*.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (*.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (cos.f64 (*.f64 x 1/2)))))
(*.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2))
(*.f64 (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))
(*.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (*.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (cos.f64 (*.f64 x 1/2)))))
(*.f64 (/.f64 1 (cos.f64 (*.f64 x 1/2))) (sin.f64 (*.f64 x 1/2)))
(*.f64 (neg.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (neg.f64 (cos.f64 (*.f64 x 1/2)))))
(*.f64 (/.f64 1 (sqrt.f64 (cos.f64 (*.f64 x 1/2)))) (/.f64 (sin.f64 (*.f64 x 1/2)) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))))
(*.f64 (/.f64 1 (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (/.f64 (sin.f64 (*.f64 x 1/2)) (cbrt.f64 (cos.f64 (*.f64 x 1/2)))))
(*.f64 (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) 1) (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2))))
(*.f64 (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (cbrt.f64 (cos.f64 (*.f64 x 1/2)))))
(*.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) 1) (/.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2))))
(*.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))) (/.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))))
(*.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))
(pow.f64 (tan.f64 (*.f64 x 1/2)) 1)
(pow.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) 2)
(pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 3)
(pow.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3) 1/3)
(pow.f64 (/.f64 1 (tan.f64 (*.f64 x 1/2))) -1)
(neg.f64 (/.f64 (sin.f64 (*.f64 x 1/2)) (neg.f64 (cos.f64 (*.f64 x 1/2)))))
(sqrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 2))
(log.f64 (exp.f64 (tan.f64 (*.f64 x 1/2))))
(log.f64 (+.f64 1 (expm1.f64 (tan.f64 (*.f64 x 1/2)))))
(cbrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3))
(expm1.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2))))
(exp.f64 (log.f64 (tan.f64 (*.f64 x 1/2))))
(exp.f64 (*.f64 (log.f64 (tan.f64 (*.f64 x 1/2))) 1))
(tan.f64 (*.f64 x 1/2))
(log1p.f64 (expm1.f64 (tan.f64 (*.f64 x 1/2))))
Outputs
(*.f64 1/2 x)
(+.f64 (*.f64 1/2 x) (*.f64 1/24 (pow.f64 x 3)))
(fma.f64 1/2 x (*.f64 1/24 (pow.f64 x 3)))
(fma.f64 1/24 (pow.f64 x 3) (*.f64 1/2 x))
(+.f64 (*.f64 1/2 x) (+.f64 (*.f64 1/240 (pow.f64 x 5)) (*.f64 1/24 (pow.f64 x 3))))
(fma.f64 1/2 x (fma.f64 1/240 (pow.f64 x 5) (*.f64 1/24 (pow.f64 x 3))))
(fma.f64 1/2 x (fma.f64 1/24 (pow.f64 x 3) (*.f64 1/240 (pow.f64 x 5))))
(fma.f64 1/24 (pow.f64 x 3) (fma.f64 1/2 x (*.f64 1/240 (pow.f64 x 5))))
(+.f64 (*.f64 1/2 x) (+.f64 (*.f64 1/240 (pow.f64 x 5)) (+.f64 (*.f64 17/40320 (pow.f64 x 7)) (*.f64 1/24 (pow.f64 x 3)))))
(fma.f64 1/2 x (fma.f64 1/240 (pow.f64 x 5) (fma.f64 17/40320 (pow.f64 x 7) (*.f64 1/24 (pow.f64 x 3)))))
(fma.f64 1/2 x (fma.f64 1/240 (pow.f64 x 5) (fma.f64 1/24 (pow.f64 x 3) (*.f64 17/40320 (pow.f64 x 7)))))
(fma.f64 1/2 x (fma.f64 1/24 (pow.f64 x 3) (fma.f64 1/240 (pow.f64 x 5) (*.f64 17/40320 (pow.f64 x 7)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(-.f64 (exp.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2)))) 1)
(tan.f64 (*.f64 1/2 x))
(*.f64 (sin.f64 (*.f64 x 1/2)) (/.f64 1 (cos.f64 (*.f64 x 1/2))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (tan.f64 (*.f64 x 1/2)) 1)
(tan.f64 (*.f64 1/2 x))
(*.f64 1 (tan.f64 (*.f64 x 1/2)))
(tan.f64 (*.f64 1/2 x))
(*.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) (sqrt.f64 (tan.f64 (*.f64 x 1/2))))
(tan.f64 (*.f64 1/2 x))
(*.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (*.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (cos.f64 (*.f64 x 1/2)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2))
(tan.f64 (*.f64 1/2 x))
(*.f64 (pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 2) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))
(tan.f64 (*.f64 1/2 x))
(*.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (*.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (cos.f64 (*.f64 x 1/2)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (/.f64 1 (cos.f64 (*.f64 x 1/2))) (sin.f64 (*.f64 x 1/2)))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (neg.f64 (sin.f64 (*.f64 x 1/2))) (/.f64 1 (neg.f64 (cos.f64 (*.f64 x 1/2)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (/.f64 1 (sqrt.f64 (cos.f64 (*.f64 x 1/2)))) (/.f64 (sin.f64 (*.f64 x 1/2)) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (/.f64 1 (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (/.f64 (sin.f64 (*.f64 x 1/2)) (cbrt.f64 (cos.f64 (*.f64 x 1/2)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) 1) (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (/.f64 (sqrt.f64 (sin.f64 (*.f64 x 1/2))) (cbrt.f64 (cos.f64 (*.f64 x 1/2)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) 1) (/.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))) (/.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) (sqrt.f64 (cos.f64 (*.f64 x 1/2)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(*.f64 (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 x 1/2))) 2) (pow.f64 (cbrt.f64 (cos.f64 (*.f64 x 1/2))) 2)) (cbrt.f64 (tan.f64 (*.f64 x 1/2))))
(*.f64 (cbrt.f64 (tan.f64 (*.f64 1/2 x))) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 (*.f64 1/2 x))) 2) (pow.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 x))) 2)))
(/.f64 (*.f64 (cbrt.f64 (tan.f64 (*.f64 1/2 x))) (pow.f64 (cbrt.f64 (sin.f64 (*.f64 1/2 x))) 2)) (pow.f64 (cbrt.f64 (cos.f64 (*.f64 1/2 x))) 2))
(pow.f64 (tan.f64 (*.f64 x 1/2)) 1)
(tan.f64 (*.f64 1/2 x))
(pow.f64 (sqrt.f64 (tan.f64 (*.f64 x 1/2))) 2)
(tan.f64 (*.f64 1/2 x))
(pow.f64 (cbrt.f64 (tan.f64 (*.f64 x 1/2))) 3)
(tan.f64 (*.f64 1/2 x))
(pow.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3) 1/3)
(tan.f64 (*.f64 1/2 x))
(pow.f64 (/.f64 1 (tan.f64 (*.f64 x 1/2))) -1)
(tan.f64 (*.f64 1/2 x))
(neg.f64 (/.f64 (sin.f64 (*.f64 x 1/2)) (neg.f64 (cos.f64 (*.f64 x 1/2)))))
(/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))
(sqrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 2))
(tan.f64 (*.f64 1/2 x))
(log.f64 (exp.f64 (tan.f64 (*.f64 x 1/2))))
(tan.f64 (*.f64 1/2 x))
(log.f64 (+.f64 1 (expm1.f64 (tan.f64 (*.f64 x 1/2)))))
(tan.f64 (*.f64 1/2 x))
(cbrt.f64 (pow.f64 (tan.f64 (*.f64 x 1/2)) 3))
(tan.f64 (*.f64 1/2 x))
(expm1.f64 (log1p.f64 (tan.f64 (*.f64 x 1/2))))
(tan.f64 (*.f64 1/2 x))
(exp.f64 (log.f64 (tan.f64 (*.f64 x 1/2))))
(tan.f64 (*.f64 1/2 x))
(exp.f64 (*.f64 (log.f64 (tan.f64 (*.f64 x 1/2))) 1))
(tan.f64 (*.f64 1/2 x))
(tan.f64 (*.f64 x 1/2))
(tan.f64 (*.f64 1/2 x))
(log1p.f64 (expm1.f64 (tan.f64 (*.f64 x 1/2))))
(tan.f64 (*.f64 1/2 x))

eval14.0ms (0.2%)

Compiler

Compiled 595 to 491 computations (17.5% saved)

prune7.0ms (0.1%)

Pruning

3 alts after pruning (0 fresh and 3 done)

PrunedKeptTotal
New49049
Fresh000
Picked011
Done022
Total49352
Accurracy
100.0%
Counts
52 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
99.8%
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
49.4%
(*.f64 1/2 x)
100.0%
(tan.f64 (/.f64 x 2))
Compiler

Compiled 19 to 15 computations (21.1% saved)

regimes8.0ms (0.1%)

Accuracy

Total -61.3b remaining (-784020.4%)

Threshold costs -61.3b (-784020.4%)

Counts
4 → 1
Calls
Call 1
Inputs
(*.f64 1/2 x)
(tan.f64 (/.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (sin.f64 x))
(/.f64 (sin.f64 (*.f64 x 1/2)) (cos.f64 (*.f64 x 1/2)))
Outputs
(tan.f64 (/.f64 x 2))
Calls

2 calls:

4.0ms
x
3.0ms
(/.f64 (-.f64 1 (cos.f64 x)) (sin.f64 x))
Results
AccuracySegmentsBranch
100.0%1x
100.0%1(/.f64 (-.f64 1 (cos.f64 x)) (sin.f64 x))
Compiler

Compiled 34 to 25 computations (26.5% saved)

simplify4.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0918
11018
Stop Event
done
saturated
Calls
Call 1
Inputs
(tan.f64 (/.f64 x 2))
(*.f64 1/2 x)
Outputs
(tan.f64 (/.f64 x 2))
(*.f64 1/2 x)
(*.f64 x 1/2)
Compiler

Compiled 9 to 7 computations (22.2% saved)

soundness42.0ms (0.6%)

Algorithm
egg-herbie
Rules
196×fma-def
118×associate-*r*
90×*-commutative
80×associate-+l-
74×associate-/l*
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0911
11911
22511
33611
45811
58511
612611
720611
836811
959811
1081711
1186111
Stop Event
saturated
Compiler

Compiled 12 to 9 computations (25% saved)

end15.0ms (0.2%)

Compiler

Compiled 8 to 6 computations (25% saved)

Profiling

Loading profile data...