
(FPCore (t l Om Omc) :precision binary64 (asin (sqrt (/ (- 1.0 (pow (/ Om Omc) 2.0)) (+ 1.0 (* 2.0 (pow (/ t l) 2.0)))))))
double code(double t, double l, double Om, double Omc) {
return asin(sqrt(((1.0 - pow((Om / Omc), 2.0)) / (1.0 + (2.0 * pow((t / l), 2.0))))));
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
code = asin(sqrt(((1.0d0 - ((om / omc) ** 2.0d0)) / (1.0d0 + (2.0d0 * ((t / l) ** 2.0d0))))))
end function
public static double code(double t, double l, double Om, double Omc) {
return Math.asin(Math.sqrt(((1.0 - Math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * Math.pow((t / l), 2.0))))));
}
def code(t, l, Om, Omc): return math.asin(math.sqrt(((1.0 - math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * math.pow((t / l), 2.0))))))
function code(t, l, Om, Omc) return asin(sqrt(Float64(Float64(1.0 - (Float64(Om / Omc) ^ 2.0)) / Float64(1.0 + Float64(2.0 * (Float64(t / l) ^ 2.0)))))) end
function tmp = code(t, l, Om, Omc) tmp = asin(sqrt(((1.0 - ((Om / Omc) ^ 2.0)) / (1.0 + (2.0 * ((t / l) ^ 2.0)))))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[Sqrt[N[(N[(1.0 - N[Power[N[(Om / Omc), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(2.0 * N[Power[N[(t / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\sqrt{\frac{1 - {\left(\frac{Om}{Omc}\right)}^{2}}{1 + 2 \cdot {\left(\frac{t}{\ell}\right)}^{2}}}\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l Om Omc) :precision binary64 (asin (sqrt (/ (- 1.0 (pow (/ Om Omc) 2.0)) (+ 1.0 (* 2.0 (pow (/ t l) 2.0)))))))
double code(double t, double l, double Om, double Omc) {
return asin(sqrt(((1.0 - pow((Om / Omc), 2.0)) / (1.0 + (2.0 * pow((t / l), 2.0))))));
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
code = asin(sqrt(((1.0d0 - ((om / omc) ** 2.0d0)) / (1.0d0 + (2.0d0 * ((t / l) ** 2.0d0))))))
end function
public static double code(double t, double l, double Om, double Omc) {
return Math.asin(Math.sqrt(((1.0 - Math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * Math.pow((t / l), 2.0))))));
}
def code(t, l, Om, Omc): return math.asin(math.sqrt(((1.0 - math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * math.pow((t / l), 2.0))))))
function code(t, l, Om, Omc) return asin(sqrt(Float64(Float64(1.0 - (Float64(Om / Omc) ^ 2.0)) / Float64(1.0 + Float64(2.0 * (Float64(t / l) ^ 2.0)))))) end
function tmp = code(t, l, Om, Omc) tmp = asin(sqrt(((1.0 - ((Om / Omc) ^ 2.0)) / (1.0 + (2.0 * ((t / l) ^ 2.0)))))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[Sqrt[N[(N[(1.0 - N[Power[N[(Om / Omc), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(2.0 * N[Power[N[(t / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\sqrt{\frac{1 - {\left(\frac{Om}{Omc}\right)}^{2}}{1 + 2 \cdot {\left(\frac{t}{\ell}\right)}^{2}}}\right)
\end{array}
(FPCore (t l Om Omc) :precision binary64 (asin (/ (sqrt (- 1.0 (/ (/ Om Omc) (/ Omc Om)))) (hypot 1.0 (/ (* t (sqrt 2.0)) l)))))
double code(double t, double l, double Om, double Omc) {
return asin((sqrt((1.0 - ((Om / Omc) / (Omc / Om)))) / hypot(1.0, ((t * sqrt(2.0)) / l))));
}
public static double code(double t, double l, double Om, double Omc) {
return Math.asin((Math.sqrt((1.0 - ((Om / Omc) / (Omc / Om)))) / Math.hypot(1.0, ((t * Math.sqrt(2.0)) / l))));
}
def code(t, l, Om, Omc): return math.asin((math.sqrt((1.0 - ((Om / Omc) / (Omc / Om)))) / math.hypot(1.0, ((t * math.sqrt(2.0)) / l))))
function code(t, l, Om, Omc) return asin(Float64(sqrt(Float64(1.0 - Float64(Float64(Om / Omc) / Float64(Omc / Om)))) / hypot(1.0, Float64(Float64(t * sqrt(2.0)) / l)))) end
function tmp = code(t, l, Om, Omc) tmp = asin((sqrt((1.0 - ((Om / Omc) / (Omc / Om)))) / hypot(1.0, ((t * sqrt(2.0)) / l)))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[(N[Sqrt[N[(1.0 - N[(N[(Om / Omc), $MachinePrecision] / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Sqrt[1.0 ^ 2 + N[(N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\frac{\sqrt{1 - \frac{\frac{Om}{Omc}}{\frac{Omc}{Om}}}}{\mathsf{hypot}\left(1, \frac{t \cdot \sqrt{2}}{\ell}\right)}\right)
\end{array}
Initial program 86.5%
sqrt-div86.5%
div-inv86.5%
reciprocal-define73.5%
add-sqr-sqrt73.5%
hypot-1-def73.5%
*-commutative73.5%
sqrt-prod73.5%
unpow273.5%
sqrt-prod41.4%
add-sqr-sqrt78.0%
Applied egg-rr78.0%
*-commutative78.0%
reciprocal-undefine98.7%
associate-*l/98.7%
unpow298.7%
times-frac88.2%
unpow288.2%
unpow288.2%
*-lft-identity88.2%
unpow288.2%
unpow288.2%
times-frac98.7%
unpow298.7%
associate-*l/98.7%
Simplified98.7%
unpow298.7%
clear-num98.7%
un-div-inv98.7%
Applied egg-rr98.7%
Final simplification98.7%
(FPCore (t l Om Omc) :precision binary64 (asin (/ 1.0 (hypot 1.0 (* (sqrt 2.0) (/ t l))))))
double code(double t, double l, double Om, double Omc) {
return asin((1.0 / hypot(1.0, (sqrt(2.0) * (t / l)))));
}
public static double code(double t, double l, double Om, double Omc) {
return Math.asin((1.0 / Math.hypot(1.0, (Math.sqrt(2.0) * (t / l)))));
}
def code(t, l, Om, Omc): return math.asin((1.0 / math.hypot(1.0, (math.sqrt(2.0) * (t / l)))))
function code(t, l, Om, Omc) return asin(Float64(1.0 / hypot(1.0, Float64(sqrt(2.0) * Float64(t / l))))) end
function tmp = code(t, l, Om, Omc) tmp = asin((1.0 / hypot(1.0, (sqrt(2.0) * (t / l))))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[(1.0 / N[Sqrt[1.0 ^ 2 + N[(N[Sqrt[2.0], $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\frac{1}{\mathsf{hypot}\left(1, \sqrt{2} \cdot \frac{t}{\ell}\right)}\right)
\end{array}
Initial program 86.5%
sqrt-div86.5%
add-sqr-sqrt86.5%
hypot-1-def86.5%
*-commutative86.5%
sqrt-prod86.4%
unpow286.4%
sqrt-prod51.1%
add-sqr-sqrt98.7%
Applied egg-rr98.7%
Taylor expanded in Om around 0 97.9%
Final simplification97.9%
(FPCore (t l Om Omc) :precision binary64 (asin (/ 1.0 (hypot 1.0 (/ (* t (sqrt 2.0)) l)))))
double code(double t, double l, double Om, double Omc) {
return asin((1.0 / hypot(1.0, ((t * sqrt(2.0)) / l))));
}
public static double code(double t, double l, double Om, double Omc) {
return Math.asin((1.0 / Math.hypot(1.0, ((t * Math.sqrt(2.0)) / l))));
}
def code(t, l, Om, Omc): return math.asin((1.0 / math.hypot(1.0, ((t * math.sqrt(2.0)) / l))))
function code(t, l, Om, Omc) return asin(Float64(1.0 / hypot(1.0, Float64(Float64(t * sqrt(2.0)) / l)))) end
function tmp = code(t, l, Om, Omc) tmp = asin((1.0 / hypot(1.0, ((t * sqrt(2.0)) / l)))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[(1.0 / N[Sqrt[1.0 ^ 2 + N[(N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / l), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\frac{1}{\mathsf{hypot}\left(1, \frac{t \cdot \sqrt{2}}{\ell}\right)}\right)
\end{array}
Initial program 86.5%
sqrt-div86.5%
div-inv86.5%
reciprocal-define73.5%
add-sqr-sqrt73.5%
hypot-1-def73.5%
*-commutative73.5%
sqrt-prod73.5%
unpow273.5%
sqrt-prod41.4%
add-sqr-sqrt78.0%
Applied egg-rr78.0%
*-commutative78.0%
reciprocal-undefine98.7%
associate-*l/98.7%
unpow298.7%
times-frac88.2%
unpow288.2%
unpow288.2%
*-lft-identity88.2%
unpow288.2%
unpow288.2%
times-frac98.7%
unpow298.7%
associate-*l/98.7%
Simplified98.7%
Taylor expanded in Om around 0 97.9%
Final simplification97.9%
(FPCore (t l Om Omc)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= (/ t l) -2e+155)
(asin (/ (- l) t_1))
(if (<= (/ t l) 2e+131)
(asin (sqrt (/ 1.0 (+ 1.0 (* 2.0 (* (/ t l) (/ t l)))))))
(asin (/ l t_1))))))
double code(double t, double l, double Om, double Omc) {
double t_1 = t * sqrt(2.0);
double tmp;
if ((t / l) <= -2e+155) {
tmp = asin((-l / t_1));
} else if ((t / l) <= 2e+131) {
tmp = asin(sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l)))))));
} else {
tmp = asin((l / t_1));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: t_1
real(8) :: tmp
t_1 = t * sqrt(2.0d0)
if ((t / l) <= (-2d+155)) then
tmp = asin((-l / t_1))
else if ((t / l) <= 2d+131) then
tmp = asin(sqrt((1.0d0 / (1.0d0 + (2.0d0 * ((t / l) * (t / l)))))))
else
tmp = asin((l / t_1))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double t_1 = t * Math.sqrt(2.0);
double tmp;
if ((t / l) <= -2e+155) {
tmp = Math.asin((-l / t_1));
} else if ((t / l) <= 2e+131) {
tmp = Math.asin(Math.sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l)))))));
} else {
tmp = Math.asin((l / t_1));
}
return tmp;
}
def code(t, l, Om, Omc): t_1 = t * math.sqrt(2.0) tmp = 0 if (t / l) <= -2e+155: tmp = math.asin((-l / t_1)) elif (t / l) <= 2e+131: tmp = math.asin(math.sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l))))))) else: tmp = math.asin((l / t_1)) return tmp
function code(t, l, Om, Omc) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (Float64(t / l) <= -2e+155) tmp = asin(Float64(Float64(-l) / t_1)); elseif (Float64(t / l) <= 2e+131) tmp = asin(sqrt(Float64(1.0 / Float64(1.0 + Float64(2.0 * Float64(Float64(t / l) * Float64(t / l))))))); else tmp = asin(Float64(l / t_1)); end return tmp end
function tmp_2 = code(t, l, Om, Omc) t_1 = t * sqrt(2.0); tmp = 0.0; if ((t / l) <= -2e+155) tmp = asin((-l / t_1)); elseif ((t / l) <= 2e+131) tmp = asin(sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l))))))); else tmp = asin((l / t_1)); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t / l), $MachinePrecision], -2e+155], N[ArcSin[N[((-l) / t$95$1), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 2e+131], N[ArcSin[N[Sqrt[N[(1.0 / N[(1.0 + N[(2.0 * N[(N[(t / l), $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(l / t$95$1), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;\frac{t}{\ell} \leq -2 \cdot 10^{+155}:\\
\;\;\;\;\sin^{-1} \left(\frac{-\ell}{t_1}\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 2 \cdot 10^{+131}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1}{1 + 2 \cdot \left(\frac{t}{\ell} \cdot \frac{t}{\ell}\right)}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t_1}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -2.00000000000000001e155Initial program 50.9%
Taylor expanded in Om around 0 50.9%
sqrt-div50.9%
metadata-eval50.9%
reciprocal-define50.9%
add-sqr-sqrt50.9%
hypot-1-def50.9%
sqrt-prod50.9%
sqrt-div52.8%
unpow252.8%
sqrt-prod35.2%
add-sqr-sqrt58.9%
unpow258.9%
sqrt-prod28.1%
add-sqr-sqrt68.8%
Applied egg-rr68.8%
Taylor expanded in t around -inf 99.8%
associate-*r/99.8%
neg-mul-199.8%
Simplified99.8%
if -2.00000000000000001e155 < (/.f64 t l) < 1.9999999999999998e131Initial program 98.7%
Taylor expanded in Om around 0 77.1%
unpow277.1%
unpow277.1%
frac-times97.7%
Applied egg-rr97.7%
if 1.9999999999999998e131 < (/.f64 t l) Initial program 59.7%
Taylor expanded in Om around 0 54.5%
sqrt-div54.5%
metadata-eval54.5%
reciprocal-define51.3%
add-sqr-sqrt51.3%
hypot-1-def51.3%
sqrt-prod51.3%
sqrt-div55.2%
unpow255.2%
sqrt-prod35.9%
add-sqr-sqrt62.3%
unpow262.3%
sqrt-prod37.7%
add-sqr-sqrt67.1%
Applied egg-rr67.1%
Taylor expanded in t around inf 98.7%
Final simplification98.2%
(FPCore (t l Om Omc)
:precision binary64
(if (<= (/ t l) -50000000000.0)
(asin (/ (- l) (* t (sqrt 2.0))))
(if (<= (/ t l) 0.2)
(asin (sqrt (- 1.0 (/ (/ Om Omc) (/ Omc Om)))))
(asin (/ 1.0 (/ t (/ l (sqrt 2.0))))))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -50000000000.0) {
tmp = asin((-l / (t * sqrt(2.0))));
} else if ((t / l) <= 0.2) {
tmp = asin(sqrt((1.0 - ((Om / Omc) / (Omc / Om)))));
} else {
tmp = asin((1.0 / (t / (l / sqrt(2.0)))));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-50000000000.0d0)) then
tmp = asin((-l / (t * sqrt(2.0d0))))
else if ((t / l) <= 0.2d0) then
tmp = asin(sqrt((1.0d0 - ((om / omc) / (omc / om)))))
else
tmp = asin((1.0d0 / (t / (l / sqrt(2.0d0)))))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -50000000000.0) {
tmp = Math.asin((-l / (t * Math.sqrt(2.0))));
} else if ((t / l) <= 0.2) {
tmp = Math.asin(Math.sqrt((1.0 - ((Om / Omc) / (Omc / Om)))));
} else {
tmp = Math.asin((1.0 / (t / (l / Math.sqrt(2.0)))));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -50000000000.0: tmp = math.asin((-l / (t * math.sqrt(2.0)))) elif (t / l) <= 0.2: tmp = math.asin(math.sqrt((1.0 - ((Om / Omc) / (Omc / Om))))) else: tmp = math.asin((1.0 / (t / (l / math.sqrt(2.0))))) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -50000000000.0) tmp = asin(Float64(Float64(-l) / Float64(t * sqrt(2.0)))); elseif (Float64(t / l) <= 0.2) tmp = asin(sqrt(Float64(1.0 - Float64(Float64(Om / Omc) / Float64(Omc / Om))))); else tmp = asin(Float64(1.0 / Float64(t / Float64(l / sqrt(2.0))))); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -50000000000.0) tmp = asin((-l / (t * sqrt(2.0)))); elseif ((t / l) <= 0.2) tmp = asin(sqrt((1.0 - ((Om / Omc) / (Omc / Om))))); else tmp = asin((1.0 / (t / (l / sqrt(2.0))))); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -50000000000.0], N[ArcSin[N[((-l) / N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.2], N[ArcSin[N[Sqrt[N[(1.0 - N[(N[(Om / Omc), $MachinePrecision] / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(1.0 / N[(t / N[(l / N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -50000000000:\\
\;\;\;\;\sin^{-1} \left(\frac{-\ell}{t \cdot \sqrt{2}}\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.2:\\
\;\;\;\;\sin^{-1} \left(\sqrt{1 - \frac{\frac{Om}{Omc}}{\frac{Omc}{Om}}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{1}{\frac{t}{\frac{\ell}{\sqrt{2}}}}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -5e10Initial program 72.6%
Taylor expanded in Om around 0 47.2%
sqrt-div47.2%
metadata-eval47.2%
reciprocal-define36.0%
add-sqr-sqrt36.0%
hypot-1-def36.0%
sqrt-prod36.0%
sqrt-div37.1%
unpow237.1%
sqrt-prod27.5%
add-sqr-sqrt43.8%
unpow243.8%
sqrt-prod19.9%
add-sqr-sqrt56.0%
Applied egg-rr56.0%
Taylor expanded in t around -inf 98.8%
associate-*r/98.8%
neg-mul-198.8%
Simplified98.8%
if -5e10 < (/.f64 t l) < 0.20000000000000001Initial program 98.4%
Taylor expanded in t around 0 90.1%
unpow290.1%
unpow290.1%
times-frac97.8%
unpow297.8%
Simplified97.8%
unpow298.4%
clear-num98.4%
un-div-inv98.4%
Applied egg-rr97.8%
if 0.20000000000000001 < (/.f64 t l) Initial program 74.8%
sqrt-div74.9%
add-sqr-sqrt74.9%
hypot-1-def74.9%
*-commutative74.9%
sqrt-prod74.7%
unpow274.7%
sqrt-prod98.6%
add-sqr-sqrt98.7%
Applied egg-rr98.7%
Taylor expanded in Om around 0 97.0%
Taylor expanded in t around inf 96.5%
associate-/l*96.4%
Simplified96.4%
Final simplification97.7%
(FPCore (t l Om Omc)
:precision binary64
(if (<= (/ t l) -50000000000.0)
(asin (/ (- l) (* t (sqrt 2.0))))
(if (<= (/ t l) 0.2)
(asin (- 1.0 (pow (/ t l) 2.0)))
(asin (/ 1.0 (/ t (/ l (sqrt 2.0))))))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -50000000000.0) {
tmp = asin((-l / (t * sqrt(2.0))));
} else if ((t / l) <= 0.2) {
tmp = asin((1.0 - pow((t / l), 2.0)));
} else {
tmp = asin((1.0 / (t / (l / sqrt(2.0)))));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-50000000000.0d0)) then
tmp = asin((-l / (t * sqrt(2.0d0))))
else if ((t / l) <= 0.2d0) then
tmp = asin((1.0d0 - ((t / l) ** 2.0d0)))
else
tmp = asin((1.0d0 / (t / (l / sqrt(2.0d0)))))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -50000000000.0) {
tmp = Math.asin((-l / (t * Math.sqrt(2.0))));
} else if ((t / l) <= 0.2) {
tmp = Math.asin((1.0 - Math.pow((t / l), 2.0)));
} else {
tmp = Math.asin((1.0 / (t / (l / Math.sqrt(2.0)))));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -50000000000.0: tmp = math.asin((-l / (t * math.sqrt(2.0)))) elif (t / l) <= 0.2: tmp = math.asin((1.0 - math.pow((t / l), 2.0))) else: tmp = math.asin((1.0 / (t / (l / math.sqrt(2.0))))) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -50000000000.0) tmp = asin(Float64(Float64(-l) / Float64(t * sqrt(2.0)))); elseif (Float64(t / l) <= 0.2) tmp = asin(Float64(1.0 - (Float64(t / l) ^ 2.0))); else tmp = asin(Float64(1.0 / Float64(t / Float64(l / sqrt(2.0))))); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -50000000000.0) tmp = asin((-l / (t * sqrt(2.0)))); elseif ((t / l) <= 0.2) tmp = asin((1.0 - ((t / l) ^ 2.0))); else tmp = asin((1.0 / (t / (l / sqrt(2.0))))); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -50000000000.0], N[ArcSin[N[((-l) / N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.2], N[ArcSin[N[(1.0 - N[Power[N[(t / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(1.0 / N[(t / N[(l / N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -50000000000:\\
\;\;\;\;\sin^{-1} \left(\frac{-\ell}{t \cdot \sqrt{2}}\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.2:\\
\;\;\;\;\sin^{-1} \left(1 - {\left(\frac{t}{\ell}\right)}^{2}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{1}{\frac{t}{\frac{\ell}{\sqrt{2}}}}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -5e10Initial program 72.6%
Taylor expanded in Om around 0 47.2%
sqrt-div47.2%
metadata-eval47.2%
reciprocal-define36.0%
add-sqr-sqrt36.0%
hypot-1-def36.0%
sqrt-prod36.0%
sqrt-div37.1%
unpow237.1%
sqrt-prod27.5%
add-sqr-sqrt43.8%
unpow243.8%
sqrt-prod19.9%
add-sqr-sqrt56.0%
Applied egg-rr56.0%
Taylor expanded in t around -inf 98.8%
associate-*r/98.8%
neg-mul-198.8%
Simplified98.8%
if -5e10 < (/.f64 t l) < 0.20000000000000001Initial program 98.4%
Taylor expanded in Om around 0 90.3%
Taylor expanded in t around 0 89.8%
mul-1-neg89.8%
unpow289.8%
unpow289.8%
times-frac97.4%
unpow297.4%
unsub-neg97.4%
Simplified97.4%
if 0.20000000000000001 < (/.f64 t l) Initial program 74.8%
sqrt-div74.9%
add-sqr-sqrt74.9%
hypot-1-def74.9%
*-commutative74.9%
sqrt-prod74.7%
unpow274.7%
sqrt-prod98.6%
add-sqr-sqrt98.7%
Applied egg-rr98.7%
Taylor expanded in Om around 0 97.0%
Taylor expanded in t around inf 96.5%
associate-/l*96.4%
Simplified96.4%
Final simplification97.5%
(FPCore (t l Om Omc)
:precision binary64
(let* ((t_1 (/ t (sqrt 0.5))))
(if (<= l -7e-35)
(asin 1.0)
(if (<= l -3.2e-308)
(asin (/ (- l) t_1))
(if (<= l 8.5e-44) (asin (/ l t_1)) (asin 1.0))))))
double code(double t, double l, double Om, double Omc) {
double t_1 = t / sqrt(0.5);
double tmp;
if (l <= -7e-35) {
tmp = asin(1.0);
} else if (l <= -3.2e-308) {
tmp = asin((-l / t_1));
} else if (l <= 8.5e-44) {
tmp = asin((l / t_1));
} else {
tmp = asin(1.0);
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: t_1
real(8) :: tmp
t_1 = t / sqrt(0.5d0)
if (l <= (-7d-35)) then
tmp = asin(1.0d0)
else if (l <= (-3.2d-308)) then
tmp = asin((-l / t_1))
else if (l <= 8.5d-44) then
tmp = asin((l / t_1))
else
tmp = asin(1.0d0)
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double t_1 = t / Math.sqrt(0.5);
double tmp;
if (l <= -7e-35) {
tmp = Math.asin(1.0);
} else if (l <= -3.2e-308) {
tmp = Math.asin((-l / t_1));
} else if (l <= 8.5e-44) {
tmp = Math.asin((l / t_1));
} else {
tmp = Math.asin(1.0);
}
return tmp;
}
def code(t, l, Om, Omc): t_1 = t / math.sqrt(0.5) tmp = 0 if l <= -7e-35: tmp = math.asin(1.0) elif l <= -3.2e-308: tmp = math.asin((-l / t_1)) elif l <= 8.5e-44: tmp = math.asin((l / t_1)) else: tmp = math.asin(1.0) return tmp
function code(t, l, Om, Omc) t_1 = Float64(t / sqrt(0.5)) tmp = 0.0 if (l <= -7e-35) tmp = asin(1.0); elseif (l <= -3.2e-308) tmp = asin(Float64(Float64(-l) / t_1)); elseif (l <= 8.5e-44) tmp = asin(Float64(l / t_1)); else tmp = asin(1.0); end return tmp end
function tmp_2 = code(t, l, Om, Omc) t_1 = t / sqrt(0.5); tmp = 0.0; if (l <= -7e-35) tmp = asin(1.0); elseif (l <= -3.2e-308) tmp = asin((-l / t_1)); elseif (l <= 8.5e-44) tmp = asin((l / t_1)); else tmp = asin(1.0); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := Block[{t$95$1 = N[(t / N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[l, -7e-35], N[ArcSin[1.0], $MachinePrecision], If[LessEqual[l, -3.2e-308], N[ArcSin[N[((-l) / t$95$1), $MachinePrecision]], $MachinePrecision], If[LessEqual[l, 8.5e-44], N[ArcSin[N[(l / t$95$1), $MachinePrecision]], $MachinePrecision], N[ArcSin[1.0], $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{\sqrt{0.5}}\\
\mathbf{if}\;\ell \leq -7 \cdot 10^{-35}:\\
\;\;\;\;\sin^{-1} 1\\
\mathbf{elif}\;\ell \leq -3.2 \cdot 10^{-308}:\\
\;\;\;\;\sin^{-1} \left(\frac{-\ell}{t_1}\right)\\
\mathbf{elif}\;\ell \leq 8.5 \cdot 10^{-44}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t_1}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} 1\\
\end{array}
\end{array}
if l < -6.99999999999999992e-35 or 8.5000000000000002e-44 < l Initial program 94.2%
Taylor expanded in t around 0 70.3%
unpow270.3%
unpow270.3%
times-frac76.0%
unpow276.0%
Simplified76.0%
Taylor expanded in Om around 0 75.6%
if -6.99999999999999992e-35 < l < -3.2000000000000001e-308Initial program 80.0%
Taylor expanded in Om around 0 60.5%
Taylor expanded in t around -inf 64.4%
mul-1-neg64.4%
associate-/l*64.4%
Simplified64.4%
if -3.2000000000000001e-308 < l < 8.5000000000000002e-44Initial program 72.1%
Taylor expanded in Om around 0 63.1%
Taylor expanded in t around inf 56.0%
associate-/l*56.0%
Simplified56.0%
Final simplification69.0%
(FPCore (t l Om Omc)
:precision binary64
(if (<= (/ t l) -50000000000.0)
(asin (/ (- l) (/ t (sqrt 0.5))))
(if (<= (/ t l) 0.2)
(asin (- 1.0 (pow (/ t l) 2.0)))
(asin (/ l (* t (sqrt 2.0)))))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -50000000000.0) {
tmp = asin((-l / (t / sqrt(0.5))));
} else if ((t / l) <= 0.2) {
tmp = asin((1.0 - pow((t / l), 2.0)));
} else {
tmp = asin((l / (t * sqrt(2.0))));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-50000000000.0d0)) then
tmp = asin((-l / (t / sqrt(0.5d0))))
else if ((t / l) <= 0.2d0) then
tmp = asin((1.0d0 - ((t / l) ** 2.0d0)))
else
tmp = asin((l / (t * sqrt(2.0d0))))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -50000000000.0) {
tmp = Math.asin((-l / (t / Math.sqrt(0.5))));
} else if ((t / l) <= 0.2) {
tmp = Math.asin((1.0 - Math.pow((t / l), 2.0)));
} else {
tmp = Math.asin((l / (t * Math.sqrt(2.0))));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -50000000000.0: tmp = math.asin((-l / (t / math.sqrt(0.5)))) elif (t / l) <= 0.2: tmp = math.asin((1.0 - math.pow((t / l), 2.0))) else: tmp = math.asin((l / (t * math.sqrt(2.0)))) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -50000000000.0) tmp = asin(Float64(Float64(-l) / Float64(t / sqrt(0.5)))); elseif (Float64(t / l) <= 0.2) tmp = asin(Float64(1.0 - (Float64(t / l) ^ 2.0))); else tmp = asin(Float64(l / Float64(t * sqrt(2.0)))); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -50000000000.0) tmp = asin((-l / (t / sqrt(0.5)))); elseif ((t / l) <= 0.2) tmp = asin((1.0 - ((t / l) ^ 2.0))); else tmp = asin((l / (t * sqrt(2.0)))); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -50000000000.0], N[ArcSin[N[((-l) / N[(t / N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.2], N[ArcSin[N[(1.0 - N[Power[N[(t / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(l / N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -50000000000:\\
\;\;\;\;\sin^{-1} \left(\frac{-\ell}{\frac{t}{\sqrt{0.5}}}\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.2:\\
\;\;\;\;\sin^{-1} \left(1 - {\left(\frac{t}{\ell}\right)}^{2}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t \cdot \sqrt{2}}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -5e10Initial program 72.6%
Taylor expanded in Om around 0 47.2%
Taylor expanded in t around -inf 98.7%
mul-1-neg98.7%
associate-/l*98.8%
Simplified98.8%
if -5e10 < (/.f64 t l) < 0.20000000000000001Initial program 98.4%
Taylor expanded in Om around 0 90.3%
Taylor expanded in t around 0 89.8%
mul-1-neg89.8%
unpow289.8%
unpow289.8%
times-frac97.4%
unpow297.4%
unsub-neg97.4%
Simplified97.4%
if 0.20000000000000001 < (/.f64 t l) Initial program 74.8%
Taylor expanded in Om around 0 50.2%
sqrt-div50.2%
metadata-eval50.2%
reciprocal-define38.9%
add-sqr-sqrt38.9%
hypot-1-def38.9%
sqrt-prod38.9%
sqrt-div41.3%
unpow241.3%
sqrt-prod28.2%
add-sqr-sqrt48.5%
unpow248.5%
sqrt-prod32.3%
add-sqr-sqrt56.8%
Applied egg-rr56.8%
Taylor expanded in t around inf 97.2%
Final simplification97.7%
(FPCore (t l Om Omc)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= (/ t l) -50000000000.0)
(asin (/ (- l) t_1))
(if (<= (/ t l) 0.2) (asin (- 1.0 (pow (/ t l) 2.0))) (asin (/ l t_1))))))
double code(double t, double l, double Om, double Omc) {
double t_1 = t * sqrt(2.0);
double tmp;
if ((t / l) <= -50000000000.0) {
tmp = asin((-l / t_1));
} else if ((t / l) <= 0.2) {
tmp = asin((1.0 - pow((t / l), 2.0)));
} else {
tmp = asin((l / t_1));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: t_1
real(8) :: tmp
t_1 = t * sqrt(2.0d0)
if ((t / l) <= (-50000000000.0d0)) then
tmp = asin((-l / t_1))
else if ((t / l) <= 0.2d0) then
tmp = asin((1.0d0 - ((t / l) ** 2.0d0)))
else
tmp = asin((l / t_1))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double t_1 = t * Math.sqrt(2.0);
double tmp;
if ((t / l) <= -50000000000.0) {
tmp = Math.asin((-l / t_1));
} else if ((t / l) <= 0.2) {
tmp = Math.asin((1.0 - Math.pow((t / l), 2.0)));
} else {
tmp = Math.asin((l / t_1));
}
return tmp;
}
def code(t, l, Om, Omc): t_1 = t * math.sqrt(2.0) tmp = 0 if (t / l) <= -50000000000.0: tmp = math.asin((-l / t_1)) elif (t / l) <= 0.2: tmp = math.asin((1.0 - math.pow((t / l), 2.0))) else: tmp = math.asin((l / t_1)) return tmp
function code(t, l, Om, Omc) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (Float64(t / l) <= -50000000000.0) tmp = asin(Float64(Float64(-l) / t_1)); elseif (Float64(t / l) <= 0.2) tmp = asin(Float64(1.0 - (Float64(t / l) ^ 2.0))); else tmp = asin(Float64(l / t_1)); end return tmp end
function tmp_2 = code(t, l, Om, Omc) t_1 = t * sqrt(2.0); tmp = 0.0; if ((t / l) <= -50000000000.0) tmp = asin((-l / t_1)); elseif ((t / l) <= 0.2) tmp = asin((1.0 - ((t / l) ^ 2.0))); else tmp = asin((l / t_1)); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t / l), $MachinePrecision], -50000000000.0], N[ArcSin[N[((-l) / t$95$1), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.2], N[ArcSin[N[(1.0 - N[Power[N[(t / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(l / t$95$1), $MachinePrecision]], $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;\frac{t}{\ell} \leq -50000000000:\\
\;\;\;\;\sin^{-1} \left(\frac{-\ell}{t_1}\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.2:\\
\;\;\;\;\sin^{-1} \left(1 - {\left(\frac{t}{\ell}\right)}^{2}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t_1}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -5e10Initial program 72.6%
Taylor expanded in Om around 0 47.2%
sqrt-div47.2%
metadata-eval47.2%
reciprocal-define36.0%
add-sqr-sqrt36.0%
hypot-1-def36.0%
sqrt-prod36.0%
sqrt-div37.1%
unpow237.1%
sqrt-prod27.5%
add-sqr-sqrt43.8%
unpow243.8%
sqrt-prod19.9%
add-sqr-sqrt56.0%
Applied egg-rr56.0%
Taylor expanded in t around -inf 98.8%
associate-*r/98.8%
neg-mul-198.8%
Simplified98.8%
if -5e10 < (/.f64 t l) < 0.20000000000000001Initial program 98.4%
Taylor expanded in Om around 0 90.3%
Taylor expanded in t around 0 89.8%
mul-1-neg89.8%
unpow289.8%
unpow289.8%
times-frac97.4%
unpow297.4%
unsub-neg97.4%
Simplified97.4%
if 0.20000000000000001 < (/.f64 t l) Initial program 74.8%
Taylor expanded in Om around 0 50.2%
sqrt-div50.2%
metadata-eval50.2%
reciprocal-define38.9%
add-sqr-sqrt38.9%
hypot-1-def38.9%
sqrt-prod38.9%
sqrt-div41.3%
unpow241.3%
sqrt-prod28.2%
add-sqr-sqrt48.5%
unpow248.5%
sqrt-prod32.3%
add-sqr-sqrt56.8%
Applied egg-rr56.8%
Taylor expanded in t around inf 97.2%
Final simplification97.7%
(FPCore (t l Om Omc) :precision binary64 (if (<= t 1.8e+105) (asin 1.0) (asin (/ l (* t (sqrt 2.0))))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if (t <= 1.8e+105) {
tmp = asin(1.0);
} else {
tmp = asin((l / (t * sqrt(2.0))));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if (t <= 1.8d+105) then
tmp = asin(1.0d0)
else
tmp = asin((l / (t * sqrt(2.0d0))))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if (t <= 1.8e+105) {
tmp = Math.asin(1.0);
} else {
tmp = Math.asin((l / (t * Math.sqrt(2.0))));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if t <= 1.8e+105: tmp = math.asin(1.0) else: tmp = math.asin((l / (t * math.sqrt(2.0)))) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (t <= 1.8e+105) tmp = asin(1.0); else tmp = asin(Float64(l / Float64(t * sqrt(2.0)))); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if (t <= 1.8e+105) tmp = asin(1.0); else tmp = asin((l / (t * sqrt(2.0)))); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[t, 1.8e+105], N[ArcSin[1.0], $MachinePrecision], N[ArcSin[N[(l / N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.8 \cdot 10^{+105}:\\
\;\;\;\;\sin^{-1} 1\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t \cdot \sqrt{2}}\right)\\
\end{array}
\end{array}
if t < 1.7999999999999999e105Initial program 87.4%
Taylor expanded in t around 0 57.1%
unpow257.1%
unpow257.1%
times-frac61.8%
unpow261.8%
Simplified61.8%
Taylor expanded in Om around 0 61.5%
if 1.7999999999999999e105 < t Initial program 82.3%
Taylor expanded in Om around 0 52.6%
sqrt-div52.6%
metadata-eval52.6%
reciprocal-define48.8%
add-sqr-sqrt48.8%
hypot-1-def48.8%
sqrt-prod48.8%
sqrt-div50.2%
unpow250.2%
sqrt-prod68.8%
add-sqr-sqrt68.8%
unpow268.8%
sqrt-prod33.5%
add-sqr-sqrt71.6%
Applied egg-rr71.6%
Taylor expanded in t around inf 67.5%
Final simplification62.6%
(FPCore (t l Om Omc) :precision binary64 (asin 1.0))
double code(double t, double l, double Om, double Omc) {
return asin(1.0);
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
code = asin(1.0d0)
end function
public static double code(double t, double l, double Om, double Omc) {
return Math.asin(1.0);
}
def code(t, l, Om, Omc): return math.asin(1.0)
function code(t, l, Om, Omc) return asin(1.0) end
function tmp = code(t, l, Om, Omc) tmp = asin(1.0); end
code[t_, l_, Om_, Omc_] := N[ArcSin[1.0], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} 1
\end{array}
Initial program 86.5%
Taylor expanded in t around 0 48.9%
unpow248.9%
unpow248.9%
times-frac53.3%
unpow253.3%
Simplified53.3%
Taylor expanded in Om around 0 53.0%
Final simplification53.0%
herbie shell --seed 2024024
(FPCore (t l Om Omc)
:name "Toniolo and Linder, Equation (2)"
:precision binary64
(asin (sqrt (/ (- 1.0 (pow (/ Om Omc) 2.0)) (+ 1.0 (* 2.0 (pow (/ t l) 2.0)))))))