
(FPCore (x c s) :precision binary64 (/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* x (pow s 2.0)) x))))
double code(double x, double c, double s) {
return cos((2.0 * x)) / (pow(c, 2.0) * ((x * pow(s, 2.0)) * x));
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
code = cos((2.0d0 * x)) / ((c ** 2.0d0) * ((x * (s ** 2.0d0)) * x))
end function
public static double code(double x, double c, double s) {
return Math.cos((2.0 * x)) / (Math.pow(c, 2.0) * ((x * Math.pow(s, 2.0)) * x));
}
def code(x, c, s): return math.cos((2.0 * x)) / (math.pow(c, 2.0) * ((x * math.pow(s, 2.0)) * x))
function code(x, c, s) return Float64(cos(Float64(2.0 * x)) / Float64((c ^ 2.0) * Float64(Float64(x * (s ^ 2.0)) * x))) end
function tmp = code(x, c, s) tmp = cos((2.0 * x)) / ((c ^ 2.0) * ((x * (s ^ 2.0)) * x)); end
code[x_, c_, s_] := N[(N[Cos[N[(2.0 * x), $MachinePrecision]], $MachinePrecision] / N[(N[Power[c, 2.0], $MachinePrecision] * N[(N[(x * N[Power[s, 2.0], $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\cos \left(2 \cdot x\right)}{{c}^{2} \cdot \left(\left(x \cdot {s}^{2}\right) \cdot x\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x c s) :precision binary64 (/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* x (pow s 2.0)) x))))
double code(double x, double c, double s) {
return cos((2.0 * x)) / (pow(c, 2.0) * ((x * pow(s, 2.0)) * x));
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
code = cos((2.0d0 * x)) / ((c ** 2.0d0) * ((x * (s ** 2.0d0)) * x))
end function
public static double code(double x, double c, double s) {
return Math.cos((2.0 * x)) / (Math.pow(c, 2.0) * ((x * Math.pow(s, 2.0)) * x));
}
def code(x, c, s): return math.cos((2.0 * x)) / (math.pow(c, 2.0) * ((x * math.pow(s, 2.0)) * x))
function code(x, c, s) return Float64(cos(Float64(2.0 * x)) / Float64((c ^ 2.0) * Float64(Float64(x * (s ^ 2.0)) * x))) end
function tmp = code(x, c, s) tmp = cos((2.0 * x)) / ((c ^ 2.0) * ((x * (s ^ 2.0)) * x)); end
code[x_, c_, s_] := N[(N[Cos[N[(2.0 * x), $MachinePrecision]], $MachinePrecision] / N[(N[Power[c, 2.0], $MachinePrecision] * N[(N[(x * N[Power[s, 2.0], $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\cos \left(2 \cdot x\right)}{{c}^{2} \cdot \left(\left(x \cdot {s}^{2}\right) \cdot x\right)}
\end{array}
(FPCore (x c s) :precision binary64 (let* ((t_0 (* s (* x c)))) (/ (/ (cos (+ x x)) t_0) t_0)))
double code(double x, double c, double s) {
double t_0 = s * (x * c);
return (cos((x + x)) / t_0) / t_0;
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
real(8) :: t_0
t_0 = s * (x * c)
code = (cos((x + x)) / t_0) / t_0
end function
public static double code(double x, double c, double s) {
double t_0 = s * (x * c);
return (Math.cos((x + x)) / t_0) / t_0;
}
def code(x, c, s): t_0 = s * (x * c) return (math.cos((x + x)) / t_0) / t_0
function code(x, c, s) t_0 = Float64(s * Float64(x * c)) return Float64(Float64(cos(Float64(x + x)) / t_0) / t_0) end
function tmp = code(x, c, s) t_0 = s * (x * c); tmp = (cos((x + x)) / t_0) / t_0; end
code[x_, c_, s_] := Block[{t$95$0 = N[(s * N[(x * c), $MachinePrecision]), $MachinePrecision]}, N[(N[(N[Cos[N[(x + x), $MachinePrecision]], $MachinePrecision] / t$95$0), $MachinePrecision] / t$95$0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := s \cdot \left(x \cdot c\right)\\
\frac{\frac{\cos \left(x + x\right)}{t\_0}}{t\_0}
\end{array}
\end{array}
Initial program 66.6%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
associate-*r*N/A
lift-pow.f64N/A
lift-pow.f64N/A
pow-prod-downN/A
pow2N/A
pow-prod-downN/A
lower-pow.f64N/A
lower-*.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
lift-/.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6498.2
lift-*.f64N/A
count-2N/A
lift-+.f6498.2
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6496.8
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6498.1
Applied rewrites98.1%
Final simplification98.1%
(FPCore (x c s) :precision binary64 (if (<= x 1.3e-40) (/ 1.0 (* c (* (* x s) (* c (* x s))))) (/ (cos (+ x x)) (* (* x (* s (* x c))) (* s c)))))
double code(double x, double c, double s) {
double tmp;
if (x <= 1.3e-40) {
tmp = 1.0 / (c * ((x * s) * (c * (x * s))));
} else {
tmp = cos((x + x)) / ((x * (s * (x * c))) * (s * c));
}
return tmp;
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
real(8) :: tmp
if (x <= 1.3d-40) then
tmp = 1.0d0 / (c * ((x * s) * (c * (x * s))))
else
tmp = cos((x + x)) / ((x * (s * (x * c))) * (s * c))
end if
code = tmp
end function
public static double code(double x, double c, double s) {
double tmp;
if (x <= 1.3e-40) {
tmp = 1.0 / (c * ((x * s) * (c * (x * s))));
} else {
tmp = Math.cos((x + x)) / ((x * (s * (x * c))) * (s * c));
}
return tmp;
}
def code(x, c, s): tmp = 0 if x <= 1.3e-40: tmp = 1.0 / (c * ((x * s) * (c * (x * s)))) else: tmp = math.cos((x + x)) / ((x * (s * (x * c))) * (s * c)) return tmp
function code(x, c, s) tmp = 0.0 if (x <= 1.3e-40) tmp = Float64(1.0 / Float64(c * Float64(Float64(x * s) * Float64(c * Float64(x * s))))); else tmp = Float64(cos(Float64(x + x)) / Float64(Float64(x * Float64(s * Float64(x * c))) * Float64(s * c))); end return tmp end
function tmp_2 = code(x, c, s) tmp = 0.0; if (x <= 1.3e-40) tmp = 1.0 / (c * ((x * s) * (c * (x * s)))); else tmp = cos((x + x)) / ((x * (s * (x * c))) * (s * c)); end tmp_2 = tmp; end
code[x_, c_, s_] := If[LessEqual[x, 1.3e-40], N[(1.0 / N[(c * N[(N[(x * s), $MachinePrecision] * N[(c * N[(x * s), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Cos[N[(x + x), $MachinePrecision]], $MachinePrecision] / N[(N[(x * N[(s * N[(x * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(s * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.3 \cdot 10^{-40}:\\
\;\;\;\;\frac{1}{c \cdot \left(\left(x \cdot s\right) \cdot \left(c \cdot \left(x \cdot s\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\cos \left(x + x\right)}{\left(x \cdot \left(s \cdot \left(x \cdot c\right)\right)\right) \cdot \left(s \cdot c\right)}\\
\end{array}
\end{array}
if x < 1.3000000000000001e-40Initial program 65.1%
Taylor expanded in x around 0
lower-/.f64N/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
lower-*.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6475.8
Applied rewrites75.8%
Applied rewrites83.9%
Applied rewrites84.0%
if 1.3000000000000001e-40 < x Initial program 70.9%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
associate-*r*N/A
lift-pow.f64N/A
lift-pow.f64N/A
pow-prod-downN/A
pow2N/A
pow-prod-downN/A
lower-pow.f64N/A
lower-*.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
lift-*.f64N/A
count-2N/A
lift-+.f6498.1
lift-pow.f64N/A
unpow2N/A
lift-*.f64N/A
associate-*l*N/A
lower-*.f64N/A
lower-*.f6498.2
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6495.4
Applied rewrites95.4%
Final simplification86.9%
(FPCore (x c s) :precision binary64 (if (<= x 4e-17) (/ 1.0 (* c (* (* x s) (* c (* x s))))) (/ (cos (+ x x)) (* x (* x (* s (* c (* s c))))))))
double code(double x, double c, double s) {
double tmp;
if (x <= 4e-17) {
tmp = 1.0 / (c * ((x * s) * (c * (x * s))));
} else {
tmp = cos((x + x)) / (x * (x * (s * (c * (s * c)))));
}
return tmp;
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
real(8) :: tmp
if (x <= 4d-17) then
tmp = 1.0d0 / (c * ((x * s) * (c * (x * s))))
else
tmp = cos((x + x)) / (x * (x * (s * (c * (s * c)))))
end if
code = tmp
end function
public static double code(double x, double c, double s) {
double tmp;
if (x <= 4e-17) {
tmp = 1.0 / (c * ((x * s) * (c * (x * s))));
} else {
tmp = Math.cos((x + x)) / (x * (x * (s * (c * (s * c)))));
}
return tmp;
}
def code(x, c, s): tmp = 0 if x <= 4e-17: tmp = 1.0 / (c * ((x * s) * (c * (x * s)))) else: tmp = math.cos((x + x)) / (x * (x * (s * (c * (s * c))))) return tmp
function code(x, c, s) tmp = 0.0 if (x <= 4e-17) tmp = Float64(1.0 / Float64(c * Float64(Float64(x * s) * Float64(c * Float64(x * s))))); else tmp = Float64(cos(Float64(x + x)) / Float64(x * Float64(x * Float64(s * Float64(c * Float64(s * c)))))); end return tmp end
function tmp_2 = code(x, c, s) tmp = 0.0; if (x <= 4e-17) tmp = 1.0 / (c * ((x * s) * (c * (x * s)))); else tmp = cos((x + x)) / (x * (x * (s * (c * (s * c))))); end tmp_2 = tmp; end
code[x_, c_, s_] := If[LessEqual[x, 4e-17], N[(1.0 / N[(c * N[(N[(x * s), $MachinePrecision] * N[(c * N[(x * s), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Cos[N[(x + x), $MachinePrecision]], $MachinePrecision] / N[(x * N[(x * N[(s * N[(c * N[(s * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4 \cdot 10^{-17}:\\
\;\;\;\;\frac{1}{c \cdot \left(\left(x \cdot s\right) \cdot \left(c \cdot \left(x \cdot s\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\cos \left(x + x\right)}{x \cdot \left(x \cdot \left(s \cdot \left(c \cdot \left(s \cdot c\right)\right)\right)\right)}\\
\end{array}
\end{array}
if x < 4.00000000000000029e-17Initial program 65.1%
Taylor expanded in x around 0
lower-/.f64N/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
lower-*.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6476.2
Applied rewrites76.2%
Applied rewrites83.7%
Applied rewrites83.8%
if 4.00000000000000029e-17 < x Initial program 71.1%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
associate-*r*N/A
lift-pow.f64N/A
lift-pow.f64N/A
pow-prod-downN/A
pow2N/A
pow-prod-downN/A
lower-pow.f64N/A
lower-*.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
lift-/.f64N/A
lift-pow.f64N/A
unpow2N/A
associate-/r*N/A
lower-/.f64N/A
lower-/.f6498.2
lift-*.f64N/A
count-2N/A
lift-+.f6498.2
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6495.2
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6496.5
Applied rewrites96.5%
lift-/.f64N/A
lift-/.f64N/A
lift-+.f64N/A
count-2N/A
lift-*.f64N/A
associate-/r*N/A
lift-*.f64N/A
lift-/.f6496.5
lift-*.f64N/A
count-2N/A
lift-+.f6496.5
lift-*.f64N/A
pow2N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lift-*.f64N/A
unpow-prod-downN/A
pow2N/A
pow2N/A
Applied rewrites90.7%
Final simplification85.5%
(FPCore (x c s) :precision binary64 (let* ((t_0 (* s (* x c)))) (/ (cos (+ x x)) (* t_0 t_0))))
double code(double x, double c, double s) {
double t_0 = s * (x * c);
return cos((x + x)) / (t_0 * t_0);
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
real(8) :: t_0
t_0 = s * (x * c)
code = cos((x + x)) / (t_0 * t_0)
end function
public static double code(double x, double c, double s) {
double t_0 = s * (x * c);
return Math.cos((x + x)) / (t_0 * t_0);
}
def code(x, c, s): t_0 = s * (x * c) return math.cos((x + x)) / (t_0 * t_0)
function code(x, c, s) t_0 = Float64(s * Float64(x * c)) return Float64(cos(Float64(x + x)) / Float64(t_0 * t_0)) end
function tmp = code(x, c, s) t_0 = s * (x * c); tmp = cos((x + x)) / (t_0 * t_0); end
code[x_, c_, s_] := Block[{t$95$0 = N[(s * N[(x * c), $MachinePrecision]), $MachinePrecision]}, N[(N[Cos[N[(x + x), $MachinePrecision]], $MachinePrecision] / N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := s \cdot \left(x \cdot c\right)\\
\frac{\cos \left(x + x\right)}{t\_0 \cdot t\_0}
\end{array}
\end{array}
Initial program 66.6%
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
associate-*r*N/A
lift-pow.f64N/A
lift-pow.f64N/A
pow-prod-downN/A
pow2N/A
pow-prod-downN/A
lower-pow.f64N/A
lower-*.f64N/A
lower-*.f6498.1
Applied rewrites98.1%
lift-pow.f64N/A
unpow2N/A
lower-*.f6498.1
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6496.7
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6498.1
Applied rewrites98.1%
lift-*.f64N/A
count-2N/A
lift-+.f6498.1
Applied rewrites98.1%
Final simplification98.1%
(FPCore (x c s) :precision binary64 (let* ((t_0 (* x (* s c)))) (/ 1.0 (* t_0 t_0))))
double code(double x, double c, double s) {
double t_0 = x * (s * c);
return 1.0 / (t_0 * t_0);
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
real(8) :: t_0
t_0 = x * (s * c)
code = 1.0d0 / (t_0 * t_0)
end function
public static double code(double x, double c, double s) {
double t_0 = x * (s * c);
return 1.0 / (t_0 * t_0);
}
def code(x, c, s): t_0 = x * (s * c) return 1.0 / (t_0 * t_0)
function code(x, c, s) t_0 = Float64(x * Float64(s * c)) return Float64(1.0 / Float64(t_0 * t_0)) end
function tmp = code(x, c, s) t_0 = x * (s * c); tmp = 1.0 / (t_0 * t_0); end
code[x_, c_, s_] := Block[{t$95$0 = N[(x * N[(s * c), $MachinePrecision]), $MachinePrecision]}, N[(1.0 / N[(t$95$0 * t$95$0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(s \cdot c\right)\\
\frac{1}{t\_0 \cdot t\_0}
\end{array}
\end{array}
Initial program 66.6%
Taylor expanded in x around 0
lower-/.f64N/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
lower-*.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6474.7
Applied rewrites74.7%
Applied rewrites80.4%
Applied rewrites83.9%
(FPCore (x c s) :precision binary64 (/ 1.0 (* c (* (* x s) (* c (* x s))))))
double code(double x, double c, double s) {
return 1.0 / (c * ((x * s) * (c * (x * s))));
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
code = 1.0d0 / (c * ((x * s) * (c * (x * s))))
end function
public static double code(double x, double c, double s) {
return 1.0 / (c * ((x * s) * (c * (x * s))));
}
def code(x, c, s): return 1.0 / (c * ((x * s) * (c * (x * s))))
function code(x, c, s) return Float64(1.0 / Float64(c * Float64(Float64(x * s) * Float64(c * Float64(x * s))))) end
function tmp = code(x, c, s) tmp = 1.0 / (c * ((x * s) * (c * (x * s)))); end
code[x_, c_, s_] := N[(1.0 / N[(c * N[(N[(x * s), $MachinePrecision] * N[(c * N[(x * s), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{c \cdot \left(\left(x \cdot s\right) \cdot \left(c \cdot \left(x \cdot s\right)\right)\right)}
\end{array}
Initial program 66.6%
Taylor expanded in x around 0
lower-/.f64N/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
lower-*.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6474.7
Applied rewrites74.7%
Applied rewrites80.4%
Applied rewrites80.6%
Final simplification80.6%
(FPCore (x c s) :precision binary64 (/ 1.0 (* c (* (* s (* x c)) (* x s)))))
double code(double x, double c, double s) {
return 1.0 / (c * ((s * (x * c)) * (x * s)));
}
real(8) function code(x, c, s)
real(8), intent (in) :: x
real(8), intent (in) :: c
real(8), intent (in) :: s
code = 1.0d0 / (c * ((s * (x * c)) * (x * s)))
end function
public static double code(double x, double c, double s) {
return 1.0 / (c * ((s * (x * c)) * (x * s)));
}
def code(x, c, s): return 1.0 / (c * ((s * (x * c)) * (x * s)))
function code(x, c, s) return Float64(1.0 / Float64(c * Float64(Float64(s * Float64(x * c)) * Float64(x * s)))) end
function tmp = code(x, c, s) tmp = 1.0 / (c * ((s * (x * c)) * (x * s))); end
code[x_, c_, s_] := N[(1.0 / N[(c * N[(N[(s * N[(x * c), $MachinePrecision]), $MachinePrecision] * N[(x * s), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{c \cdot \left(\left(s \cdot \left(x \cdot c\right)\right) \cdot \left(x \cdot s\right)\right)}
\end{array}
Initial program 66.6%
Taylor expanded in x around 0
lower-/.f64N/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
lower-*.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6474.7
Applied rewrites74.7%
Applied rewrites80.4%
Final simplification80.4%
herbie shell --seed 2024237
(FPCore (x c s)
:name "mixedcos"
:precision binary64
(/ (cos (* 2.0 x)) (* (pow c 2.0) (* (* x (pow s 2.0)) x))))