
(FPCore (v H) :precision binary64 (atan (/ v (sqrt (- (* v v) (* (* 2.0 9.8) H))))))
double code(double v, double H) {
return atan((v / sqrt(((v * v) - ((2.0 * 9.8) * H)))));
}
real(8) function code(v, h)
real(8), intent (in) :: v
real(8), intent (in) :: h
code = atan((v / sqrt(((v * v) - ((2.0d0 * 9.8d0) * h)))))
end function
public static double code(double v, double H) {
return Math.atan((v / Math.sqrt(((v * v) - ((2.0 * 9.8) * H)))));
}
def code(v, H): return math.atan((v / math.sqrt(((v * v) - ((2.0 * 9.8) * H)))))
function code(v, H) return atan(Float64(v / sqrt(Float64(Float64(v * v) - Float64(Float64(2.0 * 9.8) * H))))) end
function tmp = code(v, H) tmp = atan((v / sqrt(((v * v) - ((2.0 * 9.8) * H))))); end
code[v_, H_] := N[ArcTan[N[(v / N[Sqrt[N[(N[(v * v), $MachinePrecision] - N[(N[(2.0 * 9.8), $MachinePrecision] * H), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\tan^{-1} \left(\frac{v}{\sqrt{v \cdot v - \left(2 \cdot 9.8\right) \cdot H}}\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (v H) :precision binary64 (atan (/ v (sqrt (- (* v v) (* (* 2.0 9.8) H))))))
double code(double v, double H) {
return atan((v / sqrt(((v * v) - ((2.0 * 9.8) * H)))));
}
real(8) function code(v, h)
real(8), intent (in) :: v
real(8), intent (in) :: h
code = atan((v / sqrt(((v * v) - ((2.0d0 * 9.8d0) * h)))))
end function
public static double code(double v, double H) {
return Math.atan((v / Math.sqrt(((v * v) - ((2.0 * 9.8) * H)))));
}
def code(v, H): return math.atan((v / math.sqrt(((v * v) - ((2.0 * 9.8) * H)))))
function code(v, H) return atan(Float64(v / sqrt(Float64(Float64(v * v) - Float64(Float64(2.0 * 9.8) * H))))) end
function tmp = code(v, H) tmp = atan((v / sqrt(((v * v) - ((2.0 * 9.8) * H))))); end
code[v_, H_] := N[ArcTan[N[(v / N[Sqrt[N[(N[(v * v), $MachinePrecision] - N[(N[(2.0 * 9.8), $MachinePrecision] * H), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\tan^{-1} \left(\frac{v}{\sqrt{v \cdot v - \left(2 \cdot 9.8\right) \cdot H}}\right)
\end{array}
(FPCore (v H)
:precision binary64
(if (<= v -2e+154)
(atan -1.0)
(if (<= v 5e+126)
(atan (* v (pow (fma H -19.6 (* v v)) -0.5)))
(atan 1.0))))
double code(double v, double H) {
double tmp;
if (v <= -2e+154) {
tmp = atan(-1.0);
} else if (v <= 5e+126) {
tmp = atan((v * pow(fma(H, -19.6, (v * v)), -0.5)));
} else {
tmp = atan(1.0);
}
return tmp;
}
function code(v, H) tmp = 0.0 if (v <= -2e+154) tmp = atan(-1.0); elseif (v <= 5e+126) tmp = atan(Float64(v * (fma(H, -19.6, Float64(v * v)) ^ -0.5))); else tmp = atan(1.0); end return tmp end
code[v_, H_] := If[LessEqual[v, -2e+154], N[ArcTan[-1.0], $MachinePrecision], If[LessEqual[v, 5e+126], N[ArcTan[N[(v * N[Power[N[(H * -19.6 + N[(v * v), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcTan[1.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -2 \cdot 10^{+154}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{elif}\;v \leq 5 \cdot 10^{+126}:\\
\;\;\;\;\tan^{-1} \left(v \cdot {\left(\mathsf{fma}\left(H, -19.6, v \cdot v\right)\right)}^{-0.5}\right)\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} 1\\
\end{array}
\end{array}
if v < -2.00000000000000007e154Initial program 3.1%
sqr-neg3.1%
sqr-neg3.1%
metadata-eval3.1%
Simplified3.1%
Taylor expanded in v around -inf 100.0%
if -2.00000000000000007e154 < v < 4.99999999999999977e126Initial program 99.7%
sqr-neg99.7%
sqr-neg99.7%
metadata-eval99.7%
Simplified99.7%
clear-num99.4%
associate-/r/99.6%
pow1/299.6%
pow-flip99.7%
sub-neg99.7%
+-commutative99.7%
*-commutative99.7%
distribute-rgt-neg-in99.7%
fma-define99.7%
metadata-eval99.7%
pow299.7%
metadata-eval99.7%
Applied egg-rr99.7%
pow299.7%
Applied egg-rr99.7%
if 4.99999999999999977e126 < v Initial program 21.8%
sqr-neg21.8%
sqr-neg21.8%
metadata-eval21.8%
Simplified21.8%
Taylor expanded in v around inf 100.0%
Final simplification99.8%
(FPCore (v H) :precision binary64 (if (<= v -1.5e+154) (atan -1.0) (if (<= v 1.2e+128) (atan (/ v (sqrt (- (* v v) (* H 19.6))))) (atan 1.0))))
double code(double v, double H) {
double tmp;
if (v <= -1.5e+154) {
tmp = atan(-1.0);
} else if (v <= 1.2e+128) {
tmp = atan((v / sqrt(((v * v) - (H * 19.6)))));
} else {
tmp = atan(1.0);
}
return tmp;
}
real(8) function code(v, h)
real(8), intent (in) :: v
real(8), intent (in) :: h
real(8) :: tmp
if (v <= (-1.5d+154)) then
tmp = atan((-1.0d0))
else if (v <= 1.2d+128) then
tmp = atan((v / sqrt(((v * v) - (h * 19.6d0)))))
else
tmp = atan(1.0d0)
end if
code = tmp
end function
public static double code(double v, double H) {
double tmp;
if (v <= -1.5e+154) {
tmp = Math.atan(-1.0);
} else if (v <= 1.2e+128) {
tmp = Math.atan((v / Math.sqrt(((v * v) - (H * 19.6)))));
} else {
tmp = Math.atan(1.0);
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -1.5e+154: tmp = math.atan(-1.0) elif v <= 1.2e+128: tmp = math.atan((v / math.sqrt(((v * v) - (H * 19.6))))) else: tmp = math.atan(1.0) return tmp
function code(v, H) tmp = 0.0 if (v <= -1.5e+154) tmp = atan(-1.0); elseif (v <= 1.2e+128) tmp = atan(Float64(v / sqrt(Float64(Float64(v * v) - Float64(H * 19.6))))); else tmp = atan(1.0); end return tmp end
function tmp_2 = code(v, H) tmp = 0.0; if (v <= -1.5e+154) tmp = atan(-1.0); elseif (v <= 1.2e+128) tmp = atan((v / sqrt(((v * v) - (H * 19.6))))); else tmp = atan(1.0); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -1.5e+154], N[ArcTan[-1.0], $MachinePrecision], If[LessEqual[v, 1.2e+128], N[ArcTan[N[(v / N[Sqrt[N[(N[(v * v), $MachinePrecision] - N[(H * 19.6), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcTan[1.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -1.5 \cdot 10^{+154}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{elif}\;v \leq 1.2 \cdot 10^{+128}:\\
\;\;\;\;\tan^{-1} \left(\frac{v}{\sqrt{v \cdot v - H \cdot 19.6}}\right)\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} 1\\
\end{array}
\end{array}
if v < -1.50000000000000013e154Initial program 3.1%
sqr-neg3.1%
sqr-neg3.1%
metadata-eval3.1%
Simplified3.1%
Taylor expanded in v around -inf 100.0%
if -1.50000000000000013e154 < v < 1.2000000000000001e128Initial program 99.7%
sqr-neg99.7%
sqr-neg99.7%
metadata-eval99.7%
Simplified99.7%
if 1.2000000000000001e128 < v Initial program 21.8%
sqr-neg21.8%
sqr-neg21.8%
metadata-eval21.8%
Simplified21.8%
Taylor expanded in v around inf 100.0%
Final simplification99.8%
(FPCore (v H)
:precision binary64
(if (<= v -5.8e-41)
(atan (+ -1.0 (/ (/ (* H -9.8) v) v)))
(if (<= v 8.2e-35)
(atan (* v (pow (* H -19.6) -0.5)))
(atan (/ v (+ v (* -9.8 (/ H v))))))))
double code(double v, double H) {
double tmp;
if (v <= -5.8e-41) {
tmp = atan((-1.0 + (((H * -9.8) / v) / v)));
} else if (v <= 8.2e-35) {
tmp = atan((v * pow((H * -19.6), -0.5)));
} else {
tmp = atan((v / (v + (-9.8 * (H / v)))));
}
return tmp;
}
real(8) function code(v, h)
real(8), intent (in) :: v
real(8), intent (in) :: h
real(8) :: tmp
if (v <= (-5.8d-41)) then
tmp = atan(((-1.0d0) + (((h * (-9.8d0)) / v) / v)))
else if (v <= 8.2d-35) then
tmp = atan((v * ((h * (-19.6d0)) ** (-0.5d0))))
else
tmp = atan((v / (v + ((-9.8d0) * (h / v)))))
end if
code = tmp
end function
public static double code(double v, double H) {
double tmp;
if (v <= -5.8e-41) {
tmp = Math.atan((-1.0 + (((H * -9.8) / v) / v)));
} else if (v <= 8.2e-35) {
tmp = Math.atan((v * Math.pow((H * -19.6), -0.5)));
} else {
tmp = Math.atan((v / (v + (-9.8 * (H / v)))));
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -5.8e-41: tmp = math.atan((-1.0 + (((H * -9.8) / v) / v))) elif v <= 8.2e-35: tmp = math.atan((v * math.pow((H * -19.6), -0.5))) else: tmp = math.atan((v / (v + (-9.8 * (H / v))))) return tmp
function code(v, H) tmp = 0.0 if (v <= -5.8e-41) tmp = atan(Float64(-1.0 + Float64(Float64(Float64(H * -9.8) / v) / v))); elseif (v <= 8.2e-35) tmp = atan(Float64(v * (Float64(H * -19.6) ^ -0.5))); else tmp = atan(Float64(v / Float64(v + Float64(-9.8 * Float64(H / v))))); end return tmp end
function tmp_2 = code(v, H) tmp = 0.0; if (v <= -5.8e-41) tmp = atan((-1.0 + (((H * -9.8) / v) / v))); elseif (v <= 8.2e-35) tmp = atan((v * ((H * -19.6) ^ -0.5))); else tmp = atan((v / (v + (-9.8 * (H / v))))); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -5.8e-41], N[ArcTan[N[(-1.0 + N[(N[(N[(H * -9.8), $MachinePrecision] / v), $MachinePrecision] / v), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[v, 8.2e-35], N[ArcTan[N[(v * N[Power[N[(H * -19.6), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcTan[N[(v / N[(v + N[(-9.8 * N[(H / v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -5.8 \cdot 10^{-41}:\\
\;\;\;\;\tan^{-1} \left(-1 + \frac{\frac{H \cdot -9.8}{v}}{v}\right)\\
\mathbf{elif}\;v \leq 8.2 \cdot 10^{-35}:\\
\;\;\;\;\tan^{-1} \left(v \cdot {\left(H \cdot -19.6\right)}^{-0.5}\right)\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} \left(\frac{v}{v + -9.8 \cdot \frac{H}{v}}\right)\\
\end{array}
\end{array}
if v < -5.79999999999999955e-41Initial program 53.9%
sqr-neg53.9%
sqr-neg53.9%
metadata-eval53.9%
Simplified53.9%
Taylor expanded in v around -inf 92.8%
associate-*r/92.8%
pow292.8%
associate-/r*92.8%
*-commutative92.8%
Applied egg-rr92.8%
if -5.79999999999999955e-41 < v < 8.20000000000000052e-35Initial program 99.4%
sqr-neg99.4%
sqr-neg99.4%
metadata-eval99.4%
Simplified99.4%
clear-num98.9%
associate-/r/99.3%
pow1/299.3%
pow-flip99.5%
sub-neg99.5%
+-commutative99.5%
*-commutative99.5%
distribute-rgt-neg-in99.5%
fma-define99.5%
metadata-eval99.5%
pow299.5%
metadata-eval99.5%
Applied egg-rr99.5%
Taylor expanded in H around inf 89.8%
if 8.20000000000000052e-35 < v Initial program 54.5%
sqr-neg54.5%
sqr-neg54.5%
metadata-eval54.5%
Simplified54.5%
Taylor expanded in H around 0 89.8%
Final simplification90.8%
(FPCore (v H)
:precision binary64
(if (<= v -1.35e-39)
(atan (+ -1.0 (/ (/ (* H -9.8) v) v)))
(if (<= v 3.6e-39)
(atan (/ v (sqrt (* H -19.6))))
(atan (/ v (+ v (* -9.8 (/ H v))))))))
double code(double v, double H) {
double tmp;
if (v <= -1.35e-39) {
tmp = atan((-1.0 + (((H * -9.8) / v) / v)));
} else if (v <= 3.6e-39) {
tmp = atan((v / sqrt((H * -19.6))));
} else {
tmp = atan((v / (v + (-9.8 * (H / v)))));
}
return tmp;
}
real(8) function code(v, h)
real(8), intent (in) :: v
real(8), intent (in) :: h
real(8) :: tmp
if (v <= (-1.35d-39)) then
tmp = atan(((-1.0d0) + (((h * (-9.8d0)) / v) / v)))
else if (v <= 3.6d-39) then
tmp = atan((v / sqrt((h * (-19.6d0)))))
else
tmp = atan((v / (v + ((-9.8d0) * (h / v)))))
end if
code = tmp
end function
public static double code(double v, double H) {
double tmp;
if (v <= -1.35e-39) {
tmp = Math.atan((-1.0 + (((H * -9.8) / v) / v)));
} else if (v <= 3.6e-39) {
tmp = Math.atan((v / Math.sqrt((H * -19.6))));
} else {
tmp = Math.atan((v / (v + (-9.8 * (H / v)))));
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -1.35e-39: tmp = math.atan((-1.0 + (((H * -9.8) / v) / v))) elif v <= 3.6e-39: tmp = math.atan((v / math.sqrt((H * -19.6)))) else: tmp = math.atan((v / (v + (-9.8 * (H / v))))) return tmp
function code(v, H) tmp = 0.0 if (v <= -1.35e-39) tmp = atan(Float64(-1.0 + Float64(Float64(Float64(H * -9.8) / v) / v))); elseif (v <= 3.6e-39) tmp = atan(Float64(v / sqrt(Float64(H * -19.6)))); else tmp = atan(Float64(v / Float64(v + Float64(-9.8 * Float64(H / v))))); end return tmp end
function tmp_2 = code(v, H) tmp = 0.0; if (v <= -1.35e-39) tmp = atan((-1.0 + (((H * -9.8) / v) / v))); elseif (v <= 3.6e-39) tmp = atan((v / sqrt((H * -19.6)))); else tmp = atan((v / (v + (-9.8 * (H / v))))); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -1.35e-39], N[ArcTan[N[(-1.0 + N[(N[(N[(H * -9.8), $MachinePrecision] / v), $MachinePrecision] / v), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[v, 3.6e-39], N[ArcTan[N[(v / N[Sqrt[N[(H * -19.6), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcTan[N[(v / N[(v + N[(-9.8 * N[(H / v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -1.35 \cdot 10^{-39}:\\
\;\;\;\;\tan^{-1} \left(-1 + \frac{\frac{H \cdot -9.8}{v}}{v}\right)\\
\mathbf{elif}\;v \leq 3.6 \cdot 10^{-39}:\\
\;\;\;\;\tan^{-1} \left(\frac{v}{\sqrt{H \cdot -19.6}}\right)\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} \left(\frac{v}{v + -9.8 \cdot \frac{H}{v}}\right)\\
\end{array}
\end{array}
if v < -1.35e-39Initial program 53.9%
sqr-neg53.9%
sqr-neg53.9%
metadata-eval53.9%
Simplified53.9%
Taylor expanded in v around -inf 92.8%
associate-*r/92.8%
pow292.8%
associate-/r*92.8%
*-commutative92.8%
Applied egg-rr92.8%
if -1.35e-39 < v < 3.6000000000000001e-39Initial program 99.4%
sqr-neg99.4%
sqr-neg99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in v around 0 89.7%
*-commutative89.7%
Simplified89.7%
if 3.6000000000000001e-39 < v Initial program 54.5%
sqr-neg54.5%
sqr-neg54.5%
metadata-eval54.5%
Simplified54.5%
Taylor expanded in H around 0 89.8%
Final simplification90.7%
(FPCore (v H) :precision binary64 (if (<= v -3.6e-165) (atan -1.0) (atan (/ v (+ v (* -9.8 (/ H v)))))))
double code(double v, double H) {
double tmp;
if (v <= -3.6e-165) {
tmp = atan(-1.0);
} else {
tmp = atan((v / (v + (-9.8 * (H / v)))));
}
return tmp;
}
real(8) function code(v, h)
real(8), intent (in) :: v
real(8), intent (in) :: h
real(8) :: tmp
if (v <= (-3.6d-165)) then
tmp = atan((-1.0d0))
else
tmp = atan((v / (v + ((-9.8d0) * (h / v)))))
end if
code = tmp
end function
public static double code(double v, double H) {
double tmp;
if (v <= -3.6e-165) {
tmp = Math.atan(-1.0);
} else {
tmp = Math.atan((v / (v + (-9.8 * (H / v)))));
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -3.6e-165: tmp = math.atan(-1.0) else: tmp = math.atan((v / (v + (-9.8 * (H / v))))) return tmp
function code(v, H) tmp = 0.0 if (v <= -3.6e-165) tmp = atan(-1.0); else tmp = atan(Float64(v / Float64(v + Float64(-9.8 * Float64(H / v))))); end return tmp end
function tmp_2 = code(v, H) tmp = 0.0; if (v <= -3.6e-165) tmp = atan(-1.0); else tmp = atan((v / (v + (-9.8 * (H / v))))); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -3.6e-165], N[ArcTan[-1.0], $MachinePrecision], N[ArcTan[N[(v / N[(v + N[(-9.8 * N[(H / v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -3.6 \cdot 10^{-165}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} \left(\frac{v}{v + -9.8 \cdot \frac{H}{v}}\right)\\
\end{array}
\end{array}
if v < -3.59999999999999984e-165Initial program 63.9%
sqr-neg63.9%
sqr-neg63.9%
metadata-eval63.9%
Simplified63.9%
Taylor expanded in v around -inf 75.0%
if -3.59999999999999984e-165 < v Initial program 70.3%
sqr-neg70.3%
sqr-neg70.3%
metadata-eval70.3%
Simplified70.3%
Taylor expanded in H around 0 68.4%
(FPCore (v H) :precision binary64 (if (<= v -1.9e-302) (atan -1.0) (atan 1.0)))
double code(double v, double H) {
double tmp;
if (v <= -1.9e-302) {
tmp = atan(-1.0);
} else {
tmp = atan(1.0);
}
return tmp;
}
real(8) function code(v, h)
real(8), intent (in) :: v
real(8), intent (in) :: h
real(8) :: tmp
if (v <= (-1.9d-302)) then
tmp = atan((-1.0d0))
else
tmp = atan(1.0d0)
end if
code = tmp
end function
public static double code(double v, double H) {
double tmp;
if (v <= -1.9e-302) {
tmp = Math.atan(-1.0);
} else {
tmp = Math.atan(1.0);
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -1.9e-302: tmp = math.atan(-1.0) else: tmp = math.atan(1.0) return tmp
function code(v, H) tmp = 0.0 if (v <= -1.9e-302) tmp = atan(-1.0); else tmp = atan(1.0); end return tmp end
function tmp_2 = code(v, H) tmp = 0.0; if (v <= -1.9e-302) tmp = atan(-1.0); else tmp = atan(1.0); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -1.9e-302], N[ArcTan[-1.0], $MachinePrecision], N[ArcTan[1.0], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -1.9 \cdot 10^{-302}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} 1\\
\end{array}
\end{array}
if v < -1.9e-302Initial program 68.8%
sqr-neg68.8%
sqr-neg68.8%
metadata-eval68.8%
Simplified68.8%
Taylor expanded in v around -inf 65.1%
if -1.9e-302 < v Initial program 66.6%
sqr-neg66.6%
sqr-neg66.6%
metadata-eval66.6%
Simplified66.6%
Taylor expanded in v around inf 70.7%
(FPCore (v H) :precision binary64 (atan -1.0))
double code(double v, double H) {
return atan(-1.0);
}
real(8) function code(v, h)
real(8), intent (in) :: v
real(8), intent (in) :: h
code = atan((-1.0d0))
end function
public static double code(double v, double H) {
return Math.atan(-1.0);
}
def code(v, H): return math.atan(-1.0)
function code(v, H) return atan(-1.0) end
function tmp = code(v, H) tmp = atan(-1.0); end
code[v_, H_] := N[ArcTan[-1.0], $MachinePrecision]
\begin{array}{l}
\\
\tan^{-1} -1
\end{array}
Initial program 67.7%
sqr-neg67.7%
sqr-neg67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in v around -inf 32.0%
herbie shell --seed 2024146
(FPCore (v H)
:name "Optimal throwing angle"
:precision binary64
(atan (/ v (sqrt (- (* v v) (* (* 2.0 9.8) H))))))