tanhf (example 3.4)

Time bar (total: 3.1s)

start0.0ms (0%)

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

analyze128.0ms (4.1%)

Memory
-12.5MiB live, 127.8MiB allocated; 21ms 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.3s (74.9%)

Memory
-51.4MiB live, 2 258.8MiB allocated; 925ms collecting garbage
Samples
676.0ms2 272×2valid
534.0ms1 244×1valid
482.0ms4 090×0valid
295.0ms646×3valid
5.0ms4valid
Precisions
Click to see histograms. Total time spent on operations: 1.7s
ival-cos: 749.0ms (43.7% of total)
adjust: 516.0ms (30.1% of total)
ival-sin: 173.0ms (10.1% of total)
ival-div: 168.0ms (9.8% of total)
ival-sub: 98.0ms (5.7% of total)
exact: 8.0ms (0.5% of total)
ival-assert: 3.0ms (0.2% of total)
Bogosity

explain164.0ms (5.3%)

Memory
0.3MiB live, 195.0MiB allocated; 10ms collecting garbage
FPErrors
Click to see full error table
Ground TruthOverpredictionsExampleUnderpredictionsExampleSubexpression
712(-7.507381927218451e+247)1(-2331351213099.222)(-.f64 #s(literal 1 binary64) (cos.f64 x))
640-3(4.745889519270644e-162)(/.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))cancellation726
/.f64(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))u/n610
(-.f64 #s(literal 1 binary64) (cos.f64 x))underflow61
Confusion
Predicted +Predicted -
+1331
-0122
Precision
1.0
Recall
0.9925373134328358
Confusion?
Predicted +Predicted MaybePredicted -
+13310
-05117
Precision?
0.9640287769784173
Recall?
1.0
Freqs
test
numberfreq
0123
1133
Total Confusion?
Predicted +Predicted MaybePredicted -
+100
-000
Precision?
1.0
Recall?
1.0
Samples
50.0ms154×2valid
30.0ms256×0valid
15.0ms32×3valid
9.0ms70×1valid
Compiler

Compiled 45 to 22 computations (51.1% saved)

Precisions
Click to see histograms. Total time spent on operations: 84.0ms
ival-cos: 48.0ms (57% of total)
ival-sin: 13.0ms (15.4% of total)
adjust: 11.0ms (13.1% of total)
ival-div: 6.0ms (7.1% of total)
ival-sub: 5.0ms (5.9% of total)
ival-assert: 0.0ms (0% of total)
ival-true: 0.0ms (0% of total)
exact: 0.0ms (0% of total)

preprocess151.0ms (4.9%)

Memory
7.5MiB live, 107.2MiB allocated; 13ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01213
14013
27812
315212
439212
5144712
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.0MiB live, 0.0MiB allocated; 0ms collecting garbage
Compiler

Compiled 0 to 1 computations (-∞% saved)

prune0.0ms (0%)

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

Compiled 7 to 6 computations (14.3% saved)

series3.0ms (0.1%)

Memory
2.4MiB live, 2.4MiB 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))

rewrite138.0ms (4.4%)

Memory
-0.6MiB live, 91.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 (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))
#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))

eval7.0ms (0.2%)

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

Compiled 829 to 225 computations (72.9% saved)

prune7.0ms (0.2%)

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

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New57158
Fresh000
Picked101
Done000
Total58159
Accuracy
100.0%
Counts
59 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Compiler

Compiled 4 to 4 computations (0% saved)

series3.0ms (0.1%)

Memory
2.1MiB live, 2.1MiB allocated; 0ms collecting garbage
Counts
4 → 7
Calls
Call 1
Inputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(/.f64 x #s(literal 2 binary64))
x
#s(literal 2 binary64)
Outputs
#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 x #s(hole binary64 x))
#s(approx (tan (/ x 2)) #s(hole binary64 (/ (sin (* 1/2 x)) (cos (* 1/2 x)))))
Calls

3 calls:

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

rewrite102.0ms (3.3%)

Memory
-30.5MiB live, 69.3MiB allocated; 8ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
037101
03896
121096
0159890
Stop Event
iter limit
iter limit
node limit
iter limit
Counts
11 → 26
Calls
Call 1
Inputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(/.f64 x #s(literal 2 binary64))
x
#s(literal 2 binary64)
#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 x #s(hole binary64 x))
#s(approx (tan (/ x 2)) #s(hole binary64 (/ (sin (* 1/2 x)) (cos (* 1/2 x)))))
Outputs
(/.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 (neg.f64 (sin.f64 (/.f64 x #s(literal 2 binary64)))) (neg.f64 (cos.f64 (/.f64 x #s(literal 2 binary64)))))
(/.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 (sin.f64 x) (+.f64 (cos.f64 x) #s(literal 1 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
(/.f64 (sin.f64 (/.f64 x #s(literal 2 binary64))) (cos.f64 (/.f64 x #s(literal 2 binary64))))
(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)))
x
#s(literal 2 binary64)
#s(approx (tan (/ x 2)) (*.f64 #s(literal 1/2 binary64) x))
#s(approx (tan (/ x 2)) (*.f64 (fma.f64 (*.f64 x x) #s(literal 1/24 binary64) #s(literal 1/2 binary64)) x))
#s(approx (tan (/ 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))
#s(approx (tan (/ 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))
#s(approx (/ x 2) (*.f64 #s(literal 1/2 binary64) x))
#s(approx x x)
#s(approx (tan (/ x 2)) (tan.f64 (*.f64 #s(literal 1/2 binary64) x)))

eval3.0ms (0.1%)

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

Compiled 229 to 80 computations (65.1% saved)

prune4.0ms (0.1%)

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

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New26026
Fresh000
Picked011
Done000
Total26127
Accuracy
100.0%
Counts
27 → 1
Alt Table
Click to see full alt table
StatusAccuracyProgram
100.0%
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Compiler

Compiled 15 to 13 computations (13.3% saved)

regimes3.0ms (0.1%)

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

Total -30.2b remaining (-∞%)

Threshold costs -30.2b (-∞%)

Counts
2 → 1
Calls
Call 1
Inputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))
(/.f64 (-.f64 #s(literal 1 binary64) (cos.f64 x)) (sin.f64 x))
Outputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Calls

2 calls:

1.0ms
x
1.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)

simplify34.0ms (1.1%)

Memory
-27.9MiB live, 19.1MiB allocated; 3ms collecting garbage
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
044
164
294
3154
4474
53684
634594
Stop Event
node limit
Calls
Call 1
Inputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))
Outputs
(tan.f64 (/.f64 x #s(literal 2 binary64)))

derivations14.0ms (0.5%)

Memory
10.5MiB live, 10.5MiB allocated; 0ms collecting garbage
Stop Event
done
Compiler

Compiled 4 to 4 computations (0% saved)

preprocess17.0ms (0.5%)

Memory
21.9MiB live, 21.9MiB allocated; 0ms collecting garbage
Remove

(negabs x)

Compiler

Compiled 38 to 36 computations (5.3% saved)

end0.0ms (0%)

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

Profiling

Loading profile data...