
(FPCore (x l t) :precision binary64 (/ (* (sqrt 2.0) t) (sqrt (- (* (/ (+ x 1.0) (- x 1.0)) (+ (* l l) (* 2.0 (* t t)))) (* l l)))))
double code(double x, double l, double t) {
return (sqrt(2.0) * t) / sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
code = (sqrt(2.0d0) * t) / sqrt(((((x + 1.0d0) / (x - 1.0d0)) * ((l * l) + (2.0d0 * (t * t)))) - (l * l)))
end function
public static double code(double x, double l, double t) {
return (Math.sqrt(2.0) * t) / Math.sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
}
def code(x, l, t): return (math.sqrt(2.0) * t) / math.sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)))
function code(x, l, t) return Float64(Float64(sqrt(2.0) * t) / sqrt(Float64(Float64(Float64(Float64(x + 1.0) / Float64(x - 1.0)) * Float64(Float64(l * l) + Float64(2.0 * Float64(t * t)))) - Float64(l * l)))) end
function tmp = code(x, l, t) tmp = (sqrt(2.0) * t) / sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l))); end
code[x_, l_, t_] := N[(N[(N[Sqrt[2.0], $MachinePrecision] * t), $MachinePrecision] / N[Sqrt[N[(N[(N[(N[(x + 1.0), $MachinePrecision] / N[(x - 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[(l * l), $MachinePrecision] + N[(2.0 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(l * l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sqrt{2} \cdot t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x l t) :precision binary64 (/ (* (sqrt 2.0) t) (sqrt (- (* (/ (+ x 1.0) (- x 1.0)) (+ (* l l) (* 2.0 (* t t)))) (* l l)))))
double code(double x, double l, double t) {
return (sqrt(2.0) * t) / sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
code = (sqrt(2.0d0) * t) / sqrt(((((x + 1.0d0) / (x - 1.0d0)) * ((l * l) + (2.0d0 * (t * t)))) - (l * l)))
end function
public static double code(double x, double l, double t) {
return (Math.sqrt(2.0) * t) / Math.sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)));
}
def code(x, l, t): return (math.sqrt(2.0) * t) / math.sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l)))
function code(x, l, t) return Float64(Float64(sqrt(2.0) * t) / sqrt(Float64(Float64(Float64(Float64(x + 1.0) / Float64(x - 1.0)) * Float64(Float64(l * l) + Float64(2.0 * Float64(t * t)))) - Float64(l * l)))) end
function tmp = code(x, l, t) tmp = (sqrt(2.0) * t) / sqrt(((((x + 1.0) / (x - 1.0)) * ((l * l) + (2.0 * (t * t)))) - (l * l))); end
code[x_, l_, t_] := N[(N[(N[Sqrt[2.0], $MachinePrecision] * t), $MachinePrecision] / N[Sqrt[N[(N[(N[(N[(x + 1.0), $MachinePrecision] / N[(x - 1.0), $MachinePrecision]), $MachinePrecision] * N[(N[(l * l), $MachinePrecision] + N[(2.0 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(l * l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\sqrt{2} \cdot t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}
\end{array}
(FPCore (x l t)
:precision binary64
(let* ((t_1 (fma 2.0 (* t t) (* l l)))
(t_2 (* t (sqrt 2.0)))
(t_3
(sqrt
(+ (/ (* l l) x) (+ (* 2.0 (+ (* t t) (/ (* t t) x))) (/ t_1 x))))))
(if (<= t -3.8e+37)
(cbrt
(pow (* (sqrt 2.0) (- (sqrt (* 0.5 (/ (+ x -1.0) (+ x 1.0)))))) 3.0))
(if (<= t -4.2e-217)
(/ t_2 t_3)
(if (<= t 3.8e-162)
(/ (fabs t_2) (fma 0.5 (/ (+ t_1 t_1) (* (sqrt 2.0) (* t x))) t_2))
(if (<= t 2.7e+91) (/ (sqrt (* t (* t 2.0))) t_3) (/ t_2 t_2)))))))
double code(double x, double l, double t) {
double t_1 = fma(2.0, (t * t), (l * l));
double t_2 = t * sqrt(2.0);
double t_3 = sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (t_1 / x))));
double tmp;
if (t <= -3.8e+37) {
tmp = cbrt(pow((sqrt(2.0) * -sqrt((0.5 * ((x + -1.0) / (x + 1.0))))), 3.0));
} else if (t <= -4.2e-217) {
tmp = t_2 / t_3;
} else if (t <= 3.8e-162) {
tmp = fabs(t_2) / fma(0.5, ((t_1 + t_1) / (sqrt(2.0) * (t * x))), t_2);
} else if (t <= 2.7e+91) {
tmp = sqrt((t * (t * 2.0))) / t_3;
} else {
tmp = t_2 / t_2;
}
return tmp;
}
function code(x, l, t) t_1 = fma(2.0, Float64(t * t), Float64(l * l)) t_2 = Float64(t * sqrt(2.0)) t_3 = sqrt(Float64(Float64(Float64(l * l) / x) + Float64(Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))) + Float64(t_1 / x)))) tmp = 0.0 if (t <= -3.8e+37) tmp = cbrt((Float64(sqrt(2.0) * Float64(-sqrt(Float64(0.5 * Float64(Float64(x + -1.0) / Float64(x + 1.0)))))) ^ 3.0)); elseif (t <= -4.2e-217) tmp = Float64(t_2 / t_3); elseif (t <= 3.8e-162) tmp = Float64(abs(t_2) / fma(0.5, Float64(Float64(t_1 + t_1) / Float64(sqrt(2.0) * Float64(t * x))), t_2)); elseif (t <= 2.7e+91) tmp = Float64(sqrt(Float64(t * Float64(t * 2.0))) / t_3); else tmp = Float64(t_2 / t_2); end return tmp end
code[x_, l_, t_] := Block[{t$95$1 = N[(2.0 * N[(t * t), $MachinePrecision] + N[(l * l), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[Sqrt[N[(N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision] + N[(N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, -3.8e+37], N[Power[N[Power[N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(0.5 * N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision], If[LessEqual[t, -4.2e-217], N[(t$95$2 / t$95$3), $MachinePrecision], If[LessEqual[t, 3.8e-162], N[(N[Abs[t$95$2], $MachinePrecision] / N[(0.5 * N[(N[(t$95$1 + t$95$1), $MachinePrecision] / N[(N[Sqrt[2.0], $MachinePrecision] * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.7e+91], N[(N[Sqrt[N[(t * N[(t * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$3), $MachinePrecision], N[(t$95$2 / t$95$2), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)\\
t_2 := t \cdot \sqrt{2}\\
t_3 := \sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{t_1}{x}\right)}\\
\mathbf{if}\;t \leq -3.8 \cdot 10^{+37}:\\
\;\;\;\;\sqrt[3]{{\left(\sqrt{2} \cdot \left(-\sqrt{0.5 \cdot \frac{x + -1}{x + 1}}\right)\right)}^{3}}\\
\mathbf{elif}\;t \leq -4.2 \cdot 10^{-217}:\\
\;\;\;\;\frac{t_2}{t_3}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-162}:\\
\;\;\;\;\frac{\left|t_2\right|}{\mathsf{fma}\left(0.5, \frac{t_1 + t_1}{\sqrt{2} \cdot \left(t \cdot x\right)}, t_2\right)}\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+91}:\\
\;\;\;\;\frac{\sqrt{t \cdot \left(t \cdot 2\right)}}{t_3}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_2}{t_2}\\
\end{array}
\end{array}
if t < -3.7999999999999999e37Initial program 33.5%
Taylor expanded in t around -inf 94.2%
mul-1-neg94.2%
associate-*l*94.2%
distribute-rgt-neg-in94.2%
+-commutative94.2%
sub-neg94.2%
metadata-eval94.2%
+-commutative94.2%
Simplified94.2%
add-cbrt-cube95.6%
Applied egg-rr95.6%
associate-*l*95.6%
cube-unmult95.6%
Simplified95.6%
if -3.7999999999999999e37 < t < -4.2e-217Initial program 33.2%
Taylor expanded in x around inf 72.5%
associate--l+72.5%
unpow272.5%
distribute-lft-out72.5%
unpow272.5%
unpow272.5%
associate-*r/72.5%
mul-1-neg72.5%
+-commutative72.5%
unpow272.5%
unpow272.5%
fma-udef72.5%
Simplified72.5%
if -4.2e-217 < t < 3.80000000000000005e-162Initial program 8.7%
Taylor expanded in x around inf 52.0%
fma-def52.0%
+-commutative52.0%
unpow252.0%
unpow252.0%
fma-udef52.0%
mul-1-neg52.0%
+-commutative52.0%
unpow252.0%
unpow252.0%
fma-udef52.0%
*-commutative52.0%
Simplified52.0%
add-sqr-sqrt34.8%
sqrt-prod32.2%
sqrt-prod32.2%
add-sqr-sqrt32.2%
rem-sqrt-square32.2%
sqrt-prod32.2%
sqrt-prod34.8%
add-sqr-sqrt70.8%
*-commutative70.8%
Applied egg-rr70.8%
if 3.80000000000000005e-162 < t < 2.7e91Initial program 65.1%
Taylor expanded in x around inf 98.9%
associate--l+98.9%
unpow298.9%
distribute-lft-out98.9%
unpow298.9%
unpow298.9%
associate-*r/98.9%
mul-1-neg98.9%
+-commutative98.9%
unpow298.9%
unpow298.9%
fma-udef98.9%
Simplified98.9%
add-sqr-sqrt98.4%
sqrt-prod99.5%
sqrt-prod100.0%
pow1/2100.0%
Applied egg-rr100.0%
unpow1/2100.0%
associate-*r*100.0%
Simplified100.0%
if 2.7e91 < t Initial program 27.7%
Taylor expanded in x around inf 96.3%
Final simplification89.3%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0)))
(t_2
(sqrt
(+
(/ (* l l) x)
(+
(* 2.0 (+ (* t t) (/ (* t t) x)))
(/ (fma 2.0 (* t t) (* l l)) x))))))
(if (<= t -2e+37)
(cbrt
(pow (* (sqrt 2.0) (- (sqrt (* 0.5 (/ (+ x -1.0) (+ x 1.0)))))) 3.0))
(if (<= t -1.8e-293)
(/ t_1 t_2)
(if (<= t 3.8e-162)
(/ t_1 (fma 0.5 (* 2.0 (/ (* l l) (* (sqrt 2.0) (* t x)))) t_1))
(if (<= t 5.2e+90) (/ (sqrt (* t (* t 2.0))) t_2) (/ t_1 t_1)))))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double t_2 = sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (fma(2.0, (t * t), (l * l)) / x))));
double tmp;
if (t <= -2e+37) {
tmp = cbrt(pow((sqrt(2.0) * -sqrt((0.5 * ((x + -1.0) / (x + 1.0))))), 3.0));
} else if (t <= -1.8e-293) {
tmp = t_1 / t_2;
} else if (t <= 3.8e-162) {
tmp = t_1 / fma(0.5, (2.0 * ((l * l) / (sqrt(2.0) * (t * x)))), t_1);
} else if (t <= 5.2e+90) {
tmp = sqrt((t * (t * 2.0))) / t_2;
} else {
tmp = t_1 / t_1;
}
return tmp;
}
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) t_2 = sqrt(Float64(Float64(Float64(l * l) / x) + Float64(Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))) + Float64(fma(2.0, Float64(t * t), Float64(l * l)) / x)))) tmp = 0.0 if (t <= -2e+37) tmp = cbrt((Float64(sqrt(2.0) * Float64(-sqrt(Float64(0.5 * Float64(Float64(x + -1.0) / Float64(x + 1.0)))))) ^ 3.0)); elseif (t <= -1.8e-293) tmp = Float64(t_1 / t_2); elseif (t <= 3.8e-162) tmp = Float64(t_1 / fma(0.5, Float64(2.0 * Float64(Float64(l * l) / Float64(sqrt(2.0) * Float64(t * x)))), t_1)); elseif (t <= 5.2e+90) tmp = Float64(sqrt(Float64(t * Float64(t * 2.0))) / t_2); else tmp = Float64(t_1 / t_1); end return tmp end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Sqrt[N[(N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision] + N[(N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 * N[(t * t), $MachinePrecision] + N[(l * l), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t, -2e+37], N[Power[N[Power[N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(0.5 * N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision], If[LessEqual[t, -1.8e-293], N[(t$95$1 / t$95$2), $MachinePrecision], If[LessEqual[t, 3.8e-162], N[(t$95$1 / N[(0.5 * N[(2.0 * N[(N[(l * l), $MachinePrecision] / N[(N[Sqrt[2.0], $MachinePrecision] * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+90], N[(N[Sqrt[N[(t * N[(t * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / t$95$2), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
t_2 := \sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)}{x}\right)}\\
\mathbf{if}\;t \leq -2 \cdot 10^{+37}:\\
\;\;\;\;\sqrt[3]{{\left(\sqrt{2} \cdot \left(-\sqrt{0.5 \cdot \frac{x + -1}{x + 1}}\right)\right)}^{3}}\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-293}:\\
\;\;\;\;\frac{t_1}{t_2}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-162}:\\
\;\;\;\;\frac{t_1}{\mathsf{fma}\left(0.5, 2 \cdot \frac{\ell \cdot \ell}{\sqrt{2} \cdot \left(t \cdot x\right)}, t_1\right)}\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+90}:\\
\;\;\;\;\frac{\sqrt{t \cdot \left(t \cdot 2\right)}}{t_2}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -1.99999999999999991e37Initial program 33.5%
Taylor expanded in t around -inf 94.2%
mul-1-neg94.2%
associate-*l*94.2%
distribute-rgt-neg-in94.2%
+-commutative94.2%
sub-neg94.2%
metadata-eval94.2%
+-commutative94.2%
Simplified94.2%
add-cbrt-cube95.6%
Applied egg-rr95.6%
associate-*l*95.6%
cube-unmult95.6%
Simplified95.6%
if -1.99999999999999991e37 < t < -1.79999999999999993e-293Initial program 29.2%
Taylor expanded in x around inf 66.5%
associate--l+66.5%
unpow266.5%
distribute-lft-out66.5%
unpow266.5%
unpow266.5%
associate-*r/66.5%
mul-1-neg66.5%
+-commutative66.5%
unpow266.5%
unpow266.5%
fma-udef66.5%
Simplified66.5%
if -1.79999999999999993e-293 < t < 3.80000000000000005e-162Initial program 7.3%
Taylor expanded in x around inf 60.5%
fma-def60.5%
+-commutative60.5%
unpow260.5%
unpow260.5%
fma-udef60.5%
mul-1-neg60.5%
+-commutative60.5%
unpow260.5%
unpow260.5%
fma-udef60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in t around 0 60.5%
unpow260.5%
Simplified60.5%
if 3.80000000000000005e-162 < t < 5.1999999999999997e90Initial program 65.1%
Taylor expanded in x around inf 98.9%
associate--l+98.9%
unpow298.9%
distribute-lft-out98.9%
unpow298.9%
unpow298.9%
associate-*r/98.9%
mul-1-neg98.9%
+-commutative98.9%
unpow298.9%
unpow298.9%
fma-udef98.9%
Simplified98.9%
add-sqr-sqrt98.4%
sqrt-prod99.5%
sqrt-prod100.0%
pow1/2100.0%
Applied egg-rr100.0%
unpow1/2100.0%
associate-*r*100.0%
Simplified100.0%
if 5.1999999999999997e90 < t Initial program 27.7%
Taylor expanded in x around inf 96.3%
Final simplification87.1%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= t -1e+39)
(cbrt
(pow (* (sqrt 2.0) (- (sqrt (* 0.5 (/ (+ x -1.0) (+ x 1.0)))))) 3.0))
(if (<= t 6.4e+90)
(/
t_1
(sqrt
(+
(/ (* l l) x)
(+
(* 2.0 (+ (* t t) (/ (* t t) x)))
(/ (fma 2.0 (* t t) (* l l)) x)))))
(/ t_1 t_1)))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double tmp;
if (t <= -1e+39) {
tmp = cbrt(pow((sqrt(2.0) * -sqrt((0.5 * ((x + -1.0) / (x + 1.0))))), 3.0));
} else if (t <= 6.4e+90) {
tmp = t_1 / sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (fma(2.0, (t * t), (l * l)) / x))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (t <= -1e+39) tmp = cbrt((Float64(sqrt(2.0) * Float64(-sqrt(Float64(0.5 * Float64(Float64(x + -1.0) / Float64(x + 1.0)))))) ^ 3.0)); elseif (t <= 6.4e+90) tmp = Float64(t_1 / sqrt(Float64(Float64(Float64(l * l) / x) + Float64(Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))) + Float64(fma(2.0, Float64(t * t), Float64(l * l)) / x))))); else tmp = Float64(t_1 / t_1); end return tmp end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e+39], N[Power[N[Power[N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(0.5 * N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision], If[LessEqual[t, 6.4e+90], N[(t$95$1 / N[Sqrt[N[(N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision] + N[(N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 * N[(t * t), $MachinePrecision] + N[(l * l), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -1 \cdot 10^{+39}:\\
\;\;\;\;\sqrt[3]{{\left(\sqrt{2} \cdot \left(-\sqrt{0.5 \cdot \frac{x + -1}{x + 1}}\right)\right)}^{3}}\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{+90}:\\
\;\;\;\;\frac{t_1}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)}{x}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -9.9999999999999994e38Initial program 33.5%
Taylor expanded in t around -inf 94.2%
mul-1-neg94.2%
associate-*l*94.2%
distribute-rgt-neg-in94.2%
+-commutative94.2%
sub-neg94.2%
metadata-eval94.2%
+-commutative94.2%
Simplified94.2%
add-cbrt-cube95.6%
Applied egg-rr95.6%
associate-*l*95.6%
cube-unmult95.6%
Simplified95.6%
if -9.9999999999999994e38 < t < 6.39999999999999997e90Initial program 41.5%
Taylor expanded in x around inf 76.5%
associate--l+76.5%
unpow276.5%
distribute-lft-out76.5%
unpow276.5%
unpow276.5%
associate-*r/76.5%
mul-1-neg76.5%
+-commutative76.5%
unpow276.5%
unpow276.5%
fma-udef76.5%
Simplified76.5%
if 6.39999999999999997e90 < t Initial program 27.7%
Taylor expanded in x around inf 96.3%
Final simplification85.2%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= t -2.5e+38)
(cbrt (* (* 2.0 (sqrt 2.0)) (* (sqrt 0.5) (- 0.5))))
(if (<= t 5.3e+90)
(/
t_1
(sqrt
(+
(/ (* l l) x)
(+
(* 2.0 (+ (* t t) (/ (* t t) x)))
(/ (fma 2.0 (* t t) (* l l)) x)))))
(/ t_1 t_1)))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double tmp;
if (t <= -2.5e+38) {
tmp = cbrt(((2.0 * sqrt(2.0)) * (sqrt(0.5) * -0.5)));
} else if (t <= 5.3e+90) {
tmp = t_1 / sqrt((((l * l) / x) + ((2.0 * ((t * t) + ((t * t) / x))) + (fma(2.0, (t * t), (l * l)) / x))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (t <= -2.5e+38) tmp = cbrt(Float64(Float64(2.0 * sqrt(2.0)) * Float64(sqrt(0.5) * Float64(-0.5)))); elseif (t <= 5.3e+90) tmp = Float64(t_1 / sqrt(Float64(Float64(Float64(l * l) / x) + Float64(Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))) + Float64(fma(2.0, Float64(t * t), Float64(l * l)) / x))))); else tmp = Float64(t_1 / t_1); end return tmp end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+38], N[Power[N[(N[(2.0 * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[0.5], $MachinePrecision] * (-0.5)), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], If[LessEqual[t, 5.3e+90], N[(t$95$1 / N[Sqrt[N[(N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision] + N[(N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 * N[(t * t), $MachinePrecision] + N[(l * l), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+38}:\\
\;\;\;\;\sqrt[3]{\left(2 \cdot \sqrt{2}\right) \cdot \left(\sqrt{0.5} \cdot \left(-0.5\right)\right)}\\
\mathbf{elif}\;t \leq 5.3 \cdot 10^{+90}:\\
\;\;\;\;\frac{t_1}{\sqrt{\frac{\ell \cdot \ell}{x} + \left(2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right) + \frac{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)}{x}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -2.49999999999999985e38Initial program 33.5%
Taylor expanded in t around -inf 94.2%
mul-1-neg94.2%
associate-*l*94.2%
distribute-rgt-neg-in94.2%
+-commutative94.2%
sub-neg94.2%
metadata-eval94.2%
+-commutative94.2%
Simplified94.2%
add-cbrt-cube95.6%
Applied egg-rr95.6%
associate-*l*95.6%
cube-unmult95.6%
Simplified95.6%
Taylor expanded in x around inf 94.9%
mul-1-neg94.9%
distribute-rgt-neg-in94.9%
unpow394.9%
rem-square-sqrt94.9%
unpow394.9%
rem-square-sqrt94.9%
Simplified94.9%
if -2.49999999999999985e38 < t < 5.29999999999999979e90Initial program 41.5%
Taylor expanded in x around inf 76.5%
associate--l+76.5%
unpow276.5%
distribute-lft-out76.5%
unpow276.5%
unpow276.5%
associate-*r/76.5%
mul-1-neg76.5%
+-commutative76.5%
unpow276.5%
unpow276.5%
fma-udef76.5%
Simplified76.5%
if 5.29999999999999979e90 < t Initial program 27.7%
Taylor expanded in x around inf 96.3%
Final simplification85.1%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))) (t_2 (/ (* l l) x)))
(if (<= t -1e+38)
(cbrt (* (* 2.0 (sqrt 2.0)) (* (sqrt 0.5) (- 0.5))))
(if (<= t 8.5e+16)
(/ t_1 (sqrt (+ t_2 (+ t_2 (* 2.0 (+ (* t t) (/ (* t t) x)))))))
(/ t_1 t_1)))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double t_2 = (l * l) / x;
double tmp;
if (t <= -1e+38) {
tmp = cbrt(((2.0 * sqrt(2.0)) * (sqrt(0.5) * -0.5)));
} else if (t <= 8.5e+16) {
tmp = t_1 / sqrt((t_2 + (t_2 + (2.0 * ((t * t) + ((t * t) / x))))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
public static double code(double x, double l, double t) {
double t_1 = t * Math.sqrt(2.0);
double t_2 = (l * l) / x;
double tmp;
if (t <= -1e+38) {
tmp = Math.cbrt(((2.0 * Math.sqrt(2.0)) * (Math.sqrt(0.5) * -0.5)));
} else if (t <= 8.5e+16) {
tmp = t_1 / Math.sqrt((t_2 + (t_2 + (2.0 * ((t * t) + ((t * t) / x))))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) t_2 = Float64(Float64(l * l) / x) tmp = 0.0 if (t <= -1e+38) tmp = cbrt(Float64(Float64(2.0 * sqrt(2.0)) * Float64(sqrt(0.5) * Float64(-0.5)))); elseif (t <= 8.5e+16) tmp = Float64(t_1 / sqrt(Float64(t_2 + Float64(t_2 + Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))))))); else tmp = Float64(t_1 / t_1); end return tmp end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t, -1e+38], N[Power[N[(N[(2.0 * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * N[(N[Sqrt[0.5], $MachinePrecision] * (-0.5)), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], If[LessEqual[t, 8.5e+16], N[(t$95$1 / N[Sqrt[N[(t$95$2 + N[(t$95$2 + N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
t_2 := \frac{\ell \cdot \ell}{x}\\
\mathbf{if}\;t \leq -1 \cdot 10^{+38}:\\
\;\;\;\;\sqrt[3]{\left(2 \cdot \sqrt{2}\right) \cdot \left(\sqrt{0.5} \cdot \left(-0.5\right)\right)}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+16}:\\
\;\;\;\;\frac{t_1}{\sqrt{t_2 + \left(t_2 + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -9.99999999999999977e37Initial program 33.5%
Taylor expanded in t around -inf 94.2%
mul-1-neg94.2%
associate-*l*94.2%
distribute-rgt-neg-in94.2%
+-commutative94.2%
sub-neg94.2%
metadata-eval94.2%
+-commutative94.2%
Simplified94.2%
add-cbrt-cube95.6%
Applied egg-rr95.6%
associate-*l*95.6%
cube-unmult95.6%
Simplified95.6%
Taylor expanded in x around inf 94.9%
mul-1-neg94.9%
distribute-rgt-neg-in94.9%
unpow394.9%
rem-square-sqrt94.9%
unpow394.9%
rem-square-sqrt94.9%
Simplified94.9%
if -9.99999999999999977e37 < t < 8.5e16Initial program 33.5%
Taylor expanded in x around inf 72.7%
associate--l+72.7%
unpow272.7%
distribute-lft-out72.7%
unpow272.7%
unpow272.7%
associate-*r/72.7%
mul-1-neg72.7%
+-commutative72.7%
unpow272.7%
unpow272.7%
fma-udef72.7%
Simplified72.7%
Taylor expanded in t around 0 72.6%
associate-*r/72.6%
mul-1-neg72.6%
unpow272.6%
distribute-rgt-neg-in72.6%
Simplified72.6%
if 8.5e16 < t Initial program 45.5%
Taylor expanded in x around inf 96.6%
Final simplification84.8%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))) (t_2 (/ (* l l) x)))
(if (<= t -6.5e+50)
(* (sqrt 2.0) (- (sqrt (* 0.5 (/ (+ x -1.0) (+ x 1.0))))))
(if (<= t 2.1e+15)
(/ t_1 (sqrt (+ t_2 (+ t_2 (* 2.0 (+ (* t t) (/ (* t t) x)))))))
(/ t_1 t_1)))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double t_2 = (l * l) / x;
double tmp;
if (t <= -6.5e+50) {
tmp = sqrt(2.0) * -sqrt((0.5 * ((x + -1.0) / (x + 1.0))));
} else if (t <= 2.1e+15) {
tmp = t_1 / sqrt((t_2 + (t_2 + (2.0 * ((t * t) + ((t * t) / x))))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * sqrt(2.0d0)
t_2 = (l * l) / x
if (t <= (-6.5d+50)) then
tmp = sqrt(2.0d0) * -sqrt((0.5d0 * ((x + (-1.0d0)) / (x + 1.0d0))))
else if (t <= 2.1d+15) then
tmp = t_1 / sqrt((t_2 + (t_2 + (2.0d0 * ((t * t) + ((t * t) / x))))))
else
tmp = t_1 / t_1
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double t_1 = t * Math.sqrt(2.0);
double t_2 = (l * l) / x;
double tmp;
if (t <= -6.5e+50) {
tmp = Math.sqrt(2.0) * -Math.sqrt((0.5 * ((x + -1.0) / (x + 1.0))));
} else if (t <= 2.1e+15) {
tmp = t_1 / Math.sqrt((t_2 + (t_2 + (2.0 * ((t * t) + ((t * t) / x))))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
def code(x, l, t): t_1 = t * math.sqrt(2.0) t_2 = (l * l) / x tmp = 0 if t <= -6.5e+50: tmp = math.sqrt(2.0) * -math.sqrt((0.5 * ((x + -1.0) / (x + 1.0)))) elif t <= 2.1e+15: tmp = t_1 / math.sqrt((t_2 + (t_2 + (2.0 * ((t * t) + ((t * t) / x)))))) else: tmp = t_1 / t_1 return tmp
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) t_2 = Float64(Float64(l * l) / x) tmp = 0.0 if (t <= -6.5e+50) tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(0.5 * Float64(Float64(x + -1.0) / Float64(x + 1.0)))))); elseif (t <= 2.1e+15) tmp = Float64(t_1 / sqrt(Float64(t_2 + Float64(t_2 + Float64(2.0 * Float64(Float64(t * t) + Float64(Float64(t * t) / x))))))); else tmp = Float64(t_1 / t_1); end return tmp end
function tmp_2 = code(x, l, t) t_1 = t * sqrt(2.0); t_2 = (l * l) / x; tmp = 0.0; if (t <= -6.5e+50) tmp = sqrt(2.0) * -sqrt((0.5 * ((x + -1.0) / (x + 1.0)))); elseif (t <= 2.1e+15) tmp = t_1 / sqrt((t_2 + (t_2 + (2.0 * ((t * t) + ((t * t) / x)))))); else tmp = t_1 / t_1; end tmp_2 = tmp; end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(l * l), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t, -6.5e+50], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(0.5 * N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], If[LessEqual[t, 2.1e+15], N[(t$95$1 / N[Sqrt[N[(t$95$2 + N[(t$95$2 + N[(2.0 * N[(N[(t * t), $MachinePrecision] + N[(N[(t * t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
t_2 := \frac{\ell \cdot \ell}{x}\\
\mathbf{if}\;t \leq -6.5 \cdot 10^{+50}:\\
\;\;\;\;\sqrt{2} \cdot \left(-\sqrt{0.5 \cdot \frac{x + -1}{x + 1}}\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+15}:\\
\;\;\;\;\frac{t_1}{\sqrt{t_2 + \left(t_2 + 2 \cdot \left(t \cdot t + \frac{t \cdot t}{x}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -6.5000000000000003e50Initial program 30.3%
Taylor expanded in t around -inf 94.0%
mul-1-neg94.0%
associate-*l*94.0%
distribute-rgt-neg-in94.0%
+-commutative94.0%
sub-neg94.0%
metadata-eval94.0%
+-commutative94.0%
Simplified94.0%
pow194.0%
sqrt-unprod94.0%
+-commutative94.0%
Applied egg-rr94.0%
unpow194.0%
Simplified94.0%
if -6.5000000000000003e50 < t < 2.1e15Initial program 35.1%
Taylor expanded in x around inf 73.4%
associate--l+73.4%
unpow273.4%
distribute-lft-out73.4%
unpow273.4%
unpow273.4%
associate-*r/73.4%
mul-1-neg73.4%
+-commutative73.4%
unpow273.4%
unpow273.4%
fma-udef73.4%
Simplified73.4%
Taylor expanded in t around 0 73.2%
associate-*r/73.2%
mul-1-neg73.2%
unpow273.2%
distribute-rgt-neg-in73.2%
Simplified73.2%
if 2.1e15 < t Initial program 45.5%
Taylor expanded in x around inf 96.6%
Final simplification84.6%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= t -2.35e-147)
(* (sqrt 2.0) (* (sqrt 0.5) (- -1.0 (/ -1.0 x))))
(if (<= t 4.4e-119) (/ t_1 (sqrt (* 2.0 (/ l (/ x l))))) (/ t_1 t_1)))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double tmp;
if (t <= -2.35e-147) {
tmp = sqrt(2.0) * (sqrt(0.5) * (-1.0 - (-1.0 / x)));
} else if (t <= 4.4e-119) {
tmp = t_1 / sqrt((2.0 * (l / (x / l))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = t * sqrt(2.0d0)
if (t <= (-2.35d-147)) then
tmp = sqrt(2.0d0) * (sqrt(0.5d0) * ((-1.0d0) - ((-1.0d0) / x)))
else if (t <= 4.4d-119) then
tmp = t_1 / sqrt((2.0d0 * (l / (x / l))))
else
tmp = t_1 / t_1
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double t_1 = t * Math.sqrt(2.0);
double tmp;
if (t <= -2.35e-147) {
tmp = Math.sqrt(2.0) * (Math.sqrt(0.5) * (-1.0 - (-1.0 / x)));
} else if (t <= 4.4e-119) {
tmp = t_1 / Math.sqrt((2.0 * (l / (x / l))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
def code(x, l, t): t_1 = t * math.sqrt(2.0) tmp = 0 if t <= -2.35e-147: tmp = math.sqrt(2.0) * (math.sqrt(0.5) * (-1.0 - (-1.0 / x))) elif t <= 4.4e-119: tmp = t_1 / math.sqrt((2.0 * (l / (x / l)))) else: tmp = t_1 / t_1 return tmp
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (t <= -2.35e-147) tmp = Float64(sqrt(2.0) * Float64(sqrt(0.5) * Float64(-1.0 - Float64(-1.0 / x)))); elseif (t <= 4.4e-119) tmp = Float64(t_1 / sqrt(Float64(2.0 * Float64(l / Float64(x / l))))); else tmp = Float64(t_1 / t_1); end return tmp end
function tmp_2 = code(x, l, t) t_1 = t * sqrt(2.0); tmp = 0.0; if (t <= -2.35e-147) tmp = sqrt(2.0) * (sqrt(0.5) * (-1.0 - (-1.0 / x))); elseif (t <= 4.4e-119) tmp = t_1 / sqrt((2.0 * (l / (x / l)))); else tmp = t_1 / t_1; end tmp_2 = tmp; end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.35e-147], N[(N[Sqrt[2.0], $MachinePrecision] * N[(N[Sqrt[0.5], $MachinePrecision] * N[(-1.0 - N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.4e-119], N[(t$95$1 / N[Sqrt[N[(2.0 * N[(l / N[(x / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -2.35 \cdot 10^{-147}:\\
\;\;\;\;\sqrt{2} \cdot \left(\sqrt{0.5} \cdot \left(-1 - \frac{-1}{x}\right)\right)\\
\mathbf{elif}\;t \leq 4.4 \cdot 10^{-119}:\\
\;\;\;\;\frac{t_1}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -2.34999999999999994e-147Initial program 38.6%
Taylor expanded in t around -inf 85.7%
mul-1-neg85.7%
associate-*l*85.7%
distribute-rgt-neg-in85.7%
+-commutative85.7%
sub-neg85.7%
metadata-eval85.7%
+-commutative85.7%
Simplified85.7%
Taylor expanded in x around inf 85.1%
pow185.1%
distribute-rgt-neg-in85.1%
Applied egg-rr85.1%
unpow185.1%
neg-sub085.1%
associate--r-85.1%
metadata-eval85.1%
Simplified85.1%
if -2.34999999999999994e-147 < t < 4.4000000000000001e-119Initial program 9.6%
Taylor expanded in x around inf 54.0%
associate--l+54.0%
unpow254.0%
distribute-lft-out54.0%
unpow254.0%
unpow254.0%
associate-*r/54.0%
mul-1-neg54.0%
+-commutative54.0%
unpow254.0%
unpow254.0%
fma-udef54.0%
Simplified54.0%
add-cube-cbrt53.9%
associate-/l*54.0%
associate-/l*54.0%
associate-/l*53.9%
Applied egg-rr53.9%
Taylor expanded in t around 0 50.7%
cancel-sign-sub-inv50.7%
unpow250.7%
associate-*l/50.7%
metadata-eval50.7%
unpow250.7%
associate-*l/54.1%
distribute-rgt1-in54.1%
metadata-eval54.1%
associate-*l/50.7%
associate-/l*54.0%
Simplified54.0%
if 4.4000000000000001e-119 < t Initial program 49.2%
Taylor expanded in x around inf 93.2%
Final simplification81.8%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= t -1.2e-145)
(* (sqrt 2.0) (- (sqrt (* 0.5 (/ (+ x -1.0) (+ x 1.0))))))
(if (<= t 3.5e-119) (/ t_1 (sqrt (* 2.0 (/ l (/ x l))))) (/ t_1 t_1)))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double tmp;
if (t <= -1.2e-145) {
tmp = sqrt(2.0) * -sqrt((0.5 * ((x + -1.0) / (x + 1.0))));
} else if (t <= 3.5e-119) {
tmp = t_1 / sqrt((2.0 * (l / (x / l))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = t * sqrt(2.0d0)
if (t <= (-1.2d-145)) then
tmp = sqrt(2.0d0) * -sqrt((0.5d0 * ((x + (-1.0d0)) / (x + 1.0d0))))
else if (t <= 3.5d-119) then
tmp = t_1 / sqrt((2.0d0 * (l / (x / l))))
else
tmp = t_1 / t_1
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double t_1 = t * Math.sqrt(2.0);
double tmp;
if (t <= -1.2e-145) {
tmp = Math.sqrt(2.0) * -Math.sqrt((0.5 * ((x + -1.0) / (x + 1.0))));
} else if (t <= 3.5e-119) {
tmp = t_1 / Math.sqrt((2.0 * (l / (x / l))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
def code(x, l, t): t_1 = t * math.sqrt(2.0) tmp = 0 if t <= -1.2e-145: tmp = math.sqrt(2.0) * -math.sqrt((0.5 * ((x + -1.0) / (x + 1.0)))) elif t <= 3.5e-119: tmp = t_1 / math.sqrt((2.0 * (l / (x / l)))) else: tmp = t_1 / t_1 return tmp
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (t <= -1.2e-145) tmp = Float64(sqrt(2.0) * Float64(-sqrt(Float64(0.5 * Float64(Float64(x + -1.0) / Float64(x + 1.0)))))); elseif (t <= 3.5e-119) tmp = Float64(t_1 / sqrt(Float64(2.0 * Float64(l / Float64(x / l))))); else tmp = Float64(t_1 / t_1); end return tmp end
function tmp_2 = code(x, l, t) t_1 = t * sqrt(2.0); tmp = 0.0; if (t <= -1.2e-145) tmp = sqrt(2.0) * -sqrt((0.5 * ((x + -1.0) / (x + 1.0)))); elseif (t <= 3.5e-119) tmp = t_1 / sqrt((2.0 * (l / (x / l)))); else tmp = t_1 / t_1; end tmp_2 = tmp; end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.2e-145], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[N[(0.5 * N[(N[(x + -1.0), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision], If[LessEqual[t, 3.5e-119], N[(t$95$1 / N[Sqrt[N[(2.0 * N[(l / N[(x / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{-145}:\\
\;\;\;\;\sqrt{2} \cdot \left(-\sqrt{0.5 \cdot \frac{x + -1}{x + 1}}\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-119}:\\
\;\;\;\;\frac{t_1}{\sqrt{2 \cdot \frac{\ell}{\frac{x}{\ell}}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -1.20000000000000008e-145Initial program 38.6%
Taylor expanded in t around -inf 85.7%
mul-1-neg85.7%
associate-*l*85.7%
distribute-rgt-neg-in85.7%
+-commutative85.7%
sub-neg85.7%
metadata-eval85.7%
+-commutative85.7%
Simplified85.7%
pow185.7%
sqrt-unprod85.7%
+-commutative85.7%
Applied egg-rr85.7%
unpow185.7%
Simplified85.7%
if -1.20000000000000008e-145 < t < 3.5e-119Initial program 9.6%
Taylor expanded in x around inf 54.0%
associate--l+54.0%
unpow254.0%
distribute-lft-out54.0%
unpow254.0%
unpow254.0%
associate-*r/54.0%
mul-1-neg54.0%
+-commutative54.0%
unpow254.0%
unpow254.0%
fma-udef54.0%
Simplified54.0%
add-cube-cbrt53.9%
associate-/l*54.0%
associate-/l*54.0%
associate-/l*53.9%
Applied egg-rr53.9%
Taylor expanded in t around 0 50.7%
cancel-sign-sub-inv50.7%
unpow250.7%
associate-*l/50.7%
metadata-eval50.7%
unpow250.7%
associate-*l/54.1%
distribute-rgt1-in54.1%
metadata-eval54.1%
associate-*l/50.7%
associate-/l*54.0%
Simplified54.0%
if 3.5e-119 < t Initial program 49.2%
Taylor expanded in x around inf 93.2%
Final simplification82.1%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= t -5.2e-209)
(* (sqrt 2.0) (* (sqrt 0.5) (- -1.0 (/ -1.0 x))))
(if (<= t 3.8e-171) (/ t_1 (* (- l) (sqrt (/ 2.0 x)))) (/ t_1 t_1)))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double tmp;
if (t <= -5.2e-209) {
tmp = sqrt(2.0) * (sqrt(0.5) * (-1.0 - (-1.0 / x)));
} else if (t <= 3.8e-171) {
tmp = t_1 / (-l * sqrt((2.0 / x)));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = t * sqrt(2.0d0)
if (t <= (-5.2d-209)) then
tmp = sqrt(2.0d0) * (sqrt(0.5d0) * ((-1.0d0) - ((-1.0d0) / x)))
else if (t <= 3.8d-171) then
tmp = t_1 / (-l * sqrt((2.0d0 / x)))
else
tmp = t_1 / t_1
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double t_1 = t * Math.sqrt(2.0);
double tmp;
if (t <= -5.2e-209) {
tmp = Math.sqrt(2.0) * (Math.sqrt(0.5) * (-1.0 - (-1.0 / x)));
} else if (t <= 3.8e-171) {
tmp = t_1 / (-l * Math.sqrt((2.0 / x)));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
def code(x, l, t): t_1 = t * math.sqrt(2.0) tmp = 0 if t <= -5.2e-209: tmp = math.sqrt(2.0) * (math.sqrt(0.5) * (-1.0 - (-1.0 / x))) elif t <= 3.8e-171: tmp = t_1 / (-l * math.sqrt((2.0 / x))) else: tmp = t_1 / t_1 return tmp
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (t <= -5.2e-209) tmp = Float64(sqrt(2.0) * Float64(sqrt(0.5) * Float64(-1.0 - Float64(-1.0 / x)))); elseif (t <= 3.8e-171) tmp = Float64(t_1 / Float64(Float64(-l) * sqrt(Float64(2.0 / x)))); else tmp = Float64(t_1 / t_1); end return tmp end
function tmp_2 = code(x, l, t) t_1 = t * sqrt(2.0); tmp = 0.0; if (t <= -5.2e-209) tmp = sqrt(2.0) * (sqrt(0.5) * (-1.0 - (-1.0 / x))); elseif (t <= 3.8e-171) tmp = t_1 / (-l * sqrt((2.0 / x))); else tmp = t_1 / t_1; end tmp_2 = tmp; end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.2e-209], N[(N[Sqrt[2.0], $MachinePrecision] * N[(N[Sqrt[0.5], $MachinePrecision] * N[(-1.0 - N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e-171], N[(t$95$1 / N[((-l) * N[Sqrt[N[(2.0 / x), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -5.2 \cdot 10^{-209}:\\
\;\;\;\;\sqrt{2} \cdot \left(\sqrt{0.5} \cdot \left(-1 - \frac{-1}{x}\right)\right)\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-171}:\\
\;\;\;\;\frac{t_1}{\left(-\ell\right) \cdot \sqrt{\frac{2}{x}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -5.19999999999999969e-209Initial program 34.8%
Taylor expanded in t around -inf 80.4%
mul-1-neg80.4%
associate-*l*80.5%
distribute-rgt-neg-in80.5%
+-commutative80.5%
sub-neg80.5%
metadata-eval80.5%
+-commutative80.5%
Simplified80.5%
Taylor expanded in x around inf 80.0%
pow180.0%
distribute-rgt-neg-in80.0%
Applied egg-rr80.0%
unpow180.0%
neg-sub080.0%
associate--r-80.0%
metadata-eval80.0%
Simplified80.0%
if -5.19999999999999969e-209 < t < 3.80000000000000021e-171Initial program 7.9%
Taylor expanded in l around -inf 8.5%
associate-*r*8.5%
neg-mul-18.5%
sub-neg8.5%
sub-neg8.5%
metadata-eval8.5%
+-commutative8.5%
sub-neg8.5%
metadata-eval8.5%
+-commutative8.5%
metadata-eval8.5%
Simplified8.5%
Taylor expanded in x around inf 52.9%
if 3.80000000000000021e-171 < t Initial program 47.7%
Taylor expanded in x around inf 90.2%
Final simplification80.8%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= t -9.5e-238)
(* (sqrt 2.0) (- (sqrt 0.5)))
(if (<= t 3.5e-119)
(* (/ t l) (sqrt x))
(if (<= t 5.5e+90)
(+ 1.0 (* -0.5 (/ (fma 2.0 (* t t) (* l l)) (* x (* t t)))))
(/ t_1 t_1))))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double tmp;
if (t <= -9.5e-238) {
tmp = sqrt(2.0) * -sqrt(0.5);
} else if (t <= 3.5e-119) {
tmp = (t / l) * sqrt(x);
} else if (t <= 5.5e+90) {
tmp = 1.0 + (-0.5 * (fma(2.0, (t * t), (l * l)) / (x * (t * t))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (t <= -9.5e-238) tmp = Float64(sqrt(2.0) * Float64(-sqrt(0.5))); elseif (t <= 3.5e-119) tmp = Float64(Float64(t / l) * sqrt(x)); elseif (t <= 5.5e+90) tmp = Float64(1.0 + Float64(-0.5 * Float64(fma(2.0, Float64(t * t), Float64(l * l)) / Float64(x * Float64(t * t))))); else tmp = Float64(t_1 / t_1); end return tmp end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9.5e-238], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[0.5], $MachinePrecision])), $MachinePrecision], If[LessEqual[t, 3.5e-119], N[(N[(t / l), $MachinePrecision] * N[Sqrt[x], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e+90], N[(1.0 + N[(-0.5 * N[(N[(2.0 * N[(t * t), $MachinePrecision] + N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(x * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -9.5 \cdot 10^{-238}:\\
\;\;\;\;\sqrt{2} \cdot \left(-\sqrt{0.5}\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-119}:\\
\;\;\;\;\frac{t}{\ell} \cdot \sqrt{x}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{+90}:\\
\;\;\;\;1 + -0.5 \cdot \frac{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)}{x \cdot \left(t \cdot t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -9.50000000000000059e-238Initial program 32.1%
Taylor expanded in t around -inf 76.8%
mul-1-neg76.8%
associate-*l*76.8%
distribute-rgt-neg-in76.8%
+-commutative76.8%
sub-neg76.8%
metadata-eval76.8%
+-commutative76.8%
Simplified76.8%
Taylor expanded in x around inf 75.8%
mul-1-neg75.8%
distribute-rgt-neg-in75.8%
Simplified75.8%
if -9.50000000000000059e-238 < t < 3.5e-119Initial program 13.6%
Taylor expanded in l around inf 8.3%
Taylor expanded in x around inf 52.0%
Taylor expanded in t around 0 47.1%
if 3.5e-119 < t < 5.49999999999999999e90Initial program 69.1%
Taylor expanded in x around inf 91.5%
fma-def91.5%
+-commutative91.5%
unpow291.5%
unpow291.5%
fma-udef91.5%
mul-1-neg91.5%
+-commutative91.5%
unpow291.5%
unpow291.5%
fma-udef91.5%
*-commutative91.5%
Simplified91.5%
Taylor expanded in x around -inf 90.9%
associate-*r/90.9%
unpow290.9%
rem-square-sqrt90.9%
times-frac90.9%
metadata-eval90.9%
+-commutative90.9%
unpow290.9%
unpow290.9%
fma-udef90.9%
unpow290.9%
Simplified90.9%
if 5.49999999999999999e90 < t Initial program 27.7%
Taylor expanded in x around inf 96.3%
Final simplification79.5%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= t -2.9e-238)
(* (sqrt 2.0) (* (sqrt 0.5) (- -1.0 (/ -1.0 x))))
(if (<= t 3.5e-119)
(* (/ t l) (sqrt x))
(if (<= t 1e+91)
(+ 1.0 (* -0.5 (/ (fma 2.0 (* t t) (* l l)) (* x (* t t)))))
(/ t_1 t_1))))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double tmp;
if (t <= -2.9e-238) {
tmp = sqrt(2.0) * (sqrt(0.5) * (-1.0 - (-1.0 / x)));
} else if (t <= 3.5e-119) {
tmp = (t / l) * sqrt(x);
} else if (t <= 1e+91) {
tmp = 1.0 + (-0.5 * (fma(2.0, (t * t), (l * l)) / (x * (t * t))));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (t <= -2.9e-238) tmp = Float64(sqrt(2.0) * Float64(sqrt(0.5) * Float64(-1.0 - Float64(-1.0 / x)))); elseif (t <= 3.5e-119) tmp = Float64(Float64(t / l) * sqrt(x)); elseif (t <= 1e+91) tmp = Float64(1.0 + Float64(-0.5 * Float64(fma(2.0, Float64(t * t), Float64(l * l)) / Float64(x * Float64(t * t))))); else tmp = Float64(t_1 / t_1); end return tmp end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e-238], N[(N[Sqrt[2.0], $MachinePrecision] * N[(N[Sqrt[0.5], $MachinePrecision] * N[(-1.0 - N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-119], N[(N[(t / l), $MachinePrecision] * N[Sqrt[x], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+91], N[(1.0 + N[(-0.5 * N[(N[(2.0 * N[(t * t), $MachinePrecision] + N[(l * l), $MachinePrecision]), $MachinePrecision] / N[(x * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{-238}:\\
\;\;\;\;\sqrt{2} \cdot \left(\sqrt{0.5} \cdot \left(-1 - \frac{-1}{x}\right)\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-119}:\\
\;\;\;\;\frac{t}{\ell} \cdot \sqrt{x}\\
\mathbf{elif}\;t \leq 10^{+91}:\\
\;\;\;\;1 + -0.5 \cdot \frac{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)}{x \cdot \left(t \cdot t\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -2.8999999999999998e-238Initial program 32.1%
Taylor expanded in t around -inf 76.8%
mul-1-neg76.8%
associate-*l*76.8%
distribute-rgt-neg-in76.8%
+-commutative76.8%
sub-neg76.8%
metadata-eval76.8%
+-commutative76.8%
Simplified76.8%
Taylor expanded in x around inf 76.4%
pow176.4%
distribute-rgt-neg-in76.4%
Applied egg-rr76.4%
unpow176.4%
neg-sub076.4%
associate--r-76.4%
metadata-eval76.4%
Simplified76.4%
if -2.8999999999999998e-238 < t < 3.5e-119Initial program 13.6%
Taylor expanded in l around inf 8.3%
Taylor expanded in x around inf 52.0%
Taylor expanded in t around 0 47.1%
if 3.5e-119 < t < 1.00000000000000008e91Initial program 69.1%
Taylor expanded in x around inf 91.5%
fma-def91.5%
+-commutative91.5%
unpow291.5%
unpow291.5%
fma-udef91.5%
mul-1-neg91.5%
+-commutative91.5%
unpow291.5%
unpow291.5%
fma-udef91.5%
*-commutative91.5%
Simplified91.5%
Taylor expanded in x around -inf 90.9%
associate-*r/90.9%
unpow290.9%
rem-square-sqrt90.9%
times-frac90.9%
metadata-eval90.9%
+-commutative90.9%
unpow290.9%
unpow290.9%
fma-udef90.9%
unpow290.9%
Simplified90.9%
if 1.00000000000000008e91 < t Initial program 27.7%
Taylor expanded in x around inf 96.3%
Final simplification79.8%
(FPCore (x l t)
:precision binary64
(let* ((t_1 (* t (sqrt 2.0))))
(if (<= t -2.95e-238)
(* (sqrt 2.0) (* (sqrt 0.5) (- -1.0 (/ -1.0 x))))
(if (<= t 3.5e-119) (/ t_1 (* l (sqrt (/ 2.0 x)))) (/ t_1 t_1)))))
double code(double x, double l, double t) {
double t_1 = t * sqrt(2.0);
double tmp;
if (t <= -2.95e-238) {
tmp = sqrt(2.0) * (sqrt(0.5) * (-1.0 - (-1.0 / x)));
} else if (t <= 3.5e-119) {
tmp = t_1 / (l * sqrt((2.0 / x)));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = t * sqrt(2.0d0)
if (t <= (-2.95d-238)) then
tmp = sqrt(2.0d0) * (sqrt(0.5d0) * ((-1.0d0) - ((-1.0d0) / x)))
else if (t <= 3.5d-119) then
tmp = t_1 / (l * sqrt((2.0d0 / x)))
else
tmp = t_1 / t_1
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double t_1 = t * Math.sqrt(2.0);
double tmp;
if (t <= -2.95e-238) {
tmp = Math.sqrt(2.0) * (Math.sqrt(0.5) * (-1.0 - (-1.0 / x)));
} else if (t <= 3.5e-119) {
tmp = t_1 / (l * Math.sqrt((2.0 / x)));
} else {
tmp = t_1 / t_1;
}
return tmp;
}
def code(x, l, t): t_1 = t * math.sqrt(2.0) tmp = 0 if t <= -2.95e-238: tmp = math.sqrt(2.0) * (math.sqrt(0.5) * (-1.0 - (-1.0 / x))) elif t <= 3.5e-119: tmp = t_1 / (l * math.sqrt((2.0 / x))) else: tmp = t_1 / t_1 return tmp
function code(x, l, t) t_1 = Float64(t * sqrt(2.0)) tmp = 0.0 if (t <= -2.95e-238) tmp = Float64(sqrt(2.0) * Float64(sqrt(0.5) * Float64(-1.0 - Float64(-1.0 / x)))); elseif (t <= 3.5e-119) tmp = Float64(t_1 / Float64(l * sqrt(Float64(2.0 / x)))); else tmp = Float64(t_1 / t_1); end return tmp end
function tmp_2 = code(x, l, t) t_1 = t * sqrt(2.0); tmp = 0.0; if (t <= -2.95e-238) tmp = sqrt(2.0) * (sqrt(0.5) * (-1.0 - (-1.0 / x))); elseif (t <= 3.5e-119) tmp = t_1 / (l * sqrt((2.0 / x))); else tmp = t_1 / t_1; end tmp_2 = tmp; end
code[x_, l_, t_] := Block[{t$95$1 = N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.95e-238], N[(N[Sqrt[2.0], $MachinePrecision] * N[(N[Sqrt[0.5], $MachinePrecision] * N[(-1.0 - N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-119], N[(t$95$1 / N[(l * N[Sqrt[N[(2.0 / x), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 / t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \sqrt{2}\\
\mathbf{if}\;t \leq -2.95 \cdot 10^{-238}:\\
\;\;\;\;\sqrt{2} \cdot \left(\sqrt{0.5} \cdot \left(-1 - \frac{-1}{x}\right)\right)\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-119}:\\
\;\;\;\;\frac{t_1}{\ell \cdot \sqrt{\frac{2}{x}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t_1}{t_1}\\
\end{array}
\end{array}
if t < -2.9499999999999999e-238Initial program 32.1%
Taylor expanded in t around -inf 76.8%
mul-1-neg76.8%
associate-*l*76.8%
distribute-rgt-neg-in76.8%
+-commutative76.8%
sub-neg76.8%
metadata-eval76.8%
+-commutative76.8%
Simplified76.8%
Taylor expanded in x around inf 76.4%
pow176.4%
distribute-rgt-neg-in76.4%
Applied egg-rr76.4%
unpow176.4%
neg-sub076.4%
associate--r-76.4%
metadata-eval76.4%
Simplified76.4%
if -2.9499999999999999e-238 < t < 3.5e-119Initial program 13.6%
Taylor expanded in l around inf 8.3%
Taylor expanded in x around inf 52.0%
if 3.5e-119 < t Initial program 49.2%
Taylor expanded in x around inf 93.2%
Final simplification80.2%
(FPCore (x l t)
:precision binary64
(if (<= t -9e-238)
(* (sqrt 2.0) (- (sqrt 0.5)))
(if (<= t 3.9e-119)
(* (/ t l) (sqrt x))
(if (<= t 1.05e+174)
(- 1.0 (/ (+ 1.0 (/ (* l l) (* 2.0 (* t t)))) x))
(* (sqrt 2.0) (sqrt 0.5))))))
double code(double x, double l, double t) {
double tmp;
if (t <= -9e-238) {
tmp = sqrt(2.0) * -sqrt(0.5);
} else if (t <= 3.9e-119) {
tmp = (t / l) * sqrt(x);
} else if (t <= 1.05e+174) {
tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x);
} else {
tmp = sqrt(2.0) * sqrt(0.5);
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-9d-238)) then
tmp = sqrt(2.0d0) * -sqrt(0.5d0)
else if (t <= 3.9d-119) then
tmp = (t / l) * sqrt(x)
else if (t <= 1.05d+174) then
tmp = 1.0d0 - ((1.0d0 + ((l * l) / (2.0d0 * (t * t)))) / x)
else
tmp = sqrt(2.0d0) * sqrt(0.5d0)
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double tmp;
if (t <= -9e-238) {
tmp = Math.sqrt(2.0) * -Math.sqrt(0.5);
} else if (t <= 3.9e-119) {
tmp = (t / l) * Math.sqrt(x);
} else if (t <= 1.05e+174) {
tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x);
} else {
tmp = Math.sqrt(2.0) * Math.sqrt(0.5);
}
return tmp;
}
def code(x, l, t): tmp = 0 if t <= -9e-238: tmp = math.sqrt(2.0) * -math.sqrt(0.5) elif t <= 3.9e-119: tmp = (t / l) * math.sqrt(x) elif t <= 1.05e+174: tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x) else: tmp = math.sqrt(2.0) * math.sqrt(0.5) return tmp
function code(x, l, t) tmp = 0.0 if (t <= -9e-238) tmp = Float64(sqrt(2.0) * Float64(-sqrt(0.5))); elseif (t <= 3.9e-119) tmp = Float64(Float64(t / l) * sqrt(x)); elseif (t <= 1.05e+174) tmp = Float64(1.0 - Float64(Float64(1.0 + Float64(Float64(l * l) / Float64(2.0 * Float64(t * t)))) / x)); else tmp = Float64(sqrt(2.0) * sqrt(0.5)); end return tmp end
function tmp_2 = code(x, l, t) tmp = 0.0; if (t <= -9e-238) tmp = sqrt(2.0) * -sqrt(0.5); elseif (t <= 3.9e-119) tmp = (t / l) * sqrt(x); elseif (t <= 1.05e+174) tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x); else tmp = sqrt(2.0) * sqrt(0.5); end tmp_2 = tmp; end
code[x_, l_, t_] := If[LessEqual[t, -9e-238], N[(N[Sqrt[2.0], $MachinePrecision] * (-N[Sqrt[0.5], $MachinePrecision])), $MachinePrecision], If[LessEqual[t, 3.9e-119], N[(N[(t / l), $MachinePrecision] * N[Sqrt[x], $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+174], N[(1.0 - N[(N[(1.0 + N[(N[(l * l), $MachinePrecision] / N[(2.0 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{-238}:\\
\;\;\;\;\sqrt{2} \cdot \left(-\sqrt{0.5}\right)\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{-119}:\\
\;\;\;\;\frac{t}{\ell} \cdot \sqrt{x}\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+174}:\\
\;\;\;\;1 - \frac{1 + \frac{\ell \cdot \ell}{2 \cdot \left(t \cdot t\right)}}{x}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2} \cdot \sqrt{0.5}\\
\end{array}
\end{array}
if t < -8.99999999999999992e-238Initial program 32.1%
Taylor expanded in t around -inf 76.8%
mul-1-neg76.8%
associate-*l*76.8%
distribute-rgt-neg-in76.8%
+-commutative76.8%
sub-neg76.8%
metadata-eval76.8%
+-commutative76.8%
Simplified76.8%
Taylor expanded in x around inf 75.8%
mul-1-neg75.8%
distribute-rgt-neg-in75.8%
Simplified75.8%
if -8.99999999999999992e-238 < t < 3.8999999999999999e-119Initial program 13.6%
Taylor expanded in l around inf 8.3%
Taylor expanded in x around inf 52.0%
Taylor expanded in t around 0 47.1%
if 3.8999999999999999e-119 < t < 1.05000000000000008e174Initial program 64.7%
Taylor expanded in x around inf 81.5%
fma-def81.5%
+-commutative81.5%
unpow281.5%
unpow281.5%
fma-udef81.5%
mul-1-neg81.5%
+-commutative81.5%
unpow281.5%
unpow281.5%
fma-udef81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in x around inf 91.1%
mul-1-neg91.1%
unsub-neg91.1%
Simplified91.1%
if 1.05000000000000008e174 < t Initial program 2.6%
Taylor expanded in x around inf 98.4%
Final simplification79.3%
(FPCore (x l t) :precision binary64 (if (<= t 3.5e-119) (* (/ t l) (sqrt x)) (* (sqrt 2.0) (sqrt 0.5))))
double code(double x, double l, double t) {
double tmp;
if (t <= 3.5e-119) {
tmp = (t / l) * sqrt(x);
} else {
tmp = sqrt(2.0) * sqrt(0.5);
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: tmp
if (t <= 3.5d-119) then
tmp = (t / l) * sqrt(x)
else
tmp = sqrt(2.0d0) * sqrt(0.5d0)
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double tmp;
if (t <= 3.5e-119) {
tmp = (t / l) * Math.sqrt(x);
} else {
tmp = Math.sqrt(2.0) * Math.sqrt(0.5);
}
return tmp;
}
def code(x, l, t): tmp = 0 if t <= 3.5e-119: tmp = (t / l) * math.sqrt(x) else: tmp = math.sqrt(2.0) * math.sqrt(0.5) return tmp
function code(x, l, t) tmp = 0.0 if (t <= 3.5e-119) tmp = Float64(Float64(t / l) * sqrt(x)); else tmp = Float64(sqrt(2.0) * sqrt(0.5)); end return tmp end
function tmp_2 = code(x, l, t) tmp = 0.0; if (t <= 3.5e-119) tmp = (t / l) * sqrt(x); else tmp = sqrt(2.0) * sqrt(0.5); end tmp_2 = tmp; end
code[x_, l_, t_] := If[LessEqual[t, 3.5e-119], N[(N[(t / l), $MachinePrecision] * N[Sqrt[x], $MachinePrecision]), $MachinePrecision], N[(N[Sqrt[2.0], $MachinePrecision] * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.5 \cdot 10^{-119}:\\
\;\;\;\;\frac{t}{\ell} \cdot \sqrt{x}\\
\mathbf{else}:\\
\;\;\;\;\sqrt{2} \cdot \sqrt{0.5}\\
\end{array}
\end{array}
if t < 3.5e-119Initial program 28.3%
Taylor expanded in l around inf 3.4%
Taylor expanded in x around inf 19.5%
Taylor expanded in t around 0 18.0%
if 3.5e-119 < t Initial program 49.2%
Taylor expanded in x around inf 91.8%
Final simplification48.0%
(FPCore (x l t) :precision binary64 (if (<= t 3.5e-119) (* (/ t l) (sqrt x)) (- 1.0 (/ (+ 1.0 (/ (* l l) (* 2.0 (* t t)))) x))))
double code(double x, double l, double t) {
double tmp;
if (t <= 3.5e-119) {
tmp = (t / l) * sqrt(x);
} else {
tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x);
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: tmp
if (t <= 3.5d-119) then
tmp = (t / l) * sqrt(x)
else
tmp = 1.0d0 - ((1.0d0 + ((l * l) / (2.0d0 * (t * t)))) / x)
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double tmp;
if (t <= 3.5e-119) {
tmp = (t / l) * Math.sqrt(x);
} else {
tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x);
}
return tmp;
}
def code(x, l, t): tmp = 0 if t <= 3.5e-119: tmp = (t / l) * math.sqrt(x) else: tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x) return tmp
function code(x, l, t) tmp = 0.0 if (t <= 3.5e-119) tmp = Float64(Float64(t / l) * sqrt(x)); else tmp = Float64(1.0 - Float64(Float64(1.0 + Float64(Float64(l * l) / Float64(2.0 * Float64(t * t)))) / x)); end return tmp end
function tmp_2 = code(x, l, t) tmp = 0.0; if (t <= 3.5e-119) tmp = (t / l) * sqrt(x); else tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x); end tmp_2 = tmp; end
code[x_, l_, t_] := If[LessEqual[t, 3.5e-119], N[(N[(t / l), $MachinePrecision] * N[Sqrt[x], $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(N[(1.0 + N[(N[(l * l), $MachinePrecision] / N[(2.0 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 3.5 \cdot 10^{-119}:\\
\;\;\;\;\frac{t}{\ell} \cdot \sqrt{x}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{1 + \frac{\ell \cdot \ell}{2 \cdot \left(t \cdot t\right)}}{x}\\
\end{array}
\end{array}
if t < 3.5e-119Initial program 28.3%
Taylor expanded in l around inf 3.4%
Taylor expanded in x around inf 19.5%
Taylor expanded in t around 0 18.0%
if 3.5e-119 < t Initial program 49.2%
Taylor expanded in x around inf 61.1%
fma-def61.1%
+-commutative61.1%
unpow261.1%
unpow261.1%
fma-udef61.1%
mul-1-neg61.1%
+-commutative61.1%
unpow261.1%
unpow261.1%
fma-udef61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in x around inf 89.5%
mul-1-neg89.5%
unsub-neg89.5%
Simplified89.5%
Final simplification47.0%
(FPCore (x l t) :precision binary64 (if (<= t 2.05e-163) (/ 2.0 (* (/ l t) (/ (/ l x) t))) (- 1.0 (/ (+ 1.0 (/ (* l l) (* 2.0 (* t t)))) x))))
double code(double x, double l, double t) {
double tmp;
if (t <= 2.05e-163) {
tmp = 2.0 / ((l / t) * ((l / x) / t));
} else {
tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x);
}
return tmp;
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
real(8) :: tmp
if (t <= 2.05d-163) then
tmp = 2.0d0 / ((l / t) * ((l / x) / t))
else
tmp = 1.0d0 - ((1.0d0 + ((l * l) / (2.0d0 * (t * t)))) / x)
end if
code = tmp
end function
public static double code(double x, double l, double t) {
double tmp;
if (t <= 2.05e-163) {
tmp = 2.0 / ((l / t) * ((l / x) / t));
} else {
tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x);
}
return tmp;
}
def code(x, l, t): tmp = 0 if t <= 2.05e-163: tmp = 2.0 / ((l / t) * ((l / x) / t)) else: tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x) return tmp
function code(x, l, t) tmp = 0.0 if (t <= 2.05e-163) tmp = Float64(2.0 / Float64(Float64(l / t) * Float64(Float64(l / x) / t))); else tmp = Float64(1.0 - Float64(Float64(1.0 + Float64(Float64(l * l) / Float64(2.0 * Float64(t * t)))) / x)); end return tmp end
function tmp_2 = code(x, l, t) tmp = 0.0; if (t <= 2.05e-163) tmp = 2.0 / ((l / t) * ((l / x) / t)); else tmp = 1.0 - ((1.0 + ((l * l) / (2.0 * (t * t)))) / x); end tmp_2 = tmp; end
code[x_, l_, t_] := If[LessEqual[t, 2.05e-163], N[(2.0 / N[(N[(l / t), $MachinePrecision] * N[(N[(l / x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(N[(1.0 + N[(N[(l * l), $MachinePrecision] / N[(2.0 * N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.05 \cdot 10^{-163}:\\
\;\;\;\;\frac{2}{\frac{\ell}{t} \cdot \frac{\frac{\ell}{x}}{t}}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{1 + \frac{\ell \cdot \ell}{2 \cdot \left(t \cdot t\right)}}{x}\\
\end{array}
\end{array}
if t < 2.04999999999999991e-163Initial program 28.5%
Taylor expanded in x around inf 12.3%
fma-def12.3%
+-commutative12.3%
unpow212.3%
unpow212.3%
fma-udef12.3%
mul-1-neg12.3%
+-commutative12.3%
unpow212.3%
unpow212.3%
fma-udef12.3%
*-commutative12.3%
Simplified12.3%
Taylor expanded in t around 0 9.2%
associate-/l*9.2%
unpow29.2%
rem-square-sqrt9.2%
*-commutative9.2%
associate-/r*8.9%
unpow28.9%
unpow28.9%
Simplified8.9%
Taylor expanded in l around 0 9.2%
associate-/l*8.9%
unpow28.9%
unpow28.9%
associate-*r/9.0%
Simplified9.0%
clear-num9.0%
add-cbrt-cube9.0%
associate-*r*9.0%
div-inv9.0%
associate-*r*9.0%
add-cbrt-cube9.0%
times-frac9.4%
Applied egg-rr9.4%
if 2.04999999999999991e-163 < t Initial program 47.7%
Taylor expanded in x around inf 60.2%
fma-def60.2%
+-commutative60.2%
unpow260.2%
unpow260.2%
fma-udef60.2%
mul-1-neg60.2%
+-commutative60.2%
unpow260.2%
unpow260.2%
fma-udef60.2%
*-commutative60.2%
Simplified60.2%
Taylor expanded in x around inf 85.7%
mul-1-neg85.7%
unsub-neg85.7%
Simplified85.7%
Final simplification42.5%
(FPCore (x l t) :precision binary64 (* 2.0 (/ (* t t) (* l (/ l x)))))
double code(double x, double l, double t) {
return 2.0 * ((t * t) / (l * (l / x)));
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
code = 2.0d0 * ((t * t) / (l * (l / x)))
end function
public static double code(double x, double l, double t) {
return 2.0 * ((t * t) / (l * (l / x)));
}
def code(x, l, t): return 2.0 * ((t * t) / (l * (l / x)))
function code(x, l, t) return Float64(2.0 * Float64(Float64(t * t) / Float64(l * Float64(l / x)))) end
function tmp = code(x, l, t) tmp = 2.0 * ((t * t) / (l * (l / x))); end
code[x_, l_, t_] := N[(2.0 * N[(N[(t * t), $MachinePrecision] / N[(l * N[(l / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{t \cdot t}{\ell \cdot \frac{\ell}{x}}
\end{array}
Initial program 36.8%
Taylor expanded in x around inf 33.1%
fma-def33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
fma-udef33.1%
mul-1-neg33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
fma-udef33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in t around 0 6.3%
associate-/l*6.3%
unpow26.3%
rem-square-sqrt6.3%
*-commutative6.3%
associate-/r*6.2%
unpow26.2%
unpow26.2%
Simplified6.2%
Taylor expanded in l around 0 6.3%
associate-/l*6.2%
unpow26.2%
unpow26.2%
associate-*r/6.3%
Simplified6.3%
Final simplification6.3%
(FPCore (x l t) :precision binary64 (* 2.0 (/ (* x (* t t)) (* l l))))
double code(double x, double l, double t) {
return 2.0 * ((x * (t * t)) / (l * l));
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
code = 2.0d0 * ((x * (t * t)) / (l * l))
end function
public static double code(double x, double l, double t) {
return 2.0 * ((x * (t * t)) / (l * l));
}
def code(x, l, t): return 2.0 * ((x * (t * t)) / (l * l))
function code(x, l, t) return Float64(2.0 * Float64(Float64(x * Float64(t * t)) / Float64(l * l))) end
function tmp = code(x, l, t) tmp = 2.0 * ((x * (t * t)) / (l * l)); end
code[x_, l_, t_] := N[(2.0 * N[(N[(x * N[(t * t), $MachinePrecision]), $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \frac{x \cdot \left(t \cdot t\right)}{\ell \cdot \ell}
\end{array}
Initial program 36.8%
Taylor expanded in x around inf 33.1%
fma-def33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
fma-udef33.1%
mul-1-neg33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
fma-udef33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in t around 0 6.3%
associate-/l*6.3%
unpow26.3%
rem-square-sqrt6.3%
*-commutative6.3%
associate-/r*6.2%
unpow26.2%
unpow26.2%
Simplified6.2%
Taylor expanded in l around 0 6.3%
associate-/l*6.2%
unpow26.2%
unpow26.2%
associate-*r/6.3%
Simplified6.3%
Taylor expanded in t around 0 6.3%
unpow26.3%
*-commutative6.3%
unpow26.3%
Simplified6.3%
Final simplification6.3%
(FPCore (x l t) :precision binary64 (* 2.0 (* (/ t l) (/ t (/ l x)))))
double code(double x, double l, double t) {
return 2.0 * ((t / l) * (t / (l / x)));
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
code = 2.0d0 * ((t / l) * (t / (l / x)))
end function
public static double code(double x, double l, double t) {
return 2.0 * ((t / l) * (t / (l / x)));
}
def code(x, l, t): return 2.0 * ((t / l) * (t / (l / x)))
function code(x, l, t) return Float64(2.0 * Float64(Float64(t / l) * Float64(t / Float64(l / x)))) end
function tmp = code(x, l, t) tmp = 2.0 * ((t / l) * (t / (l / x))); end
code[x_, l_, t_] := N[(2.0 * N[(N[(t / l), $MachinePrecision] * N[(t / N[(l / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\frac{t}{\ell} \cdot \frac{t}{\frac{\ell}{x}}\right)
\end{array}
Initial program 36.8%
Taylor expanded in x around inf 33.1%
fma-def33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
fma-udef33.1%
mul-1-neg33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
fma-udef33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in t around 0 6.3%
associate-/l*6.3%
unpow26.3%
rem-square-sqrt6.3%
*-commutative6.3%
associate-/r*6.2%
unpow26.2%
unpow26.2%
Simplified6.2%
add-cbrt-cube6.1%
associate-/l*6.1%
associate-/r/6.1%
associate-/l*6.1%
associate-/r/6.1%
associate-/l*6.2%
associate-/r/6.2%
Applied egg-rr6.2%
associate-*l*6.2%
*-commutative6.2%
*-commutative6.2%
*-commutative6.2%
Simplified6.2%
div-inv6.2%
associate-*r*6.2%
add-cbrt-cube6.3%
clear-num6.3%
*-commutative6.3%
times-frac6.6%
Applied egg-rr6.6%
Final simplification6.6%
(FPCore (x l t) :precision binary64 (/ 2.0 (* (/ l t) (/ (/ l x) t))))
double code(double x, double l, double t) {
return 2.0 / ((l / t) * ((l / x) / t));
}
real(8) function code(x, l, t)
real(8), intent (in) :: x
real(8), intent (in) :: l
real(8), intent (in) :: t
code = 2.0d0 / ((l / t) * ((l / x) / t))
end function
public static double code(double x, double l, double t) {
return 2.0 / ((l / t) * ((l / x) / t));
}
def code(x, l, t): return 2.0 / ((l / t) * ((l / x) / t))
function code(x, l, t) return Float64(2.0 / Float64(Float64(l / t) * Float64(Float64(l / x) / t))) end
function tmp = code(x, l, t) tmp = 2.0 / ((l / t) * ((l / x) / t)); end
code[x_, l_, t_] := N[(2.0 / N[(N[(l / t), $MachinePrecision] * N[(N[(l / x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\frac{\ell}{t} \cdot \frac{\frac{\ell}{x}}{t}}
\end{array}
Initial program 36.8%
Taylor expanded in x around inf 33.1%
fma-def33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
fma-udef33.1%
mul-1-neg33.1%
+-commutative33.1%
unpow233.1%
unpow233.1%
fma-udef33.1%
*-commutative33.1%
Simplified33.1%
Taylor expanded in t around 0 6.3%
associate-/l*6.3%
unpow26.3%
rem-square-sqrt6.3%
*-commutative6.3%
associate-/r*6.2%
unpow26.2%
unpow26.2%
Simplified6.2%
Taylor expanded in l around 0 6.3%
associate-/l*6.2%
unpow26.2%
unpow26.2%
associate-*r/6.3%
Simplified6.3%
clear-num6.3%
add-cbrt-cube6.2%
associate-*r*6.2%
div-inv6.2%
associate-*r*6.2%
add-cbrt-cube6.3%
times-frac6.6%
Applied egg-rr6.6%
Final simplification6.6%
herbie shell --seed 2023187
(FPCore (x l t)
:name "Toniolo and Linder, Equation (7)"
:precision binary64
(/ (* (sqrt 2.0) t) (sqrt (- (* (/ (+ x 1.0) (- x 1.0)) (+ (* l l) (* 2.0 (* t t)))) (* l l)))))