Details

Time bar (total: 6.0s)

analyze100.0ms (1.7%)

Algorithm
search
Search
TrueOtherFalseIter
0%100%0%0
0%100%0%1
0%100%0%2
50%50%0%3
75%25%0%4
75%25%0%5
75%25%0%6
78.1%21.9%0%7
78.1%21.9%0%8
78.1%21.9%0%9
78.1%21.9%0%10
78.1%21.9%0%11
78.1%21.9%0%12
Compiler

Compiled 10 to 7 computations (30% saved)

sample3.4s (57.7%)

Results
1.7s2113×body2048valid
541.0ms1516×body512valid
538.0ms1127×body1024valid
255.0ms808×body256valid
236.0ms2135×body64valid
109.0ms452×body128valid
83.0ms105×body4096valid

preprocess25.0ms (0.4%)

Algorithm
egg-herbie
Rules
424×fma-def_binary64
293×fma-neg_binary64
86×div-sub_binary64
74×associate-/l*_binary64
63×times-frac_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0712
11612
22712
34012
47312
512712
619212
731712
862112
9114012
10170012
11182912
011
Stop Event
saturated
saturated
Calls
Call 1
Inputs
0
Outputs
0
Call 2
Inputs
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
Outputs
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
Compiler

Compiled 9 to 6 computations (33.3% saved)

simplify21.0ms (0.3%)

Algorithm
egg-herbie
Rules
424×fma-def_binary64
293×fma-neg_binary64
86×div-sub_binary64
74×associate-/l*_binary64
63×times-frac_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0712
11612
22712
34012
47312
512712
619212
731712
862112
9114012
10170012
11182912
Stop Event
saturated
Counts
1 → 1
Calls
Call 1
Inputs
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
Outputs
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))

prune2.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
Error
31.4b
Counts
2 → 1
Alt Table
StatusErrorProgram
31.4b
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
Compiler

Compiled 27 to 18 computations (33.3% saved)

localize5.0ms (0.1%)

Local error

Found 2 expressions with local error:

NewErrorProgram
1.8b
(-.f64 1 (cos.f64 x))
16.8b
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))

series3.0ms (0%)

Counts
2 → 16
Calls

6 calls:

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

rewrite50.0ms (0.8%)

Algorithm
batch-egg-rewrite
Rules
873×pow1_binary64
819×add-log-exp_binary64
818×log1p-expm1-u_binary64
818×expm1-log1p-u_binary64
801×add-exp-log_binary64
Iterations

Useful iterations: 0 (0.0ms)

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

simplify41.0ms (0.7%)

Algorithm
egg-herbie
Rules
621×distribute-rgt-out_binary64
555×distribute-lft-out_binary64
544×associate-/r*_binary64
510×fma-def_binary64
425×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
037218
191216
2217214
3652212
42438212
55715212
Stop Event
node limit
Counts
78 → 79
Calls
Call 1
Inputs
1/2
(+.f64 1/2 (*.f64 -1/24 (pow.f64 x 2)))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (*.f64 1/720 (pow.f64 x 4)))))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(*.f64 1/2 (pow.f64 x 2))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8)))))
Outputs
1/2
(+.f64 1/2 (*.f64 -1/24 (pow.f64 x 2)))
(+.f64 1/2 (*.f64 -1/24 (*.f64 x x)))
(fma.f64 -1/24 (*.f64 x x) 1/2)
(fma.f64 x (*.f64 -1/24 x) 1/2)
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (*.f64 1/720 (pow.f64 x 4))))
(fma.f64 -1/24 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) 1/2))
(fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (*.f64 1/720 (pow.f64 x 4)))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (fma.f64 -1/40320 (pow.f64 x 6) (*.f64 1/720 (pow.f64 x 4)))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) (*.f64 -1/40320 (pow.f64 x 6)))))
(+.f64 (fma.f64 -1/24 (*.f64 x x) 1/2) (fma.f64 -1/40320 (pow.f64 x 6) (*.f64 1/720 (pow.f64 x 4))))
(fma.f64 (*.f64 x x) (fma.f64 x (*.f64 x 1/720) -1/24) (fma.f64 -1/40320 (pow.f64 x 6) 1/2))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
(/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x 2))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
(*.f64 1/2 (pow.f64 x 2))
(*.f64 1/2 (*.f64 x x))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(fma.f64 1/2 (*.f64 x x) (*.f64 -1/24 (pow.f64 x 4)))
(*.f64 (*.f64 x x) (fma.f64 -1/24 (*.f64 x x) 1/2))
(*.f64 x (*.f64 x (fma.f64 -1/24 (*.f64 x x) 1/2)))
(*.f64 x (*.f64 x (fma.f64 x (*.f64 -1/24 x) 1/2)))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (*.f64 1/720 (pow.f64 x 6))))
(fma.f64 1/2 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 6) (*.f64 -1/24 (pow.f64 x 4))))
(*.f64 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2)))
(*.f64 (*.f64 x x) (fma.f64 -1/24 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) 1/2)))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8)))))
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (fma.f64 1/720 (pow.f64 x 6) (*.f64 -1/40320 (pow.f64 x 8)))))
(fma.f64 1/2 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 6) (fma.f64 -1/24 (pow.f64 x 4) (*.f64 -1/40320 (pow.f64 x 8)))))
(fma.f64 1/720 (pow.f64 x 6) (*.f64 (*.f64 x x) (fma.f64 -1/40320 (pow.f64 x 6) (fma.f64 -1/24 (*.f64 x x) 1/2))))
(*.f64 (*.f64 x x) (fma.f64 (*.f64 x x) (fma.f64 x (*.f64 x 1/720) -1/24) (fma.f64 -1/40320 (pow.f64 x 6) 1/2)))

prune86.0ms (1.4%)

Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New70979
Fresh000
Picked101
Done000
Total71980
Error
0.0b
Counts
80 → 9
Alt Table
StatusErrorProgram
17.4b
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) (*.f64 x x))
31.5b
(*.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) 1) (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (*.f64 x x)))
18.0b
(/.f64 (/.f64 1 (/.f64 (+.f64 1 (cos.f64 x)) (*.f64 (sin.f64 x) (sin.f64 x)))) (*.f64 x x))
31.4b
(/.f64 (exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) (*.f64 x x))
31.3b
(*.f64 (pow.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 2) (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))
31.4b
(/.f64 (pow.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3) 1/3) (*.f64 x x))
31.8b
(fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2))
31.0b
(-.f64 (pow.f64 x -2) (*.f64 (cos.f64 x) (pow.f64 x -2)))
30.5b
(*.f64 (/.f64 1 x) (/.f64 (-.f64 1 (cos.f64 x)) x))
Compiler

Compiled 1320 to 819 computations (38% saved)

localize9.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x)))
0.2b
(*.f64 (sin.f64 x) (sin.f64 x))
0.4b
(+.f64 1 (cos.f64 x))
16.7b
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) (*.f64 x x))

series6.0ms (0.1%)

Counts
4 → 44
Calls

12 calls:

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

rewrite75.0ms (1.3%)

Algorithm
batch-egg-rewrite
Rules
582×log-prod_binary64
456×prod-diff_binary64
292×pow2_binary64
250×fma-def_binary64
244×log-div_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01046
122830
2352130
Stop Event
node limit
Counts
4 → 182
Calls
Call 1
Inputs
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) (*.f64 x x))
(+.f64 1 (cos.f64 x))
(*.f64 (sin.f64 x) (sin.f64 x))
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x)))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 (-.f64 1 (cos.f64 x))) (pow.f64 x -2))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (-.f64 1 (cos.f64 x))) (pow.f64 x -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (-.f64 1 (cos.f64 x))) (pow.f64 x -2)))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (-.f64 1 (cos.f64 x))) (pow.f64 x -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1/2 (*.f64 (+.f64 1 (cos.f64 x)) (*.f64 x x))) (/.f64 (*.f64 (cos.f64 (+.f64 x x)) 1/2) (*.f64 (+.f64 1 (cos.f64 x)) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sin.f64 x) 2) (/.f64 1 (*.f64 (+.f64 1 (cos.f64 x)) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) (pow.f64 x -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2) (*.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) (pow.f64 x -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) (pow.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 2) (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (*.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (pow.f64 x -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (-.f64 1 (cos.f64 x))) (/.f64 1 (*.f64 x (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 x -2) (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (-.f64 1 (cos.f64 x)) x) (/.f64 1 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (sin.f64 x) 2) 1) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2) 1) (/.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) 1) (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (*.f64 x x)) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 x) (/.f64 (-.f64 1 (cos.f64 x)) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2) x) (/.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (sin.f64 x) 2) (cbrt.f64 (pow.f64 x 4))) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (cbrt.f64 (pow.f64 x 4))) (/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 (cbrt.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2) (cbrt.f64 (pow.f64 x 4))) (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (cbrt.f64 (pow.f64 x 4))) (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 2) (pow.f64 x 4)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 x (/.f64 (-.f64 1 (cos.f64 x)) x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3) (pow.f64 (*.f64 x x) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (/.f64 1 (-.f64 1 (cos.f64 x))) (*.f64 x x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (*.f64 (+.f64 1 (cos.f64 x)) (*.f64 x x)) (pow.f64 (sin.f64 x) 2)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (/.f64 x (/.f64 (-.f64 1 (cos.f64 x)) x)) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 2) (pow.f64 x 4)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (-.f64 1 (cos.f64 x))) (pow.f64 x -2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3) (pow.f64 (*.f64 x x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (-.f64 1 (cos.f64 x))) (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (+.f64 1 (cos.f64 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sin.f64 x) 2) (/.f64 1 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 2) (cbrt.f64 (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 1 (cos.f64 x))) (sqrt.f64 (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3)) (/.f64 1 (fma.f64 (cos.f64 x) (-.f64 (cos.f64 x) 1) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (sin.f64 x) 2) (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (cos.f64 x) (-.f64 (cos.f64 x) 1) 1) (+.f64 1 (pow.f64 (cos.f64 x) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 (sin.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (neg.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (-.f64 (cos.f64 x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3)) (fma.f64 (cos.f64 x) (-.f64 (cos.f64 x) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3))) (neg.f64 (fma.f64 (cos.f64 x) (-.f64 (cos.f64 x) 1) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 1 (cos.f64 x)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 1 (cos.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 1 (cos.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (cos.f64 x) (-.f64 (cos.f64 x) 1) 1) (+.f64 1 (pow.f64 (cos.f64 x) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (-.f64 1 (cos.f64 x)) (pow.f64 (sin.f64 x) 2)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 1 (cos.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (+.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 1 (cos.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log1p.f64 (cos.f64 x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (/.f64 1 (-.f64 1 (cos.f64 x))) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 x) 1 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 1 (cos.f64 x)) (/.f64 1 (pow.f64 (sin.f64 x) 2)) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (cos.f64 x)) (pow.f64 (cbrt.f64 (cos.f64 x)) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cos.f64 x)) 2) (cbrt.f64 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 x)) (sqrt.f64 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (/.f64 1 (-.f64 1 (cos.f64 x)))) 2) (cbrt.f64 (/.f64 1 (-.f64 1 (cos.f64 x)))) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (/.f64 1 (-.f64 1 (cos.f64 x)))) (sqrt.f64 (/.f64 1 (-.f64 1 (cos.f64 x)))) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 1 (sin.f64 x)) (/.f64 1 (tan.f64 (/.f64 x 2))) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 2) (sin.f64 x)) (/.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) (sin.f64 x)) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (sqrt.f64 (+.f64 1 (cos.f64 x))) (sin.f64 x)) (/.f64 (sqrt.f64 (+.f64 1 (cos.f64 x))) (sin.f64 x)) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 2) 1) (/.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) (pow.f64 (sin.f64 x) 2)) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (sqrt.f64 (+.f64 1 (cos.f64 x))) 1) (/.f64 (sqrt.f64 (+.f64 1 (cos.f64 x))) (pow.f64 (sin.f64 x) 2)) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 1 (cbrt.f64 (pow.f64 (sin.f64 x) 4))) (/.f64 (+.f64 1 (cos.f64 x)) (pow.f64 (cbrt.f64 (sin.f64 x)) 2)) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 2) (cbrt.f64 (pow.f64 (sin.f64 x) 4))) (/.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 (sin.f64 x)) 2)) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (sqrt.f64 (+.f64 1 (cos.f64 x))) (cbrt.f64 (pow.f64 (sin.f64 x) 4))) (/.f64 (sqrt.f64 (+.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 (sin.f64 x)) 2)) (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (+.f64 1 (cos.f64 x)) (-.f64 1 (cos.f64 (+.f64 x x)))) 2 (neg.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 1 (cos.f64 x))))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (neg.f64 (pow.f64 (cos.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (neg.f64 (cos.f64 x)) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (pow.f64 (sin.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1/2 (neg.f64 (*.f64 (cos.f64 (+.f64 x x)) 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1/2 (*.f64 -1/2 (cos.f64 (+.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (pow.f64 (sin.f64 x) 2))) 2)) (log.f64 (cbrt.f64 (exp.f64 (pow.f64 (sin.f64 x) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (pow.f64 (sin.f64 x) 2)))) (log.f64 (sqrt.f64 (exp.f64 (pow.f64 (sin.f64 x) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 1 (pow.f64 (cos.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 1/2 (*.f64 (cos.f64 (+.f64 x x)) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 1/2 (/.f64 (cos.f64 (+.f64 x x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (pow.f64 (sin.f64 x) 2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 2 (-.f64 1 (cos.f64 (+.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (cos.f64 (+.f64 x x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (cos.f64 (+.f64 x x)))) -2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1/8 (pow.f64 (*.f64 (cos.f64 (+.f64 x x)) 1/2) 3)) (+.f64 1/4 (+.f64 (pow.f64 (*.f64 (cos.f64 (+.f64 x x)) 1/2) 2) (*.f64 1/2 (*.f64 (cos.f64 (+.f64 x x)) 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (pow.f64 (cos.f64 x) 2) 3)) (+.f64 1 (+.f64 (pow.f64 (pow.f64 (cos.f64 x) 2) 2) (pow.f64 (cos.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1/4 (pow.f64 (*.f64 (cos.f64 (+.f64 x x)) 1/2) 2)) (pow.f64 (cos.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (pow.f64 (cos.f64 x) 2) 2)) (+.f64 1 (pow.f64 (cos.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sin.f64 x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (sin.f64 x) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (sin.f64 x) 4) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 (sin.f64 x) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 2 (-.f64 1 (cos.f64 (+.f64 x x)))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (sin.f64 x) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (sin.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (pow.f64 (sin.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (sin.f64 x) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (sin.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 2 (log.f64 (sin.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sin.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 2 (log.f64 (sin.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (sin.f64 x) 2)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (neg.f64 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 -1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (neg.f64 (pow.f64 (cbrt.f64 (cos.f64 x)) 2)) (cbrt.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (neg.f64 (sqrt.f64 (cos.f64 x))) (sqrt.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (-.f64 1 (cos.f64 x)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (-.f64 1 (cos.f64 x))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (-.f64 1 (cos.f64 x))))) (log.f64 (sqrt.f64 (exp.f64 (-.f64 1 (cos.f64 x))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 1 (cos.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (-.f64 1 (cos.f64 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1/2 (+.f64 1 (cos.f64 x))) (/.f64 (*.f64 (cos.f64 (+.f64 x x)) 1/2) (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sin.f64 x) (/.f64 1 (/.f64 1 (tan.f64 (/.f64 x 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sin.f64 x) (*.f64 (sin.f64 x) (/.f64 1 (+.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sin.f64 x) 2) (/.f64 1 (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2) (cbrt.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (*.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (/.f64 1 (+.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (sqrt.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (/.f64 1 (+.f64 (neg.f64 (cos.f64 x)) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) (pow.f64 (sin.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) 1) (tan.f64 (/.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) 1) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 2)) (/.f64 (sin.f64 x) (cbrt.f64 (+.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 2)) (/.f64 (pow.f64 (sin.f64 x) 2) (cbrt.f64 (+.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (pow.f64 (cbrt.f64 (+.f64 1 (cos.f64 x))) 2)) (cbrt.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (+.f64 1 (cos.f64 x)))) (/.f64 (pow.f64 (sin.f64 x) 2) (sqrt.f64 (+.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (sqrt.f64 (+.f64 1 (cos.f64 x)))) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (sqrt.f64 (+.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (pow.f64 (cos.f64 x) 3))) (fma.f64 (cos.f64 x) (-.f64 (cos.f64 x) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (sin.f64 x) 2) (pow.f64 (sin.f64 x) 2)) (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1 (-.f64 1 (cos.f64 x))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (pow.f64 (pow.f64 (sin.f64 x) 2) 3) (pow.f64 (+.f64 1 (cos.f64 x)) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (/.f64 1 (-.f64 1 (cos.f64 x))) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (neg.f64 (cos.f64 x)) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (pow.f64 (sin.f64 x) 2) 3) (pow.f64 (+.f64 1 (cos.f64 x)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (neg.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log1p.f64 (neg.f64 (cos.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 1 (cos.f64 x))))))))

simplify54.0ms (0.9%)

Algorithm
egg-herbie
Rules
920×times-frac_binary64
873×distribute-lft-out_binary64
517×associate-/l*_binary64
357×associate-/r*_binary64
344×associate-/l/_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
068576
1158572
2393520
31258520
42444520
57295520
Stop Event
node limit
Counts
226 → 220
Calls
Call 1
Inputs
1/2
(+.f64 1/2 (*.f64 -1/24 (pow.f64 x 2)))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (*.f64 1/720 (pow.f64 x 4)))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
2
(+.f64 2 (*.f64 -1/2 (pow.f64 x 2)))
(+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4))))
(+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 -1/720 (pow.f64 x 6)))))
(+.f64 (cos.f64 x) 1)
(+.f64 (cos.f64 x) 1)
(+.f64 (cos.f64 x) 1)
(+.f64 (cos.f64 x) 1)
(pow.f64 x 2)
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (pow.f64 x 2))
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (+.f64 (*.f64 2/45 (pow.f64 x 6)) (pow.f64 x 2)))
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (+.f64 (*.f64 -1/315 (pow.f64 x 8)) (+.f64 (*.f64 2/45 (pow.f64 x 6)) (pow.f64 x 2))))
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(*.f64 1/2 (pow.f64 x 2))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8)))))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (cos.f64 x) 1))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (cos.f64 x) 1))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (cos.f64 x) 1))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (cos.f64 x) 1))
Outputs
1/2
(+.f64 1/2 (*.f64 -1/24 (pow.f64 x 2)))
(+.f64 1/2 (*.f64 -1/24 (*.f64 x x)))
(fma.f64 -1/24 (*.f64 x x) 1/2)
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 (fma.f64 -1/24 (*.f64 x x) 1/2) (*.f64 1/720 (pow.f64 x 4)))
(fma.f64 -1/24 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) 1/2))
(fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (*.f64 1/720 (pow.f64 x 4)))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (fma.f64 -1/40320 (pow.f64 x 6) (*.f64 1/720 (pow.f64 x 4)))))
(+.f64 (fma.f64 -1/24 (*.f64 x x) 1/2) (fma.f64 -1/40320 (pow.f64 x 6) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 (fma.f64 -1/24 (*.f64 x x) 1/2) (fma.f64 1/720 (pow.f64 x 4) (*.f64 -1/40320 (pow.f64 x 6))))
(+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2)))
(+.f64 1/2 (fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/40320 (pow.f64 x 6) (*.f64 -1/24 (*.f64 x x)))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
2
(+.f64 2 (*.f64 -1/2 (pow.f64 x 2)))
(+.f64 2 (*.f64 (*.f64 x x) -1/2))
(fma.f64 (*.f64 x x) -1/2 2)
(fma.f64 x (*.f64 x -1/2) 2)
(+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4))))
(+.f64 2 (fma.f64 -1/2 (*.f64 x x) (*.f64 (pow.f64 x 4) 1/24)))
(+.f64 2 (fma.f64 (*.f64 x x) -1/2 (*.f64 (pow.f64 x 4) 1/24)))
(fma.f64 x (*.f64 x -1/2) (fma.f64 (pow.f64 x 4) 1/24 2))
(fma.f64 (pow.f64 x 4) 1/24 (fma.f64 (*.f64 x x) -1/2 2))
(+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 -1/720 (pow.f64 x 6)))))
(+.f64 2 (fma.f64 -1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) (*.f64 (pow.f64 x 6) -1/720))))
(+.f64 (fma.f64 (*.f64 x x) -1/2 2) (fma.f64 (pow.f64 x 4) 1/24 (*.f64 (pow.f64 x 6) -1/720)))
(+.f64 2 (fma.f64 (pow.f64 x 6) -1/720 (fma.f64 (*.f64 x x) -1/2 (*.f64 (pow.f64 x 4) 1/24))))
(+.f64 (fma.f64 (*.f64 x x) -1/2 2) (fma.f64 (pow.f64 x 6) -1/720 (*.f64 (pow.f64 x 4) 1/24)))
(+.f64 (fma.f64 x (*.f64 x -1/2) 2) (fma.f64 (pow.f64 x 4) 1/24 (*.f64 (pow.f64 x 6) -1/720)))
(+.f64 (cos.f64 x) 1)
(+.f64 1 (cos.f64 x))
(+.f64 (cos.f64 x) 1)
(+.f64 1 (cos.f64 x))
(+.f64 (cos.f64 x) 1)
(+.f64 1 (cos.f64 x))
(+.f64 (cos.f64 x) 1)
(+.f64 1 (cos.f64 x))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (pow.f64 x 2))
(fma.f64 -1/3 (pow.f64 x 4) (*.f64 x x))
(fma.f64 (pow.f64 x 4) -1/3 (*.f64 x x))
(fma.f64 x x (*.f64 (pow.f64 x 4) -1/3))
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (+.f64 (*.f64 2/45 (pow.f64 x 6)) (pow.f64 x 2)))
(fma.f64 -1/3 (pow.f64 x 4) (fma.f64 2/45 (pow.f64 x 6) (*.f64 x x)))
(fma.f64 (pow.f64 x 4) -1/3 (fma.f64 x x (*.f64 (pow.f64 x 6) 2/45)))
(fma.f64 x x (fma.f64 (pow.f64 x 4) -1/3 (*.f64 (pow.f64 x 6) 2/45)))
(fma.f64 (pow.f64 x 4) -1/3 (fma.f64 (pow.f64 x 6) 2/45 (*.f64 x x)))
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (+.f64 (*.f64 -1/315 (pow.f64 x 8)) (+.f64 (*.f64 2/45 (pow.f64 x 6)) (pow.f64 x 2))))
(fma.f64 -1/3 (pow.f64 x 4) (fma.f64 -1/315 (pow.f64 x 8) (fma.f64 2/45 (pow.f64 x 6) (*.f64 x x))))
(fma.f64 (pow.f64 x 4) -1/3 (fma.f64 -1/315 (pow.f64 x 8) (fma.f64 x x (*.f64 (pow.f64 x 6) 2/45))))
(fma.f64 (pow.f64 x 4) -1/3 (fma.f64 x x (fma.f64 (pow.f64 x 6) 2/45 (*.f64 -1/315 (pow.f64 x 8)))))
(fma.f64 (pow.f64 x 4) -1/3 (fma.f64 x x (fma.f64 -1/315 (pow.f64 x 8) (*.f64 (pow.f64 x 6) 2/45))))
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(pow.f64 (sin.f64 x) 2)
(*.f64 1/2 (pow.f64 x 2))
(*.f64 1/2 (*.f64 x x))
(*.f64 x (*.f64 1/2 x))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4)))
(fma.f64 1/2 (*.f64 x x) (*.f64 -1/24 (pow.f64 x 4)))
(fma.f64 -1/24 (pow.f64 x 4) (*.f64 x (*.f64 1/2 x)))
(*.f64 (*.f64 x x) (fma.f64 -1/24 (*.f64 x x) 1/2))
(*.f64 x (*.f64 x (fma.f64 -1/24 (*.f64 x x) 1/2)))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (*.f64 1/720 (pow.f64 x 6))))
(fma.f64 -1/24 (pow.f64 x 4) (fma.f64 1/720 (pow.f64 x 6) (*.f64 x (*.f64 1/2 x))))
(*.f64 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2)))
(fma.f64 1/720 (pow.f64 x 6) (*.f64 x (*.f64 x (fma.f64 -1/24 (*.f64 x x) 1/2))))
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8)))))
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (fma.f64 1/720 (pow.f64 x 6) (*.f64 -1/40320 (pow.f64 x 8)))))
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (fma.f64 -1/40320 (pow.f64 x 8) (*.f64 1/720 (pow.f64 x 6)))))
(fma.f64 -1/24 (pow.f64 x 4) (fma.f64 1/2 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 6) (*.f64 -1/40320 (pow.f64 x 8)))))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(*.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(*.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(*.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(*.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (cos.f64 x) 1))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(*.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (cos.f64 x) 1))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(*.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (cos.f64 x) 1))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(*.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 (cos.f64 x) 1))
(/.f64 (pow.f64 (sin.f64 x) 2) (+.f64 1 (cos.f64 x)))
(*.f64 (tan.f64 (/.f64 x 2)) (sin.f64 x))
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2)))

prune594.0ms (10%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New2146220
Fresh628
Picked101
Done000
Total2218229
Error
0b
Counts
229 → 8
Alt Table
StatusErrorProgram
17.4b
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (exp.f64 (log1p.f64 (cos.f64 x)))) (*.f64 x x))
31.8b
(fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2))
18.0b
(/.f64 (/.f64 1 (/.f64 (+.f64 1 (cos.f64 x)) (*.f64 (sin.f64 x) (sin.f64 x)))) (*.f64 x x))
17.2b
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
17.2b
(/.f64 (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) (*.f64 x x))
31.0b
(*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))
16.7b
(*.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) x))
17.4b
(/.f64 (*.f64 (pow.f64 (sin.f64 x) 2) (/.f64 1 (+.f64 1 (cos.f64 x)))) (*.f64 x x))
Compiler

Compiled 4092 to 2252 computations (45% saved)

localize14.0ms (0.2%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) x))
0.2b
(pow.f64 (sin.f64 x) 2)
0.4b
(+.f64 1 (cos.f64 x))
15.8b
(/.f64 (pow.f64 (sin.f64 x) 2) x)

series4.0ms (0.1%)

Counts
3 → 20
Calls

9 calls:

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

rewrite66.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
633×log-prod_binary64
319×pow2_binary64
225×pow1/3_binary64
221×log-div_binary64
217×expm1-udef_binary64
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01238
126827
2372427
Stop Event
node limit
Counts
3 → 125
Calls
Call 1
Inputs
(/.f64 (pow.f64 (sin.f64 x) 2) x)
(pow.f64 (sin.f64 x) 2)
(*.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) x))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (/.f64 (pow.f64 (sin.f64 x) 2) x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x))) 2)) (log.f64 (cbrt.f64 (exp.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))) (log.f64 (sqrt.f64 (exp.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sin.f64 x) (*.f64 (sin.f64 x) (/.f64 1 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sin.f64 x) 2) (/.f64 1 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 (pow.f64 (sin.f64 x) 2) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (*.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (/.f64 1 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)) (pow.f64 (cbrt.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)) 2) (cbrt.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) (sqrt.f64 x)) (/.f64 (sin.f64 x) (sqrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (/.f64 1 (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 x) (pow.f64 (sin.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (cbrt.f64 (*.f64 x x))) (/.f64 (pow.f64 (sin.f64 x) 2) (cbrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 x)) (/.f64 (pow.f64 (sin.f64 x) 2) (sqrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) 1) (/.f64 (sin.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) 1) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) (cbrt.f64 (*.f64 x x))) (/.f64 (sin.f64 x) (cbrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (cbrt.f64 (*.f64 x x))) (cbrt.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (sqrt.f64 x)) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (sqrt.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (pow.f64 (sin.f64 x) 4) (*.f64 x x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (sin.f64 x) (sqrt.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 x (pow.f64 (sin.f64 x) 2)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (pow.f64 (pow.f64 (sin.f64 x) 3) 2) (pow.f64 x 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (/.f64 x (pow.f64 (sin.f64 x) 2)) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (pow.f64 (sin.f64 x) 2) (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 (pow.f64 (sin.f64 x) 4) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (pow.f64 (sin.f64 x) 3) 2) (pow.f64 x 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (neg.f64 (pow.f64 (cos.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (neg.f64 (cos.f64 x)) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (pow.f64 (sin.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (pow.f64 (sin.f64 x) 2))) 2)) (log.f64 (cbrt.f64 (exp.f64 (pow.f64 (sin.f64 x) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (pow.f64 (sin.f64 x) 2)))) (log.f64 (sqrt.f64 (exp.f64 (pow.f64 (sin.f64 x) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 1 (pow.f64 (cos.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (pow.f64 (sin.f64 x) 2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 1/2 (*.f64 1/2 (cos.f64 (+.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sin.f64 x) (sin.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sin.f64 x) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (sin.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (cbrt.f64 (pow.f64 (sin.f64 x) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (*.f64 (cbrt.f64 (sin.f64 x)) (sin.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (pow.f64 (cbrt.f64 (sin.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (sin.f64 x)) (*.f64 (sqrt.f64 (sin.f64 x)) (sin.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (sin.f64 x)) 3) (sqrt.f64 (sin.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sin.f64 x) (pow.f64 (cbrt.f64 (sin.f64 x)) 2)) (cbrt.f64 (sin.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (cos.f64 (-.f64 x x)) (cos.f64 (+.f64 x x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (pow.f64 (cos.f64 x) 2) 3)) (+.f64 1 (+.f64 (pow.f64 (pow.f64 (cos.f64 x) 2) 2) (pow.f64 (cos.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (pow.f64 (cos.f64 x) 2) 2)) (+.f64 1 (pow.f64 (cos.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (sin.f64 x) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (sin.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (pow.f64 (sin.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (sin.f64 x) 3) 2))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (sin.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 2 (log.f64 (sin.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 2 (log.f64 (sin.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (sin.f64 x) 2)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))))) (log.f64 (sqrt.f64 (exp.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (fma.f64 x (cos.f64 x) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (fma.f64 x (cos.f64 x) x) x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (sin.f64 x) 2) (/.f64 (*.f64 x x) (/.f64 1 (+.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (sin.f64 x) 2) (/.f64 x (/.f64 1 (fma.f64 x (cos.f64 x) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (fma.f64 x (cos.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (*.f64 (/.f64 x (pow.f64 (sin.f64 x) 2)) (fma.f64 x (cos.f64 x) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (*.f64 (fma.f64 x (cos.f64 x) x) (/.f64 x (pow.f64 (sin.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (*.f64 x x) (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 x (/.f64 (-.f64 1 (cos.f64 x)) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) (*.f64 (/.f64 x (pow.f64 (sin.f64 x) 2)) x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) (*.f64 x (/.f64 x (pow.f64 (sin.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 1 (fma.f64 x (cos.f64 x) x)) (/.f64 x (pow.f64 (sin.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (*.f64 (fma.f64 x (cos.f64 x) x) (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 -1 (+.f64 1 (cos.f64 x))) (*.f64 (/.f64 x (pow.f64 (sin.f64 x) 2)) (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (-.f64 1 (cos.f64 x)) x) x)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (cos.f64 x))) (neg.f64 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (/.f64 (-.f64 1 (cos.f64 x)) x)) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) 1) (*.f64 (neg.f64 x) (fma.f64 x (cos.f64 x) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (/.f64 1 (+.f64 1 (cos.f64 x)))) (*.f64 (neg.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (pow.f64 (sin.f64 x) 2) (/.f64 -1 (+.f64 1 (cos.f64 x)))) (*.f64 x (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (/.f64 -1 (+.f64 1 (cos.f64 x)))) (pow.f64 (neg.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (/.f64 -1 (+.f64 1 (cos.f64 x))) (pow.f64 (sin.f64 x) 2)) (*.f64 (neg.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (/.f64 -1 (+.f64 1 (cos.f64 x))) 1) (*.f64 (neg.f64 x) (/.f64 x (pow.f64 (sin.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) (neg.f64 (pow.f64 (sin.f64 x) 2))) (*.f64 x (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (/.f64 -1 (+.f64 1 (cos.f64 x))) (neg.f64 (pow.f64 (sin.f64 x) 2))) (pow.f64 (neg.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (/.f64 (-.f64 1 (cos.f64 x)) x) 1) x)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (/.f64 (-.f64 1 (cos.f64 x)) x) (cbrt.f64 (*.f64 x x))) (cbrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (/.f64 (-.f64 1 (cos.f64 x)) x) (sqrt.f64 x)) (sqrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (/.f64 1 (fma.f64 x (cos.f64 x) x))) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (/.f64 -1 (+.f64 1 (cos.f64 x))) (/.f64 (pow.f64 (sin.f64 x) 2) x)) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (/.f64 -1 (+.f64 1 (cos.f64 x)))) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (/.f64 1 (fma.f64 x (cos.f64 x) x)) (neg.f64 (pow.f64 (sin.f64 x) 2))) (neg.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) 3) (pow.f64 (/.f64 1 (fma.f64 x (cos.f64 x) x)) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 (/.f64 1 (fma.f64 x (cos.f64 x) x)) 3) (pow.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) 3)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (/.f64 x (pow.f64 (sin.f64 x) 2)) (fma.f64 x (cos.f64 x) x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (fma.f64 x (cos.f64 x) x) (/.f64 x (pow.f64 (sin.f64 x) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (*.f64 x x) (-.f64 1 (cos.f64 x))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 x (/.f64 (-.f64 1 (cos.f64 x)) x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) 3) (pow.f64 (/.f64 1 (fma.f64 x (cos.f64 x) x)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (/.f64 1 (fma.f64 x (cos.f64 x) x)) 3) (pow.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))))))))

simplify33.0ms (0.6%)

Algorithm
egg-herbie
Rules
920×times-frac_binary64
915×fma-def_binary64
512×associate-/l*_binary64
463×distribute-lft-out_binary64
388×unswap-sqr_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
056316
1140314
2347288
31068286
43233286
Stop Event
node limit
Counts
145 → 150
Calls
Call 1
Inputs
x
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(+.f64 (*.f64 2/45 (pow.f64 x 5)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(+.f64 (*.f64 -1/315 (pow.f64 x 7)) (+.f64 (*.f64 2/45 (pow.f64 x 5)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)))
(pow.f64 x 2)
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (pow.f64 x 2))
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (+.f64 (*.f64 2/45 (pow.f64 x 6)) (pow.f64 x 2)))
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (+.f64 (*.f64 -1/315 (pow.f64 x 8)) (+.f64 (*.f64 2/45 (pow.f64 x 6)) (pow.f64 x 2))))
1/2
(+.f64 1/2 (*.f64 -1/24 (pow.f64 x 2)))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (*.f64 1/720 (pow.f64 x 4)))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
Outputs
x
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)
(fma.f64 -1/3 (pow.f64 x 3) x)
(+.f64 (*.f64 2/45 (pow.f64 x 5)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x))
(fma.f64 2/45 (pow.f64 x 5) (fma.f64 -1/3 (pow.f64 x 3) x))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/45 (pow.f64 x 5) x))
(+.f64 (*.f64 -1/315 (pow.f64 x 7)) (+.f64 (*.f64 2/45 (pow.f64 x 5)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x)))
(fma.f64 -1/315 (pow.f64 x 7) (fma.f64 2/45 (pow.f64 x 5) (fma.f64 -1/3 (pow.f64 x 3) x)))
(fma.f64 2/45 (pow.f64 x 5) (fma.f64 -1/315 (pow.f64 x 7) (fma.f64 -1/3 (pow.f64 x 3) x)))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/45 (pow.f64 x 5) (fma.f64 -1/315 (pow.f64 x 7) x)))
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 -1/315 (pow.f64 x 7) (fma.f64 2/45 (pow.f64 x 5) x)))
(pow.f64 x 2)
(*.f64 x x)
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (pow.f64 x 2))
(fma.f64 -1/3 (pow.f64 x 4) (*.f64 x x))
(fma.f64 x x (*.f64 -1/3 (pow.f64 x 4)))
(*.f64 x (fma.f64 -1/3 (pow.f64 x 3) x))
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (+.f64 (*.f64 2/45 (pow.f64 x 6)) (pow.f64 x 2)))
(fma.f64 -1/3 (pow.f64 x 4) (fma.f64 2/45 (pow.f64 x 6) (*.f64 x x)))
(fma.f64 -1/3 (pow.f64 x 4) (fma.f64 x x (*.f64 2/45 (pow.f64 x 6))))
(fma.f64 x x (fma.f64 2/45 (pow.f64 x 6) (*.f64 -1/3 (pow.f64 x 4))))
(+.f64 (*.f64 -1/3 (pow.f64 x 4)) (+.f64 (*.f64 -1/315 (pow.f64 x 8)) (+.f64 (*.f64 2/45 (pow.f64 x 6)) (pow.f64 x 2))))
(fma.f64 -1/3 (pow.f64 x 4) (fma.f64 -1/315 (pow.f64 x 8) (fma.f64 2/45 (pow.f64 x 6) (*.f64 x x))))
(fma.f64 -1/3 (pow.f64 x 4) (fma.f64 -1/315 (pow.f64 x 8) (fma.f64 x x (*.f64 2/45 (pow.f64 x 6)))))
(fma.f64 -1/3 (pow.f64 x 4) (fma.f64 2/45 (pow.f64 x 6) (fma.f64 x x (*.f64 -1/315 (pow.f64 x 8)))))
(fma.f64 x x (fma.f64 2/45 (pow.f64 x 6) (*.f64 (pow.f64 x 4) (fma.f64 -1/315 (pow.f64 x 4) -1/3))))
(fma.f64 x x (fma.f64 (pow.f64 x 4) (fma.f64 -1/315 (pow.f64 x 4) -1/3) (*.f64 2/45 (pow.f64 x 6))))
1/2
(+.f64 1/2 (*.f64 -1/24 (pow.f64 x 2)))
(+.f64 1/2 (*.f64 (*.f64 x x) -1/24))
(fma.f64 (*.f64 x x) -1/24 1/2)
(fma.f64 x (*.f64 x -1/24) 1/2)
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (*.f64 (pow.f64 x 4) 1/720)))
(+.f64 1/2 (fma.f64 (*.f64 x x) -1/24 (*.f64 (pow.f64 x 4) 1/720)))
(fma.f64 x (*.f64 x -1/24) (fma.f64 (pow.f64 x 4) 1/720 1/2))
(fma.f64 (*.f64 x x) (fma.f64 (*.f64 x x) 1/720 -1/24) 1/2)
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (*.f64 1/720 (pow.f64 x 4)))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (fma.f64 -1/40320 (pow.f64 x 6) (*.f64 (pow.f64 x 4) 1/720))))
(+.f64 (fma.f64 (*.f64 x x) -1/24 1/2) (fma.f64 (pow.f64 x 4) 1/720 (*.f64 (pow.f64 x 6) -1/40320)))
(+.f64 1/2 (fma.f64 x (*.f64 x -1/24) (fma.f64 (pow.f64 x 4) 1/720 (*.f64 (pow.f64 x 6) -1/40320))))
(fma.f64 x (*.f64 x -1/24) (fma.f64 (pow.f64 x 6) -1/40320 (fma.f64 (pow.f64 x 4) 1/720 1/2)))
(fma.f64 (*.f64 x x) (fma.f64 (*.f64 x x) 1/720 -1/24) (fma.f64 (pow.f64 x 6) -1/40320 1/2))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))

prune473.0ms (7.9%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New2072209
Fresh257
Picked011
Done000
Total2098217
Error
0b
Counts
217 → 8
Alt Table
StatusErrorProgram
17.2b
(/.f64 (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) (*.f64 x x))
17.2b
(/.f64 (pow.f64 (sin.f64 x) 2) (/.f64 (*.f64 x x) (/.f64 1 (+.f64 1 (cos.f64 x)))))
17.2b
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
17.4b
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (exp.f64 (log1p.f64 (cos.f64 x)))) (*.f64 x x))
31.8b
(fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2))
18.0b
(/.f64 (/.f64 1 (/.f64 (+.f64 1 (cos.f64 x)) (*.f64 (sin.f64 x) (sin.f64 x)))) (*.f64 x x))
31.0b
(*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))
16.7b
(*.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) x))
Compiler

Compiled 4205 to 2615 computations (37.8% saved)

localize9.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2))
0.2b
(pow.f64 (sin.f64 x) 2)
0.4b
(+.f64 (cos.f64 x) 1)
16.9b
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))

series3.0ms (0.1%)

Counts
3 → 24
Calls

9 calls:

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

rewrite67.0ms (1.1%)

Algorithm
batch-egg-rewrite
Rules
523×log-prod_binary64
401×exp-prod_binary64
334×pow-prod-down_binary64
272×pow2_binary64
190×pow1/3_binary64
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01138
123537
2295330
Stop Event
node limit
Counts
3 → 150
Calls
Call 1
Inputs
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(+.f64 (cos.f64 x) 1)
(*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2))
Outputs
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 (pow.f64 x -2)) (-.f64 1 (cos.f64 x)))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (pow.f64 x -2)) (-.f64 1 (cos.f64 x))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (pow.f64 x -2)) (-.f64 1 (cos.f64 x))))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (pow.f64 x -2)) (-.f64 1 (cos.f64 x))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sin.f64 x) (*.f64 (sin.f64 x) (/.f64 (pow.f64 x -2) (+.f64 (cos.f64 x) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sin.f64 x) 2) (/.f64 (pow.f64 x -2) (+.f64 (cos.f64 x) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) (cbrt.f64 (pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 4)) (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (*.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (/.f64 (pow.f64 x -2) (+.f64 (cos.f64 x) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (/.f64 1 (*.f64 (+.f64 (cos.f64 x) 1) (neg.f64 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 x -2) (+.f64 (cos.f64 x) 1)) (pow.f64 (sin.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) 1) (/.f64 (sin.f64 x) (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (tan.f64 (/.f64 x 2)) (/.f64 (sin.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) 1) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (+.f64 (cos.f64 x) 1)) (/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (+.f64 (cos.f64 x) 1)) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 x -2) (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (*.f64 x x)) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (+.f64 (cos.f64 x) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sin.f64 x) (cbrt.f64 (pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 4))) (/.f64 (sin.f64 x) (cbrt.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1)))) -2) (/.f64 (pow.f64 (sin.f64 x) 2) (cbrt.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (cbrt.f64 (pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 4))) (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1)))) (/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 (sin.f64 x) 4)) (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1)))) (/.f64 (pow.f64 (cbrt.f64 (sin.f64 x)) 2) (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 4) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 6) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (*.f64 x x) (-.f64 1 (cos.f64 x))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (pow.f64 (sin.f64 x) 6) (pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 6)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (/.f64 (*.f64 x x) (-.f64 1 (cos.f64 x))) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))) 2)) (cbrt.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))) (sqrt.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (neg.f64 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (pow.f64 x -2)) (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 6))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (sin.f64 x) 6) (pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 6)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (pow.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x) 6)) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (/.f64 (*.f64 x x) (-.f64 1 (cos.f64 x)))) -1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (log.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))))))
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (+.f64 (cos.f64 x) 1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (cos.f64 x) 2) (+.f64 (cos.f64 x) -1)) (/.f64 1 (+.f64 (cos.f64 x) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (cos.f64 x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (cos.f64 x) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 (cos.f64 x) 1)) (pow.f64 (cbrt.f64 (+.f64 (cos.f64 x) 1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 (cos.f64 x) 1)) 2) (cbrt.f64 (+.f64 (cos.f64 x) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 (cos.f64 x) 1)) (sqrt.f64 (+.f64 (cos.f64 x) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (/.f64 1 (+.f64 (cos.f64 x) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3)) (/.f64 1 (+.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (sin.f64 x) 2) (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x))) (+.f64 1 (pow.f64 (cos.f64 x) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (cos.f64 x) -1) (neg.f64 (pow.f64 (sin.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (+.f64 (cos.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (-.f64 (pow.f64 (cos.f64 x) 2) (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3))) (neg.f64 (+.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (neg.f64 (pow.f64 (sin.f64 x) 2))) (neg.f64 (+.f64 (cos.f64 x) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (cos.f64 x) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (log1p.f64 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 (cos.f64 x) 1) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 (cos.f64 x) 1) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 (cos.f64 x) 1)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 (cos.f64 x) 1)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (+.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x))) (+.f64 1 (pow.f64 (cos.f64 x) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (+.f64 (cos.f64 x) -1) (neg.f64 (pow.f64 (sin.f64 x) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log1p.f64 (cos.f64 x))) 2)) (cbrt.f64 (log1p.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log1p.f64 (cos.f64 x)))) (sqrt.f64 (log1p.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 (cos.f64 x) 1) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (cos.f64 x) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (+.f64 (cos.f64 x) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 (cos.f64 x) 1) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 (cos.f64 x) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log1p.f64 (cos.f64 x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log1p.f64 (cos.f64 x))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/3 (log1p.f64 (cos.f64 x))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/2 (log1p.f64 (cos.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (log1p.f64 (cos.f64 x)) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 x) 1 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (cos.f64 x)) (cbrt.f64 (pow.f64 (cos.f64 x) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 x) 2)) (cbrt.f64 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 x) 2)) (*.f64 (cbrt.f64 (cos.f64 x)) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 x)) (sqrt.f64 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 x)) (*.f64 (sqrt.f64 (cos.f64 x)) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (cos.f64 x) 1)))))))
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x x) (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x x) (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 x) (*.f64 x x)) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 x x) (cos.f64 x)) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 x) (*.f64 x (+.f64 (cos.f64 x) 1)))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 x) (*.f64 x (+.f64 (cos.f64 x) 1))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 x) (*.f64 x (+.f64 (cos.f64 x) 1))))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 x) (*.f64 x (+.f64 (cos.f64 x) 1))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 1 (pow.f64 (cos.f64 x) 3)) (*.f64 x x)) (+.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (neg.f64 (pow.f64 (sin.f64 x) 2)) (*.f64 x x)) (+.f64 (cos.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 x x) (+.f64 1 (pow.f64 (cos.f64 x) 3))) (+.f64 (pow.f64 (cos.f64 x) 2) (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 x x) (neg.f64 (pow.f64 (sin.f64 x) 2))) (+.f64 (cos.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 4) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 6) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x)))) 2)) (cbrt.f64 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x))))) (sqrt.f64 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 x) (*.f64 x (+.f64 (cos.f64 x) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 x (sqrt.f64 (+.f64 (cos.f64 x) 1))) 6))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x)))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/3 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (+.f64 (log.f64 x) (*.f64 1/2 (log1p.f64 (cos.f64 x)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (fma.f64 2 (log.f64 x) (log1p.f64 (cos.f64 x))) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x x (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x x (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 x) (*.f64 x x) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x x) (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x x) (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x x) (cos.f64 x) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x x) 1 (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 x x) 1 (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 2) (*.f64 (cbrt.f64 x) x) (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 2) (*.f64 (cbrt.f64 x) x) (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cbrt.f64 x) x) (pow.f64 (cbrt.f64 x) 2) (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cbrt.f64 x) x) (pow.f64 (cbrt.f64 x) 2) (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (pow.f64 x 3/2) (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 x) (pow.f64 x 3/2) (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x 3/2) (sqrt.f64 x) (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x 3/2) (sqrt.f64 x) (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 5) (cbrt.f64 x) (*.f64 (cos.f64 x) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 x) 5) (cbrt.f64 x) (*.f64 (*.f64 x x) (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 x (*.f64 x (+.f64 (cos.f64 x) 1)))))))))

simplify45.0ms (0.8%)

Algorithm
egg-herbie
Rules
747×associate-/l*_binary64
720×fma-def_binary64
704×distribute-lft-out_binary64
663×distribute-rgt-out_binary64
628×associate-*l*_binary64
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
052326
1124322
2310306
3982294
43986294
Stop Event
node limit
Counts
174 → 177
Calls
Call 1
Inputs
1/2
(+.f64 1/2 (*.f64 -1/24 (pow.f64 x 2)))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (*.f64 1/720 (pow.f64 x 4)))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
2
(+.f64 2 (*.f64 -1/2 (pow.f64 x 2)))
(+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4))))
(+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 -1/720 (pow.f64 x 6)))))
(+.f64 1 (cos.f64 x))
(+.f64 1 (cos.f64 x))
(+.f64 1 (cos.f64 x))
(+.f64 1 (cos.f64 x))
(*.f64 2 (pow.f64 x 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) (*.f64 -1/2 (pow.f64 x 4)))
(+.f64 (*.f64 2 (pow.f64 x 2)) (+.f64 (*.f64 -1/2 (pow.f64 x 4)) (*.f64 1/24 (pow.f64 x 6))))
(+.f64 (*.f64 2 (pow.f64 x 2)) (+.f64 (*.f64 -1/2 (pow.f64 x 4)) (+.f64 (*.f64 -1/720 (pow.f64 x 8)) (*.f64 1/24 (pow.f64 x 6)))))
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
Outputs
1/2
(+.f64 1/2 (*.f64 -1/24 (pow.f64 x 2)))
(+.f64 1/2 (*.f64 -1/24 (*.f64 x x)))
(fma.f64 -1/24 (*.f64 x x) 1/2)
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 (fma.f64 -1/24 (*.f64 x x) 1/2) (*.f64 1/720 (pow.f64 x 4)))
(fma.f64 -1/24 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) 1/2))
(fma.f64 (*.f64 x x) (fma.f64 x (*.f64 x 1/720) -1/24) 1/2)
(+.f64 1/2 (+.f64 (*.f64 -1/24 (pow.f64 x 2)) (+.f64 (*.f64 -1/40320 (pow.f64 x 6)) (*.f64 1/720 (pow.f64 x 4)))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (fma.f64 -1/40320 (pow.f64 x 6) (*.f64 1/720 (pow.f64 x 4)))))
(+.f64 (fma.f64 -1/24 (*.f64 x x) 1/2) (fma.f64 -1/40320 (pow.f64 x 6) (*.f64 1/720 (pow.f64 x 4))))
(+.f64 1/2 (fma.f64 -1/24 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) (*.f64 -1/40320 (pow.f64 x 6)))))
(fma.f64 -1/24 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/40320 (pow.f64 x 6) 1/2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2)))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 x (*.f64 x (+.f64 1 (cos.f64 x)))))
(*.f64 (/.f64 (sin.f64 x) (*.f64 x x)) (tan.f64 (/.f64 x 2)))
(*.f64 (sin.f64 x) (/.f64 (tan.f64 (/.f64 x 2)) (*.f64 x x)))
2
(+.f64 2 (*.f64 -1/2 (pow.f64 x 2)))
(+.f64 2 (*.f64 (*.f64 x x) -1/2))
(fma.f64 (*.f64 x x) -1/2 2)
(+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4))))
(+.f64 2 (fma.f64 -1/2 (*.f64 x x) (*.f64 (pow.f64 x 4) 1/24)))
(+.f64 (fma.f64 (*.f64 x x) -1/2 2) (*.f64 (pow.f64 x 4) 1/24))
(fma.f64 x (*.f64 x -1/2) (fma.f64 (pow.f64 x 4) 1/24 2))
(fma.f64 (*.f64 x x) (fma.f64 (*.f64 x x) 1/24 -1/2) 2)
(+.f64 2 (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 -1/720 (pow.f64 x 6)))))
(+.f64 2 (fma.f64 -1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) (*.f64 (pow.f64 x 6) -1/720))))
(+.f64 2 (fma.f64 (*.f64 x x) -1/2 (fma.f64 (pow.f64 x 4) 1/24 (*.f64 (pow.f64 x 6) -1/720))))
(+.f64 2 (fma.f64 x (*.f64 x -1/2) (fma.f64 (pow.f64 x 6) -1/720 (*.f64 (pow.f64 x 4) 1/24))))
(fma.f64 x (*.f64 x -1/2) (fma.f64 (pow.f64 x 4) 1/24 (fma.f64 (pow.f64 x 6) -1/720 2)))
(fma.f64 (*.f64 x x) (fma.f64 (*.f64 x x) 1/24 -1/2) (fma.f64 (pow.f64 x 6) -1/720 2))
(+.f64 1 (cos.f64 x))
(+.f64 1 (cos.f64 x))
(+.f64 1 (cos.f64 x))
(+.f64 1 (cos.f64 x))
(*.f64 2 (pow.f64 x 2))
(*.f64 2 (*.f64 x x))
(*.f64 x (*.f64 x 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) (*.f64 -1/2 (pow.f64 x 4)))
(fma.f64 2 (*.f64 x x) (*.f64 (pow.f64 x 4) -1/2))
(fma.f64 x (*.f64 x 2) (*.f64 (pow.f64 x 4) -1/2))
(*.f64 x (*.f64 x (fma.f64 (*.f64 x x) -1/2 2)))
(fma.f64 (pow.f64 x 4) -1/2 (*.f64 x (*.f64 x 2)))
(+.f64 (*.f64 2 (pow.f64 x 2)) (+.f64 (*.f64 -1/2 (pow.f64 x 4)) (*.f64 1/24 (pow.f64 x 6))))
(fma.f64 2 (*.f64 x x) (fma.f64 -1/2 (pow.f64 x 4) (*.f64 (pow.f64 x 6) 1/24)))
(fma.f64 2 (*.f64 x x) (fma.f64 (pow.f64 x 6) 1/24 (*.f64 (pow.f64 x 4) -1/2)))
(fma.f64 x (*.f64 x 2) (fma.f64 (pow.f64 x 6) 1/24 (*.f64 (pow.f64 x 4) -1/2)))
(*.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/2) (fma.f64 (pow.f64 x 4) 1/24 2)))
(*.f64 (*.f64 x x) (fma.f64 (*.f64 x x) (fma.f64 (*.f64 x x) 1/24 -1/2) 2))
(+.f64 (*.f64 2 (pow.f64 x 2)) (+.f64 (*.f64 -1/2 (pow.f64 x 4)) (+.f64 (*.f64 -1/720 (pow.f64 x 8)) (*.f64 1/24 (pow.f64 x 6)))))
(fma.f64 2 (*.f64 x x) (fma.f64 -1/2 (pow.f64 x 4) (fma.f64 -1/720 (pow.f64 x 8) (*.f64 (pow.f64 x 6) 1/24))))
(fma.f64 2 (*.f64 x x) (fma.f64 (pow.f64 x 4) -1/2 (fma.f64 (pow.f64 x 6) 1/24 (*.f64 -1/720 (pow.f64 x 8)))))
(fma.f64 x (*.f64 x 2) (fma.f64 (pow.f64 x 4) -1/2 (fma.f64 (pow.f64 x 6) 1/24 (*.f64 -1/720 (pow.f64 x 8)))))
(*.f64 (*.f64 x x) (fma.f64 (*.f64 x x) (fma.f64 (*.f64 x x) 1/24 -1/2) (fma.f64 (pow.f64 x 6) -1/720 2)))
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
(*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x)))
(*.f64 x (*.f64 x (+.f64 1 (cos.f64 x))))
(*.f64 x (fma.f64 x (cos.f64 x) x))
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
(*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x)))
(*.f64 x (*.f64 x (+.f64 1 (cos.f64 x))))
(*.f64 x (fma.f64 x (cos.f64 x) x))
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
(*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x)))
(*.f64 x (*.f64 x (+.f64 1 (cos.f64 x))))
(*.f64 x (fma.f64 x (cos.f64 x) x))
(*.f64 (+.f64 1 (cos.f64 x)) (pow.f64 x 2))
(*.f64 (*.f64 x x) (+.f64 1 (cos.f64 x)))
(*.f64 x (*.f64 x (+.f64 1 (cos.f64 x))))
(*.f64 x (fma.f64 x (cos.f64 x) x))

prune600.0ms (10%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New2121213
Fresh156
Picked011
Done011
Total2138221
Error
0b
Counts
221 → 8
Alt Table
StatusErrorProgram
17.2b
(/.f64 (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) (*.f64 x x))
17.2b
(/.f64 (pow.f64 (sin.f64 x) 2) (/.f64 (*.f64 x x) (/.f64 1 (+.f64 1 (cos.f64 x)))))
17.2b
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
17.4b
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (exp.f64 (log1p.f64 (cos.f64 x)))) (*.f64 x x))
31.8b
(fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2))
18.0b
(/.f64 (/.f64 1 (/.f64 (+.f64 1 (cos.f64 x)) (*.f64 (sin.f64 x) (sin.f64 x)))) (*.f64 x x))
16.7b
(*.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) x))
31.0b
(*.f64 (pow.f64 x -2) (-.f64 1 (cos.f64 x)))
Compiler

Compiled 3735 to 2283 computations (38.9% saved)

regimes55.0ms (0.9%)

Accuracy

Total -62.4b remaining (-37617%)

Threshold costs -62.4b (-37617%)

Counts
19 → 3
Calls
Call 1
Inputs
(*.f64 (pow.f64 x -2) (-.f64 1 (cos.f64 x)))
(/.f64 (pow.f64 (sin.f64 x) 2) (/.f64 (*.f64 x x) (/.f64 1 (+.f64 1 (cos.f64 x)))))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (exp.f64 (log1p.f64 (cos.f64 x)))) (*.f64 x x))
(/.f64 (pow.f64 (sin.f64 x) 2) (*.f64 (+.f64 (cos.f64 x) 1) (pow.f64 x 2)))
(/.f64 (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) (*.f64 x x))
(*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))
(*.f64 (/.f64 (pow.f64 (sin.f64 x) 2) x) (/.f64 (/.f64 1 (+.f64 1 (cos.f64 x))) x))
(/.f64 (*.f64 (pow.f64 (sin.f64 x) 2) (/.f64 1 (+.f64 1 (cos.f64 x)))) (*.f64 x x))
(/.f64 (/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) (*.f64 x x))
(*.f64 (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) 1) (/.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (*.f64 x x)))
(/.f64 (/.f64 1 (/.f64 (+.f64 1 (cos.f64 x)) (*.f64 (sin.f64 x) (sin.f64 x)))) (*.f64 x x))
(/.f64 (exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) (*.f64 x x))
(*.f64 (pow.f64 (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))) 2) (cbrt.f64 (*.f64 (-.f64 1 (cos.f64 x)) (pow.f64 x -2))))
(/.f64 (pow.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3) 1/3) (*.f64 x x))
(fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2))
(-.f64 (pow.f64 x -2) (*.f64 (cos.f64 x) (pow.f64 x -2)))
(*.f64 (/.f64 1 x) (/.f64 (-.f64 1 (cos.f64 x)) x))
(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
Outputs
(*.f64 (pow.f64 x -2) (-.f64 1 (cos.f64 x)))
(fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2))
(-.f64 (pow.f64 x -2) (*.f64 (cos.f64 x) (pow.f64 x -2)))
Results
40.0ms0.2bx
8.0ms0.7b(/.f64 (-.f64 1 (cos.f64 x)) (*.f64 x x))
Compiler

Compiled 252 to 140 computations (44.4% saved)

bsearch51.0ms (0.9%)

Algorithm
binary-search
Calls

2 calls:

26.0ms
x
25.0ms
x
Steps
ItersPointRange
0.00033956055970997177
∈ [
0.00033956055970997177
,
58115.16013679445
]
-1.6606336791038125
∈ [
-1.6606336791038125
,
-0.001406143780955167
]
Compiler

Compiled 13 to 9 computations (30.8% saved)

simplify3.0ms (0.1%)

Algorithm
egg-herbie
Rules
+-commutative_binary64
*-commutative_binary64
sub-neg_binary64
neg-sub0_binary64
neg-mul-1_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02554
13554
24754
35354
45754
55854
Stop Event
saturated
Calls
Call 1
Inputs
(if (<=.f64 x -3739414609205413/2251799813685248) (*.f64 (pow.f64 x -2) (-.f64 1 (cos.f64 x))) (if (<=.f64 x 6263786742495420/18446744073709551616) (fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2)) (-.f64 (pow.f64 x -2) (*.f64 (cos.f64 x) (pow.f64 x -2)))))
Outputs
(if (<=.f64 x -3739414609205413/2251799813685248) (*.f64 (pow.f64 x -2) (-.f64 1 (cos.f64 x))) (if (<=.f64 x 6263786742495420/18446744073709551616) (fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2)) (-.f64 (pow.f64 x -2) (*.f64 (cos.f64 x) (pow.f64 x -2)))))
(if (<=.f64 x -3739414609205413/2251799813685248) (*.f64 (pow.f64 x -2) (-.f64 1 (cos.f64 x))) (if (<=.f64 x 1565946685623855/4611686018427387904) (fma.f64 1/720 (pow.f64 x 4) (fma.f64 -1/24 (*.f64 x x) 1/2)) (-.f64 (pow.f64 x -2) (*.f64 (pow.f64 x -2) (cos.f64 x)))))

end33.0ms (0.6%)

Stop Event
fuel
Compiler

Compiled 76 to 54 computations (28.9% saved)

Profiling

Loading profile data...