
(FPCore (x) :precision binary64 (* (cos x) (exp (* 10.0 (* x x)))))
double code(double x) {
return cos(x) * exp((10.0 * (x * x)));
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * exp((10.0d0 * (x * x)))
end function
public static double code(double x) {
return Math.cos(x) * Math.exp((10.0 * (x * x)));
}
def code(x): return math.cos(x) * math.exp((10.0 * (x * x)))
function code(x) return Float64(cos(x) * exp(Float64(10.0 * Float64(x * x)))) end
function tmp = code(x) tmp = cos(x) * exp((10.0 * (x * x))); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Exp[N[(10.0 * N[(x * x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot e^{10 \cdot \left(x \cdot x\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x) :precision binary64 (* (cos x) (exp (* 10.0 (* x x)))))
double code(double x) {
return cos(x) * exp((10.0 * (x * x)));
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * exp((10.0d0 * (x * x)))
end function
public static double code(double x) {
return Math.cos(x) * Math.exp((10.0 * (x * x)));
}
def code(x): return math.cos(x) * math.exp((10.0 * (x * x)))
function code(x) return Float64(cos(x) * exp(Float64(10.0 * Float64(x * x)))) end
function tmp = code(x) tmp = cos(x) * exp((10.0 * (x * x))); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Exp[N[(10.0 * N[(x * x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot e^{10 \cdot \left(x \cdot x\right)}
\end{array}
(FPCore (x) :precision binary64 (/ (cos x) (pow (pow (exp 40.0) x) (* x -0.25))))
double code(double x) {
return cos(x) / pow(pow(exp(40.0), x), (x * -0.25));
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) / ((exp(40.0d0) ** x) ** (x * (-0.25d0)))
end function
public static double code(double x) {
return Math.cos(x) / Math.pow(Math.pow(Math.exp(40.0), x), (x * -0.25));
}
def code(x): return math.cos(x) / math.pow(math.pow(math.exp(40.0), x), (x * -0.25))
function code(x) return Float64(cos(x) / ((exp(40.0) ^ x) ^ Float64(x * -0.25))) end
function tmp = code(x) tmp = cos(x) / ((exp(40.0) ^ x) ^ (x * -0.25)); end
code[x_] := N[(N[Cos[x], $MachinePrecision] / N[Power[N[Power[N[Exp[40.0], $MachinePrecision], x], $MachinePrecision], N[(x * -0.25), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\cos x}{{\left({\left(e^{40}\right)}^{x}\right)}^{\left(x \cdot -0.25\right)}}
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
sqrt-unprod98.0%
pow1/298.0%
pow-prod-down98.0%
pow-pow98.0%
prod-exp99.2%
metadata-eval99.2%
Applied egg-rr99.2%
sqr-pow99.1%
pow-unpow99.1%
pow-pow99.2%
pow-unpow99.2%
pow-pow99.1%
pow-prod-down99.4%
metadata-eval99.4%
associate-/r/96.9%
clear-num99.4%
frac-2neg99.4%
distribute-frac-neg99.4%
pow-neg99.2%
pow-prod-down99.2%
prod-exp99.2%
metadata-eval99.2%
frac-2neg99.2%
metadata-eval99.2%
metadata-eval99.2%
Applied egg-rr99.2%
Taylor expanded in x around inf 94.1%
associate-*r*94.1%
*-commutative94.1%
log-pow94.6%
rem-exp-log99.3%
Simplified99.3%
Final simplification99.3%
(FPCore (x) :precision binary64 (* (cos x) (pow (pow (exp 20.0) (* x 0.5)) x)))
double code(double x) {
return cos(x) * pow(pow(exp(20.0), (x * 0.5)), x);
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * ((exp(20.0d0) ** (x * 0.5d0)) ** x)
end function
public static double code(double x) {
return Math.cos(x) * Math.pow(Math.pow(Math.exp(20.0), (x * 0.5)), x);
}
def code(x): return math.cos(x) * math.pow(math.pow(math.exp(20.0), (x * 0.5)), x)
function code(x) return Float64(cos(x) * ((exp(20.0) ^ Float64(x * 0.5)) ^ x)) end
function tmp = code(x) tmp = cos(x) * ((exp(20.0) ^ (x * 0.5)) ^ x); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Power[N[Power[N[Exp[20.0], $MachinePrecision], N[(x * 0.5), $MachinePrecision]], $MachinePrecision], x], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot {\left({\left(e^{20}\right)}^{\left(x \cdot 0.5\right)}\right)}^{x}
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
sqrt-unprod98.0%
pow1/298.0%
pow-prod-down98.0%
pow-pow98.0%
prod-exp99.2%
metadata-eval99.2%
Applied egg-rr99.2%
Final simplification99.2%
(FPCore (x) :precision binary64 (* (cos x) (pow (pow (exp 40.0) x) (* x 0.25))))
double code(double x) {
return cos(x) * pow(pow(exp(40.0), x), (x * 0.25));
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * ((exp(40.0d0) ** x) ** (x * 0.25d0))
end function
public static double code(double x) {
return Math.cos(x) * Math.pow(Math.pow(Math.exp(40.0), x), (x * 0.25));
}
def code(x): return math.cos(x) * math.pow(math.pow(math.exp(40.0), x), (x * 0.25))
function code(x) return Float64(cos(x) * ((exp(40.0) ^ x) ^ Float64(x * 0.25))) end
function tmp = code(x) tmp = cos(x) * ((exp(40.0) ^ x) ^ (x * 0.25)); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Power[N[Power[N[Exp[40.0], $MachinePrecision], x], $MachinePrecision], N[(x * 0.25), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot {\left({\left(e^{40}\right)}^{x}\right)}^{\left(x \cdot 0.25\right)}
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
sqrt-unprod98.0%
pow1/298.0%
pow-prod-down98.0%
pow-pow98.0%
prod-exp99.2%
metadata-eval99.2%
Applied egg-rr99.2%
sqr-pow99.1%
pow-unpow99.1%
pow-pow99.2%
pow-unpow99.2%
pow-pow99.1%
pow-prod-down99.4%
*-commutative99.4%
associate-*l/99.4%
pow-to-exp94.1%
pow-prod-down94.1%
prod-exp94.1%
metadata-eval94.1%
associate-/l*94.1%
div-inv94.1%
metadata-eval94.1%
metadata-eval94.1%
Applied egg-rr94.1%
exp-to-pow99.2%
Simplified99.2%
Final simplification99.2%
(FPCore (x) :precision binary64 (* (cos x) (pow (pow (exp 10.0) x) x)))
double code(double x) {
return cos(x) * pow(pow(exp(10.0), x), x);
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * ((exp(10.0d0) ** x) ** x)
end function
public static double code(double x) {
return Math.cos(x) * Math.pow(Math.pow(Math.exp(10.0), x), x);
}
def code(x): return math.cos(x) * math.pow(math.pow(math.exp(10.0), x), x)
function code(x) return Float64(cos(x) * ((exp(10.0) ^ x) ^ x)) end
function tmp = code(x) tmp = cos(x) * ((exp(10.0) ^ x) ^ x); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Power[N[Power[N[Exp[10.0], $MachinePrecision], x], $MachinePrecision], x], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot {\left({\left(e^{10}\right)}^{x}\right)}^{x}
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
Final simplification98.0%
(FPCore (x) :precision binary64 (* (cos x) (pow (exp 5.0) (* x (+ x x)))))
double code(double x) {
return cos(x) * pow(exp(5.0), (x * (x + x)));
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * (exp(5.0d0) ** (x * (x + x)))
end function
public static double code(double x) {
return Math.cos(x) * Math.pow(Math.exp(5.0), (x * (x + x)));
}
def code(x): return math.cos(x) * math.pow(math.exp(5.0), (x * (x + x)))
function code(x) return Float64(cos(x) * (exp(5.0) ^ Float64(x * Float64(x + x)))) end
function tmp = code(x) tmp = cos(x) * (exp(5.0) ^ (x * (x + x))); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Power[N[Exp[5.0], $MachinePrecision], N[(x * N[(x + x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot {\left(e^{5}\right)}^{\left(x \cdot \left(x + x\right)\right)}
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
rem-square-sqrt98.0%
pow-pow95.4%
exp-prod94.3%
*-commutative94.3%
pow-exp95.4%
sqr-pow95.4%
pow-prod-down95.4%
exp-prod96.4%
exp-prod96.7%
pow-prod-up96.8%
metadata-eval96.8%
Applied egg-rr96.8%
Taylor expanded in x around inf 95.5%
exp-prod94.3%
unpow294.3%
associate-*r*94.3%
count-294.3%
rem-log-exp94.3%
log-pow94.3%
*-commutative94.3%
exp-prod95.3%
log-pow95.4%
rem-log-exp95.4%
*-commutative95.4%
Simplified95.4%
Final simplification95.4%
(FPCore (x) :precision binary64 (* (cos x) (pow (exp 10.0) (* x x))))
double code(double x) {
return cos(x) * pow(exp(10.0), (x * x));
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * (exp(10.0d0) ** (x * x))
end function
public static double code(double x) {
return Math.cos(x) * Math.pow(Math.exp(10.0), (x * x));
}
def code(x): return math.cos(x) * math.pow(math.exp(10.0), (x * x))
function code(x) return Float64(cos(x) * (exp(10.0) ^ Float64(x * x))) end
function tmp = code(x) tmp = cos(x) * (exp(10.0) ^ (x * x)); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Power[N[Exp[10.0], $MachinePrecision], N[(x * x), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot {\left(e^{10}\right)}^{\left(x \cdot x\right)}
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
sqr-neg94.3%
exp-prod95.4%
sqr-pow95.4%
sqr-pow95.4%
sqr-neg95.4%
cos-neg95.4%
Simplified95.4%
Final simplification95.4%
(FPCore (x) :precision binary64 (* (cos x) (pow (exp (* x x)) 10.0)))
double code(double x) {
return cos(x) * pow(exp((x * x)), 10.0);
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * (exp((x * x)) ** 10.0d0)
end function
public static double code(double x) {
return Math.cos(x) * Math.pow(Math.exp((x * x)), 10.0);
}
def code(x): return math.cos(x) * math.pow(math.exp((x * x)), 10.0)
function code(x) return Float64(cos(x) * (exp(Float64(x * x)) ^ 10.0)) end
function tmp = code(x) tmp = cos(x) * (exp((x * x)) ^ 10.0); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Power[N[Exp[N[(x * x), $MachinePrecision]], $MachinePrecision], 10.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot {\left(e^{x \cdot x}\right)}^{10}
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
sqr-neg94.3%
*-commutative94.3%
exp-prod95.4%
sqr-neg95.4%
cos-neg95.4%
Simplified95.4%
Final simplification95.4%
(FPCore (x) :precision binary64 (* (cos x) (exp (* 10.0 (* x x)))))
double code(double x) {
return cos(x) * exp((10.0 * (x * x)));
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x) * exp((10.0d0 * (x * x)))
end function
public static double code(double x) {
return Math.cos(x) * Math.exp((10.0 * (x * x)));
}
def code(x): return math.cos(x) * math.exp((10.0 * (x * x)))
function code(x) return Float64(cos(x) * exp(Float64(10.0 * Float64(x * x)))) end
function tmp = code(x) tmp = cos(x) * exp((10.0 * (x * x))); end
code[x_] := N[(N[Cos[x], $MachinePrecision] * N[Exp[N[(10.0 * N[(x * x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\cos x \cdot e^{10 \cdot \left(x \cdot x\right)}
\end{array}
Initial program 94.3%
Final simplification94.3%
(FPCore (x) :precision binary64 (- -20.0 (cos -20.0)))
double code(double x) {
return -20.0 - cos(-20.0);
}
real(8) function code(x)
real(8), intent (in) :: x
code = (-20.0d0) - cos((-20.0d0))
end function
public static double code(double x) {
return -20.0 - Math.cos(-20.0);
}
def code(x): return -20.0 - math.cos(-20.0)
function code(x) return Float64(-20.0 - cos(-20.0)) end
function tmp = code(x) tmp = -20.0 - cos(-20.0); end
code[x_] := N[(-20.0 - N[Cos[-20.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
-20 - \cos -20
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
sqrt-unprod98.0%
pow1/298.0%
pow-prod-down98.0%
pow-pow98.0%
prod-exp99.2%
metadata-eval99.2%
Applied egg-rr99.2%
sqr-pow99.1%
pow-unpow99.1%
pow-pow99.2%
pow-unpow99.2%
pow-pow99.1%
pow-prod-down99.4%
metadata-eval99.4%
associate-/r/96.9%
clear-num99.4%
frac-2neg99.4%
distribute-frac-neg99.4%
pow-neg99.2%
pow-prod-down99.2%
prod-exp99.2%
metadata-eval99.2%
frac-2neg99.2%
metadata-eval99.2%
metadata-eval99.2%
Applied egg-rr99.2%
Applied egg-rr9.8%
Final simplification9.8%
(FPCore (x) :precision binary64 (- (cos -20.0)))
double code(double x) {
return -cos(-20.0);
}
real(8) function code(x)
real(8), intent (in) :: x
code = -cos((-20.0d0))
end function
public static double code(double x) {
return -Math.cos(-20.0);
}
def code(x): return -math.cos(-20.0)
function code(x) return Float64(-cos(-20.0)) end
function tmp = code(x) tmp = -cos(-20.0); end
code[x_] := (-N[Cos[-20.0], $MachinePrecision])
\begin{array}{l}
\\
-\cos -20
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
sqrt-unprod98.0%
pow1/298.0%
pow-prod-down98.0%
pow-pow98.0%
prod-exp99.2%
metadata-eval99.2%
Applied egg-rr99.2%
sqr-pow99.1%
pow-unpow99.1%
pow-pow99.2%
pow-unpow99.2%
pow-pow99.1%
pow-prod-down99.4%
metadata-eval99.4%
associate-/r/96.9%
clear-num99.4%
frac-2neg99.4%
distribute-frac-neg99.4%
pow-neg99.2%
pow-prod-down99.2%
prod-exp99.2%
metadata-eval99.2%
frac-2neg99.2%
metadata-eval99.2%
metadata-eval99.2%
Applied egg-rr99.2%
Applied egg-rr9.6%
distribute-neg-frac9.6%
metadata-eval9.6%
associate-/r/9.6%
metadata-eval9.6%
neg-mul-19.6%
Simplified9.6%
Final simplification9.6%
(FPCore (x) :precision binary64 (cos -20.0))
double code(double x) {
return cos(-20.0);
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos((-20.0d0))
end function
public static double code(double x) {
return Math.cos(-20.0);
}
def code(x): return math.cos(-20.0)
function code(x) return cos(-20.0) end
function tmp = code(x) tmp = cos(-20.0); end
code[x_] := N[Cos[-20.0], $MachinePrecision]
\begin{array}{l}
\\
\cos -20
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
sqrt-unprod98.0%
pow1/298.0%
pow-prod-down98.0%
pow-pow98.0%
prod-exp99.2%
metadata-eval99.2%
Applied egg-rr99.2%
sqr-pow99.1%
pow-unpow99.1%
pow-pow99.2%
pow-unpow99.2%
pow-pow99.1%
pow-prod-down99.4%
metadata-eval99.4%
associate-/r/96.9%
clear-num99.4%
frac-2neg99.4%
distribute-frac-neg99.4%
pow-neg99.2%
pow-prod-down99.2%
prod-exp99.2%
metadata-eval99.2%
frac-2neg99.2%
metadata-eval99.2%
metadata-eval99.2%
Applied egg-rr99.2%
Applied egg-rr1.5%
associate-/r/1.5%
metadata-eval1.5%
*-lft-identity1.5%
Simplified1.5%
Final simplification1.5%
(FPCore (x) :precision binary64 (cos x))
double code(double x) {
return cos(x);
}
real(8) function code(x)
real(8), intent (in) :: x
code = cos(x)
end function
public static double code(double x) {
return Math.cos(x);
}
def code(x): return math.cos(x)
function code(x) return cos(x) end
function tmp = code(x) tmp = cos(x); end
code[x_] := N[Cos[x], $MachinePrecision]
\begin{array}{l}
\\
\cos x
\end{array}
Initial program 94.3%
Taylor expanded in x around 0 9.6%
Final simplification9.6%
(FPCore (x) :precision binary64 (+ 1.0 (+ (* (* (* x x) 0.6666666666666666) 9.5) 3.1666666666666665)))
double code(double x) {
return 1.0 + ((((x * x) * 0.6666666666666666) * 9.5) + 3.1666666666666665);
}
real(8) function code(x)
real(8), intent (in) :: x
code = 1.0d0 + ((((x * x) * 0.6666666666666666d0) * 9.5d0) + 3.1666666666666665d0)
end function
public static double code(double x) {
return 1.0 + ((((x * x) * 0.6666666666666666) * 9.5) + 3.1666666666666665);
}
def code(x): return 1.0 + ((((x * x) * 0.6666666666666666) * 9.5) + 3.1666666666666665)
function code(x) return Float64(1.0 + Float64(Float64(Float64(Float64(x * x) * 0.6666666666666666) * 9.5) + 3.1666666666666665)) end
function tmp = code(x) tmp = 1.0 + ((((x * x) * 0.6666666666666666) * 9.5) + 3.1666666666666665); end
code[x_] := N[(1.0 + N[(N[(N[(N[(x * x), $MachinePrecision] * 0.6666666666666666), $MachinePrecision] * 9.5), $MachinePrecision] + 3.1666666666666665), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \left(\left(\left(x \cdot x\right) \cdot 0.6666666666666666\right) \cdot 9.5 + 3.1666666666666665\right)
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
Taylor expanded in x around 0 1.5%
*-commutative1.5%
unpow21.5%
associate-*l*1.5%
Simplified1.5%
associate-*r*1.5%
rem-log-exp1.5%
rem-3cbrt-lft1.5%
*-commutative1.5%
log-prod1.5%
distribute-rgt-in1.5%
Applied egg-rr1.5%
Applied egg-rr1.5%
Final simplification1.5%
(FPCore (x) :precision binary64 (+ 1.0 (* x (* x 9.5))))
double code(double x) {
return 1.0 + (x * (x * 9.5));
}
real(8) function code(x)
real(8), intent (in) :: x
code = 1.0d0 + (x * (x * 9.5d0))
end function
public static double code(double x) {
return 1.0 + (x * (x * 9.5));
}
def code(x): return 1.0 + (x * (x * 9.5))
function code(x) return Float64(1.0 + Float64(x * Float64(x * 9.5))) end
function tmp = code(x) tmp = 1.0 + (x * (x * 9.5)); end
code[x_] := N[(1.0 + N[(x * N[(x * 9.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + x \cdot \left(x \cdot 9.5\right)
\end{array}
Initial program 94.3%
cos-neg94.3%
*-commutative94.3%
associate-*r*94.1%
exp-prod94.9%
sqr-pow94.8%
sqr-pow94.9%
exp-prod98.0%
cos-neg98.0%
Simplified98.0%
add-sqr-sqrt_binary6498.0%
Applied rewrite-once98.0%
Taylor expanded in x around 0 1.5%
*-commutative1.5%
unpow21.5%
associate-*l*1.5%
Simplified1.5%
Final simplification1.5%
herbie shell --seed 2023297
(FPCore (x)
:name "ENA, Section 1.4, Exercise 1"
:precision binary64
:pre (and (<= 1.99 x) (<= x 2.01))
(* (cos x) (exp (* 10.0 (* x x)))))