
(FPCore (t l Om Omc) :precision binary64 (asin (sqrt (/ (- 1.0 (pow (/ Om Omc) 2.0)) (+ 1.0 (* 2.0 (pow (/ t l) 2.0)))))))
double code(double t, double l, double Om, double Omc) {
return asin(sqrt(((1.0 - pow((Om / Omc), 2.0)) / (1.0 + (2.0 * pow((t / l), 2.0))))));
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
code = asin(sqrt(((1.0d0 - ((om / omc) ** 2.0d0)) / (1.0d0 + (2.0d0 * ((t / l) ** 2.0d0))))))
end function
public static double code(double t, double l, double Om, double Omc) {
return Math.asin(Math.sqrt(((1.0 - Math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * Math.pow((t / l), 2.0))))));
}
def code(t, l, Om, Omc): return math.asin(math.sqrt(((1.0 - math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * math.pow((t / l), 2.0))))))
function code(t, l, Om, Omc) return asin(sqrt(Float64(Float64(1.0 - (Float64(Om / Omc) ^ 2.0)) / Float64(1.0 + Float64(2.0 * (Float64(t / l) ^ 2.0)))))) end
function tmp = code(t, l, Om, Omc) tmp = asin(sqrt(((1.0 - ((Om / Omc) ^ 2.0)) / (1.0 + (2.0 * ((t / l) ^ 2.0)))))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[Sqrt[N[(N[(1.0 - N[Power[N[(Om / Omc), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(2.0 * N[Power[N[(t / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\sqrt{\frac{1 - {\left(\frac{Om}{Omc}\right)}^{2}}{1 + 2 \cdot {\left(\frac{t}{\ell}\right)}^{2}}}\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l Om Omc) :precision binary64 (asin (sqrt (/ (- 1.0 (pow (/ Om Omc) 2.0)) (+ 1.0 (* 2.0 (pow (/ t l) 2.0)))))))
double code(double t, double l, double Om, double Omc) {
return asin(sqrt(((1.0 - pow((Om / Omc), 2.0)) / (1.0 + (2.0 * pow((t / l), 2.0))))));
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
code = asin(sqrt(((1.0d0 - ((om / omc) ** 2.0d0)) / (1.0d0 + (2.0d0 * ((t / l) ** 2.0d0))))))
end function
public static double code(double t, double l, double Om, double Omc) {
return Math.asin(Math.sqrt(((1.0 - Math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * Math.pow((t / l), 2.0))))));
}
def code(t, l, Om, Omc): return math.asin(math.sqrt(((1.0 - math.pow((Om / Omc), 2.0)) / (1.0 + (2.0 * math.pow((t / l), 2.0))))))
function code(t, l, Om, Omc) return asin(sqrt(Float64(Float64(1.0 - (Float64(Om / Omc) ^ 2.0)) / Float64(1.0 + Float64(2.0 * (Float64(t / l) ^ 2.0)))))) end
function tmp = code(t, l, Om, Omc) tmp = asin(sqrt(((1.0 - ((Om / Omc) ^ 2.0)) / (1.0 + (2.0 * ((t / l) ^ 2.0)))))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[Sqrt[N[(N[(1.0 - N[Power[N[(Om / Omc), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / N[(1.0 + N[(2.0 * N[Power[N[(t / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\sqrt{\frac{1 - {\left(\frac{Om}{Omc}\right)}^{2}}{1 + 2 \cdot {\left(\frac{t}{\ell}\right)}^{2}}}\right)
\end{array}
(FPCore (t l Om Omc) :precision binary64 (asin (/ (sqrt (- 1.0 (pow (/ Om Omc) 2.0))) (hypot 1.0 (* (/ t l) (sqrt 2.0))))))
double code(double t, double l, double Om, double Omc) {
return asin((sqrt((1.0 - pow((Om / Omc), 2.0))) / hypot(1.0, ((t / l) * sqrt(2.0)))));
}
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))) / Math.hypot(1.0, ((t / l) * Math.sqrt(2.0)))));
}
def code(t, l, Om, Omc): return math.asin((math.sqrt((1.0 - math.pow((Om / Omc), 2.0))) / math.hypot(1.0, ((t / l) * math.sqrt(2.0)))))
function code(t, l, Om, Omc) return asin(Float64(sqrt(Float64(1.0 - (Float64(Om / Omc) ^ 2.0))) / hypot(1.0, Float64(Float64(t / l) * sqrt(2.0))))) end
function tmp = code(t, l, Om, Omc) tmp = asin((sqrt((1.0 - ((Om / Omc) ^ 2.0))) / hypot(1.0, ((t / l) * sqrt(2.0))))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[(N[Sqrt[N[(1.0 - N[Power[N[(Om / Omc), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Sqrt[1.0 ^ 2 + N[(N[(t / l), $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\frac{\sqrt{1 - {\left(\frac{Om}{Omc}\right)}^{2}}}{\mathsf{hypot}\left(1, \frac{t}{\ell} \cdot \sqrt{2}\right)}\right)
\end{array}
Initial program 83.0%
sqrt-div82.9%
add-sqr-sqrt82.9%
hypot-1-def82.9%
*-commutative82.9%
sqrt-prod82.9%
unpow282.9%
sqrt-prod52.7%
add-sqr-sqrt98.4%
Applied egg-rr98.4%
Final simplification98.4%
(FPCore (t l Om Omc) :precision binary64 (asin (/ 1.0 (hypot 1.0 (* (/ t l) (sqrt 2.0))))))
double code(double t, double l, double Om, double Omc) {
return asin((1.0 / hypot(1.0, ((t / l) * sqrt(2.0)))));
}
public static double code(double t, double l, double Om, double Omc) {
return Math.asin((1.0 / Math.hypot(1.0, ((t / l) * Math.sqrt(2.0)))));
}
def code(t, l, Om, Omc): return math.asin((1.0 / math.hypot(1.0, ((t / l) * math.sqrt(2.0)))))
function code(t, l, Om, Omc) return asin(Float64(1.0 / hypot(1.0, Float64(Float64(t / l) * sqrt(2.0))))) end
function tmp = code(t, l, Om, Omc) tmp = asin((1.0 / hypot(1.0, ((t / l) * sqrt(2.0))))); end
code[t_, l_, Om_, Omc_] := N[ArcSin[N[(1.0 / N[Sqrt[1.0 ^ 2 + N[(N[(t / l), $MachinePrecision] * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] ^ 2], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} \left(\frac{1}{\mathsf{hypot}\left(1, \frac{t}{\ell} \cdot \sqrt{2}\right)}\right)
\end{array}
Initial program 83.0%
sqrt-div82.9%
add-sqr-sqrt82.9%
hypot-1-def82.9%
*-commutative82.9%
sqrt-prod82.9%
unpow282.9%
sqrt-prod52.7%
add-sqr-sqrt98.4%
Applied egg-rr98.4%
Taylor expanded in Om around 0 97.3%
Final simplification97.3%
(FPCore (t l Om Omc)
:precision binary64
(if (<= (/ t l) -1e+28)
(asin (* (/ l t) (- (sqrt 0.5))))
(if (<= (/ t l) 2e+58)
(asin (sqrt (/ 1.0 (+ 1.0 (* 2.0 (* (/ t l) (/ t l)))))))
(asin
(* (+ 1.0 (* -0.5 (/ (/ Om Omc) (/ Omc Om)))) (* l (/ (sqrt 0.5) t)))))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1e+28) {
tmp = asin(((l / t) * -sqrt(0.5)));
} else if ((t / l) <= 2e+58) {
tmp = asin(sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l)))))));
} else {
tmp = asin(((1.0 + (-0.5 * ((Om / Omc) / (Omc / Om)))) * (l * (sqrt(0.5) / t))));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-1d+28)) then
tmp = asin(((l / t) * -sqrt(0.5d0)))
else if ((t / l) <= 2d+58) then
tmp = asin(sqrt((1.0d0 / (1.0d0 + (2.0d0 * ((t / l) * (t / l)))))))
else
tmp = asin(((1.0d0 + ((-0.5d0) * ((om / omc) / (omc / om)))) * (l * (sqrt(0.5d0) / t))))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1e+28) {
tmp = Math.asin(((l / t) * -Math.sqrt(0.5)));
} else if ((t / l) <= 2e+58) {
tmp = Math.asin(Math.sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l)))))));
} else {
tmp = Math.asin(((1.0 + (-0.5 * ((Om / Omc) / (Omc / Om)))) * (l * (Math.sqrt(0.5) / t))));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -1e+28: tmp = math.asin(((l / t) * -math.sqrt(0.5))) elif (t / l) <= 2e+58: tmp = math.asin(math.sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l))))))) else: tmp = math.asin(((1.0 + (-0.5 * ((Om / Omc) / (Omc / Om)))) * (l * (math.sqrt(0.5) / t)))) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -1e+28) tmp = asin(Float64(Float64(l / t) * Float64(-sqrt(0.5)))); elseif (Float64(t / l) <= 2e+58) tmp = asin(sqrt(Float64(1.0 / Float64(1.0 + Float64(2.0 * Float64(Float64(t / l) * Float64(t / l))))))); else tmp = asin(Float64(Float64(1.0 + Float64(-0.5 * Float64(Float64(Om / Omc) / Float64(Omc / Om)))) * Float64(l * Float64(sqrt(0.5) / t)))); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -1e+28) tmp = asin(((l / t) * -sqrt(0.5))); elseif ((t / l) <= 2e+58) tmp = asin(sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l))))))); else tmp = asin(((1.0 + (-0.5 * ((Om / Omc) / (Omc / Om)))) * (l * (sqrt(0.5) / t)))); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -1e+28], N[ArcSin[N[(N[(l / t), $MachinePrecision] * (-N[Sqrt[0.5], $MachinePrecision])), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 2e+58], N[ArcSin[N[Sqrt[N[(1.0 / N[(1.0 + N[(2.0 * N[(N[(t / l), $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(N[(1.0 + N[(-0.5 * N[(N[(Om / Omc), $MachinePrecision] / N[(Omc / Om), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(l * N[(N[Sqrt[0.5], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -1 \cdot 10^{+28}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t} \cdot \left(-\sqrt{0.5}\right)\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 2 \cdot 10^{+58}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1}{1 + 2 \cdot \left(\frac{t}{\ell} \cdot \frac{t}{\ell}\right)}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\left(1 + -0.5 \cdot \frac{\frac{Om}{Omc}}{\frac{Omc}{Om}}\right) \cdot \left(\ell \cdot \frac{\sqrt{0.5}}{t}\right)\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -9.99999999999999958e27Initial program 70.1%
Taylor expanded in Om around 0 53.1%
unpow253.1%
unpow253.1%
Simplified53.1%
Taylor expanded in t around -inf 99.5%
associate-*r/99.5%
*-commutative99.5%
neg-mul-199.5%
distribute-rgt-neg-in99.5%
Simplified99.5%
Taylor expanded in l around 0 99.5%
associate-*r/99.5%
associate-*r*99.5%
neg-mul-199.5%
*-commutative99.5%
associate-*l/99.5%
Simplified99.5%
if -9.99999999999999958e27 < (/.f64 t l) < 1.99999999999999989e58Initial program 98.7%
Taylor expanded in Om around 0 82.2%
unpow282.2%
unpow282.2%
Simplified82.2%
times-frac98.0%
Applied egg-rr98.0%
if 1.99999999999999989e58 < (/.f64 t l) Initial program 63.4%
Taylor expanded in t around inf 84.5%
*-commutative84.5%
unpow284.5%
unpow284.5%
times-frac99.4%
unpow299.4%
associate-/l*98.6%
associate-/r/99.4%
Simplified99.4%
Taylor expanded in Om around 0 84.2%
unpow284.2%
unpow284.2%
times-frac97.2%
unpow297.2%
Simplified97.2%
unpow297.2%
clear-num97.2%
un-div-inv97.2%
Applied egg-rr97.2%
Final simplification98.2%
(FPCore (t l Om Omc)
:precision binary64
(if (<= (/ t l) -1e+28)
(asin (* (/ l t) (- (sqrt 0.5))))
(if (<= (/ t l) 2e+144)
(asin (sqrt (/ 1.0 (+ 1.0 (* 2.0 (* (/ t l) (/ t l)))))))
(asin (* l (/ (sqrt 0.5) t))))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1e+28) {
tmp = asin(((l / t) * -sqrt(0.5)));
} else if ((t / l) <= 2e+144) {
tmp = asin(sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l)))))));
} else {
tmp = asin((l * (sqrt(0.5) / t)));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-1d+28)) then
tmp = asin(((l / t) * -sqrt(0.5d0)))
else if ((t / l) <= 2d+144) then
tmp = asin(sqrt((1.0d0 / (1.0d0 + (2.0d0 * ((t / l) * (t / l)))))))
else
tmp = asin((l * (sqrt(0.5d0) / t)))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1e+28) {
tmp = Math.asin(((l / t) * -Math.sqrt(0.5)));
} else if ((t / l) <= 2e+144) {
tmp = Math.asin(Math.sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l)))))));
} else {
tmp = Math.asin((l * (Math.sqrt(0.5) / t)));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -1e+28: tmp = math.asin(((l / t) * -math.sqrt(0.5))) elif (t / l) <= 2e+144: tmp = math.asin(math.sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l))))))) else: tmp = math.asin((l * (math.sqrt(0.5) / t))) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -1e+28) tmp = asin(Float64(Float64(l / t) * Float64(-sqrt(0.5)))); elseif (Float64(t / l) <= 2e+144) tmp = asin(sqrt(Float64(1.0 / Float64(1.0 + Float64(2.0 * Float64(Float64(t / l) * Float64(t / l))))))); else tmp = asin(Float64(l * Float64(sqrt(0.5) / t))); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -1e+28) tmp = asin(((l / t) * -sqrt(0.5))); elseif ((t / l) <= 2e+144) tmp = asin(sqrt((1.0 / (1.0 + (2.0 * ((t / l) * (t / l))))))); else tmp = asin((l * (sqrt(0.5) / t))); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -1e+28], N[ArcSin[N[(N[(l / t), $MachinePrecision] * (-N[Sqrt[0.5], $MachinePrecision])), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 2e+144], N[ArcSin[N[Sqrt[N[(1.0 / N[(1.0 + N[(2.0 * N[(N[(t / l), $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(l * N[(N[Sqrt[0.5], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -1 \cdot 10^{+28}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t} \cdot \left(-\sqrt{0.5}\right)\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 2 \cdot 10^{+144}:\\
\;\;\;\;\sin^{-1} \left(\sqrt{\frac{1}{1 + 2 \cdot \left(\frac{t}{\ell} \cdot \frac{t}{\ell}\right)}}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\ell \cdot \frac{\sqrt{0.5}}{t}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -9.99999999999999958e27Initial program 70.1%
Taylor expanded in Om around 0 53.1%
unpow253.1%
unpow253.1%
Simplified53.1%
Taylor expanded in t around -inf 99.5%
associate-*r/99.5%
*-commutative99.5%
neg-mul-199.5%
distribute-rgt-neg-in99.5%
Simplified99.5%
Taylor expanded in l around 0 99.5%
associate-*r/99.5%
associate-*r*99.5%
neg-mul-199.5%
*-commutative99.5%
associate-*l/99.5%
Simplified99.5%
if -9.99999999999999958e27 < (/.f64 t l) < 2.00000000000000005e144Initial program 98.8%
Taylor expanded in Om around 0 75.9%
unpow275.9%
unpow275.9%
Simplified75.9%
times-frac96.9%
Applied egg-rr96.9%
if 2.00000000000000005e144 < (/.f64 t l) Initial program 46.7%
Taylor expanded in Om around 0 46.7%
unpow246.7%
unpow246.7%
Simplified46.7%
Taylor expanded in t around inf 99.5%
associate-*l/99.6%
*-commutative99.6%
Simplified99.6%
Final simplification98.0%
(FPCore (t l Om Omc)
:precision binary64
(if (<= (/ t l) -1.0)
(asin (* (/ l t) (- (sqrt 0.5))))
(if (<= (/ t l) 0.4)
(asin (- 1.0 (pow (/ t l) 2.0)))
(asin (/ (* l (sqrt 0.5)) t)))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1.0) {
tmp = asin(((l / t) * -sqrt(0.5)));
} else if ((t / l) <= 0.4) {
tmp = asin((1.0 - pow((t / l), 2.0)));
} else {
tmp = asin(((l * sqrt(0.5)) / t));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-1.0d0)) then
tmp = asin(((l / t) * -sqrt(0.5d0)))
else if ((t / l) <= 0.4d0) then
tmp = asin((1.0d0 - ((t / l) ** 2.0d0)))
else
tmp = asin(((l * sqrt(0.5d0)) / t))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1.0) {
tmp = Math.asin(((l / t) * -Math.sqrt(0.5)));
} else if ((t / l) <= 0.4) {
tmp = Math.asin((1.0 - Math.pow((t / l), 2.0)));
} else {
tmp = Math.asin(((l * Math.sqrt(0.5)) / t));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -1.0: tmp = math.asin(((l / t) * -math.sqrt(0.5))) elif (t / l) <= 0.4: tmp = math.asin((1.0 - math.pow((t / l), 2.0))) else: tmp = math.asin(((l * math.sqrt(0.5)) / t)) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -1.0) tmp = asin(Float64(Float64(l / t) * Float64(-sqrt(0.5)))); elseif (Float64(t / l) <= 0.4) tmp = asin(Float64(1.0 - (Float64(t / l) ^ 2.0))); else tmp = asin(Float64(Float64(l * sqrt(0.5)) / t)); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -1.0) tmp = asin(((l / t) * -sqrt(0.5))); elseif ((t / l) <= 0.4) tmp = asin((1.0 - ((t / l) ^ 2.0))); else tmp = asin(((l * sqrt(0.5)) / t)); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -1.0], N[ArcSin[N[(N[(l / t), $MachinePrecision] * (-N[Sqrt[0.5], $MachinePrecision])), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.4], N[ArcSin[N[(1.0 - N[Power[N[(t / l), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision], N[ArcSin[N[(N[(l * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -1:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t} \cdot \left(-\sqrt{0.5}\right)\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.4:\\
\;\;\;\;\sin^{-1} \left(1 - {\left(\frac{t}{\ell}\right)}^{2}\right)\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell \cdot \sqrt{0.5}}{t}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -1Initial program 72.2%
Taylor expanded in Om around 0 54.9%
unpow254.9%
unpow254.9%
Simplified54.9%
Taylor expanded in t around -inf 98.1%
associate-*r/98.1%
*-commutative98.1%
neg-mul-198.1%
distribute-rgt-neg-in98.1%
Simplified98.1%
Taylor expanded in l around 0 98.1%
associate-*r/98.1%
associate-*r*98.1%
neg-mul-198.1%
*-commutative98.1%
associate-*l/98.1%
Simplified98.1%
if -1 < (/.f64 t l) < 0.40000000000000002Initial program 98.6%
Taylor expanded in Om around 0 86.9%
unpow286.9%
unpow286.9%
Simplified86.9%
Taylor expanded in t around 0 86.0%
mul-1-neg86.0%
unsub-neg86.0%
unpow286.0%
unpow286.0%
times-frac96.9%
unpow296.9%
Simplified96.9%
if 0.40000000000000002 < (/.f64 t l) Initial program 68.1%
Taylor expanded in Om around 0 40.0%
unpow240.0%
unpow240.0%
Simplified40.0%
Taylor expanded in t around inf 96.6%
Final simplification97.2%
(FPCore (t l Om Omc) :precision binary64 (if (<= (/ t l) -5e+214) (asin (/ (sqrt 0.5) (/ t l))) (if (<= (/ t l) 0.4) (asin 1.0) (asin (* l (/ (sqrt 0.5) t))))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -5e+214) {
tmp = asin((sqrt(0.5) / (t / l)));
} else if ((t / l) <= 0.4) {
tmp = asin(1.0);
} else {
tmp = asin((l * (sqrt(0.5) / t)));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-5d+214)) then
tmp = asin((sqrt(0.5d0) / (t / l)))
else if ((t / l) <= 0.4d0) then
tmp = asin(1.0d0)
else
tmp = asin((l * (sqrt(0.5d0) / t)))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -5e+214) {
tmp = Math.asin((Math.sqrt(0.5) / (t / l)));
} else if ((t / l) <= 0.4) {
tmp = Math.asin(1.0);
} else {
tmp = Math.asin((l * (Math.sqrt(0.5) / t)));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -5e+214: tmp = math.asin((math.sqrt(0.5) / (t / l))) elif (t / l) <= 0.4: tmp = math.asin(1.0) else: tmp = math.asin((l * (math.sqrt(0.5) / t))) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -5e+214) tmp = asin(Float64(sqrt(0.5) / Float64(t / l))); elseif (Float64(t / l) <= 0.4) tmp = asin(1.0); else tmp = asin(Float64(l * Float64(sqrt(0.5) / t))); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -5e+214) tmp = asin((sqrt(0.5) / (t / l))); elseif ((t / l) <= 0.4) tmp = asin(1.0); else tmp = asin((l * (sqrt(0.5) / t))); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -5e+214], N[ArcSin[N[(N[Sqrt[0.5], $MachinePrecision] / N[(t / l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.4], N[ArcSin[1.0], $MachinePrecision], N[ArcSin[N[(l * N[(N[Sqrt[0.5], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -5 \cdot 10^{+214}:\\
\;\;\;\;\sin^{-1} \left(\frac{\sqrt{0.5}}{\frac{t}{\ell}}\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.4:\\
\;\;\;\;\sin^{-1} 1\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\ell \cdot \frac{\sqrt{0.5}}{t}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -4.99999999999999953e214Initial program 68.5%
Taylor expanded in Om around 0 68.5%
unpow268.5%
unpow268.5%
Simplified68.5%
Taylor expanded in t around inf 68.5%
unpow268.5%
unpow268.5%
times-frac68.5%
Simplified68.5%
Taylor expanded in l around 0 67.9%
associate-/l*68.0%
Simplified68.0%
if -4.99999999999999953e214 < (/.f64 t l) < 0.40000000000000002Initial program 93.2%
Taylor expanded in Om around 0 76.1%
unpow276.1%
unpow276.1%
Simplified76.1%
Taylor expanded in t around 0 65.5%
mul-1-neg65.5%
unpow265.5%
unpow265.5%
Simplified65.5%
Taylor expanded in t around 0 75.1%
if 0.40000000000000002 < (/.f64 t l) Initial program 68.1%
Taylor expanded in Om around 0 40.0%
unpow240.0%
unpow240.0%
Simplified40.0%
Taylor expanded in t around inf 96.6%
associate-*l/96.6%
*-commutative96.6%
Simplified96.6%
Final simplification79.9%
(FPCore (t l Om Omc) :precision binary64 (if (<= (/ t l) -5e+214) (asin (/ (sqrt 0.5) (/ t l))) (if (<= (/ t l) 0.4) (asin 1.0) (asin (/ (* l (sqrt 0.5)) t)))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -5e+214) {
tmp = asin((sqrt(0.5) / (t / l)));
} else if ((t / l) <= 0.4) {
tmp = asin(1.0);
} else {
tmp = asin(((l * sqrt(0.5)) / t));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-5d+214)) then
tmp = asin((sqrt(0.5d0) / (t / l)))
else if ((t / l) <= 0.4d0) then
tmp = asin(1.0d0)
else
tmp = asin(((l * sqrt(0.5d0)) / t))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -5e+214) {
tmp = Math.asin((Math.sqrt(0.5) / (t / l)));
} else if ((t / l) <= 0.4) {
tmp = Math.asin(1.0);
} else {
tmp = Math.asin(((l * Math.sqrt(0.5)) / t));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -5e+214: tmp = math.asin((math.sqrt(0.5) / (t / l))) elif (t / l) <= 0.4: tmp = math.asin(1.0) else: tmp = math.asin(((l * math.sqrt(0.5)) / t)) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -5e+214) tmp = asin(Float64(sqrt(0.5) / Float64(t / l))); elseif (Float64(t / l) <= 0.4) tmp = asin(1.0); else tmp = asin(Float64(Float64(l * sqrt(0.5)) / t)); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -5e+214) tmp = asin((sqrt(0.5) / (t / l))); elseif ((t / l) <= 0.4) tmp = asin(1.0); else tmp = asin(((l * sqrt(0.5)) / t)); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -5e+214], N[ArcSin[N[(N[Sqrt[0.5], $MachinePrecision] / N[(t / l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.4], N[ArcSin[1.0], $MachinePrecision], N[ArcSin[N[(N[(l * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -5 \cdot 10^{+214}:\\
\;\;\;\;\sin^{-1} \left(\frac{\sqrt{0.5}}{\frac{t}{\ell}}\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.4:\\
\;\;\;\;\sin^{-1} 1\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell \cdot \sqrt{0.5}}{t}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -4.99999999999999953e214Initial program 68.5%
Taylor expanded in Om around 0 68.5%
unpow268.5%
unpow268.5%
Simplified68.5%
Taylor expanded in t around inf 68.5%
unpow268.5%
unpow268.5%
times-frac68.5%
Simplified68.5%
Taylor expanded in l around 0 67.9%
associate-/l*68.0%
Simplified68.0%
if -4.99999999999999953e214 < (/.f64 t l) < 0.40000000000000002Initial program 93.2%
Taylor expanded in Om around 0 76.1%
unpow276.1%
unpow276.1%
Simplified76.1%
Taylor expanded in t around 0 65.5%
mul-1-neg65.5%
unpow265.5%
unpow265.5%
Simplified65.5%
Taylor expanded in t around 0 75.1%
if 0.40000000000000002 < (/.f64 t l) Initial program 68.1%
Taylor expanded in Om around 0 40.0%
unpow240.0%
unpow240.0%
Simplified40.0%
Taylor expanded in t around inf 96.6%
Final simplification79.9%
(FPCore (t l Om Omc) :precision binary64 (if (<= (/ t l) -1.0) (asin (/ (- (sqrt 0.5)) (/ t l))) (if (<= (/ t l) 0.4) (asin 1.0) (asin (/ (* l (sqrt 0.5)) t)))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1.0) {
tmp = asin((-sqrt(0.5) / (t / l)));
} else if ((t / l) <= 0.4) {
tmp = asin(1.0);
} else {
tmp = asin(((l * sqrt(0.5)) / t));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-1.0d0)) then
tmp = asin((-sqrt(0.5d0) / (t / l)))
else if ((t / l) <= 0.4d0) then
tmp = asin(1.0d0)
else
tmp = asin(((l * sqrt(0.5d0)) / t))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1.0) {
tmp = Math.asin((-Math.sqrt(0.5) / (t / l)));
} else if ((t / l) <= 0.4) {
tmp = Math.asin(1.0);
} else {
tmp = Math.asin(((l * Math.sqrt(0.5)) / t));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -1.0: tmp = math.asin((-math.sqrt(0.5) / (t / l))) elif (t / l) <= 0.4: tmp = math.asin(1.0) else: tmp = math.asin(((l * math.sqrt(0.5)) / t)) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -1.0) tmp = asin(Float64(Float64(-sqrt(0.5)) / Float64(t / l))); elseif (Float64(t / l) <= 0.4) tmp = asin(1.0); else tmp = asin(Float64(Float64(l * sqrt(0.5)) / t)); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -1.0) tmp = asin((-sqrt(0.5) / (t / l))); elseif ((t / l) <= 0.4) tmp = asin(1.0); else tmp = asin(((l * sqrt(0.5)) / t)); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -1.0], N[ArcSin[N[((-N[Sqrt[0.5], $MachinePrecision]) / N[(t / l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.4], N[ArcSin[1.0], $MachinePrecision], N[ArcSin[N[(N[(l * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -1:\\
\;\;\;\;\sin^{-1} \left(\frac{-\sqrt{0.5}}{\frac{t}{\ell}}\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.4:\\
\;\;\;\;\sin^{-1} 1\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell \cdot \sqrt{0.5}}{t}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -1Initial program 72.2%
Taylor expanded in Om around 0 54.9%
unpow254.9%
unpow254.9%
Simplified54.9%
Taylor expanded in t around inf 53.5%
unpow253.5%
unpow253.5%
times-frac71.9%
Simplified71.9%
Taylor expanded in l around -inf 98.1%
mul-1-neg98.1%
associate-/l*96.3%
Simplified96.3%
if -1 < (/.f64 t l) < 0.40000000000000002Initial program 98.6%
Taylor expanded in Om around 0 86.9%
unpow286.9%
unpow286.9%
Simplified86.9%
Taylor expanded in t around 0 86.0%
mul-1-neg86.0%
unpow286.0%
unpow286.0%
Simplified86.0%
Taylor expanded in t around 0 96.6%
if 0.40000000000000002 < (/.f64 t l) Initial program 68.1%
Taylor expanded in Om around 0 40.0%
unpow240.0%
unpow240.0%
Simplified40.0%
Taylor expanded in t around inf 96.6%
Final simplification96.5%
(FPCore (t l Om Omc) :precision binary64 (if (<= (/ t l) -1.0) (asin (* (/ l t) (- (sqrt 0.5)))) (if (<= (/ t l) 0.4) (asin 1.0) (asin (/ (* l (sqrt 0.5)) t)))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1.0) {
tmp = asin(((l / t) * -sqrt(0.5)));
} else if ((t / l) <= 0.4) {
tmp = asin(1.0);
} else {
tmp = asin(((l * sqrt(0.5)) / t));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if ((t / l) <= (-1.0d0)) then
tmp = asin(((l / t) * -sqrt(0.5d0)))
else if ((t / l) <= 0.4d0) then
tmp = asin(1.0d0)
else
tmp = asin(((l * sqrt(0.5d0)) / t))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if ((t / l) <= -1.0) {
tmp = Math.asin(((l / t) * -Math.sqrt(0.5)));
} else if ((t / l) <= 0.4) {
tmp = Math.asin(1.0);
} else {
tmp = Math.asin(((l * Math.sqrt(0.5)) / t));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if (t / l) <= -1.0: tmp = math.asin(((l / t) * -math.sqrt(0.5))) elif (t / l) <= 0.4: tmp = math.asin(1.0) else: tmp = math.asin(((l * math.sqrt(0.5)) / t)) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (Float64(t / l) <= -1.0) tmp = asin(Float64(Float64(l / t) * Float64(-sqrt(0.5)))); elseif (Float64(t / l) <= 0.4) tmp = asin(1.0); else tmp = asin(Float64(Float64(l * sqrt(0.5)) / t)); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if ((t / l) <= -1.0) tmp = asin(((l / t) * -sqrt(0.5))); elseif ((t / l) <= 0.4) tmp = asin(1.0); else tmp = asin(((l * sqrt(0.5)) / t)); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[N[(t / l), $MachinePrecision], -1.0], N[ArcSin[N[(N[(l / t), $MachinePrecision] * (-N[Sqrt[0.5], $MachinePrecision])), $MachinePrecision]], $MachinePrecision], If[LessEqual[N[(t / l), $MachinePrecision], 0.4], N[ArcSin[1.0], $MachinePrecision], N[ArcSin[N[(N[(l * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{t}{\ell} \leq -1:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell}{t} \cdot \left(-\sqrt{0.5}\right)\right)\\
\mathbf{elif}\;\frac{t}{\ell} \leq 0.4:\\
\;\;\;\;\sin^{-1} 1\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\frac{\ell \cdot \sqrt{0.5}}{t}\right)\\
\end{array}
\end{array}
if (/.f64 t l) < -1Initial program 72.2%
Taylor expanded in Om around 0 54.9%
unpow254.9%
unpow254.9%
Simplified54.9%
Taylor expanded in t around -inf 98.1%
associate-*r/98.1%
*-commutative98.1%
neg-mul-198.1%
distribute-rgt-neg-in98.1%
Simplified98.1%
Taylor expanded in l around 0 98.1%
associate-*r/98.1%
associate-*r*98.1%
neg-mul-198.1%
*-commutative98.1%
associate-*l/98.1%
Simplified98.1%
if -1 < (/.f64 t l) < 0.40000000000000002Initial program 98.6%
Taylor expanded in Om around 0 86.9%
unpow286.9%
unpow286.9%
Simplified86.9%
Taylor expanded in t around 0 86.0%
mul-1-neg86.0%
unpow286.0%
unpow286.0%
Simplified86.0%
Taylor expanded in t around 0 96.6%
if 0.40000000000000002 < (/.f64 t l) Initial program 68.1%
Taylor expanded in Om around 0 40.0%
unpow240.0%
unpow240.0%
Simplified40.0%
Taylor expanded in t around inf 96.6%
Final simplification97.1%
(FPCore (t l Om Omc) :precision binary64 (if (<= t 1.5e+97) (asin 1.0) (asin (* l (/ (sqrt 0.5) t)))))
double code(double t, double l, double Om, double Omc) {
double tmp;
if (t <= 1.5e+97) {
tmp = asin(1.0);
} else {
tmp = asin((l * (sqrt(0.5) / t)));
}
return tmp;
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
real(8) :: tmp
if (t <= 1.5d+97) then
tmp = asin(1.0d0)
else
tmp = asin((l * (sqrt(0.5d0) / t)))
end if
code = tmp
end function
public static double code(double t, double l, double Om, double Omc) {
double tmp;
if (t <= 1.5e+97) {
tmp = Math.asin(1.0);
} else {
tmp = Math.asin((l * (Math.sqrt(0.5) / t)));
}
return tmp;
}
def code(t, l, Om, Omc): tmp = 0 if t <= 1.5e+97: tmp = math.asin(1.0) else: tmp = math.asin((l * (math.sqrt(0.5) / t))) return tmp
function code(t, l, Om, Omc) tmp = 0.0 if (t <= 1.5e+97) tmp = asin(1.0); else tmp = asin(Float64(l * Float64(sqrt(0.5) / t))); end return tmp end
function tmp_2 = code(t, l, Om, Omc) tmp = 0.0; if (t <= 1.5e+97) tmp = asin(1.0); else tmp = asin((l * (sqrt(0.5) / t))); end tmp_2 = tmp; end
code[t_, l_, Om_, Omc_] := If[LessEqual[t, 1.5e+97], N[ArcSin[1.0], $MachinePrecision], N[ArcSin[N[(l * N[(N[Sqrt[0.5], $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.5 \cdot 10^{+97}:\\
\;\;\;\;\sin^{-1} 1\\
\mathbf{else}:\\
\;\;\;\;\sin^{-1} \left(\ell \cdot \frac{\sqrt{0.5}}{t}\right)\\
\end{array}
\end{array}
if t < 1.4999999999999999e97Initial program 84.5%
Taylor expanded in Om around 0 66.3%
unpow266.3%
unpow266.3%
Simplified66.3%
Taylor expanded in t around 0 45.6%
mul-1-neg45.6%
unpow245.6%
unpow245.6%
Simplified45.6%
Taylor expanded in t around 0 53.1%
if 1.4999999999999999e97 < t Initial program 76.4%
Taylor expanded in Om around 0 61.0%
unpow261.0%
unpow261.0%
Simplified61.0%
Taylor expanded in t around inf 67.0%
associate-*l/67.0%
*-commutative67.0%
Simplified67.0%
Final simplification55.7%
(FPCore (t l Om Omc) :precision binary64 (asin 1.0))
double code(double t, double l, double Om, double Omc) {
return asin(1.0);
}
real(8) function code(t, l, om, omc)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: om
real(8), intent (in) :: omc
code = asin(1.0d0)
end function
public static double code(double t, double l, double Om, double Omc) {
return Math.asin(1.0);
}
def code(t, l, Om, Omc): return math.asin(1.0)
function code(t, l, Om, Omc) return asin(1.0) end
function tmp = code(t, l, Om, Omc) tmp = asin(1.0); end
code[t_, l_, Om_, Omc_] := N[ArcSin[1.0], $MachinePrecision]
\begin{array}{l}
\\
\sin^{-1} 1
\end{array}
Initial program 83.0%
Taylor expanded in Om around 0 65.3%
unpow265.3%
unpow265.3%
Simplified65.3%
Taylor expanded in t around 0 38.6%
mul-1-neg38.6%
unpow238.6%
unpow238.6%
Simplified38.6%
Taylor expanded in t around 0 46.0%
Final simplification46.0%
herbie shell --seed 2023240
(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)))))))