
(FPCore (x) :precision binary64 (/ (- x (sin x)) (- x (tan x))))
double code(double x) {
return (x - sin(x)) / (x - tan(x));
}
real(8) function code(x)
real(8), intent (in) :: x
code = (x - sin(x)) / (x - tan(x))
end function
public static double code(double x) {
return (x - Math.sin(x)) / (x - Math.tan(x));
}
def code(x): return (x - math.sin(x)) / (x - math.tan(x))
function code(x) return Float64(Float64(x - sin(x)) / Float64(x - tan(x))) end
function tmp = code(x) tmp = (x - sin(x)) / (x - tan(x)); end
code[x_] := N[(N[(x - N[Sin[x], $MachinePrecision]), $MachinePrecision] / N[(x - N[Tan[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - \sin x}{x - \tan x}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x) :precision binary64 (/ (- x (sin x)) (- x (tan x))))
double code(double x) {
return (x - sin(x)) / (x - tan(x));
}
real(8) function code(x)
real(8), intent (in) :: x
code = (x - sin(x)) / (x - tan(x))
end function
public static double code(double x) {
return (x - Math.sin(x)) / (x - Math.tan(x));
}
def code(x): return (x - math.sin(x)) / (x - math.tan(x))
function code(x) return Float64(Float64(x - sin(x)) / Float64(x - tan(x))) end
function tmp = code(x) tmp = (x - sin(x)) / (x - tan(x)); end
code[x_] := N[(N[(x - N[Sin[x], $MachinePrecision]), $MachinePrecision] / N[(x - N[Tan[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - \sin x}{x - \tan x}
\end{array}
NOTE: x should be positive before calling this function
(FPCore (x)
:precision binary64
(if (<= x 0.05)
(-
(+
(* 0.225 (pow x 2.0))
(*
(pow x 4.0)
(fma x (* x 0.00024107142857142857) -0.009642857142857142)))
0.5)
(pow (/ (- (tan x) x) (- (sin x) x)) -1.0)))x = abs(x);
double code(double x) {
double tmp;
if (x <= 0.05) {
tmp = ((0.225 * pow(x, 2.0)) + (pow(x, 4.0) * fma(x, (x * 0.00024107142857142857), -0.009642857142857142))) - 0.5;
} else {
tmp = pow(((tan(x) - x) / (sin(x) - x)), -1.0);
}
return tmp;
}
x = abs(x) function code(x) tmp = 0.0 if (x <= 0.05) tmp = Float64(Float64(Float64(0.225 * (x ^ 2.0)) + Float64((x ^ 4.0) * fma(x, Float64(x * 0.00024107142857142857), -0.009642857142857142))) - 0.5); else tmp = Float64(Float64(tan(x) - x) / Float64(sin(x) - x)) ^ -1.0; end return tmp end
NOTE: x should be positive before calling this function code[x_] := If[LessEqual[x, 0.05], N[(N[(N[(0.225 * N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[Power[x, 4.0], $MachinePrecision] * N[(x * N[(x * 0.00024107142857142857), $MachinePrecision] + -0.009642857142857142), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 0.5), $MachinePrecision], N[Power[N[(N[(N[Tan[x], $MachinePrecision] - x), $MachinePrecision] / N[(N[Sin[x], $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]]
\begin{array}{l}
x = |x|\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.05:\\
\;\;\;\;\left(0.225 \cdot {x}^{2} + {x}^{4} \cdot \mathsf{fma}\left(x, x \cdot 0.00024107142857142857, -0.009642857142857142\right)\right) - 0.5\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\tan x - x}{\sin x - x}\right)}^{-1}\\
\end{array}
\end{array}
if x < 0.050000000000000003Initial program 38.6%
sub-neg38.6%
+-commutative38.6%
neg-sub038.6%
associate-+l-38.6%
sub0-neg38.6%
neg-mul-138.6%
sub-neg38.6%
+-commutative38.6%
neg-sub038.6%
associate-+l-38.6%
sub0-neg38.6%
neg-mul-138.6%
times-frac38.6%
metadata-eval38.6%
*-lft-identity38.6%
Simplified38.6%
Taylor expanded in x around 0 62.9%
expm1-log1p-u62.9%
expm1-udef62.9%
+-commutative62.9%
fma-def62.9%
Applied egg-rr62.9%
expm1-def62.9%
expm1-log1p62.9%
fma-udef62.9%
*-commutative62.9%
metadata-eval62.9%
pow-sqr62.9%
cube-mult62.9%
associate-*r*62.9%
pow-plus62.9%
metadata-eval62.9%
associate-*r*62.9%
*-commutative62.9%
distribute-lft-out63.7%
associate-*l*63.7%
fma-def63.7%
Simplified63.7%
if 0.050000000000000003 < x Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
*-lft-identity100.0%
Simplified100.0%
clear-num100.0%
inv-pow100.0%
Applied egg-rr100.0%
Final simplification74.0%
NOTE: x should be positive before calling this function (FPCore (x) :precision binary64 (if (<= x 0.029) (+ (+ (* x (* x 0.225)) (* (pow x 4.0) -0.009642857142857142)) -0.5) (pow (/ (- (tan x) x) (- (sin x) x)) -1.0)))
x = abs(x);
double code(double x) {
double tmp;
if (x <= 0.029) {
tmp = ((x * (x * 0.225)) + (pow(x, 4.0) * -0.009642857142857142)) + -0.5;
} else {
tmp = pow(((tan(x) - x) / (sin(x) - x)), -1.0);
}
return tmp;
}
NOTE: x should be positive before calling this function
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 0.029d0) then
tmp = ((x * (x * 0.225d0)) + ((x ** 4.0d0) * (-0.009642857142857142d0))) + (-0.5d0)
else
tmp = ((tan(x) - x) / (sin(x) - x)) ** (-1.0d0)
end if
code = tmp
end function
x = Math.abs(x);
public static double code(double x) {
double tmp;
if (x <= 0.029) {
tmp = ((x * (x * 0.225)) + (Math.pow(x, 4.0) * -0.009642857142857142)) + -0.5;
} else {
tmp = Math.pow(((Math.tan(x) - x) / (Math.sin(x) - x)), -1.0);
}
return tmp;
}
x = abs(x) def code(x): tmp = 0 if x <= 0.029: tmp = ((x * (x * 0.225)) + (math.pow(x, 4.0) * -0.009642857142857142)) + -0.5 else: tmp = math.pow(((math.tan(x) - x) / (math.sin(x) - x)), -1.0) return tmp
x = abs(x) function code(x) tmp = 0.0 if (x <= 0.029) tmp = Float64(Float64(Float64(x * Float64(x * 0.225)) + Float64((x ^ 4.0) * -0.009642857142857142)) + -0.5); else tmp = Float64(Float64(tan(x) - x) / Float64(sin(x) - x)) ^ -1.0; end return tmp end
x = abs(x) function tmp_2 = code(x) tmp = 0.0; if (x <= 0.029) tmp = ((x * (x * 0.225)) + ((x ^ 4.0) * -0.009642857142857142)) + -0.5; else tmp = ((tan(x) - x) / (sin(x) - x)) ^ -1.0; end tmp_2 = tmp; end
NOTE: x should be positive before calling this function code[x_] := If[LessEqual[x, 0.029], N[(N[(N[(x * N[(x * 0.225), $MachinePrecision]), $MachinePrecision] + N[(N[Power[x, 4.0], $MachinePrecision] * -0.009642857142857142), $MachinePrecision]), $MachinePrecision] + -0.5), $MachinePrecision], N[Power[N[(N[(N[Tan[x], $MachinePrecision] - x), $MachinePrecision] / N[(N[Sin[x], $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]]
\begin{array}{l}
x = |x|\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.029:\\
\;\;\;\;\left(x \cdot \left(x \cdot 0.225\right) + {x}^{4} \cdot -0.009642857142857142\right) + -0.5\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\tan x - x}{\sin x - x}\right)}^{-1}\\
\end{array}
\end{array}
if x < 0.0290000000000000015Initial program 38.6%
sub-neg38.6%
+-commutative38.6%
neg-sub038.6%
associate-+l-38.6%
sub0-neg38.6%
neg-mul-138.6%
sub-neg38.6%
+-commutative38.6%
neg-sub038.6%
associate-+l-38.6%
sub0-neg38.6%
neg-mul-138.6%
times-frac38.6%
metadata-eval38.6%
*-lft-identity38.6%
Simplified38.6%
Taylor expanded in x around 0 62.5%
sub-neg62.5%
fma-def62.5%
unpow262.5%
metadata-eval62.5%
Simplified62.5%
fma-udef62.5%
*-commutative62.5%
associate-*l*62.5%
Applied egg-rr62.5%
if 0.0290000000000000015 < x Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
*-lft-identity100.0%
Simplified100.0%
clear-num100.0%
inv-pow100.0%
Applied egg-rr100.0%
Final simplification73.2%
NOTE: x should be positive before calling this function (FPCore (x) :precision binary64 (if (<= x 0.029) (+ (+ (* x (* x 0.225)) (* (pow x 4.0) -0.009642857142857142)) -0.5) (/ (- x (sin x)) (- x (tan x)))))
x = abs(x);
double code(double x) {
double tmp;
if (x <= 0.029) {
tmp = ((x * (x * 0.225)) + (pow(x, 4.0) * -0.009642857142857142)) + -0.5;
} else {
tmp = (x - sin(x)) / (x - tan(x));
}
return tmp;
}
NOTE: x should be positive before calling this function
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 0.029d0) then
tmp = ((x * (x * 0.225d0)) + ((x ** 4.0d0) * (-0.009642857142857142d0))) + (-0.5d0)
else
tmp = (x - sin(x)) / (x - tan(x))
end if
code = tmp
end function
x = Math.abs(x);
public static double code(double x) {
double tmp;
if (x <= 0.029) {
tmp = ((x * (x * 0.225)) + (Math.pow(x, 4.0) * -0.009642857142857142)) + -0.5;
} else {
tmp = (x - Math.sin(x)) / (x - Math.tan(x));
}
return tmp;
}
x = abs(x) def code(x): tmp = 0 if x <= 0.029: tmp = ((x * (x * 0.225)) + (math.pow(x, 4.0) * -0.009642857142857142)) + -0.5 else: tmp = (x - math.sin(x)) / (x - math.tan(x)) return tmp
x = abs(x) function code(x) tmp = 0.0 if (x <= 0.029) tmp = Float64(Float64(Float64(x * Float64(x * 0.225)) + Float64((x ^ 4.0) * -0.009642857142857142)) + -0.5); else tmp = Float64(Float64(x - sin(x)) / Float64(x - tan(x))); end return tmp end
x = abs(x) function tmp_2 = code(x) tmp = 0.0; if (x <= 0.029) tmp = ((x * (x * 0.225)) + ((x ^ 4.0) * -0.009642857142857142)) + -0.5; else tmp = (x - sin(x)) / (x - tan(x)); end tmp_2 = tmp; end
NOTE: x should be positive before calling this function code[x_] := If[LessEqual[x, 0.029], N[(N[(N[(x * N[(x * 0.225), $MachinePrecision]), $MachinePrecision] + N[(N[Power[x, 4.0], $MachinePrecision] * -0.009642857142857142), $MachinePrecision]), $MachinePrecision] + -0.5), $MachinePrecision], N[(N[(x - N[Sin[x], $MachinePrecision]), $MachinePrecision] / N[(x - N[Tan[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
x = |x|\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.029:\\
\;\;\;\;\left(x \cdot \left(x \cdot 0.225\right) + {x}^{4} \cdot -0.009642857142857142\right) + -0.5\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \sin x}{x - \tan x}\\
\end{array}
\end{array}
if x < 0.0290000000000000015Initial program 38.6%
sub-neg38.6%
+-commutative38.6%
neg-sub038.6%
associate-+l-38.6%
sub0-neg38.6%
neg-mul-138.6%
sub-neg38.6%
+-commutative38.6%
neg-sub038.6%
associate-+l-38.6%
sub0-neg38.6%
neg-mul-138.6%
times-frac38.6%
metadata-eval38.6%
*-lft-identity38.6%
Simplified38.6%
Taylor expanded in x around 0 62.5%
sub-neg62.5%
fma-def62.5%
unpow262.5%
metadata-eval62.5%
Simplified62.5%
fma-udef62.5%
*-commutative62.5%
associate-*l*62.5%
Applied egg-rr62.5%
if 0.0290000000000000015 < x Initial program 100.0%
Final simplification73.2%
NOTE: x should be positive before calling this function (FPCore (x) :precision binary64 (if (<= x 2.9) (+ (+ (* x (* x 0.225)) (* (pow x 4.0) -0.009642857142857142)) -0.5) 1.0))
x = abs(x);
double code(double x) {
double tmp;
if (x <= 2.9) {
tmp = ((x * (x * 0.225)) + (pow(x, 4.0) * -0.009642857142857142)) + -0.5;
} else {
tmp = 1.0;
}
return tmp;
}
NOTE: x should be positive before calling this function
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 2.9d0) then
tmp = ((x * (x * 0.225d0)) + ((x ** 4.0d0) * (-0.009642857142857142d0))) + (-0.5d0)
else
tmp = 1.0d0
end if
code = tmp
end function
x = Math.abs(x);
public static double code(double x) {
double tmp;
if (x <= 2.9) {
tmp = ((x * (x * 0.225)) + (Math.pow(x, 4.0) * -0.009642857142857142)) + -0.5;
} else {
tmp = 1.0;
}
return tmp;
}
x = abs(x) def code(x): tmp = 0 if x <= 2.9: tmp = ((x * (x * 0.225)) + (math.pow(x, 4.0) * -0.009642857142857142)) + -0.5 else: tmp = 1.0 return tmp
x = abs(x) function code(x) tmp = 0.0 if (x <= 2.9) tmp = Float64(Float64(Float64(x * Float64(x * 0.225)) + Float64((x ^ 4.0) * -0.009642857142857142)) + -0.5); else tmp = 1.0; end return tmp end
x = abs(x) function tmp_2 = code(x) tmp = 0.0; if (x <= 2.9) tmp = ((x * (x * 0.225)) + ((x ^ 4.0) * -0.009642857142857142)) + -0.5; else tmp = 1.0; end tmp_2 = tmp; end
NOTE: x should be positive before calling this function code[x_] := If[LessEqual[x, 2.9], N[(N[(N[(x * N[(x * 0.225), $MachinePrecision]), $MachinePrecision] + N[(N[Power[x, 4.0], $MachinePrecision] * -0.009642857142857142), $MachinePrecision]), $MachinePrecision] + -0.5), $MachinePrecision], 1.0]
\begin{array}{l}
x = |x|\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.9:\\
\;\;\;\;\left(x \cdot \left(x \cdot 0.225\right) + {x}^{4} \cdot -0.009642857142857142\right) + -0.5\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 2.89999999999999991Initial program 38.9%
sub-neg38.9%
+-commutative38.9%
neg-sub038.9%
associate-+l-38.9%
sub0-neg38.9%
neg-mul-138.9%
sub-neg38.9%
+-commutative38.9%
neg-sub038.9%
associate-+l-38.9%
sub0-neg38.9%
neg-mul-138.9%
times-frac38.9%
metadata-eval38.9%
*-lft-identity38.9%
Simplified38.9%
Taylor expanded in x around 0 62.3%
sub-neg62.3%
fma-def62.3%
unpow262.3%
metadata-eval62.3%
Simplified62.3%
fma-udef62.3%
*-commutative62.3%
associate-*l*62.3%
Applied egg-rr62.3%
if 2.89999999999999991 < x Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
*-lft-identity100.0%
Simplified100.0%
Taylor expanded in x around inf 99.3%
Final simplification72.7%
NOTE: x should be positive before calling this function (FPCore (x) :precision binary64 (if (<= x 2.6) (- (* x (* x 0.225)) 0.5) 1.0))
x = abs(x);
double code(double x) {
double tmp;
if (x <= 2.6) {
tmp = (x * (x * 0.225)) - 0.5;
} else {
tmp = 1.0;
}
return tmp;
}
NOTE: x should be positive before calling this function
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 2.6d0) then
tmp = (x * (x * 0.225d0)) - 0.5d0
else
tmp = 1.0d0
end if
code = tmp
end function
x = Math.abs(x);
public static double code(double x) {
double tmp;
if (x <= 2.6) {
tmp = (x * (x * 0.225)) - 0.5;
} else {
tmp = 1.0;
}
return tmp;
}
x = abs(x) def code(x): tmp = 0 if x <= 2.6: tmp = (x * (x * 0.225)) - 0.5 else: tmp = 1.0 return tmp
x = abs(x) function code(x) tmp = 0.0 if (x <= 2.6) tmp = Float64(Float64(x * Float64(x * 0.225)) - 0.5); else tmp = 1.0; end return tmp end
x = abs(x) function tmp_2 = code(x) tmp = 0.0; if (x <= 2.6) tmp = (x * (x * 0.225)) - 0.5; else tmp = 1.0; end tmp_2 = tmp; end
NOTE: x should be positive before calling this function code[x_] := If[LessEqual[x, 2.6], N[(N[(x * N[(x * 0.225), $MachinePrecision]), $MachinePrecision] - 0.5), $MachinePrecision], 1.0]
\begin{array}{l}
x = |x|\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.6:\\
\;\;\;\;x \cdot \left(x \cdot 0.225\right) - 0.5\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 2.60000000000000009Initial program 38.9%
sub-neg38.9%
+-commutative38.9%
neg-sub038.9%
associate-+l-38.9%
sub0-neg38.9%
neg-mul-138.9%
sub-neg38.9%
+-commutative38.9%
neg-sub038.9%
associate-+l-38.9%
sub0-neg38.9%
neg-mul-138.9%
times-frac38.9%
metadata-eval38.9%
*-lft-identity38.9%
Simplified38.9%
Taylor expanded in x around 0 63.6%
fma-neg63.6%
unpow263.6%
metadata-eval63.6%
Simplified63.6%
metadata-eval63.6%
fma-neg63.6%
*-commutative63.6%
associate-*l*63.6%
Applied egg-rr63.6%
if 2.60000000000000009 < x Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
*-lft-identity100.0%
Simplified100.0%
Taylor expanded in x around inf 99.3%
Final simplification73.7%
NOTE: x should be positive before calling this function (FPCore (x) :precision binary64 (if (<= x 1.55) -0.5 1.0))
x = abs(x);
double code(double x) {
double tmp;
if (x <= 1.55) {
tmp = -0.5;
} else {
tmp = 1.0;
}
return tmp;
}
NOTE: x should be positive before calling this function
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (x <= 1.55d0) then
tmp = -0.5d0
else
tmp = 1.0d0
end if
code = tmp
end function
x = Math.abs(x);
public static double code(double x) {
double tmp;
if (x <= 1.55) {
tmp = -0.5;
} else {
tmp = 1.0;
}
return tmp;
}
x = abs(x) def code(x): tmp = 0 if x <= 1.55: tmp = -0.5 else: tmp = 1.0 return tmp
x = abs(x) function code(x) tmp = 0.0 if (x <= 1.55) tmp = -0.5; else tmp = 1.0; end return tmp end
x = abs(x) function tmp_2 = code(x) tmp = 0.0; if (x <= 1.55) tmp = -0.5; else tmp = 1.0; end tmp_2 = tmp; end
NOTE: x should be positive before calling this function code[x_] := If[LessEqual[x, 1.55], -0.5, 1.0]
\begin{array}{l}
x = |x|\\
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.55:\\
\;\;\;\;-0.5\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < 1.55000000000000004Initial program 38.6%
sub-neg38.6%
+-commutative38.6%
neg-sub038.6%
associate-+l-38.6%
sub0-neg38.6%
neg-mul-138.6%
sub-neg38.6%
+-commutative38.6%
neg-sub038.6%
associate-+l-38.6%
sub0-neg38.6%
neg-mul-138.6%
times-frac38.6%
metadata-eval38.6%
*-lft-identity38.6%
Simplified38.6%
Taylor expanded in x around 0 62.5%
if 1.55000000000000004 < x Initial program 100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
sub-neg100.0%
+-commutative100.0%
neg-sub0100.0%
associate-+l-100.0%
sub0-neg100.0%
neg-mul-1100.0%
times-frac100.0%
metadata-eval100.0%
*-lft-identity100.0%
Simplified100.0%
Taylor expanded in x around inf 98.2%
Final simplification72.7%
NOTE: x should be positive before calling this function (FPCore (x) :precision binary64 -0.5)
x = abs(x);
double code(double x) {
return -0.5;
}
NOTE: x should be positive before calling this function
real(8) function code(x)
real(8), intent (in) :: x
code = -0.5d0
end function
x = Math.abs(x);
public static double code(double x) {
return -0.5;
}
x = abs(x) def code(x): return -0.5
x = abs(x) function code(x) return -0.5 end
x = abs(x) function tmp = code(x) tmp = -0.5; end
NOTE: x should be positive before calling this function code[x_] := -0.5
\begin{array}{l}
x = |x|\\
\\
-0.5
\end{array}
Initial program 56.1%
sub-neg56.1%
+-commutative56.1%
neg-sub056.1%
associate-+l-56.1%
sub0-neg56.1%
neg-mul-156.1%
sub-neg56.1%
+-commutative56.1%
neg-sub056.1%
associate-+l-56.1%
sub0-neg56.1%
neg-mul-156.1%
times-frac56.1%
metadata-eval56.1%
*-lft-identity56.1%
Simplified56.1%
Taylor expanded in x around 0 45.1%
Final simplification45.1%
herbie shell --seed 2023199
(FPCore (x)
:name "sintan (problem 3.4.5)"
:precision binary64
(/ (- x (sin x)) (- x (tan x))))