tanhf (example 3.4)

Time bar (total: 2.6s)

start0.0ms (0%)

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

analyze133.0ms (5%)

Memory
15.3MiB live, 159.6MiB allocated; 48ms 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)

sample1.9s (70.9%)

Memory
-35.1MiB live, 2 314.3MiB allocated; 299ms collecting garbage
Samples
638.0ms2 249×2valid
449.0ms4 165×0valid
408.0ms696×3valid
116.0ms1 142×1valid
5.0ms4valid
Precisions
Click to see histograms. Total time spent on operations: 1.4s
ival-cos: 885.0ms (64.6% of total)
ival-sin: 215.0ms (15.7% of total)
adjust: 139.0ms (10.1% of total)
ival-div!: 80.0ms (5.8% of total)
ival-sub!: 50.0ms (3.6% of total)
Bogosity

explain131.0ms (5%)

Memory
10.1MiB live, 206.9MiB allocated; 7ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
720-0-(-.f64 #s(literal 1 binary64) (cos.f64 x))
580-2(1.2559787451477136e-160)(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.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 #s(literal 1 binary64) (cos.f64 x))cancellation721
/.f64(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))u/n560
(-.f64 #s(literal 1 binary64) (cos.f64 x))underflow56
Confusion
Predicted +Predicted -
+1280
-0128
Precision
1.0
Recall
1.0
Confusion?
Predicted +Predicted MaybePredicted -
+12800
-01127
Precision?
0.9922480620155039
Recall?
1.0
Freqs
test
numberfreq
0128
1128
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
36.0ms138×2valid
28.0ms262×0valid
13.0ms28×3valid
10.0ms84×1valid
Compiler

Compiled 45 to 22 computations (51.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 70.0ms
ival-cos: 43.0ms (61.5% of total)
ival-sin: 13.0ms (18.6% of total)
adjust: 7.0ms (10% of total)
ival-div!: 4.0ms (5.7% of total)
ival-sub!: 3.0ms (4.3% of total)

preprocess38.0ms (1.5%)

Memory
-15.5MiB live, 32.9MiB allocated; 4ms collecting garbage
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01213
14013
27812
315212
439212
5144712
Stop Event
node-limit
Alt Table
Click to see full alt table
StatusAccuracyProgram
53.6%
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Symmetry

(negabs x)

Compiler

Compiled 14 to 12 computations (14.3% saved)

series3.0ms (0.1%)

Memory
6.0MiB live, 6.0MiB allocated; 0ms collecting garbage
Counts
6 → 21
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
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* 1/2 x)))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))))
#s(approx (- 1 (cos x)) #s(hole binary64 (* 1/2 (pow x 2))))
#s(approx (- 1 (cos x)) #s(hole binary64 (* (pow x 2) (+ 1/2 (* -1/24 (pow x 2))))))
#s(approx (- 1 (cos x)) #s(hole binary64 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/720 (pow x 2)) 1/24))))))
#s(approx (- 1 (cos x)) #s(hole binary64 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* (pow x 2) (+ 1/720 (* -1/40320 (pow x 2)))) 1/24))))))
#s(approx (cos x) #s(hole binary64 1))
#s(approx (cos x) #s(hole binary64 (+ 1 (* -1/2 (pow x 2)))))
#s(approx (cos x) #s(hole binary64 (+ 1 (* (pow x 2) (- (* 1/24 (pow x 2)) 1/2)))))
#s(approx (cos x) #s(hole binary64 (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/24 (* -1/720 (pow x 2)))) 1/2)))))
#s(approx x #s(hole binary64 x))
#s(approx (sin x) #s(hole binary64 x))
#s(approx (sin x) #s(hole binary64 (* x (+ 1 (* -1/6 (pow x 2))))))
#s(approx (sin x) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 1/120 (pow x 2)) 1/6))))))
#s(approx (sin x) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (/ (- 1 (cos x)) (sin x))))
#s(approx (- 1 (cos x)) #s(hole binary64 (- 1 (cos x))))
#s(approx (cos x) #s(hole binary64 (cos x)))
#s(approx (sin x) #s(hole binary64 (sin x)))
Calls

3 calls:

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

rewrite154.0ms (5.8%)

Memory
30.7MiB live, 122.8MiB allocated; 5ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0104320
0110299
1582299
04946281
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
27 → 56
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)
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* 1/2 x)))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))))
#s(approx (- 1 (cos x)) #s(hole binary64 (* 1/2 (pow x 2))))
#s(approx (- 1 (cos x)) #s(hole binary64 (* (pow x 2) (+ 1/2 (* -1/24 (pow x 2))))))
#s(approx (- 1 (cos x)) #s(hole binary64 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* 1/720 (pow x 2)) 1/24))))))
#s(approx (- 1 (cos x)) #s(hole binary64 (* (pow x 2) (+ 1/2 (* (pow x 2) (- (* (pow x 2) (+ 1/720 (* -1/40320 (pow x 2)))) 1/24))))))
#s(approx (cos x) #s(hole binary64 1))
#s(approx (cos x) #s(hole binary64 (+ 1 (* -1/2 (pow x 2)))))
#s(approx (cos x) #s(hole binary64 (+ 1 (* (pow x 2) (- (* 1/24 (pow x 2)) 1/2)))))
#s(approx (cos x) #s(hole binary64 (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/24 (* -1/720 (pow x 2)))) 1/2)))))
#s(approx x #s(hole binary64 x))
#s(approx (sin x) #s(hole binary64 x))
#s(approx (sin x) #s(hole binary64 (* x (+ 1 (* -1/6 (pow x 2))))))
#s(approx (sin x) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* 1/120 (pow x 2)) 1/6))))))
#s(approx (sin x) #s(hole binary64 (* x (+ 1 (* (pow x 2) (- (* (pow x 2) (+ 1/120 (* -1/5040 (pow x 2)))) 1/6))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (/ (- 1 (cos x)) (sin x))))
#s(approx (- 1 (cos x)) #s(hole binary64 (- 1 (cos x))))
#s(approx (cos x) #s(hole binary64 (cos x)))
#s(approx (sin x) #s(hole binary64 (sin x)))
Outputs
(/.f64 (-.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.f64 #s(literal 1 binary64) (sin.f64 x))) (*.f64 (/.f64 (cos.f64 x) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x)))) (+.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x))))
(/.f64 (-.f64 (pow.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) #s(literal 3 binary64)) (pow.f64 (/.f64 (cos.f64 x) (sin.f64 x)) #s(literal 3 binary64))) (fma.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.f64 #s(literal 1 binary64) (sin.f64 x)) (fma.f64 (/.f64 (cos.f64 x) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x)) (*.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.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 #s(literal 1 binary64) (+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (cos.f64 (*.f64 #s(literal 2 binary64) x))))))
(/.f64 (sin.f64 (/.f64 x #s(literal 2 binary64))) (cos.f64 (/.f64 x #s(literal 2 binary64))))
(/.f64 (-.f64 #s(literal 1 binary64) (+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (cos.f64 (*.f64 #s(literal 2 binary64) 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 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x)))
(/.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (cos.f64 (*.f64 #s(literal 2 binary64) 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 #s(literal 1 binary64) (+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (cos.f64 (*.f64 #s(literal 2 binary64) 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 (+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (cos.f64 (*.f64 #s(literal 2 binary64) x)))) (+.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))
#s(literal 1 binary64)
(*.f64 (cos.f64 x) #s(literal 1 binary64))
(*.f64 #s(literal 1 binary64) (cos.f64 x))
(/.f64 (*.f64 #s(literal 2 binary64) (cos.f64 x)) #s(literal 2 binary64))
(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)))))
x
(sin.f64 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))
#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)) (*.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))
#s(approx (- 1 (cos x)) (*.f64 (*.f64 x x) #s(literal 1/2 binary64)))
#s(approx (- 1 (cos x)) (*.f64 (*.f64 (fma.f64 #s(literal -1/24 binary64) (*.f64 x x) #s(literal 1/2 binary64)) x) x))
#s(approx (- 1 (cos x)) (*.f64 (*.f64 (fma.f64 (-.f64 (*.f64 #s(literal 1/720 binary64) (*.f64 x x)) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) x) x))
#s(approx (- 1 (cos x)) (*.f64 (fma.f64 (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal -1/40320 binary64) (*.f64 x x) #s(literal 1/720 binary64)) x) x) #s(literal 1/24 binary64)) (*.f64 x x) #s(literal 1/2 binary64)) (*.f64 x x)))
#s(approx (cos x) #s(literal 1 binary64))
#s(approx (cos x) (fma.f64 #s(literal -1/2 binary64) (*.f64 x x) #s(literal 1 binary64)))
#s(approx (cos x) (fma.f64 (-.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64)))
#s(approx (cos x) (fma.f64 (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal -1/720 binary64) (*.f64 x x) #s(literal 1/24 binary64)) x) x) #s(literal 1/2 binary64)) (*.f64 x x) #s(literal 1 binary64)))
#s(approx x x)
#s(approx (sin x) x)
#s(approx (sin x) (*.f64 (fma.f64 #s(literal -1/6 binary64) (*.f64 x x) #s(literal 1 binary64)) x))
#s(approx (sin x) (*.f64 (fma.f64 (-.f64 (*.f64 #s(literal 1/120 binary64) (*.f64 x x)) #s(literal 1/6 binary64)) (*.f64 x x) #s(literal 1 binary64)) x))
#s(approx (sin x) (fma.f64 (*.f64 x (*.f64 x x)) (-.f64 (*.f64 (*.f64 (fma.f64 #s(literal -1/5040 binary64) (*.f64 x x) #s(literal 1/120 binary64)) x) x) #s(literal 1/6 binary64)) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (/.f64 x #s(literal 2 binary64))))
#s(approx (- 1 (cos x)) (-.f64 #s(literal 1 binary64) (cos.f64 x)))
#s(approx (cos x) (cos.f64 x))
#s(approx (sin x) (sin.f64 x))

eval6.0ms (0.2%)

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

Compiled 804 to 226 computations (71.9% saved)

prune6.0ms (0.2%)

Memory
-40.8MiB live, 3.7MiB allocated; 5ms collecting garbage
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New48351
Fresh000
Picked101
Done000
Total49352
Accuracy
100.0%
Counts
52 → 3
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(tan.f64 (/.f64 x #s(literal 2 binary64)))
50.0%
#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.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
Compiler

Compiled 31 to 25 computations (19.4% saved)

series6.0ms (0.2%)

Memory
9.5MiB live, 9.5MiB allocated; 0ms collecting garbage
Counts
12 → 22
Calls
Call 1
Inputs
#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)
#s(literal 1/24 binary64)
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(/.f64 x #s(literal 2 binary64))
#s(literal 2 binary64)
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* 1/2 x)))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))))
#s(approx (* 1/2 x) #s(hole binary64 (* 1/2 x)))
#s(approx x #s(hole binary64 x))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) #s(hole binary64 (* 1/2 x)))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(hole binary64 1/2))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(hole binary64 (+ 1/2 (* 1/24 (pow x 2)))))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#s(approx (tan (/ x 2)) #s(hole binary64 (* 1/2 x)))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))))
#s(approx (/ x 2) #s(hole binary64 (* 1/2 x)))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (/ (- 1 (cos x)) (sin x))))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) #s(hole binary64 (* 1/24 (pow x 3))))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) #s(hole binary64 (* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(hole binary64 (* 1/24 (pow x 2))))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(hole binary64 (* (pow x 2) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (/ (sin (* 1/2 x)) (cos (* 1/2 x)))))
Calls

3 calls:

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

rewrite93.0ms (3.5%)

Memory
23.2MiB live, 123.7MiB allocated; 13ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
075379
080342
1339342
02493330
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
34 → 128
Calls
Call 1
Inputs
#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)
#s(literal 1/24 binary64)
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(/.f64 x #s(literal 2 binary64))
#s(literal 2 binary64)
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* 1/2 x)))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))))
#s(approx (* 1/2 x) #s(hole binary64 (* 1/2 x)))
#s(approx x #s(hole binary64 x))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) #s(hole binary64 (* 1/2 x)))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(hole binary64 1/2))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(hole binary64 (+ 1/2 (* 1/24 (pow x 2)))))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#s(approx (tan (/ x 2)) #s(hole binary64 (* 1/2 x)))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))))
#s(approx (/ x 2) #s(hole binary64 (* 1/2 x)))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (/ (- 1 (cos x)) (sin x))))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) #s(hole binary64 (* 1/24 (pow x 3))))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) #s(hole binary64 (* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(hole binary64 (* 1/24 (pow x 2))))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(hole binary64 (* (pow x 2) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (/ (sin (* 1/2 x)) (cos (* 1/2 x)))))
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
(*.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 1 binary64))
(*.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
(*.f64 x #s(literal 1/2 binary64))
#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)
(*.f64 x (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)))
(/.f64 (*.f64 (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) #s(literal -1/4 binary64)) 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 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64))) x) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))))
(/.f64 (*.f64 (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64)) x) (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/48 binary64) (*.f64 x x)))))
(/.f64 (*.f64 (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64)) x) (fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)) #s(literal 1/4 binary64)))
(/.f64 (*.f64 x (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) #s(literal -1/4 binary64))) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)))
(/.f64 (*.f64 x (-.f64 #s(literal 1/4 binary64) (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)))) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))))
(/.f64 (*.f64 x (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64))) (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/48 binary64) (*.f64 x x)))))
(/.f64 (*.f64 x (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64))) (fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)) #s(literal 1/4 binary64)))
(/.f64 (-.f64 (*.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 #s(literal 1/2 binary64) x)) (*.f64 (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64))))
(/.f64 (+.f64 (pow.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 3 binary64)) (pow.f64 (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)) #s(literal 3 binary64))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64))) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64))))))
(fma.f64 (*.f64 #s(literal 1/24 binary64) (pow.f64 x #s(literal 3/2 binary64))) (pow.f64 x #s(literal 3/2 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (*.f64 #s(literal 1/24 binary64) x) (*.f64 x x) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (pow.f64 x #s(literal 3/2 binary64)) (*.f64 (pow.f64 x #s(literal 3/2 binary64)) #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x))
(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 #s(literal 1/24 binary64) x) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 1 binary64) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(fma.f64 #s(literal 1/24 binary64) (*.f64 (*.f64 x x) x) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(fma.f64 #s(literal 1/2 binary64) x (*.f64 (*.f64 (*.f64 x x) x) #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 x #s(literal 1/2 binary64) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(-.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 (neg.f64 x) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))))
(+.f64 (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(+.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(/.f64 (-.f64 #s(literal 1/8 binary64) (pow.f64 (*.f64 #s(literal -1/24 binary64) (*.f64 x x)) #s(literal 3 binary64))) (+.f64 #s(literal 1/4 binary64) (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) (*.f64 #s(literal 1/2 binary64) (*.f64 #s(literal -1/24 binary64) (*.f64 x x))))))
(/.f64 (neg.f64 (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) #s(literal -1/4 binary64))) (neg.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64))))
(/.f64 (neg.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)))) (neg.f64 (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)))))
(/.f64 (neg.f64 (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64))) (neg.f64 (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/48 binary64) (*.f64 x x))))))
(/.f64 (neg.f64 (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64))) (neg.f64 (fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)) #s(literal 1/4 binary64))))
(/.f64 (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) #s(literal -1/4 binary64)) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)))
(/.f64 (-.f64 #s(literal 1/4 binary64) (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64))) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))))
(/.f64 (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64)) (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/48 binary64) (*.f64 x x)))))
(/.f64 (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64)) (fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)) #s(literal 1/4 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 (*.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))
(fma.f64 x (*.f64 #s(literal 1/24 binary64) x) #s(literal 1/2 binary64))
(-.f64 (/.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64))) (/.f64 #s(literal 1/4 binary64) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64))))
(-.f64 (/.f64 #s(literal 1/4 binary64) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)))) (/.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)))))
(-.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal -1/2 binary64))
(-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 (neg.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 #s(literal 1/2 binary64) (*.f64 #s(literal -1/24 binary64) (*.f64 x x)))
(+.f64 (/.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))) (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/48 binary64) (*.f64 x x))))) (/.f64 #s(literal 1/8 binary64) (fma.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64) (-.f64 #s(literal 1/4 binary64) (*.f64 #s(literal 1/48 binary64) (*.f64 x x))))))
(+.f64 (/.f64 #s(literal 1/8 binary64) (fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)) #s(literal 1/4 binary64))) (/.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))) (fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal -1/2 binary64)) #s(literal 1/4 binary64))))
(+.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/2 binary64))
(+.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.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 (exp.f64 (log.f64 x)) #s(literal 2 binary64))
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(fabs.f64 (*.f64 x x))
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
#s(literal 1/24 binary64)
(/.f64 (-.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.f64 #s(literal 1 binary64) (sin.f64 x))) (*.f64 (/.f64 (cos.f64 x) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x)))) (+.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x))))
(/.f64 (-.f64 (pow.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) #s(literal 3 binary64)) (pow.f64 (/.f64 (cos.f64 x) (sin.f64 x)) #s(literal 3 binary64))) (fma.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.f64 #s(literal 1 binary64) (sin.f64 x)) (fma.f64 (/.f64 (cos.f64 x) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x)) (*.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.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 (neg.f64 (sin.f64 (/.f64 x #s(literal 2 binary64)))) (neg.f64 (cos.f64 (/.f64 x #s(literal 2 binary64)))))
(/.f64 (-.f64 (*.f64 #s(literal 1 binary64) (sin.f64 x)) (*.f64 (sin.f64 x) (cos.f64 x))) (-.f64 #s(literal 1 binary64) (+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (cos.f64 (*.f64 #s(literal 2 binary64) x))))))
(/.f64 (+.f64 (tan.f64 (/.f64 x #s(literal 2 binary64))) (tan.f64 (PI.f64))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 (/.f64 x #s(literal 2 binary64))) (tan.f64 (PI.f64)))))
(/.f64 (sin.f64 (+.f64 (PI.f64) (/.f64 x #s(literal 2 binary64)))) (cos.f64 (+.f64 (PI.f64) (/.f64 x #s(literal 2 binary64)))))
(/.f64 (-.f64 #s(literal 1 binary64) (+.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1/2 binary64) (cos.f64 (*.f64 #s(literal 2 binary64) 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 (sin.f64 x)) (neg.f64 (+.f64 (cos.f64 x) #s(literal 1 binary64))))
(/.f64 (neg.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x))) (neg.f64 (sin.f64 x)))
(/.f64 (sin.f64 (/.f64 x #s(literal 2 binary64))) (cos.f64 (/.f64 x #s(literal 2 binary64))))
(/.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 (PI.f64) (/.f64 x #s(literal 2 binary64))) (PI.f64)))
(tan.f64 (+.f64 (PI.f64) (/.f64 x #s(literal 2 binary64))))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(-.f64 (/.f64 #s(literal 1 binary64) (sin.f64 x)) (/.f64 (cos.f64 x) (sin.f64 x)))
(/.f64 (neg.f64 (neg.f64 x)) #s(literal 2 binary64))
(/.f64 (neg.f64 x) #s(literal -2 binary64))
(/.f64 x #s(literal 2 binary64))
(neg.f64 (/.f64 (neg.f64 x) #s(literal 2 binary64)))
(neg.f64 (/.f64 x #s(literal -2 binary64)))
#s(literal 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 (*.f64 x x) #s(literal 1/24 binary64) #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)) (*.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))
#s(approx (* 1/2 x) (*.f64 #s(literal 1/2 binary64) x))
#s(approx x x)
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
#s(approx (+ (* (* x x) 1/24) 1/2) #s(literal 1/2 binary64))
#s(approx (+ (* (* x x) 1/24) 1/2) (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)))
#s(approx (* x x) (*.f64 x 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))
#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)) (*.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))
#s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (/.f64 x #s(literal 2 binary64))))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
#s(approx (* (+ (* (* x x) 1/24) 1/2) x) (*.f64 (*.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal 1/24 binary64)) x) (*.f64 x x)))
#s(approx (+ (* (* x x) 1/24) 1/2) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)))
#s(approx (+ (* (* x x) 1/24) 1/2) (*.f64 (*.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal 1/24 binary64)) x) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))

eval13.0ms (0.5%)

Memory
-20.8MiB live, 25.1MiB allocated; 2ms collecting garbage
Compiler

Compiled 2 424 to 449 computations (81.5% saved)

prune4.0ms (0.2%)

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

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New1122114
Fresh000
Picked123
Done000
Total1134117
Accuracy
100.0%
Counts
117 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(tan.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))
50.0%
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x)))
50.0%
#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.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
Compiler

Compiled 53 to 41 computations (22.6% saved)

series5.0ms (0.2%)

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

3 calls:

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

rewrite88.0ms (3.3%)

Memory
-3.3MiB live, 92.1MiB allocated; 9ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
070341
078295
1338294
02533283
Stop Event
iter-limit
iter-limit
node-limit
iter-limit
Counts
29 → 103
Calls
Call 1
Inputs
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x)))
(fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x))
(*.f64 (*.f64 x x) x)
(*.f64 x x)
x
#s(literal 1/24 binary64)
(*.f64 #s(literal 1/2 binary64) x)
#s(literal 1/2 binary64)
(tan.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))
#s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* 1/2 x)))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))))
#s(approx (+ (* (* (* x x) x) 1/24) (* 1/2 x)) #s(hole binary64 (* 1/2 x)))
#s(approx (+ (* (* (* x x) x) 1/24) (* 1/2 x)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (* (* x x) x) #s(hole binary64 (pow x 3)))
#s(approx (* x x) #s(hole binary64 (pow x 2)))
#s(approx x #s(hole binary64 x))
#s(approx (* 1/2 x) #s(hole binary64 (* 1/2 x)))
#s(approx (tan (/ x 2)) #s(hole binary64 (* 1/2 x)))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* 1/24 (pow x 2))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* 1/240 (pow x 2))))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (* x (+ 1/2 (* (pow x 2) (+ 1/24 (* (pow x 2) (+ 1/240 (* 17/40320 (pow x 2))))))))))
#s(approx (/ x 2) #s(hole binary64 (* 1/2 x)))
#s(approx (/ (- 1 (cos x)) (sin x)) #s(hole binary64 (/ (- 1 (cos x)) (sin x))))
#s(approx (+ (* (* (* x x) x) 1/24) (* 1/2 x)) #s(hole binary64 (* 1/24 (pow x 3))))
#s(approx (+ (* (* (* x x) x) 1/24) (* 1/2 x)) #s(hole binary64 (* (pow x 3) (+ 1/24 (* 1/2 (/ 1 (pow x 2)))))))
#s(approx (tan (/ x 2)) #s(hole binary64 (/ (sin (* 1/2 x)) (cos (* 1/2 x)))))
Outputs
#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)
(*.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 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64))) x) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))))
(/.f64 (*.f64 (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64)) x) (fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (-.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/2 binary64)) #s(literal 1/4 binary64)))
(/.f64 (*.f64 x (-.f64 #s(literal 1/4 binary64) (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)))) (-.f64 #s(literal 1/2 binary64) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))))
(/.f64 (*.f64 x (fma.f64 (*.f64 (*.f64 (*.f64 x x) (*.f64 x x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/8 binary64))) (fma.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (-.f64 (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) #s(literal 1/2 binary64)) #s(literal 1/4 binary64)))
(/.f64 (-.f64 (*.f64 #s(literal 1/4 binary64) (*.f64 x x)) (*.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64))) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64))))
(/.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64))) (pow.f64 (*.f64 #s(literal -1/2 binary64) x) #s(literal 3 binary64))) (fma.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64) (fma.f64 #s(literal 1/4 binary64) (*.f64 x x) (*.f64 (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)) (*.f64 #s(literal -1/2 binary64) x)))))
(/.f64 (neg.f64 (*.f64 (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x)))) (neg.f64 (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x))))
(/.f64 (neg.f64 (fma.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 x x) x) (*.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64))))) (neg.f64 (fma.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))))))
(/.f64 (*.f64 (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x))) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x)))
(/.f64 (fma.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 x x) x) (*.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))) (fma.f64 #s(literal 1/4 binary64) (*.f64 x x) (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)) #s(literal 1/2 binary64)) x))))
(/.f64 (fma.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 x x) x) (*.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))) (fma.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64))))))
(fma.f64 (*.f64 #s(literal 1/24 binary64) (pow.f64 x #s(literal 3/2 binary64))) (pow.f64 x #s(literal 3/2 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (*.f64 #s(literal 1/24 binary64) x) (*.f64 x x) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (pow.f64 x #s(literal 3/2 binary64)) (*.f64 (pow.f64 x #s(literal 3/2 binary64)) #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) (*.f64 #s(literal 1/24 binary64) x)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (neg.f64 x) (*.f64 (neg.f64 x) (*.f64 #s(literal 1/24 binary64) x)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x))
(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 #s(literal 1/24 binary64) x) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 1 binary64) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(fma.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(fma.f64 #s(literal 1/2 binary64) x (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(fma.f64 #s(literal 1/24 binary64) (*.f64 (*.f64 x x) x) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 x (*.f64 (*.f64 x x) #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(fma.f64 x #s(literal 1/2 binary64) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(-.f64 (/.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64)) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x))) (/.f64 (*.f64 #s(literal 1/4 binary64) (*.f64 x x)) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal -1/2 binary64) x))))
(-.f64 (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)) (*.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 (neg.f64 x) (*.f64 (*.f64 x x) #s(literal 1/24 binary64))))
(-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (neg.f64 (*.f64 (*.f64 x x) x)) #s(literal 1/24 binary64)))
(-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (neg.f64 x) x) (*.f64 #s(literal 1/24 binary64) x)))
(-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 #s(literal -1/24 binary64) (*.f64 (*.f64 x x) x)))
(+.f64 (/.f64 (*.f64 (*.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64)) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64))) (fma.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))))) (/.f64 (*.f64 #s(literal 1/8 binary64) (*.f64 (*.f64 x x) x)) (fma.f64 (*.f64 (*.f64 (*.f64 x x) x) (*.f64 (*.f64 x x) x)) #s(literal 1/576 binary64) (*.f64 (*.f64 #s(literal 1/2 binary64) x) (-.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))))))
(+.f64 (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)) (*.f64 #s(literal 1/2 binary64) x))
(+.f64 (*.f64 #s(literal 1/2 binary64) x) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
(*.f64 (*.f64 x (fabs.f64 x)) (fabs.f64 x))
(*.f64 (neg.f64 (pow.f64 x #s(literal 3/2 binary64))) (neg.f64 (pow.f64 x #s(literal 3/2 binary64))))
(*.f64 (fabs.f64 (pow.f64 x #s(literal 3/2 binary64))) (fabs.f64 (pow.f64 x #s(literal 3/2 binary64))))
(*.f64 (pow.f64 x #s(literal 3/2 binary64)) (pow.f64 x #s(literal 3/2 binary64)))
(*.f64 (*.f64 (neg.f64 x) x) (neg.f64 x))
(*.f64 (fabs.f64 x) (*.f64 (fabs.f64 x) x))
(*.f64 (neg.f64 x) (*.f64 (neg.f64 x) x))
(*.f64 (*.f64 x x) x)
(*.f64 x (*.f64 x x))
(pow.f64 (exp.f64 (log.f64 x)) #s(literal 3 binary64))
(pow.f64 (pow.f64 x #s(literal 3/2 binary64)) #s(literal 2 binary64))
(pow.f64 (*.f64 x x) #s(literal 3/2 binary64))
(pow.f64 x #s(literal 3 binary64))
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 3 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 3 binary64))))
(exp.f64 (*.f64 (log.f64 x) #s(literal 3 binary64)))
(*.f64 (neg.f64 (fabs.f64 x)) (neg.f64 (fabs.f64 x)))
(*.f64 (fabs.f64 (fabs.f64 x)) (fabs.f64 (fabs.f64 x)))
(*.f64 (exp.f64 (log.f64 x)) (exp.f64 (log.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 (exp.f64 (log.f64 x)) #s(literal 2 binary64))
(pow.f64 (fabs.f64 x) #s(literal 2 binary64))
(pow.f64 (neg.f64 x) #s(literal 2 binary64))
(pow.f64 (*.f64 x x) #s(literal 1 binary64))
(pow.f64 x #s(literal 2 binary64))
(neg.f64 (*.f64 (neg.f64 x) x))
(fabs.f64 (*.f64 x x))
(+.f64 (cosh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))) (sinh.f64 (*.f64 (log.f64 x) #s(literal 2 binary64))))
(exp.f64 (*.f64 (log.f64 x) #s(literal 2 binary64)))
x
#s(literal 1/24 binary64)
(*.f64 (*.f64 #s(literal 1/2 binary64) x) #s(literal 1 binary64))
(*.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 1 binary64) x))
(*.f64 #s(literal 1/2 binary64) x)
(*.f64 x #s(literal 1/2 binary64))
#s(literal 1/2 binary64)
(/.f64 (neg.f64 (sin.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))) (neg.f64 (cos.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))))
(/.f64 (+.f64 (tan.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))) (tan.f64 (PI.f64))) (-.f64 #s(literal 1 binary64) (*.f64 (tan.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))) (tan.f64 (PI.f64)))))
(/.f64 (sin.f64 (+.f64 (PI.f64) #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))) (cos.f64 (+.f64 (PI.f64) #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))))
(/.f64 (sin.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))) (cos.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))))
(tan.f64 (+.f64 (+.f64 (PI.f64) #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))) (PI.f64)))
(tan.f64 (+.f64 (PI.f64) #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))))
(tan.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))
#s(approx (/ x 2) (*.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))
#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)) (*.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))
#s(approx (+ (* (* (* x x) x) 1/24) (* 1/2 x)) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (+ (* (* (* x x) x) 1/24) (* 1/2 x)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
#s(approx (* (* x x) x) (*.f64 (*.f64 x x) x))
#s(approx (* x x) (*.f64 x x))
#s(approx x x)
#s(approx (* 1/2 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))
#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)) (*.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))
#s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (/.f64 x #s(literal 2 binary64))))
#s(approx (+ (* (* (* x x) x) 1/24) (* 1/2 x)) (*.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64)))
#s(approx (+ (* (* (* x x) x) 1/24) (* 1/2 x)) (*.f64 (*.f64 (+.f64 (/.f64 #s(literal 1/2 binary64) (*.f64 x x)) #s(literal 1/24 binary64)) x) (*.f64 x x)))
#s(approx (/ (- 1 (cos x)) (sin x)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))

eval12.0ms (0.4%)

Memory
-24.3MiB live, 21.9MiB allocated; 4ms collecting garbage
Compiler

Compiled 2 207 to 371 computations (83.2% saved)

prune4.0ms (0.1%)

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

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New93093
Fresh000
Picked022
Done022
Total93497
Accuracy
100.0%
Counts
97 → 4
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(tan.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))
50.0%
#s(approx (/ (- 1 (cos x)) (sin x)) (fma.f64 (*.f64 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x)))
50.0%
#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.3%
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
Compiler

Compiled 117 to 70 computations (40.2% saved)

regimes5.0ms (0.2%)

Memory
9.7MiB live, 9.7MiB allocated; 0ms 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 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x)))
(tan.f64 #s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x)))
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Outputs
(tan.f64 #s(approx (/ x 2) (*.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
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)

regimes3.0ms (0.1%)

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

Total -0.3b remaining (-0.8%)

Threshold costs -0.3b (-0.8%)

Counts
3 → 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 (*.f64 x x) x) #s(literal 1/24 binary64) (*.f64 #s(literal 1/2 binary64) x)))
Outputs
#s(approx (/ (- 1 (cos x)) (sin x)) (*.f64 #s(literal 1/2 binary64) x))
Calls

2 calls:

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

Compiled 8 to 7 computations (12.5% saved)

derivations40.0ms (1.5%)

Memory
1.6MiB live, 48.4MiB allocated; 3ms collecting garbage
Stop Event
done
Compiler

Compiled 19 to 13 computations (31.6% saved)

preprocess23.0ms (0.9%)

Memory
-1.5MiB live, 44.6MiB allocated; 4ms collecting garbage
Remove

(negabs x)

Compiler

Compiled 90 to 70 computations (22.2% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...