tanhf (example 3.4)

Time bar (total: 4.5s)

start0.0ms (0%)

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

analyze102.0ms (2.3%)

Memory
38.8MiB live, 129.8MiB allocated; 8ms collecting garbage
Algorithm
search
Search
ProbabilityValidUnknownPreconditionInfiniteDomainCan'tIter
0%0%100%0%0%0%0%0
0%0%100%0%0%0%0%1
0%0%100%0%0%0%0%2
25%25%75%0%0%0%0%3
37.5%37.5%62.5%0%0%0%0%4
43.8%43.7%56.2%0%0%0%0%5
46.9%46.9%53.1%0%0%0%0%6
48.4%48.4%51.5%0%0%0%0%7
49.2%49.2%50.8%0%0%0%0%8
49.6%49.6%50.4%0%0%0%0%9
49.8%49.8%50.2%0%0%0%0%10
49.9%49.9%50.1%0%0%0%0%11
50%49.9%50%0%0%0%0%12
Compiler

Compiled 9 to 8 computations (11.1% saved)

sample2.2s (49.3%)

Memory
56.1MiB live, 1 680.5MiB allocated; 973ms collecting garbage
Samples
755.0ms4 079×0valid
742.0ms2 239×2valid
283.0ms639×3valid
133.0ms1 291×1valid
9.0ms4valid
Precisions
Click to see histograms. Total time spent on operations: 1.4s
ival-cos: 827.0ms (58.8% of total)
ival-sin: 170.0ms (12.1% of total)
adjust: 163.0ms (11.6% of total)
ival-div: 131.0ms (9.3% of total)
ival-sub: 103.0ms (7.3% of total)
ival-true: 6.0ms (0.4% of total)
exact: 5.0ms (0.4% of total)
ival-assert: 3.0ms (0.2% of total)
Bogosity

explain172.0ms (3.8%)

Memory
-38.1MiB live, 109.5MiB allocated; 30ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
690-2(-4.96137220901543e-158)(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
662(-5.0567083467005955e+34)4(-5.318795442965001e+20)(-.f64 #s(literal 1 binary64) (cos.f64 x))
00-0-#s(literal 1 binary64)
00-0-(cos.f64 x)
00-0-(sin.f64 x)
00-0-x
Explanations
Click to see full explanations table
OperatorSubexpressionExplanationCount
/.f64(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))u/n670
(-.f64 #s(literal 1 binary64) (cos.f64 x))underflow67
-.f64(-.f64 #s(literal 1 binary64) (cos.f64 x))cancellation646
Confusion
Predicted +Predicted -
+1294
-2121
Precision
0.9847328244274809
Recall
0.9699248120300752
Confusion?
Predicted +Predicted MaybePredicted -
+12940
-22119
Precision?
0.9708029197080292
Recall?
1.0
Freqs
test
numberfreq
0125
1131
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
49.0ms260×0valid
39.0ms144×2valid
14.0ms38×3valid
8.0ms68×1valid
2.0ms4valid
Compiler

Compiled 45 to 22 computations (51.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 95.0ms
ival-cos: 40.0ms (41.9% of total)
ival-sin: 34.0ms (35.6% of total)
adjust: 10.0ms (10.5% of total)
ival-div: 6.0ms (6.3% of total)
ival-sub: 5.0ms (5.2% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess187.0ms (4.2%)

Memory
35.2MiB live, 125.0MiB allocated; 10ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0811
1299
2718
31438
43778
514188
067
0104
1244
2374
3604
41314
56064
082884
Stop Event
iter limit
node limit
iter limit
node limit
Calls
Call 1
Inputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Outputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Symmetry

(negabs x)

Compiler

Compiled 7 to 6 computations (14.3% saved)

eval0.0ms (0%)

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

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

Memory
0.7MiB live, 0.7MiB allocated; 0ms collecting garbage
Alt Table
Click to see full alt table
StatusAccuracyProgram
53.2%
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Compiler

Compiled 7 to 6 computations (14.3% saved)

simplify135.0ms (3%)

Memory
-31.4MiB live, 81.6MiB allocated; 20ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(sin.f64 x)
cost-diff0
(cos.f64 x)
cost-diff0
(-.f64 #s(literal 1 binary64) (cos.f64 x))
cost-diff3
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0617
01014
12414
23714
36014
413114
560614
0828814
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(-.f64 #s(literal 1 binary64) (cos.f64 x))
#s(literal 1 binary64)
(cos.f64 x)
x
(sin.f64 x)
Outputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(-.f64 #s(literal 1 binary64) (cos.f64 x))
#s(literal 1 binary64)
(cos.f64 x)
x
(sin.f64 x)

localize53.0ms (1.2%)

Memory
10.9MiB live, 55.9MiB allocated; 3ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(sin.f64 x)
accuracy0.0
(cos.f64 x)
accuracy13.803312627542693
(-.f64 #s(literal 1 binary64) (cos.f64 x))
accuracy16.009243449437275
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Samples
20.0ms72×2valid
15.0ms130×0valid
7.0ms19×3valid
4.0ms34×1valid
1.0ms4valid
Compiler

Compiled 19 to 8 computations (57.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 38.0ms
ival-cos: 20.0ms (53.2% of total)
adjust: 5.0ms (13.3% of total)
ival-sin: 5.0ms (13.3% of total)
ival-sub: 4.0ms (10.6% of total)
ival-div: 3.0ms (8% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series2.0ms (0.1%)

Memory
3.3MiB live, 3.3MiB allocated; 0ms collecting garbage
Counts
4 → 20
Calls
Call 1
Inputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(-.f64 #s(literal 1 binary64) (cos.f64 x))
(cos.f64 x)
(sin.f64 x)
Outputs
(* 1/2 x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
(* 1/2 (pow x 2))
(* (pow x 2) (+ 1/2 (* -1/24 (pow x 2))))
(* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/720 (pow x 2)) 1/24))))
(* (pow x 2) (+ 1/2 (* (pow x 2) (- (* (pow x 2) (+ 1/720 (* -1/40320 (pow x 2)))) 1/24))))
1
(+ 1 (* -1/2 (pow x 2)))
(+ 1 (* (pow x 2) (- (* 1/24 (pow x 2)) 1/2)))
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/24 (* -1/720 (pow x 2)))) 1/2)))
x
(* x (+ 1 (* -1/6 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 1/120 (pow x 2)) 1/6))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))))
(/ (- 1 (cos x)) (sin x))
(- 1 (cos x))
(cos x)
(sin x)
Calls

3 calls:

TimeVariablePointExpression
1.0ms
x
@0
((/ (- 1 (cos x)) (sin x)) (- 1 (cos x)) (cos x) (sin x))
1.0ms
x
@-inf
((/ (- 1 (cos x)) (sin x)) (- 1 (cos x)) (cos x) (sin x))
1.0ms
x
@inf
((/ (- 1 (cos x)) (sin x)) (- 1 (cos x)) (cos x) (sin x))

simplify164.0ms (3.7%)

Memory
-29.0MiB live, 114.7MiB allocated; 24ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
079202
1266202
2794196
33337196
47629196
08018172
Stop Event
iter limit
node limit
Counts
20 → 19
Calls
Call 1
Inputs
(* 1/2 x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
(* 1/2 (pow x 2))
(* (pow x 2) (+ 1/2 (* -1/24 (pow x 2))))
(* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/720 (pow x 2)) 1/24))))
(* (pow x 2) (+ 1/2 (* (pow x 2) (- (* (pow x 2) (+ 1/720 (* -1/40320 (pow x 2)))) 1/24))))
1
(+ 1 (* -1/2 (pow x 2)))
(+ 1 (* (pow x 2) (- (* 1/24 (pow x 2)) 1/2)))
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/24 (* -1/720 (pow x 2)))) 1/2)))
x
(* x (+ 1 (* -1/6 (pow x 2))))
(* x (+ 1 (* (pow x 2) (- (* 1/120 (pow x 2)) 1/6))))
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))))
(/ (- 1 (cos x)) (sin x))
(- 1 (cos x))
(cos x)
(sin x)
Outputs
(* 1/2 x)
(*.f64 #s(literal 1/2 binary64) x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal 17/40320 binary64) (*.f64 x x) #s(literal 1/240 binary64)) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(* 1/2 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 1/2 binary64))
(* (pow x 2) (+ 1/2 (* -1/24 (pow x 2))))
(*.f64 (*.f64 (fma.f64 #s(literal -1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64)) x) x)
(* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/720 (pow x 2)) 1/24))))
(*.f64 (*.f64 (fma.f64 (fma.f64 #s(literal 1/720 binary64) (*.f64 x x) #s(literal -1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x) x)
(* (pow x 2) (+ 1/2 (* (pow x 2) (- (* (pow x 2) (+ 1/720 (* -1/40320 (pow x 2)))) 1/24))))
(*.f64 (*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal -1/40320 binary64) (*.f64 x x) #s(literal 1/720 binary64)) (*.f64 x x) #s(literal -1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x) x)
1
#s(literal 1 binary64)
(+ 1 (* -1/2 (pow x 2)))
(fma.f64 #s(literal -1/2 binary64) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (- (* 1/24 (pow x 2)) 1/2)))
(fma.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
(+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/24 (* -1/720 (pow x 2)))) 1/2)))
(fma.f64 (fma.f64 (fma.f64 #s(literal -1/720 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal -1/2 binary64)) (*.f64 x x) #s(literal 1 binary64))
x
(* x (+ 1 (* -1/6 (pow x 2))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal -1/6 binary64) x)
(* x (+ 1 (* (pow x 2) (- (* 1/120 (pow x 2)) 1/6))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 #s(literal 1/120 binary64) (*.f64 x x) #s(literal -1/6 binary64)) x)
(* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) (fma.f64 (fma.f64 #s(literal -1/5040 binary64) (*.f64 x x) #s(literal 1/120 binary64)) (*.f64 x x) #s(literal -1/6 binary64)) x)
(/ (- 1 (cos x)) (sin x))
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))
(- 1 (cos x))
(-.f64 #s(literal 1 binary64) (cos.f64 x))
(cos x)
(cos.f64 x)
(sin x)
(sin.f64 x)

rewrite68.0ms (1.5%)

Memory
-2.5MiB live, 44.4MiB allocated; 3ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0615
01012
14112
030212
Stop Event
iter limit
iter limit
iter limit
unsound
iter limit
Counts
4 → 32
Calls
Call 1
Inputs
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(-.f64 #s(literal 1 binary64) (cos.f64 x))
(cos.f64 x)
(sin.f64 x)
Outputs
(/.f64 (-.f64 (*.f64 (pow.f64 (sin.f64 x) #s(literal -1 binary64)) (pow.f64 (sin.f64 x) #s(literal -1 binary64))) (*.f64 (/.f64 (cos.f64 x) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x)))) (+.f64 (pow.f64 (sin.f64 x) #s(literal -1 binary64)) (/.f64 (cos.f64 x) (sin.f64 x))))
(/.f64 (-.f64 (pow.f64 (pow.f64 (sin.f64 x) #s(literal -1 binary64)) #s(literal 3 binary64)) (pow.f64 (/.f64 (cos.f64 x) (sin.f64 x)) #s(literal 3 binary64))) (fma.f64 (pow.f64 (sin.f64 x) #s(literal -1 binary64)) (pow.f64 (sin.f64 x) #s(literal -1 binary64)) (fma.f64 (/.f64 (cos.f64 x) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x)) (*.f64 (pow.f64 (sin.f64 x) #s(literal -1 binary64)) (/.f64 (cos.f64 x) (sin.f64 x))))))
(/.f64 (neg.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)))) (neg.f64 (neg.f64 (sin.f64 x))))
(/.f64 (-.f64 (*.f64 #s(literal 1 binary64) (sin.f64 x)) (*.f64 (sin.f64 x) (cos.f64 x))) (*.f64 (sin.f64 x) (sin.f64 x)))
(/.f64 (sin.f64 (/.f64 x #s(literal 2 binary64))) (cos.f64 (/.f64 x #s(literal 2 binary64))))
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (*.f64 (+.f64 (cos.f64 x) #s(literal 1 binary64)) (sin.f64 x)))
(/.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (cos.f64 x) #s(literal 3 binary64))) (*.f64 (fma.f64 (cos.f64 x) (+.f64 (cos.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64)) (sin.f64 x)))
(/.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x))) (neg.f64 (sin.f64 x)))
(/.f64 (sin.f64 x) (+.f64 (cos.f64 x) #s(literal 1 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(neg.f64 (/.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x))) (sin.f64 x)))
(neg.f64 (/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (neg.f64 (sin.f64 x))))
(tan.f64 (+.f64 (/.f64 x #s(literal 2 binary64)) (PI.f64)))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(-.f64 (pow.f64 (sin.f64 x) #s(literal -1 binary64)) (/.f64 (cos.f64 x) (sin.f64 x)))
(/.f64 (neg.f64 (*.f64 (sin.f64 x) (sin.f64 x))) (neg.f64 (+.f64 (cos.f64 x) #s(literal 1 binary64))))
(/.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (cos.f64 x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (cos.f64 x) (+.f64 (cos.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))))
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 (cos.f64 x) #s(literal 1 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (pow.f64 (cos.f64 x) #s(literal 3 binary64))) (fma.f64 (cos.f64 x) (+.f64 (cos.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64)))
(-.f64 (/.f64 #s(literal 1 binary64) (+.f64 (cos.f64 x) #s(literal 1 binary64))) (/.f64 (pow.f64 (cos.f64 x) #s(literal 2 binary64)) (+.f64 (cos.f64 x) #s(literal 1 binary64))))
(-.f64 (/.f64 #s(literal 1 binary64) (fma.f64 (cos.f64 x) (+.f64 (cos.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))) (/.f64 (pow.f64 (cos.f64 x) #s(literal 3 binary64)) (fma.f64 (cos.f64 x) (+.f64 (cos.f64 x) #s(literal 1 binary64)) #s(literal 1 binary64))))
(-.f64 #s(literal 1 binary64) (cos.f64 x))
(*.f64 (cos.f64 x) #s(literal 1 binary64))
(*.f64 #s(literal 1 binary64) (cos.f64 x))
(fma.f64 (sin.f64 x) (cos.f64 (/.f64 (PI.f64) #s(literal 2 binary64))) (*.f64 (cos.f64 x) (sin.f64 (/.f64 (PI.f64) #s(literal 2 binary64)))))
(sin.f64 (+.f64 (neg.f64 x) (/.f64 (PI.f64) #s(literal 2 binary64))))
(sin.f64 (+.f64 (/.f64 (PI.f64) #s(literal 2 binary64)) x))
(cos.f64 (neg.f64 (neg.f64 x)))
(cos.f64 (neg.f64 x))
(cos.f64 x)
(+.f64 (*.f64 (sin.f64 x) (cos.f64 (/.f64 (PI.f64) #s(literal 2 binary64)))) (*.f64 (cos.f64 x) (sin.f64 (/.f64 (PI.f64) #s(literal 2 binary64)))))
(sin.f64 x)

eval7.0ms (0.1%)

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

Compiled 758 to 203 computations (73.2% saved)

prune2.0ms (0%)

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

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New47451
Fresh000
Picked101
Done000
Total48452
Accuracy
100.0%
Counts
52 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
50.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
50.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
50.6%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
100.0%
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
Compiler

Compiled 60 to 45 computations (25% saved)

simplify146.0ms (3.2%)

Memory
16.4MiB live, 119.7MiB allocated; 11ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 13 expressions of interest:

NewMetricScoreProgram
cost-diff0
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
cost-diff0
(fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64))
cost-diff0
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
cost-diff0
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
cost-diff0
(*.f64 x x)
cost-diff0
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
cost-diff0
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
cost-diff0
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
cost-diff0
(*.f64 #s(literal 1/2 binary64) x)
cost-diff0
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
cost-diff0
(*.f64 #s(literal 1/2 binary64) x)
cost-diff0
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))
cost-diff0
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
021131
032119
166119
2171119
3572119
41746119
53325119
08631119
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
x
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
x
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
(*.f64 x x)
x
#s(literal 1/24 binary64)
#s(literal 1/2 binary64)
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64))
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
#s(literal 1/240 binary64)
(*.f64 x x)
x
#s(literal 1/24 binary64)
#s(literal 1/2 binary64)
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
x
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
x
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 #s(literal 1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(*.f64 (fma.f64 #s(literal 1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64)) x)
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
(fma.f64 #s(literal 1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64))
(*.f64 x x)
x
#s(literal 1/24 binary64)
#s(literal 1/2 binary64)
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64))
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
#s(literal 1/240 binary64)
(*.f64 x x)
x
#s(literal 1/24 binary64)
#s(literal 1/2 binary64)

localize117.0ms (2.6%)

Memory
-11.7MiB live, 124.5MiB allocated; 9ms collecting garbage
Localize:

Found 13 expressions of interest:

NewMetricScoreProgram
accuracy0.0390625
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
accuracy0.0546875
(fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64))
accuracy0.08984375
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
accuracy31.8307886516406
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
accuracy0.0
(*.f64 x x)
accuracy0.0546875
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
accuracy0.09375
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
accuracy31.771273876670886
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
accuracy0.0
(*.f64 #s(literal 1/2 binary64) x)
accuracy31.62170011041214
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
accuracy0.0
(*.f64 #s(literal 1/2 binary64) x)
accuracy0.0
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
accuracy0.00390625
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))
Samples
41.0ms72×2valid
32.0ms130×0valid
14.0ms34×1valid
13.0ms19×3valid
2.0ms4valid
Compiler

Compiled 108 to 22 computations (79.6% saved)

Precisions
Click to see histograms. Total time spent on operations: 80.0ms
ival-cos: 21.0ms (26.1% of total)
adjust: 15.0ms (18.7% of total)
ival-mult: 12.0ms (14.9% of total)
const: 10.0ms (12.4% of total)
ival-sin: 7.0ms (8.7% of total)
ival-tan: 5.0ms (6.2% of total)
ival-add: 5.0ms (6.2% of total)
ival-div: 3.0ms (3.7% of total)
ival-sub: 3.0ms (3.7% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series7.0ms (0.2%)

Memory
9.2MiB live, 9.2MiB allocated; 0ms collecting garbage
Counts
12 → 25
Calls
Call 1
Inputs
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
(*.f64 x x)
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64))
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
Outputs
(* 1/2 x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
1/2
(+ 1/2 (* 1/24 (pow x 2)))
(pow x 2)
(+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2)))))
1/24
(+ 1/24 (* 1/240 (pow x 2)))
(/ (- 1 (cos x)) (sin x))
(/ (sin (* 1/2 x)) (cos (* 1/2 x)))
(* 1/24 (pow x 3))
(* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(* 1/24 (pow x 2))
(* (pow x 2) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(* 1/240 (pow x 5))
(* (pow x 5) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(* (pow x 5) (+ 1/240 (+ (/ 1/2 (pow x 4)) (* 1/24 (/ 1 (pow x 2))))))
(* 1/240 (pow x 4))
(* (pow x 4) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(* (pow x 4) (+ 1/240 (+ (/ 1/2 (pow x 4)) (* 1/24 (/ 1 (pow x 2))))))
(* 1/240 (pow x 2))
(* (pow x 2) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(* -1 (* (pow x 5) (- (* -1 (/ (+ 1/24 (* 1/2 (/ 1 (pow x 2)))) (pow x 2))) 1/240)))
Calls

3 calls:

TimeVariablePointExpression
2.0ms
x
@inf
((/ (- 1 (cos x)) (sin x)) (tan (* 1/2 x)) (* 1/2 x) (/ (- 1 (cos x)) (sin x)) (/ (- 1 (cos x)) (sin x)) (* (+ (* (* x x) 1/24) 1/2) x) (+ (* (* x x) 1/24) 1/2) (* x x) (/ (- 1 (cos x)) (sin x)) (* (+ (* (+ (* 1/240 (* x x)) 1/24) (* x x)) 1/2) x) (+ (* (+ (* 1/240 (* x x)) 1/24) (* x x)) 1/2) (+ (* 1/240 (* x x)) 1/24))
2.0ms
x
@-inf
((/ (- 1 (cos x)) (sin x)) (tan (* 1/2 x)) (* 1/2 x) (/ (- 1 (cos x)) (sin x)) (/ (- 1 (cos x)) (sin x)) (* (+ (* (* x x) 1/24) 1/2) x) (+ (* (* x x) 1/24) 1/2) (* x x) (/ (- 1 (cos x)) (sin x)) (* (+ (* (+ (* 1/240 (* x x)) 1/24) (* x x)) 1/2) x) (+ (* (+ (* 1/240 (* x x)) 1/24) (* x x)) 1/2) (+ (* 1/240 (* x x)) 1/24))
2.0ms
x
@0
((/ (- 1 (cos x)) (sin x)) (tan (* 1/2 x)) (* 1/2 x) (/ (- 1 (cos x)) (sin x)) (/ (- 1 (cos x)) (sin x)) (* (+ (* (* x x) 1/24) 1/2) x) (+ (* (* x x) 1/24) 1/2) (* x x) (/ (- 1 (cos x)) (sin x)) (* (+ (* (+ (* 1/240 (* x x)) 1/24) (* x x)) 1/2) x) (+ (* (+ (* 1/240 (* x x)) 1/24) (* x x)) 1/2) (+ (* 1/240 (* x x)) 1/24))

simplify237.0ms (5.3%)

Memory
6.3MiB live, 182.4MiB allocated; 40ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
061216
1223216
2719215
33055215
08245202
Stop Event
iter limit
node limit
Counts
25 → 25
Calls
Call 1
Inputs
(* 1/2 x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
1/2
(+ 1/2 (* 1/24 (pow x 2)))
(pow x 2)
(+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2)))))
1/24
(+ 1/24 (* 1/240 (pow x 2)))
(/ (- 1 (cos x)) (sin x))
(/ (sin (* 1/2 x)) (cos (* 1/2 x)))
(* 1/24 (pow x 3))
(* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(* 1/24 (pow x 2))
(* (pow x 2) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(* 1/240 (pow x 5))
(* (pow x 5) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(* (pow x 5) (+ 1/240 (+ (/ 1/2 (pow x 4)) (* 1/24 (/ 1 (pow x 2))))))
(* 1/240 (pow x 4))
(* (pow x 4) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(* (pow x 4) (+ 1/240 (+ (/ 1/2 (pow x 4)) (* 1/24 (/ 1 (pow x 2))))))
(* 1/240 (pow x 2))
(* (pow x 2) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(* -1 (* (pow x 5) (- (* -1 (/ (+ 1/24 (* 1/2 (/ 1 (pow x 2)))) (pow x 2))) 1/240)))
Outputs
(* 1/2 x)
(*.f64 #s(literal 1/2 binary64) x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal 17/40320 binary64) (*.f64 x x) #s(literal 1/240 binary64)) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
1/2
#s(literal 1/2 binary64)
(+ 1/2 (* 1/24 (pow x 2)))
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
(pow x 2)
(*.f64 x x)
(+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2)))))
(fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64))
1/24
#s(literal 1/24 binary64)
(+ 1/24 (* 1/240 (pow x 2)))
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
(/ (- 1 (cos x)) (sin x))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(/ (sin (* 1/2 x)) (cos (* 1/2 x)))
(/.f64 (sin.f64 (*.f64 #s(literal 1/2 binary64) x)) (cos.f64 (*.f64 #s(literal -1/2 binary64) x)))
(* 1/24 (pow x 3))
(*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64))
(* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(* 1/24 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 1/24 binary64))
(* (pow x 2) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
(* 1/240 (pow x 5))
(*.f64 (pow.f64 x #s(literal 5 binary64)) #s(literal 1/240 binary64))
(* (pow x 5) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(*.f64 (+.f64 (/.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/240 binary64)) (pow.f64 x #s(literal 5 binary64)))
(* (pow x 5) (+ 1/240 (+ (/ 1/2 (pow x 4)) (* 1/24 (/ 1 (pow x 2))))))
(*.f64 (-.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) (pow.f64 x #s(literal 4 binary64))) #s(literal 1/240 binary64)) (/.f64 #s(literal -1/24 binary64) (*.f64 x x))) (pow.f64 x #s(literal 5 binary64)))
(* 1/240 (pow x 4))
(*.f64 (pow.f64 x #s(literal 4 binary64)) #s(literal 1/240 binary64))
(* (pow x 4) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(*.f64 (pow.f64 x #s(literal 4 binary64)) (+.f64 (/.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/240 binary64)))
(* (pow x 4) (+ 1/240 (+ (/ 1/2 (pow x 4)) (* 1/24 (/ 1 (pow x 2))))))
(*.f64 (-.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) (pow.f64 x #s(literal 4 binary64))) #s(literal 1/240 binary64)) (/.f64 #s(literal -1/24 binary64) (*.f64 x x))) (pow.f64 x #s(literal 4 binary64)))
(* 1/240 (pow x 2))
(*.f64 #s(literal 1/240 binary64) (*.f64 x x))
(* (pow x 2) (+ 1/240 (* 1/24 (/ 1 (pow x 2)))))
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
(* -1 (* (pow x 5) (- (* -1 (/ (+ 1/24 (* 1/2 (/ 1 (pow x 2)))) (pow x 2))) 1/240)))
(*.f64 (neg.f64 (pow.f64 x #s(literal 5 binary64))) (+.f64 (/.f64 #s(literal -1/24 binary64) (*.f64 x x)) (-.f64 (/.f64 #s(literal -1/2 binary64) (pow.f64 x #s(literal 4 binary64))) #s(literal 1/240 binary64))))

rewrite129.0ms (2.9%)

Memory
-10.9MiB live, 58.1MiB allocated; 14ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
021114
032102
1125102
0912102
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
12 → 122
Calls
Call 1
Inputs
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
(*.f64 x x)
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64))
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
(/.f64 (neg.f64 (sin.f64 (*.f64 #s(literal 1/2 binary64) x))) (neg.f64 (cos.f64 (*.f64 #s(literal 1/2 binary64) x))))
(/.f64 (+.f64 (tan.f64 (*.f64 #s(literal 1/2 binary64) x)) (tan.f64 (PI.f64))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 (*.f64 #s(literal 1/2 binary64) x)) (tan.f64 (PI.f64)))))
(/.f64 (sin.f64 (fma.f64 #s(literal 1/2 binary64) x (PI.f64))) (cos.f64 (fma.f64 #s(literal 1/2 binary64) x (PI.f64))))
(/.f64 (sin.f64 (*.f64 #s(literal 1/2 binary64) x)) (cos.f64 (*.f64 #s(literal 1/2 binary64) x)))
(tan.f64 (+.f64 (fma.f64 #s(literal 1/2 binary64) x (PI.f64)) (PI.f64)))
(tan.f64 (fma.f64 #s(literal 1/2 binary64) x (PI.f64)))
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
(*.f64 x #s(literal 1/2 binary64))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 #s(literal 1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 #s(literal 1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64)) x)
(*.f64 x (fma.f64 #s(literal 1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64)))
(/.f64 (*.f64 (-.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64)) x) (-.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/2 binary64)))
(/.f64 (*.f64 (fma.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1/13824 binary64) #s(literal 1/8 binary64)) x) (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (*.f64 (*.f64 x x) #s(literal 1/48 binary64))))
(/.f64 (*.f64 x (-.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64))) (-.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/2 binary64)))
(/.f64 (*.f64 x (fma.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1/13824 binary64) #s(literal 1/8 binary64))) (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (*.f64 (*.f64 x x) #s(literal 1/48 binary64))))
(fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 #s(literal 1/2 binary64) x (*.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x))
(fma.f64 #s(literal 1/2 binary64) x (*.f64 x (*.f64 #s(literal 1/24 binary64) (*.f64 x x))))
(fma.f64 x (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 x #s(literal 1/2 binary64) (*.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x))
(fma.f64 x #s(literal 1/2 binary64) (*.f64 x (*.f64 #s(literal 1/24 binary64) (*.f64 x x))))
(+.f64 (*.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x) (*.f64 #s(literal 1/2 binary64) x))
(+.f64 (*.f64 x (*.f64 #s(literal 1/24 binary64) (*.f64 x x))) (*.f64 #s(literal 1/2 binary64) x))
(+.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x))
(+.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 x (*.f64 #s(literal 1/24 binary64) (*.f64 x x))))
(/.f64 (-.f64 #s(literal 1/4 binary64) (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64))) (-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/24 binary64) (*.f64 x x))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64))) (neg.f64 (-.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/2 binary64))))
(/.f64 (neg.f64 (fma.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1/13824 binary64) #s(literal 1/8 binary64))) (neg.f64 (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (*.f64 (*.f64 x x) #s(literal 1/48 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (-.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/2 binary64)))
(/.f64 (fma.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1/13824 binary64) #s(literal 1/8 binary64)) (+.f64 #s(literal 1/4 binary64) (-.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) (*.f64 (*.f64 x x) #s(literal 1/48 binary64)))))
(/.f64 (fma.f64 (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1/13824 binary64) #s(literal 1/8 binary64)) (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (*.f64 (*.f64 x x) #s(literal 1/48 binary64))))
(fma.f64 (*.f64 #s(literal 1/24 binary64) (fabs.f64 x)) (fabs.f64 x) #s(literal 1/2 binary64))
(fma.f64 (*.f64 #s(literal 1/24 binary64) (neg.f64 x)) (neg.f64 x) #s(literal 1/2 binary64))
(fma.f64 (*.f64 #s(literal 1/24 binary64) x) x #s(literal 1/2 binary64))
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 1/24 binary64)) #s(literal 1/2 binary64))
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) #s(literal 1/24 binary64)) #s(literal 1/2 binary64))
(fma.f64 #s(literal 1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64))
(fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64))
(fma.f64 x (*.f64 #s(literal 1/24 binary64) x) #s(literal 1/2 binary64))
(-.f64 (/.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/2 binary64))) (/.f64 #s(literal 1/4 binary64) (-.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/2 binary64))))
(-.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/24 binary64) (*.f64 x x)))
(-.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 (*.f64 x x)) #s(literal 1/24 binary64)))
(-.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 x) (*.f64 #s(literal 1/24 binary64) x)))
(+.f64 (/.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 3 binary64)) (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (*.f64 (*.f64 x x) #s(literal 1/48 binary64)))) (/.f64 #s(literal 1/8 binary64) (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (*.f64 (*.f64 x x) #s(literal 1/48 binary64)))))
(+.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) #s(literal 1/2 binary64))
(+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/24 binary64) (*.f64 x x)))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 x x)
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(neg.f64 (*.f64 x (neg.f64 x)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(*.f64 x (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)))
(/.f64 (*.f64 (-.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)) #s(literal 1/4 binary64)) x) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 1/2 binary64)))
(/.f64 (*.f64 (+.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 3 binary64)) #s(literal 1/8 binary64)) x) (fma.f64 #s(literal 1/2 binary64) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)) (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64))))
(/.f64 (*.f64 x (-.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)) #s(literal 1/4 binary64))) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 1/2 binary64)))
(/.f64 (*.f64 x (+.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 3 binary64)) #s(literal 1/8 binary64))) (fma.f64 #s(literal 1/2 binary64) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)) (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64))))
(fma.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) x (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 #s(literal 1/2 binary64) x (*.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) x))
(fma.f64 #s(literal 1/2 binary64) x (*.f64 x (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)))
(fma.f64 x (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 x #s(literal 1/2 binary64) (*.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) x))
(fma.f64 x #s(literal 1/2 binary64) (*.f64 x (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)))
(+.f64 (*.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) x) (*.f64 #s(literal 1/2 binary64) x))
(+.f64 (*.f64 x (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)) (*.f64 #s(literal 1/2 binary64) x))
(+.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) x))
(+.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 x (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)))
(/.f64 (-.f64 #s(literal 1/4 binary64) (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64))) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)) #s(literal 1/4 binary64))) (neg.f64 (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 1/2 binary64))))
(/.f64 (neg.f64 (+.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 3 binary64)) #s(literal 1/8 binary64))) (neg.f64 (fma.f64 #s(literal 1/2 binary64) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)) (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)) #s(literal 1/4 binary64)) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 1/2 binary64)))
(/.f64 (+.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 3 binary64)) #s(literal 1/8 binary64)) (+.f64 #s(literal 1/4 binary64) (-.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) (*.f64 #s(literal 1/2 binary64) x)))))
(/.f64 (+.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 3 binary64)) #s(literal 1/8 binary64)) (fma.f64 #s(literal 1/2 binary64) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)) (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64))))
(fma.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (fabs.f64 x)) (fabs.f64 x) #s(literal 1/2 binary64))
(fma.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (neg.f64 x)) (neg.f64 x) #s(literal 1/2 binary64))
(fma.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x #s(literal 1/2 binary64))
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))) #s(literal 1/2 binary64))
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))) #s(literal 1/2 binary64))
(fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64))
(fma.f64 (*.f64 x x) (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/2 binary64))
(fma.f64 x (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) #s(literal 1/2 binary64))
(-.f64 (/.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 1/2 binary64))) (/.f64 #s(literal 1/4 binary64) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 1/2 binary64))))
(-.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x)) x))
(-.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))) (*.f64 x x)))
(-.f64 #s(literal 1/2 binary64) (*.f64 (neg.f64 (*.f64 x x)) (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))))
(+.f64 (/.f64 (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 3 binary64)) (fma.f64 #s(literal 1/2 binary64) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)) (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)))) (/.f64 #s(literal 1/8 binary64) (fma.f64 #s(literal 1/2 binary64) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x)) (pow.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 2 binary64)))))
(+.f64 (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 1/2 binary64))
(+.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x))
(/.f64 (-.f64 #s(literal 1/576 binary64) (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64))) (-.f64 #s(literal 1/24 binary64) (*.f64 #s(literal 1/240 binary64) (*.f64 x x))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/576 binary64))) (neg.f64 (-.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 1/24 binary64))))
(/.f64 (neg.f64 (fma.f64 #s(literal 1/13824000 binary64) (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1/13824 binary64))) (neg.f64 (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/5760 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/576 binary64)) (-.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 1/24 binary64)))
(/.f64 (fma.f64 #s(literal 1/13824000 binary64) (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1/13824 binary64)) (+.f64 #s(literal 1/576 binary64) (-.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64)) (*.f64 (*.f64 x x) #s(literal 1/5760 binary64)))))
(/.f64 (fma.f64 #s(literal 1/13824000 binary64) (pow.f64 (*.f64 x x) #s(literal 3 binary64)) #s(literal 1/13824 binary64)) (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/5760 binary64))))
(fma.f64 (*.f64 #s(literal 1/240 binary64) (fabs.f64 x)) (fabs.f64 x) #s(literal 1/24 binary64))
(fma.f64 (*.f64 #s(literal 1/240 binary64) (neg.f64 x)) (neg.f64 x) #s(literal 1/24 binary64))
(fma.f64 (*.f64 #s(literal 1/240 binary64) x) x #s(literal 1/24 binary64))
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 1/240 binary64)) #s(literal 1/24 binary64))
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) #s(literal 1/240 binary64)) #s(literal 1/24 binary64))
(fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64))
(fma.f64 (*.f64 x x) #s(literal 1/240 binary64) #s(literal 1/24 binary64))
(fma.f64 x (*.f64 #s(literal 1/240 binary64) x) #s(literal 1/24 binary64))
(-.f64 (/.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 1/24 binary64))) (/.f64 #s(literal 1/576 binary64) (-.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 1/24 binary64))))
(-.f64 #s(literal 1/24 binary64) (*.f64 (neg.f64 (*.f64 #s(literal 1/240 binary64) x)) x))
(-.f64 #s(literal 1/24 binary64) (*.f64 #s(literal -1/240 binary64) (*.f64 x x)))
(-.f64 #s(literal 1/24 binary64) (*.f64 (neg.f64 (*.f64 x x)) #s(literal 1/240 binary64)))
(+.f64 (/.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 3 binary64)) (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/5760 binary64)))) (/.f64 #s(literal 1/13824 binary64) (-.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 2 binary64)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/5760 binary64)))))
(+.f64 (*.f64 #s(literal 1/240 binary64) (*.f64 x x)) #s(literal 1/24 binary64))
(+.f64 #s(literal 1/24 binary64) (*.f64 #s(literal 1/240 binary64) (*.f64 x x)))

eval23.0ms (0.5%)

Memory
0.6MiB live, 45.2MiB allocated; 5ms collecting garbage
Compiler

Compiled 4 327 to 687 computations (84.1% saved)

prune5.0ms (0.1%)

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

5 alts after pruning (1 fresh and 4 done)

PrunedKeptTotal
New1741175
Fresh000
Picked044
Done000
Total1745179
Accuracy
100.0%
Counts
179 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
50.4%
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
50.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
50.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
50.6%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
100.0%
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
Compiler

Compiled 78 to 58 computations (25.6% saved)

simplify110.0ms (2.5%)

Memory
3.0MiB live, 147.2MiB allocated; 16ms collecting garbage
Algorithm
egg-herbie
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
cost-diff0
(*.f64 x x)
cost-diff0
(*.f64 #s(literal 1/24 binary64) (*.f64 x x))
cost-diff0
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
cost-diff2
(fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x))
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01342
01837
14937
211437
330437
461737
5120737
0851235
Stop Event
iter limit
node limit
iter limit
Calls
Call 1
Inputs
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
(fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x))
(*.f64 #s(literal 1/24 binary64) (*.f64 x x))
#s(literal 1/24 binary64)
(*.f64 x x)
x
(*.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
(fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(*.f64 #s(literal 1/24 binary64) (*.f64 x x))
(*.f64 (*.f64 x x) #s(literal 1/24 binary64))
#s(literal 1/24 binary64)
(*.f64 x x)
x
(*.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)

localize135.0ms (3%)

Memory
-16.9MiB live, 75.8MiB allocated; 5ms collecting garbage
Localize:

Found 4 expressions of interest:

NewMetricScoreProgram
accuracy0.0
(*.f64 #s(literal 1/2 binary64) x)
accuracy0.05078125
(fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x))
accuracy0.1796875
(*.f64 #s(literal 1/24 binary64) (*.f64 x x))
accuracy31.771273876670886
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
Samples
63.0ms72×2valid
33.0ms34×1valid
20.0ms130×0valid
9.0ms19×3valid
1.0ms4valid
Compiler

Compiled 34 to 15 computations (55.9% saved)

Precisions
Click to see histograms. Total time spent on operations: 78.0ms
ival-cos: 48.0ms (61.5% of total)
adjust: 8.0ms (10.3% of total)
ival-mult: 6.0ms (7.7% of total)
ival-sin: 5.0ms (6.4% of total)
ival-div: 3.0ms (3.8% of total)
ival-sub: 3.0ms (3.8% of total)
const: 3.0ms (3.8% of total)
ival-add: 1.0ms (1.3% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

series5.0ms (0.1%)

Memory
5.0MiB live, 5.0MiB allocated; 0ms collecting garbage
Counts
5 → 9
Calls
Call 1
Inputs
(fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
(*.f64 #s(literal 1/24 binary64) (*.f64 x x))
(*.f64 x x)
(*.f64 #s(literal 1/2 binary64) x)
Outputs
(* 1/2 x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
(* 1/24 (pow x 2))
(pow x 2)
(* 1/24 (pow x 3))
(* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(/ (- 1 (cos x)) (sin x))
Calls

3 calls:

TimeVariablePointExpression
2.0ms
x
@-inf
((+ (* (* 1/24 (* x x)) x) (* 1/2 x)) (/ (- 1 (cos x)) (sin x)) (* 1/24 (* x x)) (* x x) (* 1/2 x))
1.0ms
x
@inf
((+ (* (* 1/24 (* x x)) x) (* 1/2 x)) (/ (- 1 (cos x)) (sin x)) (* 1/24 (* x x)) (* x x) (* 1/2 x))
1.0ms
x
@0
((+ (* (* 1/24 (* x x)) x) (* 1/2 x)) (/ (- 1 (cos x)) (sin x)) (* 1/24 (* x x)) (* x x) (* 1/2 x))

simplify139.0ms (3.1%)

Memory
0.7MiB live, 96.3MiB allocated; 11ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03574
113274
242474
3174974
4626574
0822867
Stop Event
iter limit
node limit
Counts
9 → 9
Calls
Call 1
Inputs
(* 1/2 x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
(* 1/24 (pow x 2))
(pow x 2)
(* 1/24 (pow x 3))
(* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(/ (- 1 (cos x)) (sin x))
Outputs
(* 1/2 x)
(*.f64 #s(literal 1/2 binary64) x)
(* x (+ 1/2 (* 1/24 (pow x 2))))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))
(*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))
(*.f64 (fma.f64 (fma.f64 (fma.f64 #s(literal 17/40320 binary64) (*.f64 x x) #s(literal 1/240 binary64)) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x)
(* 1/24 (pow x 2))
(*.f64 (*.f64 x x) #s(literal 1/24 binary64))
(pow x 2)
(*.f64 x x)
(* 1/24 (pow x 3))
(*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64))
(* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(/ (- 1 (cos x)) (sin x))
(tan.f64 (*.f64 #s(literal 1/2 binary64) x))

rewrite40.0ms (0.9%)

Memory
-7.3MiB live, 39.0MiB allocated; 3ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01339
01834
17934
058132
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
5 → 52
Calls
Call 1
Inputs
(fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
(*.f64 #s(literal 1/24 binary64) (*.f64 x x))
(*.f64 x x)
(*.f64 #s(literal 1/2 binary64) x)
Outputs
(*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x)
(*.f64 x (-.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal -1/2 binary64)))
(*.f64 x (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)))
(/.f64 (-.f64 (*.f64 #s(literal 1/4 binary64) (*.f64 x x)) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64))) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64))))
(/.f64 (-.f64 (*.f64 #s(literal 1/13824 binary64) (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64))) (pow.f64 (*.f64 #s(literal -1/2 binary64) x) #s(literal 3 binary64))) (+.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64)) (fma.f64 #s(literal 1/4 binary64) (*.f64 x x) (*.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) (*.f64 #s(literal -1/2 binary64) x)))))
(/.f64 (neg.f64 (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64)) (*.f64 #s(literal 1/4 binary64) (*.f64 x x)))) (neg.f64 (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x))))
(/.f64 (neg.f64 (fma.f64 #s(literal 1/13824 binary64) (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) (pow.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 3 binary64)))) (neg.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64)))))
(/.f64 (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64)) (*.f64 #s(literal 1/4 binary64) (*.f64 x x))) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x)))
(/.f64 (fma.f64 #s(literal 1/13824 binary64) (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) (pow.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 3 binary64))) (fma.f64 #s(literal 1/4 binary64) (*.f64 x x) (-.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64)) (*.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x)))))
(/.f64 (fma.f64 #s(literal 1/13824 binary64) (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64)) (pow.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 3 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64))))
(fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (*.f64 x #s(literal 1/24 binary64)) (*.f64 x x) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 #s(literal 1/2 binary64) x (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)))
(fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) x (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (*.f64 x x) (*.f64 x #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 x #s(literal 1/2 binary64) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)))
(fma.f64 x (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 #s(literal 1/24 binary64) (pow.f64 x #s(literal 3 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(-.f64 (/.f64 (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64)) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x))) (/.f64 (*.f64 #s(literal 1/4 binary64) (*.f64 x x)) (fma.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x))))
(-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) (*.f64 (neg.f64 x) #s(literal 1/2 binary64)))
(-.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) (*.f64 #s(literal -1/2 binary64) x))
(-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (neg.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64))) x))
(-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (neg.f64 x) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))))
(-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 #s(literal -1/24 binary64) (pow.f64 x #s(literal 3 binary64))))
(+.f64 (/.f64 (*.f64 #s(literal 1/13824 binary64) (pow.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 3 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64)))) (/.f64 (pow.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 3 binary64)) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64))) (pow.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) #s(literal 2 binary64)))))
(+.f64 (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(+.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (pow.f64 x #s(literal 3 binary64)) #s(literal 1/24 binary64)))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
(*.f64 (*.f64 #s(literal 1/24 binary64) (fabs.f64 x)) (fabs.f64 x))
(*.f64 (*.f64 #s(literal 1/24 binary64) (neg.f64 x)) (neg.f64 x))
(*.f64 (*.f64 x #s(literal 1/24 binary64)) x)
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) #s(literal 1/24 binary64)))
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) #s(literal 1/24 binary64)))
(*.f64 (*.f64 x x) #s(literal 1/24 binary64))
(*.f64 x (*.f64 x #s(literal 1/24 binary64)))
(*.f64 #s(literal 1/24 binary64) (*.f64 x x))
(*.f64 (pow.f64 x #s(literal 1 binary64)) (pow.f64 x #s(literal 1 binary64)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (neg.f64 (neg.f64 x)) (neg.f64 (neg.f64 x)))
(*.f64 (fabs.f64 x) (fabs.f64 x))
(*.f64 (neg.f64 x) (neg.f64 x))
(*.f64 x x)
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(neg.f64 (*.f64 x (neg.f64 x)))
(fabs.f64 (*.f64 x x))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
(*.f64 #s(literal 1/2 binary64) x)
(*.f64 x #s(literal 1/2 binary64))

eval7.0ms (0.2%)

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

Compiled 1 343 to 233 computations (82.7% saved)

prune4.0ms (0.1%)

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

5 alts after pruning (0 fresh and 5 done)

PrunedKeptTotal
New60060
Fresh000
Picked011
Done044
Total60565
Accuracy
100.0%
Counts
65 → 5
Alt Table
Click to see full alt table
StatusAccuracyProgram
50.4%
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
50.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
50.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
50.6%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
100.0%
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
Compiler

Compiled 163 to 87 computations (46.6% saved)

regimes52.0ms (1.2%)

Memory
-23.3MiB live, 19.6MiB allocated; 8ms collecting garbage
Counts
6 → 1
Calls
Call 1
Inputs
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
Calls

2 calls:

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

Compiled 8 to 7 computations (12.5% saved)

regimes4.0ms (0.1%)

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

Total -0.3b remaining (-1.1%)

Threshold costs -0.3b (-1.1%)

Counts
4 → 1
Calls
Call 1
Inputs
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 #s(literal 1/24 binary64) (*.f64 x x)) x (*.f64 #s(literal 1/2 binary64) x)))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 (fma.f64 (fma.f64 #s(literal 1/240 binary64) (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x))
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
Calls

2 calls:

2.0ms
x
2.0ms
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Results
AccuracySegmentsBranch
50.6%1(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
50.6%1x
Compiler

Compiled 8 to 7 computations (12.5% saved)

simplify30.0ms (0.7%)

Memory
-12.8MiB live, 29.7MiB allocated; 9ms collecting garbage
Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01117
12517
23817
36617
414017
568517
Stop Event
node limit
Calls
Call 1
Inputs
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))

derivations166.0ms (3.7%)

Memory
29.9MiB live, 132.4MiB allocated; 16ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
079202
1266202
2794196
33337196
47629196
08018172
Stop Event
done
iter limit
node limit
Compiler

Compiled 23 to 11 computations (52.2% saved)

preprocess28.0ms (0.6%)

Memory
-2.8MiB live, 42.9MiB allocated; 3ms collecting garbage
Remove

(negabs x)

Compiler

Compiled 92 to 62 computations (32.6% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...