
(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 -4e+154) (atan -1.0) (if (<= v 6.8e+55) (atan (/ v (sqrt (- (* v v) (* 19.6 H))))) (atan 1.0))))
double code(double v, double H) {
double tmp;
if (v <= -4e+154) {
tmp = atan(-1.0);
} else if (v <= 6.8e+55) {
tmp = atan((v / sqrt(((v * v) - (19.6 * H)))));
} 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 <= (-4d+154)) then
tmp = atan((-1.0d0))
else if (v <= 6.8d+55) then
tmp = atan((v / sqrt(((v * v) - (19.6d0 * h)))))
else
tmp = atan(1.0d0)
end if
code = tmp
end function
public static double code(double v, double H) {
double tmp;
if (v <= -4e+154) {
tmp = Math.atan(-1.0);
} else if (v <= 6.8e+55) {
tmp = Math.atan((v / Math.sqrt(((v * v) - (19.6 * H)))));
} else {
tmp = Math.atan(1.0);
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -4e+154: tmp = math.atan(-1.0) elif v <= 6.8e+55: tmp = math.atan((v / math.sqrt(((v * v) - (19.6 * H))))) else: tmp = math.atan(1.0) return tmp
function code(v, H) tmp = 0.0 if (v <= -4e+154) tmp = atan(-1.0); elseif (v <= 6.8e+55) tmp = atan(Float64(v / sqrt(Float64(Float64(v * v) - Float64(19.6 * H))))); else tmp = atan(1.0); end return tmp end
function tmp_2 = code(v, H) tmp = 0.0; if (v <= -4e+154) tmp = atan(-1.0); elseif (v <= 6.8e+55) tmp = atan((v / sqrt(((v * v) - (19.6 * H))))); else tmp = atan(1.0); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -4e+154], N[ArcTan[-1.0], $MachinePrecision], If[LessEqual[v, 6.8e+55], N[ArcTan[N[(v / N[Sqrt[N[(N[(v * v), $MachinePrecision] - N[(19.6 * H), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcTan[1.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -4 \cdot 10^{+154}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{elif}\;v \leq 6.8 \cdot 10^{+55}:\\
\;\;\;\;\tan^{-1} \left(\frac{v}{\sqrt{v \cdot v - 19.6 \cdot H}}\right)\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} 1\\
\end{array}
\end{array}
if v < -4.00000000000000015e154Initial program 3.1%
sqr-neg3.1%
sqr-neg3.1%
metadata-eval3.1%
Simplified3.1%
Taylor expanded in v around -inf 100.0%
if -4.00000000000000015e154 < v < 6.7999999999999996e55Initial program 99.7%
sqr-neg99.7%
sqr-neg99.7%
metadata-eval99.7%
Simplified99.7%
if 6.7999999999999996e55 < v Initial program 51.6%
sqr-neg51.6%
sqr-neg51.6%
metadata-eval51.6%
Simplified51.6%
Taylor expanded in v around inf 100.0%
(FPCore (v H)
:precision binary64
(if (<= v -1.45e-10)
(atan -1.0)
(if (<= v 4.4e-74)
(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 <= -1.45e-10) {
tmp = atan(-1.0);
} else if (v <= 4.4e-74) {
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 <= (-1.45d-10)) then
tmp = atan((-1.0d0))
else if (v <= 4.4d-74) 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 <= -1.45e-10) {
tmp = Math.atan(-1.0);
} else if (v <= 4.4e-74) {
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 <= -1.45e-10: tmp = math.atan(-1.0) elif v <= 4.4e-74: 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 <= -1.45e-10) tmp = atan(-1.0); elseif (v <= 4.4e-74) 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 <= -1.45e-10) tmp = atan(-1.0); elseif (v <= 4.4e-74) 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, -1.45e-10], N[ArcTan[-1.0], $MachinePrecision], If[LessEqual[v, 4.4e-74], 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 -1.45 \cdot 10^{-10}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{elif}\;v \leq 4.4 \cdot 10^{-74}:\\
\;\;\;\;\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 < -1.4499999999999999e-10Initial program 43.4%
sqr-neg43.4%
sqr-neg43.4%
metadata-eval43.4%
Simplified43.4%
Taylor expanded in v around -inf 98.8%
if -1.4499999999999999e-10 < v < 4.40000000000000021e-74Initial program 99.6%
sqr-neg99.6%
sqr-neg99.6%
metadata-eval99.6%
Simplified99.6%
clear-num97.9%
associate-/r/99.5%
pow1/299.5%
pow-flip99.6%
sub-neg99.6%
+-commutative99.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
fma-define99.6%
metadata-eval99.6%
pow299.6%
metadata-eval99.6%
Applied egg-rr99.6%
Taylor expanded in H around inf 92.7%
*-commutative92.7%
Simplified92.7%
if 4.40000000000000021e-74 < v Initial program 67.0%
sqr-neg67.0%
sqr-neg67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in H around 0 87.3%
Final simplification92.4%
(FPCore (v H)
:precision binary64
(if (<= v -3.6e-11)
(atan -1.0)
(if (<= v 3.35e-74)
(atan (* v (sqrt (/ -0.05102040816326531 H))))
(atan (/ v (+ v (* -9.8 (/ H v))))))))
double code(double v, double H) {
double tmp;
if (v <= -3.6e-11) {
tmp = atan(-1.0);
} else if (v <= 3.35e-74) {
tmp = atan((v * sqrt((-0.05102040816326531 / H))));
} 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-11)) then
tmp = atan((-1.0d0))
else if (v <= 3.35d-74) then
tmp = atan((v * sqrt(((-0.05102040816326531d0) / h))))
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-11) {
tmp = Math.atan(-1.0);
} else if (v <= 3.35e-74) {
tmp = Math.atan((v * Math.sqrt((-0.05102040816326531 / H))));
} else {
tmp = Math.atan((v / (v + (-9.8 * (H / v)))));
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -3.6e-11: tmp = math.atan(-1.0) elif v <= 3.35e-74: tmp = math.atan((v * math.sqrt((-0.05102040816326531 / H)))) else: tmp = math.atan((v / (v + (-9.8 * (H / v))))) return tmp
function code(v, H) tmp = 0.0 if (v <= -3.6e-11) tmp = atan(-1.0); elseif (v <= 3.35e-74) tmp = atan(Float64(v * sqrt(Float64(-0.05102040816326531 / H)))); 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-11) tmp = atan(-1.0); elseif (v <= 3.35e-74) tmp = atan((v * sqrt((-0.05102040816326531 / H)))); else tmp = atan((v / (v + (-9.8 * (H / v))))); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -3.6e-11], N[ArcTan[-1.0], $MachinePrecision], If[LessEqual[v, 3.35e-74], N[ArcTan[N[(v * N[Sqrt[N[(-0.05102040816326531 / H), $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 -3.6 \cdot 10^{-11}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{elif}\;v \leq 3.35 \cdot 10^{-74}:\\
\;\;\;\;\tan^{-1} \left(v \cdot \sqrt{\frac{-0.05102040816326531}{H}}\right)\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} \left(\frac{v}{v + -9.8 \cdot \frac{H}{v}}\right)\\
\end{array}
\end{array}
if v < -3.59999999999999985e-11Initial program 43.4%
sqr-neg43.4%
sqr-neg43.4%
metadata-eval43.4%
Simplified43.4%
Taylor expanded in v around -inf 98.8%
if -3.59999999999999985e-11 < v < 3.3499999999999998e-74Initial program 99.6%
sqr-neg99.6%
sqr-neg99.6%
metadata-eval99.6%
Simplified99.6%
clear-num97.9%
associate-/r/99.5%
pow1/299.5%
pow-flip99.6%
sub-neg99.6%
+-commutative99.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
fma-define99.6%
metadata-eval99.6%
pow299.6%
metadata-eval99.6%
Applied egg-rr99.6%
add-sqr-sqrt99.1%
sqrt-unprod99.6%
pow-prod-up99.5%
metadata-eval99.5%
Applied egg-rr99.5%
unpow-199.5%
Simplified99.5%
Taylor expanded in H around inf 92.7%
if 3.3499999999999998e-74 < v Initial program 67.0%
sqr-neg67.0%
sqr-neg67.0%
metadata-eval67.0%
Simplified67.0%
Taylor expanded in H around 0 87.3%
Final simplification92.4%
(FPCore (v H)
:precision binary64
(if (<= v -1.1e-185)
(atan -1.0)
(if (<= v 1.7e-114)
(atan (* -0.10204081632653061 (/ v (/ H v))))
(atan 1.0))))
double code(double v, double H) {
double tmp;
if (v <= -1.1e-185) {
tmp = atan(-1.0);
} else if (v <= 1.7e-114) {
tmp = atan((-0.10204081632653061 * (v / (H / v))));
} 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.1d-185)) then
tmp = atan((-1.0d0))
else if (v <= 1.7d-114) then
tmp = atan(((-0.10204081632653061d0) * (v / (h / v))))
else
tmp = atan(1.0d0)
end if
code = tmp
end function
public static double code(double v, double H) {
double tmp;
if (v <= -1.1e-185) {
tmp = Math.atan(-1.0);
} else if (v <= 1.7e-114) {
tmp = Math.atan((-0.10204081632653061 * (v / (H / v))));
} else {
tmp = Math.atan(1.0);
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -1.1e-185: tmp = math.atan(-1.0) elif v <= 1.7e-114: tmp = math.atan((-0.10204081632653061 * (v / (H / v)))) else: tmp = math.atan(1.0) return tmp
function code(v, H) tmp = 0.0 if (v <= -1.1e-185) tmp = atan(-1.0); elseif (v <= 1.7e-114) tmp = atan(Float64(-0.10204081632653061 * Float64(v / Float64(H / v)))); else tmp = atan(1.0); end return tmp end
function tmp_2 = code(v, H) tmp = 0.0; if (v <= -1.1e-185) tmp = atan(-1.0); elseif (v <= 1.7e-114) tmp = atan((-0.10204081632653061 * (v / (H / v)))); else tmp = atan(1.0); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -1.1e-185], N[ArcTan[-1.0], $MachinePrecision], If[LessEqual[v, 1.7e-114], N[ArcTan[N[(-0.10204081632653061 * N[(v / N[(H / v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcTan[1.0], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -1.1 \cdot 10^{-185}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{elif}\;v \leq 1.7 \cdot 10^{-114}:\\
\;\;\;\;\tan^{-1} \left(-0.10204081632653061 \cdot \frac{v}{\frac{H}{v}}\right)\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} 1\\
\end{array}
\end{array}
if v < -1.1e-185Initial program 57.6%
sqr-neg57.6%
sqr-neg57.6%
metadata-eval57.6%
Simplified57.6%
Taylor expanded in v around -inf 79.9%
if -1.1e-185 < v < 1.69999999999999991e-114Initial program 99.5%
sqr-neg99.5%
sqr-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in H around 0 24.9%
+-commutative24.9%
fma-define24.9%
Simplified24.9%
Taylor expanded in H around inf 24.9%
*-un-lft-identity24.9%
times-frac24.9%
metadata-eval24.9%
Applied egg-rr24.9%
if 1.69999999999999991e-114 < v Initial program 68.6%
sqr-neg68.6%
sqr-neg68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in v around inf 84.2%
(FPCore (v H) :precision binary64 (if (<= v -1.05e-185) (atan -1.0) (atan (/ v (+ v (* -9.8 (/ H v)))))))
double code(double v, double H) {
double tmp;
if (v <= -1.05e-185) {
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 <= (-1.05d-185)) 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 <= -1.05e-185) {
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 <= -1.05e-185: 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 <= -1.05e-185) 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 <= -1.05e-185) tmp = atan(-1.0); else tmp = atan((v / (v + (-9.8 * (H / v))))); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -1.05e-185], 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 -1.05 \cdot 10^{-185}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} \left(\frac{v}{v + -9.8 \cdot \frac{H}{v}}\right)\\
\end{array}
\end{array}
if v < -1.05e-185Initial program 57.6%
sqr-neg57.6%
sqr-neg57.6%
metadata-eval57.6%
Simplified57.6%
Taylor expanded in v around -inf 79.9%
if -1.05e-185 < v Initial program 78.3%
sqr-neg78.3%
sqr-neg78.3%
metadata-eval78.3%
Simplified78.3%
Taylor expanded in H around 0 65.7%
(FPCore (v H) :precision binary64 (if (<= v -1e-309) (atan -1.0) (atan 1.0)))
double code(double v, double H) {
double tmp;
if (v <= -1e-309) {
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 <= (-1d-309)) 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 <= -1e-309) {
tmp = Math.atan(-1.0);
} else {
tmp = Math.atan(1.0);
}
return tmp;
}
def code(v, H): tmp = 0 if v <= -1e-309: tmp = math.atan(-1.0) else: tmp = math.atan(1.0) return tmp
function code(v, H) tmp = 0.0 if (v <= -1e-309) tmp = atan(-1.0); else tmp = atan(1.0); end return tmp end
function tmp_2 = code(v, H) tmp = 0.0; if (v <= -1e-309) tmp = atan(-1.0); else tmp = atan(1.0); end tmp_2 = tmp; end
code[v_, H_] := If[LessEqual[v, -1e-309], N[ArcTan[-1.0], $MachinePrecision], N[ArcTan[1.0], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;v \leq -1 \cdot 10^{-309}:\\
\;\;\;\;\tan^{-1} -1\\
\mathbf{else}:\\
\;\;\;\;\tan^{-1} 1\\
\end{array}
\end{array}
if v < -1.000000000000002e-309Initial program 63.5%
sqr-neg63.5%
sqr-neg63.5%
metadata-eval63.5%
Simplified63.5%
Taylor expanded in v around -inf 69.1%
if -1.000000000000002e-309 < v Initial program 75.6%
sqr-neg75.6%
sqr-neg75.6%
metadata-eval75.6%
Simplified75.6%
Taylor expanded in v around inf 66.0%
(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 70.0%
sqr-neg70.0%
sqr-neg70.0%
metadata-eval70.0%
Simplified70.0%
Taylor expanded in v around -inf 33.4%
herbie shell --seed 2024108
(FPCore (v H)
:name "Optimal throwing angle"
:precision binary64
(atan (/ v (sqrt (- (* v v) (* (* 2.0 9.8) H))))))