
(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 10 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}
t_m = (fabs.f64 t)
l_m = (fabs.f64 l)
(FPCore (t_m l_m Om Omc)
:precision binary64
(let* ((t_1 (- 1.0 (/ (/ Om Omc) (/ Omc Om)))))
(if (<= (/ t_m l_m) 2e+116)
(asin (sqrt (/ t_1 (+ 1.0 (/ (* t_m (/ (* t_m 2.0) l_m)) l_m)))))
(asin (/ (* l_m (sqrt (* t_1 0.5))) t_m)))))t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double t_1 = 1.0 - ((Om / Omc) / (Omc / Om));
double tmp;
if ((t_m / l_m) <= 2e+116) {
tmp = asin(sqrt((t_1 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m)))));
} else {
tmp = asin(((l_m * sqrt((t_1 * 0.5))) / t_m));
}
return tmp;
}
t_m = abs(t)
l_m = abs(l)
real(8) function code(t_m, l_m, om, omc)
real(8), intent (in) :: t_m
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: t_1
real(8) :: tmp
t_1 = 1.0d0 - ((om / omc) / (omc / om))
if ((t_m / l_m) <= 2d+116) then
tmp = asin(sqrt((t_1 / (1.0d0 + ((t_m * ((t_m * 2.0d0) / l_m)) / l_m)))))
else
tmp = asin(((l_m * sqrt((t_1 * 0.5d0))) / t_m))
end if
code = tmp
end function
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double t_1 = 1.0 - ((Om / Omc) / (Omc / Om));
double tmp;
if ((t_m / l_m) <= 2e+116) {
tmp = Math.asin(Math.sqrt((t_1 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m)))));
} else {
tmp = Math.asin(((l_m * Math.sqrt((t_1 * 0.5))) / t_m));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): t_1 = 1.0 - ((Om / Omc) / (Omc / Om)) tmp = 0 if (t_m / l_m) <= 2e+116: tmp = math.asin(math.sqrt((t_1 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m))))) else: tmp = math.asin(((l_m * math.sqrt((t_1 * 0.5))) / t_m)) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) t_1 = Float64(1.0 - Float64(Float64(Om / Omc) / Float64(Omc / Om))) tmp = 0.0 if (Float64(t_m / l_m) <= 2e+116) tmp = asin(sqrt(Float64(t_1 / Float64(1.0 + Float64(Float64(t_m * Float64(Float64(t_m * 2.0) / l_m)) / l_m))))); else tmp = asin(Float64(Float64(l_m * sqrt(Float64(t_1 * 0.5))) / t_m)); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) t_1 = 1.0 - ((Om / Omc) / (Omc / Om)); tmp = 0.0; if ((t_m / l_m) <= 2e+116) tmp = asin(sqrt((t_1 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m))))); else tmp = asin(((l_m * sqrt((t_1 * 0.5))) / t_m)); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision]
l_m = N[Abs[l], $MachinePrecision]
code[t$95$m_, l$95$m_, Om_, Omc_] := Block[{t$95$1 = N[(1.0 - N[(N[(Om / Omc), $MachinePrecision] / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$m / l$95$m), $MachinePrecision], 2e+116], N[ArcSin[N[Sqrt[N[(t$95$1 / N[(1.0 + N[(N[(t$95$m * N[(N[(t$95$m * 2.0), $MachinePrecision] / l$95$m), $MachinePrecision]), $MachinePrecision] / l$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(N[(l$95$m * N[Sqrt[N[(t$95$1 * 0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
t_1 := 1 - \frac{\frac{Om}{Omc}}{\frac{Omc}{Om}}\\
\mathbf{if}\;\frac{t\_m}{l\_m} \leq 2 \cdot 10^{+116}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{t\_1}{1 + \frac{t\_m \cdot \frac{t\_m \cdot 2}{l\_m}}{l\_m}}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{t\_1 \cdot 0.5}}{t\_m}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < 2.00000000000000003e116Initial program 91.4%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified66.2%
times-fracN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6474.6%
Applied egg-rr74.6%
associate-/l*N/A
frac-timesN/A
associate-*r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6489.2%
Applied egg-rr89.2%
if 2.00000000000000003e116 < (/.f64 t l) Initial program 48.7%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified37.5%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6492.7%
Simplified92.7%
associate-*r/N/A
div-invN/A
*-lowering-*.f64N/A
Applied egg-rr95.0%
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr99.5%
Final simplification90.9%
t_m = (fabs.f64 t)
l_m = (fabs.f64 l)
(FPCore (t_m l_m Om Omc)
:precision binary64
(if (<= l_m 1.36e-48)
(asin (/ (* l_m (sqrt (* (- 1.0 (/ (/ Om Omc) (/ Omc Om))) 0.5))) t_m))
(if (<= l_m 1.7e+145)
(asin (pow (+ 1.0 (/ (* t_m 2.0) (/ (* l_m l_m) t_m))) -0.5))
(asin (sqrt (/ 1.0 (+ 1.0 (/ (* t_m (/ (* t_m 2.0) l_m)) l_m))))))))t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 1.36e-48) {
tmp = asin(((l_m * sqrt(((1.0 - ((Om / Omc) / (Omc / Om))) * 0.5))) / t_m));
} else if (l_m <= 1.7e+145) {
tmp = asin(pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5));
} else {
tmp = asin(sqrt((1.0 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m)))));
}
return tmp;
}
t_m = abs(t)
l_m = abs(l)
real(8) function code(t_m, l_m, om, omc)
real(8), intent (in) :: t_m
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if (l_m <= 1.36d-48) then
tmp = asin(((l_m * sqrt(((1.0d0 - ((om / omc) / (omc / om))) * 0.5d0))) / t_m))
else if (l_m <= 1.7d+145) then
tmp = asin(((1.0d0 + ((t_m * 2.0d0) / ((l_m * l_m) / t_m))) ** (-0.5d0)))
else
tmp = asin(sqrt((1.0d0 / (1.0d0 + ((t_m * ((t_m * 2.0d0) / l_m)) / l_m)))))
end if
code = tmp
end function
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 1.36e-48) {
tmp = Math.asin(((l_m * Math.sqrt(((1.0 - ((Om / Omc) / (Omc / Om))) * 0.5))) / t_m));
} else if (l_m <= 1.7e+145) {
tmp = Math.asin(Math.pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5));
} else {
tmp = Math.asin(Math.sqrt((1.0 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m)))));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): tmp = 0 if l_m <= 1.36e-48: tmp = math.asin(((l_m * math.sqrt(((1.0 - ((Om / Omc) / (Omc / Om))) * 0.5))) / t_m)) elif l_m <= 1.7e+145: tmp = math.asin(math.pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5)) else: tmp = math.asin(math.sqrt((1.0 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m))))) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (l_m <= 1.36e-48) tmp = asin(Float64(Float64(l_m * sqrt(Float64(Float64(1.0 - Float64(Float64(Om / Omc) / Float64(Omc / Om))) * 0.5))) / t_m)); elseif (l_m <= 1.7e+145) tmp = asin((Float64(1.0 + Float64(Float64(t_m * 2.0) / Float64(Float64(l_m * l_m) / t_m))) ^ -0.5)); else tmp = asin(sqrt(Float64(1.0 / Float64(1.0 + Float64(Float64(t_m * Float64(Float64(t_m * 2.0) / l_m)) / l_m))))); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) tmp = 0.0; if (l_m <= 1.36e-48) tmp = asin(((l_m * sqrt(((1.0 - ((Om / Omc) / (Omc / Om))) * 0.5))) / t_m)); elseif (l_m <= 1.7e+145) tmp = asin(((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))) ^ -0.5)); else tmp = asin(sqrt((1.0 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m))))); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := If[LessEqual[l$95$m, 1.36e-48], N[ArcSin[N[(N[(l$95$m * N[Sqrt[N[(N[(1.0 - N[(N[(Om / Omc), $MachinePrecision] / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 0.5), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 1.7e+145], N[ArcSin[N[Power[N[(1.0 + N[(N[(t$95$m * 2.0), $MachinePrecision] / N[(N[(l$95$m * l$95$m), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[Sqrt[N[(1.0 / N[(1.0 + N[(N[(t$95$m * N[(N[(t$95$m * 2.0), $MachinePrecision] / l$95$m), $MachinePrecision]), $MachinePrecision] / l$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.36 \cdot 10^{-48}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{\left(1 - \frac{\frac{Om}{Omc}}{\frac{Omc}{Om}}\right) \cdot 0.5}}{t\_m}\right)\\
\mathbf{elif}\;l\_m \leq 1.7 \cdot 10^{+145}:\\
\;\;\;\;\sin^{-1} \left({\left(1 + \frac{t\_m \cdot 2}{\frac{l\_m \cdot l\_m}{t\_m}}\right)}^{-0.5}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1}{1 + \frac{t\_m \cdot \frac{t\_m \cdot 2}{l\_m}}{l\_m}}}\right)\\
\end{array}
\end{array}
if l < 1.36000000000000002e-48Initial program 80.1%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified60.5%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6433.6%
Simplified33.6%
associate-*r/N/A
div-invN/A
*-lowering-*.f64N/A
Applied egg-rr34.8%
un-div-invN/A
/-lowering-/.f64N/A
Applied egg-rr36.9%
if 1.36000000000000002e-48 < l < 1.7e145Initial program 89.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified56.4%
times-fracN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6474.9%
Applied egg-rr74.9%
associate-/l*N/A
frac-timesN/A
associate-*r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6481.0%
Applied egg-rr81.0%
Taylor expanded in Om around 0
Simplified80.2%
asin-lowering-asin.f64N/A
inv-powN/A
sqrt-pow1N/A
metadata-evalN/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
frac-timesN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6488.3%
Applied egg-rr88.3%
if 1.7e145 < l Initial program 99.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified73.3%
times-fracN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6476.5%
Applied egg-rr76.5%
associate-/l*N/A
frac-timesN/A
associate-*r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.0%
Applied egg-rr99.0%
Taylor expanded in Om around 0
Simplified99.0%
Final simplification53.8%
t_m = (fabs.f64 t)
l_m = (fabs.f64 l)
(FPCore (t_m l_m Om Omc)
:precision binary64
(if (<= l_m 1.15e-48)
(asin (* (sqrt 0.5) (/ l_m t_m)))
(if (<= l_m 1.5e+145)
(asin (pow (+ 1.0 (/ (* t_m 2.0) (/ (* l_m l_m) t_m))) -0.5))
(asin (sqrt (/ 1.0 (+ 1.0 (/ (* t_m (/ (* t_m 2.0) l_m)) l_m))))))))t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 1.15e-48) {
tmp = asin((sqrt(0.5) * (l_m / t_m)));
} else if (l_m <= 1.5e+145) {
tmp = asin(pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5));
} else {
tmp = asin(sqrt((1.0 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m)))));
}
return tmp;
}
t_m = abs(t)
l_m = abs(l)
real(8) function code(t_m, l_m, om, omc)
real(8), intent (in) :: t_m
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if (l_m <= 1.15d-48) then
tmp = asin((sqrt(0.5d0) * (l_m / t_m)))
else if (l_m <= 1.5d+145) then
tmp = asin(((1.0d0 + ((t_m * 2.0d0) / ((l_m * l_m) / t_m))) ** (-0.5d0)))
else
tmp = asin(sqrt((1.0d0 / (1.0d0 + ((t_m * ((t_m * 2.0d0) / l_m)) / l_m)))))
end if
code = tmp
end function
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 1.15e-48) {
tmp = Math.asin((Math.sqrt(0.5) * (l_m / t_m)));
} else if (l_m <= 1.5e+145) {
tmp = Math.asin(Math.pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5));
} else {
tmp = Math.asin(Math.sqrt((1.0 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m)))));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): tmp = 0 if l_m <= 1.15e-48: tmp = math.asin((math.sqrt(0.5) * (l_m / t_m))) elif l_m <= 1.5e+145: tmp = math.asin(math.pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5)) else: tmp = math.asin(math.sqrt((1.0 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m))))) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (l_m <= 1.15e-48) tmp = asin(Float64(sqrt(0.5) * Float64(l_m / t_m))); elseif (l_m <= 1.5e+145) tmp = asin((Float64(1.0 + Float64(Float64(t_m * 2.0) / Float64(Float64(l_m * l_m) / t_m))) ^ -0.5)); else tmp = asin(sqrt(Float64(1.0 / Float64(1.0 + Float64(Float64(t_m * Float64(Float64(t_m * 2.0) / l_m)) / l_m))))); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) tmp = 0.0; if (l_m <= 1.15e-48) tmp = asin((sqrt(0.5) * (l_m / t_m))); elseif (l_m <= 1.5e+145) tmp = asin(((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))) ^ -0.5)); else tmp = asin(sqrt((1.0 / (1.0 + ((t_m * ((t_m * 2.0) / l_m)) / l_m))))); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := If[LessEqual[l$95$m, 1.15e-48], N[ArcSin[N[(N[Sqrt[0.5], $MachinePrecision] * N[(l$95$m / t$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 1.5e+145], N[ArcSin[N[Power[N[(1.0 + N[(N[(t$95$m * 2.0), $MachinePrecision] / N[(N[(l$95$m * l$95$m), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[Sqrt[N[(1.0 / N[(1.0 + N[(N[(t$95$m * N[(N[(t$95$m * 2.0), $MachinePrecision] / l$95$m), $MachinePrecision]), $MachinePrecision] / l$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.15 \cdot 10^{-48}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{0.5} \cdot \frac{l\_m}{t\_m}\right)\\
\mathbf{elif}\;l\_m \leq 1.5 \cdot 10^{+145}:\\
\;\;\;\;\sin^{-1} \left({\left(1 + \frac{t\_m \cdot 2}{\frac{l\_m \cdot l\_m}{t\_m}}\right)}^{-0.5}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1}{1 + \frac{t\_m \cdot \frac{t\_m \cdot 2}{l\_m}}{l\_m}}}\right)\\
\end{array}
\end{array}
if l < 1.15e-48Initial program 80.1%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified60.5%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6433.6%
Simplified33.6%
Taylor expanded in Om around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6436.6%
Simplified36.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6436.6%
Applied egg-rr36.6%
if 1.15e-48 < l < 1.5000000000000001e145Initial program 89.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified56.4%
times-fracN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6474.9%
Applied egg-rr74.9%
associate-/l*N/A
frac-timesN/A
associate-*r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6481.0%
Applied egg-rr81.0%
Taylor expanded in Om around 0
Simplified80.2%
asin-lowering-asin.f64N/A
inv-powN/A
sqrt-pow1N/A
metadata-evalN/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
frac-timesN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6488.3%
Applied egg-rr88.3%
if 1.5000000000000001e145 < l Initial program 99.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified73.3%
times-fracN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6476.5%
Applied egg-rr76.5%
associate-/l*N/A
frac-timesN/A
associate-*r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6499.0%
Applied egg-rr99.0%
Taylor expanded in Om around 0
Simplified99.0%
Final simplification53.6%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= l_m 1.15e-48) (asin (* (sqrt 0.5) (/ l_m t_m))) (asin (pow (+ 1.0 (/ (* t_m 2.0) (/ (* l_m l_m) t_m))) -0.5))))
t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 1.15e-48) {
tmp = asin((sqrt(0.5) * (l_m / t_m)));
} else {
tmp = asin(pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5));
}
return tmp;
}
t_m = abs(t)
l_m = abs(l)
real(8) function code(t_m, l_m, om, omc)
real(8), intent (in) :: t_m
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if (l_m <= 1.15d-48) then
tmp = asin((sqrt(0.5d0) * (l_m / t_m)))
else
tmp = asin(((1.0d0 + ((t_m * 2.0d0) / ((l_m * l_m) / t_m))) ** (-0.5d0)))
end if
code = tmp
end function
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 1.15e-48) {
tmp = Math.asin((Math.sqrt(0.5) * (l_m / t_m)));
} else {
tmp = Math.asin(Math.pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): tmp = 0 if l_m <= 1.15e-48: tmp = math.asin((math.sqrt(0.5) * (l_m / t_m))) else: tmp = math.asin(math.pow((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))), -0.5)) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (l_m <= 1.15e-48) tmp = asin(Float64(sqrt(0.5) * Float64(l_m / t_m))); else tmp = asin((Float64(1.0 + Float64(Float64(t_m * 2.0) / Float64(Float64(l_m * l_m) / t_m))) ^ -0.5)); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) tmp = 0.0; if (l_m <= 1.15e-48) tmp = asin((sqrt(0.5) * (l_m / t_m))); else tmp = asin(((1.0 + ((t_m * 2.0) / ((l_m * l_m) / t_m))) ^ -0.5)); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := If[LessEqual[l$95$m, 1.15e-48], N[ArcSin[N[(N[Sqrt[0.5], $MachinePrecision] * N[(l$95$m / t$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[Power[N[(1.0 + N[(N[(t$95$m * 2.0), $MachinePrecision] / N[(N[(l$95$m * l$95$m), $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 1.15 \cdot 10^{-48}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{0.5} \cdot \frac{l\_m}{t\_m}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left({\left(1 + \frac{t\_m \cdot 2}{\frac{l\_m \cdot l\_m}{t\_m}}\right)}^{-0.5}\right)\\
\end{array}
\end{array}
if l < 1.15e-48Initial program 80.1%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified60.5%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6433.6%
Simplified33.6%
Taylor expanded in Om around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6436.6%
Simplified36.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6436.6%
Applied egg-rr36.6%
if 1.15e-48 < l Initial program 93.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified63.1%
times-fracN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6475.5%
Applied egg-rr75.5%
associate-/l*N/A
frac-timesN/A
associate-*r*N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6488.2%
Applied egg-rr88.2%
Taylor expanded in Om around 0
Simplified87.7%
asin-lowering-asin.f64N/A
inv-powN/A
sqrt-pow1N/A
metadata-evalN/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
associate-/l*N/A
frac-timesN/A
associate-*r/N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6487.9%
Applied egg-rr87.9%
Final simplification52.2%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= l_m 2e-25) (asin (* (sqrt 0.5) (/ l_m t_m))) (- (/ PI 2.0) (acos (+ 1.0 (/ (* -0.5 (/ Om (/ Omc Om))) Omc))))))
t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 2e-25) {
tmp = asin((sqrt(0.5) * (l_m / t_m)));
} else {
tmp = (((double) M_PI) / 2.0) - acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc)));
}
return tmp;
}
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 2e-25) {
tmp = Math.asin((Math.sqrt(0.5) * (l_m / t_m)));
} else {
tmp = (Math.PI / 2.0) - Math.acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc)));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): tmp = 0 if l_m <= 2e-25: tmp = math.asin((math.sqrt(0.5) * (l_m / t_m))) else: tmp = (math.pi / 2.0) - math.acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc))) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (l_m <= 2e-25) tmp = asin(Float64(sqrt(0.5) * Float64(l_m / t_m))); else tmp = Float64(Float64(pi / 2.0) - acos(Float64(1.0 + Float64(Float64(-0.5 * Float64(Om / Float64(Omc / Om))) / Omc)))); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) tmp = 0.0; if (l_m <= 2e-25) tmp = asin((sqrt(0.5) * (l_m / t_m))); else tmp = (pi / 2.0) - acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc))); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := If[LessEqual[l$95$m, 2e-25], N[ArcSin[N[(N[Sqrt[0.5], $MachinePrecision] * N[(l$95$m / t$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[(Pi / 2.0), $MachinePrecision] - N[ArcCos[N[(1.0 + N[(N[(-0.5 * N[(Om / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 2 \cdot 10^{-25}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{0.5} \cdot \frac{l\_m}{t\_m}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\pi}{2} - \cos^{-1} \left(1 + \frac{-0.5 \cdot \frac{Om}{\frac{Omc}{Om}}}{Omc}\right)\\
\end{array}
\end{array}
if l < 2.00000000000000008e-25Initial program 79.7%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified60.6%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6433.3%
Simplified33.3%
Taylor expanded in Om around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6436.1%
Simplified36.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f6436.2%
Applied egg-rr36.2%
if 2.00000000000000008e-25 < l Initial program 95.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified63.0%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.8%
Simplified62.8%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.8%
Simplified62.8%
asin-acosN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
PI-lowering-PI.f64N/A
acos-lowering-acos.f64N/A
+-lowering-+.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-/l*N/A
associate-*l/N/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6471.0%
Applied egg-rr71.0%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= l_m 3.8e-27) (asin (* l_m (/ (sqrt 0.5) t_m))) (- (/ PI 2.0) (acos (+ 1.0 (/ (* -0.5 (/ Om (/ Omc Om))) Omc))))))
t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 3.8e-27) {
tmp = asin((l_m * (sqrt(0.5) / t_m)));
} else {
tmp = (((double) M_PI) / 2.0) - acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc)));
}
return tmp;
}
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (l_m <= 3.8e-27) {
tmp = Math.asin((l_m * (Math.sqrt(0.5) / t_m)));
} else {
tmp = (Math.PI / 2.0) - Math.acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc)));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): tmp = 0 if l_m <= 3.8e-27: tmp = math.asin((l_m * (math.sqrt(0.5) / t_m))) else: tmp = (math.pi / 2.0) - math.acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc))) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (l_m <= 3.8e-27) tmp = asin(Float64(l_m * Float64(sqrt(0.5) / t_m))); else tmp = Float64(Float64(pi / 2.0) - acos(Float64(1.0 + Float64(Float64(-0.5 * Float64(Om / Float64(Omc / Om))) / Omc)))); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) tmp = 0.0; if (l_m <= 3.8e-27) tmp = asin((l_m * (sqrt(0.5) / t_m))); else tmp = (pi / 2.0) - acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc))); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := If[LessEqual[l$95$m, 3.8e-27], N[ArcSin[N[(l$95$m * N[(N[Sqrt[0.5], $MachinePrecision] / t$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[(N[(Pi / 2.0), $MachinePrecision] - N[ArcCos[N[(1.0 + N[(N[(-0.5 * N[(Om / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 3.8 \cdot 10^{-27}:\\
\;\;\;\;\sin^{-1} \left(l\_m \cdot \frac{\sqrt{0.5}}{t\_m}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\pi}{2} - \cos^{-1} \left(1 + \frac{-0.5 \cdot \frac{Om}{\frac{Omc}{Om}}}{Omc}\right)\\
\end{array}
\end{array}
if l < 3.8e-27Initial program 79.7%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified60.6%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6433.3%
Simplified33.3%
associate-*r/N/A
div-invN/A
*-lowering-*.f64N/A
Applied egg-rr34.4%
Taylor expanded in Om around 0
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f6436.1%
Simplified36.1%
if 3.8e-27 < l Initial program 95.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified63.0%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.8%
Simplified62.8%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.8%
Simplified62.8%
asin-acosN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
PI-lowering-PI.f64N/A
acos-lowering-acos.f64N/A
+-lowering-+.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-/l*N/A
associate-*l/N/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6471.0%
Applied egg-rr71.0%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= t_m 8.2e+203) (- (/ PI 2.0) (acos (+ 1.0 (/ (* -0.5 (/ Om (/ Omc Om))) Omc)))) (asin (/ (* -0.5 (* Om Om)) (* Omc Omc)))))
t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (t_m <= 8.2e+203) {
tmp = (((double) M_PI) / 2.0) - acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc)));
} else {
tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
}
return tmp;
}
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (t_m <= 8.2e+203) {
tmp = (Math.PI / 2.0) - Math.acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc)));
} else {
tmp = Math.asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): tmp = 0 if t_m <= 8.2e+203: tmp = (math.pi / 2.0) - math.acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc))) else: tmp = math.asin(((-0.5 * (Om * Om)) / (Omc * Omc))) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (t_m <= 8.2e+203) tmp = Float64(Float64(pi / 2.0) - acos(Float64(1.0 + Float64(Float64(-0.5 * Float64(Om / Float64(Omc / Om))) / Omc)))); else tmp = asin(Float64(Float64(-0.5 * Float64(Om * Om)) / Float64(Omc * Omc))); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) tmp = 0.0; if (t_m <= 8.2e+203) tmp = (pi / 2.0) - acos((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc))); else tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc))); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := If[LessEqual[t$95$m, 8.2e+203], N[(N[(Pi / 2.0), $MachinePrecision] - N[ArcCos[N[(1.0 + N[(N[(-0.5 * N[(Om / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[ArcSin[N[(N[(-0.5 * N[(Om * Om), $MachinePrecision]), $MachinePrecision] / N[(Omc * Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t\_m \leq 8.2 \cdot 10^{+203}:\\
\;\;\;\;\frac{\pi}{2} - \cos^{-1} \left(1 + \frac{-0.5 \cdot \frac{Om}{\frac{Omc}{Om}}}{Omc}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{-0.5 \cdot \left(Om \cdot Om\right)}{Omc \cdot Omc}\right)\\
\end{array}
\end{array}
if t < 8.20000000000000033e203Initial program 85.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified62.4%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.5%
Simplified49.5%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.5%
Simplified49.5%
asin-acosN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
PI-lowering-PI.f64N/A
acos-lowering-acos.f64N/A
+-lowering-+.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-/l*N/A
associate-*l/N/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6454.3%
Applied egg-rr54.3%
if 8.20000000000000033e203 < t Initial program 69.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified43.5%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in Om around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6436.8%
Simplified36.8%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= t_m 8e+203) (asin (+ 1.0 (/ (* -0.5 (/ Om (/ Omc Om))) Omc))) (asin (/ (* -0.5 (* Om Om)) (* Omc Omc)))))
t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (t_m <= 8e+203) {
tmp = asin((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc)));
} else {
tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
}
return tmp;
}
t_m = abs(t)
l_m = abs(l)
real(8) function code(t_m, l_m, om, omc)
real(8), intent (in) :: t_m
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if (t_m <= 8d+203) then
tmp = asin((1.0d0 + (((-0.5d0) * (om / (omc / om))) / omc)))
else
tmp = asin((((-0.5d0) * (om * om)) / (omc * omc)))
end if
code = tmp
end function
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (t_m <= 8e+203) {
tmp = Math.asin((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc)));
} else {
tmp = Math.asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): tmp = 0 if t_m <= 8e+203: tmp = math.asin((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc))) else: tmp = math.asin(((-0.5 * (Om * Om)) / (Omc * Omc))) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (t_m <= 8e+203) tmp = asin(Float64(1.0 + Float64(Float64(-0.5 * Float64(Om / Float64(Omc / Om))) / Omc))); else tmp = asin(Float64(Float64(-0.5 * Float64(Om * Om)) / Float64(Omc * Omc))); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) tmp = 0.0; if (t_m <= 8e+203) tmp = asin((1.0 + ((-0.5 * (Om / (Omc / Om))) / Omc))); else tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc))); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := If[LessEqual[t$95$m, 8e+203], N[ArcSin[N[(1.0 + N[(N[(-0.5 * N[(Om / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(N[(-0.5 * N[(Om * Om), $MachinePrecision]), $MachinePrecision] / N[(Omc * Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t\_m \leq 8 \cdot 10^{+203}:\\
\;\;\;\;\sin^{-1} \left(1 + \frac{-0.5 \cdot \frac{Om}{\frac{Omc}{Om}}}{Omc}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{-0.5 \cdot \left(Om \cdot Om\right)}{Omc \cdot Omc}\right)\\
\end{array}
\end{array}
if t < 7.9999999999999999e203Initial program 85.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified62.4%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.5%
Simplified49.5%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.5%
Simplified49.5%
+-commutativeN/A
+-lowering-+.f64N/A
associate-/r*N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-/l*N/A
associate-*l/N/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6454.3%
Applied egg-rr54.3%
if 7.9999999999999999e203 < t Initial program 69.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified43.5%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in Om around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6436.8%
Simplified36.8%
Final simplification53.3%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= t_m 8.6e+203) (asin 1.0) (asin (/ (* -0.5 (* Om Om)) (* Omc Omc)))))
t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (t_m <= 8.6e+203) {
tmp = asin(1.0);
} else {
tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
}
return tmp;
}
t_m = abs(t)
l_m = abs(l)
real(8) function code(t_m, l_m, om, omc)
real(8), intent (in) :: t_m
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if (t_m <= 8.6d+203) then
tmp = asin(1.0d0)
else
tmp = asin((((-0.5d0) * (om * om)) / (omc * omc)))
end if
code = tmp
end function
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
double tmp;
if (t_m <= 8.6e+203) {
tmp = Math.asin(1.0);
} else {
tmp = Math.asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
}
return tmp;
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): tmp = 0 if t_m <= 8.6e+203: tmp = math.asin(1.0) else: tmp = math.asin(((-0.5 * (Om * Om)) / (Omc * Omc))) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (t_m <= 8.6e+203) tmp = asin(1.0); else tmp = asin(Float64(Float64(-0.5 * Float64(Om * Om)) / Float64(Omc * Omc))); end return tmp end
t_m = abs(t); l_m = abs(l); function tmp_2 = code(t_m, l_m, Om, Omc) tmp = 0.0; if (t_m <= 8.6e+203) tmp = asin(1.0); else tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc))); end tmp_2 = tmp; end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := If[LessEqual[t$95$m, 8.6e+203], N[ArcSin[1.0], $MachinePrecision], N[ArcSin[N[(N[(-0.5 * N[(Om * Om), $MachinePrecision]), $MachinePrecision] / N[(Omc * Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t\_m \leq 8.6 \cdot 10^{+203}:\\
\;\;\;\;\sin^{-1} 1\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{-0.5 \cdot \left(Om \cdot Om\right)}{Omc \cdot Omc}\right)\\
\end{array}
\end{array}
if t < 8.6e203Initial program 85.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified62.4%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.5%
Simplified49.5%
Taylor expanded in Om around 0
Simplified54.1%
if 8.6e203 < t Initial program 69.0%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified43.5%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f643.7%
Simplified3.7%
Taylor expanded in Om around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6436.8%
Simplified36.8%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (asin 1.0))
t_m = fabs(t);
l_m = fabs(l);
double code(double t_m, double l_m, double Om, double Omc) {
return asin(1.0);
}
t_m = abs(t)
l_m = abs(l)
real(8) function code(t_m, l_m, om, omc)
real(8), intent (in) :: t_m
real(8), intent (in) :: l_m
real(8), intent (in) :: om
real(8), intent (in) :: omc
code = asin(1.0d0)
end function
t_m = Math.abs(t);
l_m = Math.abs(l);
public static double code(double t_m, double l_m, double Om, double Omc) {
return Math.asin(1.0);
}
t_m = math.fabs(t) l_m = math.fabs(l) def code(t_m, l_m, Om, Omc): return math.asin(1.0)
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) return asin(1.0) end
t_m = abs(t); l_m = abs(l); function tmp = code(t_m, l_m, Om, Omc) tmp = asin(1.0); end
t_m = N[Abs[t], $MachinePrecision] l_m = N[Abs[l], $MachinePrecision] code[t$95$m_, l$95$m_, Om_, Omc_] := N[ArcSin[1.0], $MachinePrecision]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\sin^{-1} 1
\end{array}
Initial program 84.1%
asin-lowering-asin.f64N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
sub0-negN/A
distribute-frac-negN/A
sqrt-lowering-sqrt.f64N/A
distribute-frac-negN/A
sub0-negN/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
/-lowering-/.f64N/A
Simplified61.3%
Taylor expanded in t around 0
sqrt-lowering-sqrt.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6446.8%
Simplified46.8%
Taylor expanded in Om around 0
Simplified51.2%
herbie shell --seed 2024163
(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)))))))