Average Error: 0.3 → 0.3
Time: 9.0s
Precision: 64
$x \ge 0.0 \land x \le 1$
$\frac{1}{\tan \left(\pi \cdot x\right)}$
$\frac{1}{\tan \left(\pi \cdot x\right)}$
\frac{1}{\tan \left(\pi \cdot x\right)}
\frac{1}{\tan \left(\pi \cdot x\right)}
double f(double x) {
double r2188810 = 1.0;
double r2188811 = atan2(1.0, 0.0);
double r2188812 = x;
double r2188813 = r2188811 * r2188812;
double r2188814 = tan(r2188813);
double r2188815 = r2188810 / r2188814;
return r2188815;
}


double f(double x) {
double r2188816 = 1.0;
double r2188817 = atan2(1.0, 0.0);
double r2188818 = x;
double r2188819 = r2188817 * r2188818;
double r2188820 = tan(r2188819);
double r2188821 = r2188816 / r2188820;
return r2188821;
}



# Try it out

Results

 In Out
Enter valid numbers for all inputs

# Derivation

1. Initial program 0.3

$\frac{1}{\tan \left(\pi \cdot x\right)}$
2. Final simplification0.3

$\leadsto \frac{1}{\tan \left(\pi \cdot x\right)}$

# Reproduce

herbie shell --seed 1
(FPCore (x)
:name "1/tan(PI*x)"
:precision binary64
:pre (and (>= x 0.0) (<= x 1))
(/ 1 (tan (* PI x))))