
(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}
t_m = (fabs.f64 t)
l_m = (fabs.f64 l)
(FPCore (t_m l_m Om Omc)
:precision binary64
(if (<= (/ t_m l_m) 5e+152)
(asin
(sqrt
(/
(- 1.0 (pow (/ Om Omc) 2.0))
(+ 1.0 (* 2.0 (* (/ t_m l_m) (/ t_m l_m)))))))
(asin
(*
l_m
(+
(/ (sqrt 0.5) t_m)
(/ (* (* l_m l_m) -0.125) (* (* t_m t_m) (* t_m (sqrt 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 ((t_m / l_m) <= 5e+152) {
tmp = asin(sqrt(((1.0 - pow((Om / Omc), 2.0)) / (1.0 + (2.0 * ((t_m / l_m) * (t_m / l_m)))))));
} else {
tmp = asin((l_m * ((sqrt(0.5) / t_m) + (((l_m * l_m) * -0.125) / ((t_m * t_m) * (t_m * sqrt(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 ((t_m / l_m) <= 5d+152) then
tmp = asin(sqrt(((1.0d0 - ((om / omc) ** 2.0d0)) / (1.0d0 + (2.0d0 * ((t_m / l_m) * (t_m / l_m)))))))
else
tmp = asin((l_m * ((sqrt(0.5d0) / t_m) + (((l_m * l_m) * (-0.125d0)) / ((t_m * t_m) * (t_m * sqrt(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 ((t_m / l_m) <= 5e+152) {
tmp = Math.asin(Math.sqrt(((1.0 - Math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * ((t_m / l_m) * (t_m / l_m)))))));
} else {
tmp = Math.asin((l_m * ((Math.sqrt(0.5) / t_m) + (((l_m * l_m) * -0.125) / ((t_m * t_m) * (t_m * Math.sqrt(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 (t_m / l_m) <= 5e+152: tmp = math.asin(math.sqrt(((1.0 - math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * ((t_m / l_m) * (t_m / l_m))))))) else: tmp = math.asin((l_m * ((math.sqrt(0.5) / t_m) + (((l_m * l_m) * -0.125) / ((t_m * t_m) * (t_m * math.sqrt(0.5))))))) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (Float64(t_m / l_m) <= 5e+152) tmp = asin(sqrt(Float64(Float64(1.0 - (Float64(Om / Omc) ^ 2.0)) / Float64(1.0 + Float64(2.0 * Float64(Float64(t_m / l_m) * Float64(t_m / l_m))))))); else tmp = asin(Float64(l_m * Float64(Float64(sqrt(0.5) / t_m) + Float64(Float64(Float64(l_m * l_m) * -0.125) / Float64(Float64(t_m * t_m) * Float64(t_m * sqrt(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 ((t_m / l_m) <= 5e+152) tmp = asin(sqrt(((1.0 - ((Om / Omc) ^ 2.0)) / (1.0 + (2.0 * ((t_m / l_m) * (t_m / l_m))))))); else tmp = asin((l_m * ((sqrt(0.5) / t_m) + (((l_m * l_m) * -0.125) / ((t_m * t_m) * (t_m * sqrt(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[N[(t$95$m / l$95$m), $MachinePrecision], 5e+152], 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[(N[(t$95$m / l$95$m), $MachinePrecision] * N[(t$95$m / l$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(l$95$m * N[(N[(N[Sqrt[0.5], $MachinePrecision] / t$95$m), $MachinePrecision] + N[(N[(N[(l$95$m * l$95$m), $MachinePrecision] * -0.125), $MachinePrecision] / N[(N[(t$95$m * t$95$m), $MachinePrecision] * N[(t$95$m * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;\frac{t\_m}{l\_m} \leq 5 \cdot 10^{+152}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1 - {\left(\frac{Om}{Omc}\right)}^{2}}{1 + 2 \cdot \left(\frac{t\_m}{l\_m} \cdot \frac{t\_m}{l\_m}\right)}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(l\_m \cdot \left(\frac{\sqrt{0.5}}{t\_m} + \frac{\left(l\_m \cdot l\_m\right) \cdot -0.125}{\left(t\_m \cdot t\_m\right) \cdot \left(t\_m \cdot \sqrt{0.5}\right)}\right)\right)\\
\end{array}
\end{array}
if (/.f64 t l) < 5e152Initial program 94.7%
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6494.7%
Applied egg-rr94.7%
if 5e152 < (/.f64 t l) Initial program 59.9%
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.9%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6459.9%
Applied egg-rr59.9%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6459.9%
Applied egg-rr59.9%
Taylor expanded in Om around 0
Simplified59.9%
Taylor expanded in l around 0
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow3N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6499.7%
Simplified99.7%
t_m = (fabs.f64 t)
l_m = (fabs.f64 l)
(FPCore (t_m l_m Om Omc)
:precision binary64
(if (<= (/ t_m l_m) 5e+147)
(asin
(sqrt
(/
(- 1.0 (pow (/ Om Omc) 2.0))
(+ 1.0 (* 2.0 (* (/ t_m l_m) (/ t_m l_m)))))))
(asin (/ (* l_m (sqrt 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 tmp;
if ((t_m / l_m) <= 5e+147) {
tmp = asin(sqrt(((1.0 - pow((Om / Omc), 2.0)) / (1.0 + (2.0 * ((t_m / l_m) * (t_m / l_m)))))));
} else {
tmp = asin(((l_m * sqrt(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) :: tmp
if ((t_m / l_m) <= 5d+147) then
tmp = asin(sqrt(((1.0d0 - ((om / omc) ** 2.0d0)) / (1.0d0 + (2.0d0 * ((t_m / l_m) * (t_m / l_m)))))))
else
tmp = asin(((l_m * sqrt(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 tmp;
if ((t_m / l_m) <= 5e+147) {
tmp = Math.asin(Math.sqrt(((1.0 - Math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * ((t_m / l_m) * (t_m / l_m)))))));
} else {
tmp = Math.asin(((l_m * Math.sqrt(0.5)) / t_m));
}
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 / l_m) <= 5e+147: tmp = math.asin(math.sqrt(((1.0 - math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * ((t_m / l_m) * (t_m / l_m))))))) else: tmp = math.asin(((l_m * math.sqrt(0.5)) / t_m)) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (Float64(t_m / l_m) <= 5e+147) tmp = asin(sqrt(Float64(Float64(1.0 - (Float64(Om / Omc) ^ 2.0)) / Float64(1.0 + Float64(2.0 * Float64(Float64(t_m / l_m) * Float64(t_m / l_m))))))); else tmp = asin(Float64(Float64(l_m * sqrt(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) tmp = 0.0; if ((t_m / l_m) <= 5e+147) tmp = asin(sqrt(((1.0 - ((Om / Omc) ^ 2.0)) / (1.0 + (2.0 * ((t_m / l_m) * (t_m / l_m))))))); else tmp = asin(((l_m * sqrt(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_] := If[LessEqual[N[(t$95$m / l$95$m), $MachinePrecision], 5e+147], 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[(N[(t$95$m / l$95$m), $MachinePrecision] * N[(t$95$m / l$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(N[(l$95$m * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;\frac{t\_m}{l\_m} \leq 5 \cdot 10^{+147}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1 - {\left(\frac{Om}{Omc}\right)}^{2}}{1 + 2 \cdot \left(\frac{t\_m}{l\_m} \cdot \frac{t\_m}{l\_m}\right)}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{0.5}}{t\_m}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < 5.0000000000000002e147Initial program 94.7%
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6494.7%
Applied egg-rr94.7%
if 5.0000000000000002e147 < (/.f64 t l) Initial program 62.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.6%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6462.0%
Applied egg-rr62.0%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6462.0%
Applied egg-rr62.0%
Taylor expanded in Om around 0
Simplified62.0%
Taylor expanded in t around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6499.6%
Simplified99.6%
t_m = (fabs.f64 t)
l_m = (fabs.f64 l)
(FPCore (t_m l_m Om Omc)
:precision binary64
(if (<= t_m 2.35e+208)
(asin
(sqrt
(/
(- 1.0 (/ (/ Om (/ Omc Om)) Omc))
(+ 1.0 (* (/ t_m (/ l_m t_m)) (/ 2.0 l_m))))))
(asin (/ (* l_m (sqrt 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 tmp;
if (t_m <= 2.35e+208) {
tmp = asin(sqrt(((1.0 - ((Om / (Omc / Om)) / Omc)) / (1.0 + ((t_m / (l_m / t_m)) * (2.0 / l_m))))));
} else {
tmp = asin(((l_m * sqrt(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) :: tmp
if (t_m <= 2.35d+208) then
tmp = asin(sqrt(((1.0d0 - ((om / (omc / om)) / omc)) / (1.0d0 + ((t_m / (l_m / t_m)) * (2.0d0 / l_m))))))
else
tmp = asin(((l_m * sqrt(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 tmp;
if (t_m <= 2.35e+208) {
tmp = Math.asin(Math.sqrt(((1.0 - ((Om / (Omc / Om)) / Omc)) / (1.0 + ((t_m / (l_m / t_m)) * (2.0 / l_m))))));
} else {
tmp = Math.asin(((l_m * Math.sqrt(0.5)) / t_m));
}
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 <= 2.35e+208: tmp = math.asin(math.sqrt(((1.0 - ((Om / (Omc / Om)) / Omc)) / (1.0 + ((t_m / (l_m / t_m)) * (2.0 / l_m)))))) else: tmp = math.asin(((l_m * math.sqrt(0.5)) / t_m)) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (t_m <= 2.35e+208) tmp = asin(sqrt(Float64(Float64(1.0 - Float64(Float64(Om / Float64(Omc / Om)) / Omc)) / Float64(1.0 + Float64(Float64(t_m / Float64(l_m / t_m)) * Float64(2.0 / l_m)))))); else tmp = asin(Float64(Float64(l_m * sqrt(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) tmp = 0.0; if (t_m <= 2.35e+208) tmp = asin(sqrt(((1.0 - ((Om / (Omc / Om)) / Omc)) / (1.0 + ((t_m / (l_m / t_m)) * (2.0 / l_m)))))); else tmp = asin(((l_m * sqrt(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_] := If[LessEqual[t$95$m, 2.35e+208], N[ArcSin[N[Sqrt[N[(N[(1.0 - N[(N[(Om / N[(Omc / Om), $MachinePrecision]), $MachinePrecision] / Omc), $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(N[(t$95$m / N[(l$95$m / t$95$m), $MachinePrecision]), $MachinePrecision] * N[(2.0 / l$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(N[(l$95$m * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t\_m \leq 2.35 \cdot 10^{+208}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1 - \frac{\frac{Om}{\frac{Omc}{Om}}}{Omc}}{1 + \frac{t\_m}{\frac{l\_m}{t\_m}} \cdot \frac{2}{l\_m}}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{0.5}}{t\_m}\right)\\
\end{array}
\end{array}
if t < 2.34999999999999993e208Initial program 91.8%
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
Simplified77.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6484.1%
Applied egg-rr84.1%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
*-commutativeN/A
times-fracN/A
un-div-invN/A
clear-numN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6490.3%
Applied egg-rr90.3%
if 2.34999999999999993e208 < t Initial program 61.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
Simplified45.0%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6450.9%
Applied egg-rr50.9%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6461.7%
Applied egg-rr61.7%
Taylor expanded in Om around 0
Simplified61.7%
Taylor expanded in t around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6477.1%
Simplified77.1%
t_m = (fabs.f64 t)
l_m = (fabs.f64 l)
(FPCore (t_m l_m Om Omc)
:precision binary64
(if (<= l_m 1.4e-160)
(asin (/ (* l_m (sqrt 0.5)) t_m))
(if (<= l_m 2.3e+115)
(asin (pow (+ 1.0 (/ (* 2.0 (* t_m t_m)) (* l_m l_m))) -0.5))
(asin (sqrt (- 1.0 (/ (/ 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 <= 1.4e-160) {
tmp = asin(((l_m * sqrt(0.5)) / t_m));
} else if (l_m <= 2.3e+115) {
tmp = asin(pow((1.0 + ((2.0 * (t_m * t_m)) / (l_m * l_m))), -0.5));
} else {
tmp = asin(sqrt((1.0 - ((Om / (Omc / Om)) / 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 (l_m <= 1.4d-160) then
tmp = asin(((l_m * sqrt(0.5d0)) / t_m))
else if (l_m <= 2.3d+115) then
tmp = asin(((1.0d0 + ((2.0d0 * (t_m * t_m)) / (l_m * l_m))) ** (-0.5d0)))
else
tmp = asin(sqrt((1.0d0 - ((om / (omc / om)) / 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 (l_m <= 1.4e-160) {
tmp = Math.asin(((l_m * Math.sqrt(0.5)) / t_m));
} else if (l_m <= 2.3e+115) {
tmp = Math.asin(Math.pow((1.0 + ((2.0 * (t_m * t_m)) / (l_m * l_m))), -0.5));
} else {
tmp = Math.asin(Math.sqrt((1.0 - ((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 <= 1.4e-160: tmp = math.asin(((l_m * math.sqrt(0.5)) / t_m)) elif l_m <= 2.3e+115: tmp = math.asin(math.pow((1.0 + ((2.0 * (t_m * t_m)) / (l_m * l_m))), -0.5)) else: tmp = math.asin(math.sqrt((1.0 - ((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 <= 1.4e-160) tmp = asin(Float64(Float64(l_m * sqrt(0.5)) / t_m)); elseif (l_m <= 2.3e+115) tmp = asin((Float64(1.0 + Float64(Float64(2.0 * Float64(t_m * t_m)) / Float64(l_m * l_m))) ^ -0.5)); else tmp = asin(sqrt(Float64(1.0 - Float64(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 <= 1.4e-160) tmp = asin(((l_m * sqrt(0.5)) / t_m)); elseif (l_m <= 2.3e+115) tmp = asin(((1.0 + ((2.0 * (t_m * t_m)) / (l_m * l_m))) ^ -0.5)); else tmp = asin(sqrt((1.0 - ((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, 1.4e-160], N[ArcSin[N[(N[(l$95$m * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision], If[LessEqual[l$95$m, 2.3e+115], N[ArcSin[N[Power[N[(1.0 + N[(N[(2.0 * N[(t$95$m * t$95$m), $MachinePrecision]), $MachinePrecision] / N[(l$95$m * l$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[Sqrt[N[(1.0 - N[(N[(Om / N[(Omc / Om), $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 1.4 \cdot 10^{-160}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{0.5}}{t\_m}\right)\\
\mathbf{elif}\;l\_m \leq 2.3 \cdot 10^{+115}:\\
\;\;\;\;\sin^{-1} \left({\left(1 + \frac{2 \cdot \left(t\_m \cdot t\_m\right)}{l\_m \cdot l\_m}\right)}^{-0.5}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{1 - \frac{\frac{Om}{\frac{Omc}{Om}}}{Omc}}\right)\\
\end{array}
\end{array}
if l < 1.40000000000000008e-160Initial program 91.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
Simplified74.8%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6480.2%
Applied egg-rr80.2%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6487.4%
Applied egg-rr87.4%
Taylor expanded in Om around 0
Simplified86.6%
Taylor expanded in t around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6439.7%
Simplified39.7%
if 1.40000000000000008e-160 < l < 2.30000000000000004e115Initial program 80.5%
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.4%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6480.6%
Applied egg-rr80.6%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6480.6%
Applied egg-rr80.6%
clear-numN/A
inv-powN/A
sqrt-pow1N/A
pow-lowering-pow.f64N/A
Applied egg-rr80.6%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6478.8%
Simplified78.8%
if 2.30000000000000004e115 < l Initial program 98.9%
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
Simplified78.8%
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-*.f6474.1%
Simplified74.1%
associate-/r*N/A
/-lowering-/.f64N/A
associate-*l/N/A
associate-/r/N/A
/-lowering-/.f64N/A
/-lowering-/.f6487.0%
Applied egg-rr87.0%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= t_m 1.8e+208) (asin (sqrt (/ 1.0 (+ 1.0 (* (/ t_m (/ l_m t_m)) (/ 2.0 l_m)))))) (asin (/ (* l_m (sqrt 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 tmp;
if (t_m <= 1.8e+208) {
tmp = asin(sqrt((1.0 / (1.0 + ((t_m / (l_m / t_m)) * (2.0 / l_m))))));
} else {
tmp = asin(((l_m * sqrt(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) :: tmp
if (t_m <= 1.8d+208) then
tmp = asin(sqrt((1.0d0 / (1.0d0 + ((t_m / (l_m / t_m)) * (2.0d0 / l_m))))))
else
tmp = asin(((l_m * sqrt(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 tmp;
if (t_m <= 1.8e+208) {
tmp = Math.asin(Math.sqrt((1.0 / (1.0 + ((t_m / (l_m / t_m)) * (2.0 / l_m))))));
} else {
tmp = Math.asin(((l_m * Math.sqrt(0.5)) / t_m));
}
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 <= 1.8e+208: tmp = math.asin(math.sqrt((1.0 / (1.0 + ((t_m / (l_m / t_m)) * (2.0 / l_m)))))) else: tmp = math.asin(((l_m * math.sqrt(0.5)) / t_m)) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (t_m <= 1.8e+208) tmp = asin(sqrt(Float64(1.0 / Float64(1.0 + Float64(Float64(t_m / Float64(l_m / t_m)) * Float64(2.0 / l_m)))))); else tmp = asin(Float64(Float64(l_m * sqrt(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) tmp = 0.0; if (t_m <= 1.8e+208) tmp = asin(sqrt((1.0 / (1.0 + ((t_m / (l_m / t_m)) * (2.0 / l_m)))))); else tmp = asin(((l_m * sqrt(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_] := If[LessEqual[t$95$m, 1.8e+208], N[ArcSin[N[Sqrt[N[(1.0 / N[(1.0 + N[(N[(t$95$m / N[(l$95$m / t$95$m), $MachinePrecision]), $MachinePrecision] * N[(2.0 / l$95$m), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(N[(l$95$m * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t\_m \leq 1.8 \cdot 10^{+208}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1}{1 + \frac{t\_m}{\frac{l\_m}{t\_m}} \cdot \frac{2}{l\_m}}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{0.5}}{t\_m}\right)\\
\end{array}
\end{array}
if t < 1.80000000000000001e208Initial program 91.8%
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
Simplified77.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6484.1%
Applied egg-rr84.1%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
*-commutativeN/A
times-fracN/A
un-div-invN/A
clear-numN/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6490.3%
Applied egg-rr90.3%
Taylor expanded in Om around 0
Simplified89.8%
if 1.80000000000000001e208 < t Initial program 61.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
Simplified45.0%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6450.9%
Applied egg-rr50.9%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6461.7%
Applied egg-rr61.7%
Taylor expanded in Om around 0
Simplified61.7%
Taylor expanded in t around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6477.1%
Simplified77.1%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= t_m 7.1e+208) (asin (pow (+ 1.0 (/ (* t_m (* (/ t_m l_m) 2.0)) l_m)) -0.5)) (asin (/ (* l_m (sqrt 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 tmp;
if (t_m <= 7.1e+208) {
tmp = asin(pow((1.0 + ((t_m * ((t_m / l_m) * 2.0)) / l_m)), -0.5));
} else {
tmp = asin(((l_m * sqrt(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) :: tmp
if (t_m <= 7.1d+208) then
tmp = asin(((1.0d0 + ((t_m * ((t_m / l_m) * 2.0d0)) / l_m)) ** (-0.5d0)))
else
tmp = asin(((l_m * sqrt(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 tmp;
if (t_m <= 7.1e+208) {
tmp = Math.asin(Math.pow((1.0 + ((t_m * ((t_m / l_m) * 2.0)) / l_m)), -0.5));
} else {
tmp = Math.asin(((l_m * Math.sqrt(0.5)) / t_m));
}
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 <= 7.1e+208: tmp = math.asin(math.pow((1.0 + ((t_m * ((t_m / l_m) * 2.0)) / l_m)), -0.5)) else: tmp = math.asin(((l_m * math.sqrt(0.5)) / t_m)) return tmp
t_m = abs(t) l_m = abs(l) function code(t_m, l_m, Om, Omc) tmp = 0.0 if (t_m <= 7.1e+208) tmp = asin((Float64(1.0 + Float64(Float64(t_m * Float64(Float64(t_m / l_m) * 2.0)) / l_m)) ^ -0.5)); else tmp = asin(Float64(Float64(l_m * sqrt(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) tmp = 0.0; if (t_m <= 7.1e+208) tmp = asin(((1.0 + ((t_m * ((t_m / l_m) * 2.0)) / l_m)) ^ -0.5)); else tmp = asin(((l_m * sqrt(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_] := If[LessEqual[t$95$m, 7.1e+208], N[ArcSin[N[Power[N[(1.0 + N[(N[(t$95$m * N[(N[(t$95$m / l$95$m), $MachinePrecision] * 2.0), $MachinePrecision]), $MachinePrecision] / l$95$m), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(N[(l$95$m * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;t\_m \leq 7.1 \cdot 10^{+208}:\\
\;\;\;\;\sin^{-1} \left({\left(1 + \frac{t\_m \cdot \left(\frac{t\_m}{l\_m} \cdot 2\right)}{l\_m}\right)}^{-0.5}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{0.5}}{t\_m}\right)\\
\end{array}
\end{array}
if t < 7.10000000000000019e208Initial program 91.8%
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
Simplified77.3%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6484.1%
Applied egg-rr84.1%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6489.5%
Applied egg-rr89.5%
Taylor expanded in Om around 0
Simplified89.0%
asin-lowering-asin.f64N/A
inv-powN/A
sqrt-pow1N/A
metadata-evalN/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
associate-/r/N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6489.8%
Applied egg-rr89.8%
if 7.10000000000000019e208 < t Initial program 61.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
Simplified45.0%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6450.9%
Applied egg-rr50.9%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6461.7%
Applied egg-rr61.7%
Taylor expanded in Om around 0
Simplified61.7%
Taylor expanded in t around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6477.1%
Simplified77.1%
Final simplification89.0%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= l_m 7.6e-25) (asin (/ (* l_m (sqrt 0.5)) t_m)) (asin (sqrt (- 1.0 (/ (/ 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 <= 7.6e-25) {
tmp = asin(((l_m * sqrt(0.5)) / t_m));
} else {
tmp = asin(sqrt((1.0 - ((Om / (Omc / Om)) / 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 (l_m <= 7.6d-25) then
tmp = asin(((l_m * sqrt(0.5d0)) / t_m))
else
tmp = asin(sqrt((1.0d0 - ((om / (omc / om)) / 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 (l_m <= 7.6e-25) {
tmp = Math.asin(((l_m * Math.sqrt(0.5)) / t_m));
} else {
tmp = Math.asin(Math.sqrt((1.0 - ((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 <= 7.6e-25: tmp = math.asin(((l_m * math.sqrt(0.5)) / t_m)) else: tmp = math.asin(math.sqrt((1.0 - ((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 <= 7.6e-25) tmp = asin(Float64(Float64(l_m * sqrt(0.5)) / t_m)); else tmp = asin(sqrt(Float64(1.0 - Float64(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 <= 7.6e-25) tmp = asin(((l_m * sqrt(0.5)) / t_m)); else tmp = asin(sqrt((1.0 - ((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, 7.6e-25], N[ArcSin[N[(N[(l$95$m * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[Sqrt[N[(1.0 - N[(N[(Om / N[(Omc / Om), $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 7.6 \cdot 10^{-25}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{0.5}}{t\_m}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{1 - \frac{\frac{Om}{\frac{Omc}{Om}}}{Omc}}\right)\\
\end{array}
\end{array}
if l < 7.5999999999999996e-25Initial program 88.9%
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
Simplified74.8%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6479.9%
Applied egg-rr79.9%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6485.9%
Applied egg-rr85.9%
Taylor expanded in Om around 0
Simplified85.3%
Taylor expanded in t around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6436.8%
Simplified36.8%
if 7.5999999999999996e-25 < l Initial program 92.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
Simplified76.2%
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-*.f6466.5%
Simplified66.5%
associate-/r*N/A
/-lowering-/.f64N/A
associate-*l/N/A
associate-/r/N/A
/-lowering-/.f64N/A
/-lowering-/.f6477.2%
Applied egg-rr77.2%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= l_m 7.6e-25) (asin (/ (* l_m (sqrt 0.5)) t_m)) (asin (+ 1.0 (* (/ Om Omc) (/ (* Om -0.5) 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 <= 7.6e-25) {
tmp = asin(((l_m * sqrt(0.5)) / t_m));
} else {
tmp = asin((1.0 + ((Om / Omc) * ((Om * -0.5) / 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 (l_m <= 7.6d-25) then
tmp = asin(((l_m * sqrt(0.5d0)) / t_m))
else
tmp = asin((1.0d0 + ((om / omc) * ((om * (-0.5d0)) / 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 (l_m <= 7.6e-25) {
tmp = Math.asin(((l_m * Math.sqrt(0.5)) / t_m));
} else {
tmp = Math.asin((1.0 + ((Om / Omc) * ((Om * -0.5) / 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 <= 7.6e-25: tmp = math.asin(((l_m * math.sqrt(0.5)) / t_m)) else: tmp = math.asin((1.0 + ((Om / Omc) * ((Om * -0.5) / 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 <= 7.6e-25) tmp = asin(Float64(Float64(l_m * sqrt(0.5)) / t_m)); else tmp = asin(Float64(1.0 + Float64(Float64(Om / Omc) * Float64(Float64(Om * -0.5) / 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 <= 7.6e-25) tmp = asin(((l_m * sqrt(0.5)) / t_m)); else tmp = asin((1.0 + ((Om / Omc) * ((Om * -0.5) / 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, 7.6e-25], N[ArcSin[N[(N[(l$95$m * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t$95$m), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(1.0 + N[(N[(Om / Omc), $MachinePrecision] * N[(N[(Om * -0.5), $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 7.6 \cdot 10^{-25}:\\
\;\;\;\;\sin^{-1} \left(\frac{l\_m \cdot \sqrt{0.5}}{t\_m}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(1 + \frac{Om}{Omc} \cdot \frac{Om \cdot -0.5}{Omc}\right)\\
\end{array}
\end{array}
if l < 7.5999999999999996e-25Initial program 88.9%
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
Simplified74.8%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6479.9%
Applied egg-rr79.9%
associate-*r*N/A
clear-numN/A
associate-*r/N/A
div-invN/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
clear-numN/A
div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f6485.9%
Applied egg-rr85.9%
Taylor expanded in Om around 0
Simplified85.3%
Taylor expanded in t around inf
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f6436.8%
Simplified36.8%
if 7.5999999999999996e-25 < l Initial program 92.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
Simplified76.2%
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-*.f6466.5%
Simplified66.5%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.5%
Simplified66.5%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6477.2%
Applied egg-rr77.2%
Final simplification47.7%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= l_m 9e-163) (asin (/ (* -0.5 (* Om Om)) (* Omc Omc))) (asin (+ 1.0 (* (/ Om Omc) (/ (* Om -0.5) 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 <= 9e-163) {
tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
} else {
tmp = asin((1.0 + ((Om / Omc) * ((Om * -0.5) / 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 (l_m <= 9d-163) then
tmp = asin((((-0.5d0) * (om * om)) / (omc * omc)))
else
tmp = asin((1.0d0 + ((om / omc) * ((om * (-0.5d0)) / 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 (l_m <= 9e-163) {
tmp = Math.asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
} else {
tmp = Math.asin((1.0 + ((Om / Omc) * ((Om * -0.5) / 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 <= 9e-163: tmp = math.asin(((-0.5 * (Om * Om)) / (Omc * Omc))) else: tmp = math.asin((1.0 + ((Om / Omc) * ((Om * -0.5) / 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 <= 9e-163) tmp = asin(Float64(Float64(-0.5 * Float64(Om * Om)) / Float64(Omc * Omc))); else tmp = asin(Float64(1.0 + Float64(Float64(Om / Omc) * Float64(Float64(Om * -0.5) / 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 <= 9e-163) tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc))); else tmp = asin((1.0 + ((Om / Omc) * ((Om * -0.5) / 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, 9e-163], N[ArcSin[N[(N[(-0.5 * N[(Om * Om), $MachinePrecision]), $MachinePrecision] / N[(Omc * Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(1.0 + N[(N[(Om / Omc), $MachinePrecision] * N[(N[(Om * -0.5), $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 9 \cdot 10^{-163}:\\
\;\;\;\;\sin^{-1} \left(\frac{-0.5 \cdot \left(Om \cdot Om\right)}{Omc \cdot Omc}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(1 + \frac{Om}{Omc} \cdot \frac{Om \cdot -0.5}{Omc}\right)\\
\end{array}
\end{array}
if l < 8.9999999999999995e-163Initial program 90.9%
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
Simplified75.1%
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.4%
Simplified46.4%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6445.9%
Simplified45.9%
Taylor expanded in Om around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6415.7%
Simplified15.7%
if 8.9999999999999995e-163 < l Initial program 88.2%
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
Simplified75.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-*.f6455.9%
Simplified55.9%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.9%
Simplified55.9%
associate-*r*N/A
times-fracN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6464.4%
Applied egg-rr64.4%
Final simplification34.7%
t_m = (fabs.f64 t) l_m = (fabs.f64 l) (FPCore (t_m l_m Om Omc) :precision binary64 (if (<= l_m 3.2e-162) (asin (/ (* -0.5 (* Om Om)) (* Omc Omc))) (asin 1.0)))
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.2e-162) {
tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
} else {
tmp = asin(1.0);
}
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 <= 3.2d-162) then
tmp = asin((((-0.5d0) * (om * om)) / (omc * omc)))
else
tmp = asin(1.0d0)
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 <= 3.2e-162) {
tmp = Math.asin(((-0.5 * (Om * Om)) / (Omc * Omc)));
} else {
tmp = Math.asin(1.0);
}
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.2e-162: tmp = math.asin(((-0.5 * (Om * Om)) / (Omc * Omc))) else: tmp = math.asin(1.0) 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.2e-162) tmp = asin(Float64(Float64(-0.5 * Float64(Om * Om)) / Float64(Omc * Omc))); else tmp = asin(1.0); 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.2e-162) tmp = asin(((-0.5 * (Om * Om)) / (Omc * Omc))); else tmp = asin(1.0); 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.2e-162], N[ArcSin[N[(N[(-0.5 * N[(Om * Om), $MachinePrecision]), $MachinePrecision] / N[(Omc * Omc), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcSin[1.0], $MachinePrecision]]
\begin{array}{l}
t_m = \left|t\right|
\\
l_m = \left|\ell\right|
\\
\begin{array}{l}
\mathbf{if}\;l\_m \leq 3.2 \cdot 10^{-162}:\\
\;\;\;\;\sin^{-1} \left(\frac{-0.5 \cdot \left(Om \cdot Om\right)}{Omc \cdot Omc}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} 1\\
\end{array}
\end{array}
if l < 3.19999999999999975e-162Initial program 90.9%
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
Simplified75.1%
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.4%
Simplified46.4%
Taylor expanded in Om around 0
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6445.9%
Simplified45.9%
Taylor expanded in Om around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6415.7%
Simplified15.7%
if 3.19999999999999975e-162 < l Initial program 88.2%
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
Simplified75.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-*.f6455.9%
Simplified55.9%
Taylor expanded in Om around 0
Simplified64.4%
Final simplification34.7%
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 89.8%
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
Simplified75.2%
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-*.f6450.1%
Simplified50.1%
Taylor expanded in Om around 0
Simplified55.6%
herbie shell --seed 2024288
(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)))))))