| Alternative 1 | |
|---|---|
| Error | 14.1 |
| Cost | 28300 |
(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)))))
(FPCore (x l t)
:precision binary64
(let* ((t_1 (/ (pow l 2.0) x))
(t_2 (+ 1.0 (+ (/ 1.0 x) (/ 1.0 x))))
(t_3
(+
(* t (sqrt (* 2.0 t_2)))
(* (sqrt (/ 0.5 t_2)) (/ (pow l 2.0) (* t x)))))
(t_4 (* (sqrt 2.0) t))
(t_5
(*
t
(/
(sqrt 2.0)
(sqrt
(+ t_1 (- (* 2.0 (+ (/ (pow t 2.0) x) (pow t 2.0))) (- t_1))))))))
(if (<= t -5e-94)
(/ t_4 (* (* t (sqrt 2.0)) (- (sqrt (/ (+ x 1.0) (+ -1.0 x))))))
(if (<= t -7.5e-162)
t_5
(if (<= t -3.9e-283)
(* t (/ (sqrt 2.0) (- t_3)))
(if (<= t 1.32e-257)
(* t (* (/ 1.0 l) (sqrt x)))
(if (<= t 1.65e-208)
(/ t_4 t_3)
(if (<= t 8.5e-39) t_5 (- 1.0 (/ 1.0 x))))))))))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)));
}
double code(double x, double l, double t) {
double t_1 = pow(l, 2.0) / x;
double t_2 = 1.0 + ((1.0 / x) + (1.0 / x));
double t_3 = (t * sqrt((2.0 * t_2))) + (sqrt((0.5 / t_2)) * (pow(l, 2.0) / (t * x)));
double t_4 = sqrt(2.0) * t;
double t_5 = t * (sqrt(2.0) / sqrt((t_1 + ((2.0 * ((pow(t, 2.0) / x) + pow(t, 2.0))) - -t_1))));
double tmp;
if (t <= -5e-94) {
tmp = t_4 / ((t * sqrt(2.0)) * -sqrt(((x + 1.0) / (-1.0 + x))));
} else if (t <= -7.5e-162) {
tmp = t_5;
} else if (t <= -3.9e-283) {
tmp = t * (sqrt(2.0) / -t_3);
} else if (t <= 1.32e-257) {
tmp = t * ((1.0 / l) * sqrt(x));
} else if (t <= 1.65e-208) {
tmp = t_4 / t_3;
} else if (t <= 8.5e-39) {
tmp = t_5;
} else {
tmp = 1.0 - (1.0 / 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
code = (sqrt(2.0d0) * t) / sqrt(((((x + 1.0d0) / (x - 1.0d0)) * ((l * l) + (2.0d0 * (t * t)))) - (l * l)))
end function
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) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: tmp
t_1 = (l ** 2.0d0) / x
t_2 = 1.0d0 + ((1.0d0 / x) + (1.0d0 / x))
t_3 = (t * sqrt((2.0d0 * t_2))) + (sqrt((0.5d0 / t_2)) * ((l ** 2.0d0) / (t * x)))
t_4 = sqrt(2.0d0) * t
t_5 = t * (sqrt(2.0d0) / sqrt((t_1 + ((2.0d0 * (((t ** 2.0d0) / x) + (t ** 2.0d0))) - -t_1))))
if (t <= (-5d-94)) then
tmp = t_4 / ((t * sqrt(2.0d0)) * -sqrt(((x + 1.0d0) / ((-1.0d0) + x))))
else if (t <= (-7.5d-162)) then
tmp = t_5
else if (t <= (-3.9d-283)) then
tmp = t * (sqrt(2.0d0) / -t_3)
else if (t <= 1.32d-257) then
tmp = t * ((1.0d0 / l) * sqrt(x))
else if (t <= 1.65d-208) then
tmp = t_4 / t_3
else if (t <= 8.5d-39) then
tmp = t_5
else
tmp = 1.0d0 - (1.0d0 / x)
end if
code = tmp
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)));
}
public static double code(double x, double l, double t) {
double t_1 = Math.pow(l, 2.0) / x;
double t_2 = 1.0 + ((1.0 / x) + (1.0 / x));
double t_3 = (t * Math.sqrt((2.0 * t_2))) + (Math.sqrt((0.5 / t_2)) * (Math.pow(l, 2.0) / (t * x)));
double t_4 = Math.sqrt(2.0) * t;
double t_5 = t * (Math.sqrt(2.0) / Math.sqrt((t_1 + ((2.0 * ((Math.pow(t, 2.0) / x) + Math.pow(t, 2.0))) - -t_1))));
double tmp;
if (t <= -5e-94) {
tmp = t_4 / ((t * Math.sqrt(2.0)) * -Math.sqrt(((x + 1.0) / (-1.0 + x))));
} else if (t <= -7.5e-162) {
tmp = t_5;
} else if (t <= -3.9e-283) {
tmp = t * (Math.sqrt(2.0) / -t_3);
} else if (t <= 1.32e-257) {
tmp = t * ((1.0 / l) * Math.sqrt(x));
} else if (t <= 1.65e-208) {
tmp = t_4 / t_3;
} else if (t <= 8.5e-39) {
tmp = t_5;
} else {
tmp = 1.0 - (1.0 / x);
}
return tmp;
}
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)))
def code(x, l, t): t_1 = math.pow(l, 2.0) / x t_2 = 1.0 + ((1.0 / x) + (1.0 / x)) t_3 = (t * math.sqrt((2.0 * t_2))) + (math.sqrt((0.5 / t_2)) * (math.pow(l, 2.0) / (t * x))) t_4 = math.sqrt(2.0) * t t_5 = t * (math.sqrt(2.0) / math.sqrt((t_1 + ((2.0 * ((math.pow(t, 2.0) / x) + math.pow(t, 2.0))) - -t_1)))) tmp = 0 if t <= -5e-94: tmp = t_4 / ((t * math.sqrt(2.0)) * -math.sqrt(((x + 1.0) / (-1.0 + x)))) elif t <= -7.5e-162: tmp = t_5 elif t <= -3.9e-283: tmp = t * (math.sqrt(2.0) / -t_3) elif t <= 1.32e-257: tmp = t * ((1.0 / l) * math.sqrt(x)) elif t <= 1.65e-208: tmp = t_4 / t_3 elif t <= 8.5e-39: tmp = t_5 else: tmp = 1.0 - (1.0 / x) return tmp
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 code(x, l, t) t_1 = Float64((l ^ 2.0) / x) t_2 = Float64(1.0 + Float64(Float64(1.0 / x) + Float64(1.0 / x))) t_3 = Float64(Float64(t * sqrt(Float64(2.0 * t_2))) + Float64(sqrt(Float64(0.5 / t_2)) * Float64((l ^ 2.0) / Float64(t * x)))) t_4 = Float64(sqrt(2.0) * t) t_5 = Float64(t * Float64(sqrt(2.0) / sqrt(Float64(t_1 + Float64(Float64(2.0 * Float64(Float64((t ^ 2.0) / x) + (t ^ 2.0))) - Float64(-t_1)))))) tmp = 0.0 if (t <= -5e-94) tmp = Float64(t_4 / Float64(Float64(t * sqrt(2.0)) * Float64(-sqrt(Float64(Float64(x + 1.0) / Float64(-1.0 + x)))))); elseif (t <= -7.5e-162) tmp = t_5; elseif (t <= -3.9e-283) tmp = Float64(t * Float64(sqrt(2.0) / Float64(-t_3))); elseif (t <= 1.32e-257) tmp = Float64(t * Float64(Float64(1.0 / l) * sqrt(x))); elseif (t <= 1.65e-208) tmp = Float64(t_4 / t_3); elseif (t <= 8.5e-39) tmp = t_5; else tmp = Float64(1.0 - Float64(1.0 / x)); end return tmp 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
function tmp_2 = code(x, l, t) t_1 = (l ^ 2.0) / x; t_2 = 1.0 + ((1.0 / x) + (1.0 / x)); t_3 = (t * sqrt((2.0 * t_2))) + (sqrt((0.5 / t_2)) * ((l ^ 2.0) / (t * x))); t_4 = sqrt(2.0) * t; t_5 = t * (sqrt(2.0) / sqrt((t_1 + ((2.0 * (((t ^ 2.0) / x) + (t ^ 2.0))) - -t_1)))); tmp = 0.0; if (t <= -5e-94) tmp = t_4 / ((t * sqrt(2.0)) * -sqrt(((x + 1.0) / (-1.0 + x)))); elseif (t <= -7.5e-162) tmp = t_5; elseif (t <= -3.9e-283) tmp = t * (sqrt(2.0) / -t_3); elseif (t <= 1.32e-257) tmp = t * ((1.0 / l) * sqrt(x)); elseif (t <= 1.65e-208) tmp = t_4 / t_3; elseif (t <= 8.5e-39) tmp = t_5; else tmp = 1.0 - (1.0 / x); end tmp_2 = tmp; 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]
code[x_, l_, t_] := Block[{t$95$1 = N[(N[Power[l, 2.0], $MachinePrecision] / x), $MachinePrecision]}, Block[{t$95$2 = N[(1.0 + N[(N[(1.0 / x), $MachinePrecision] + N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * N[Sqrt[N[(2.0 * t$95$2), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] + N[(N[Sqrt[N[(0.5 / t$95$2), $MachinePrecision]], $MachinePrecision] * N[(N[Power[l, 2.0], $MachinePrecision] / N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[Sqrt[2.0], $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$5 = N[(t * N[(N[Sqrt[2.0], $MachinePrecision] / N[Sqrt[N[(t$95$1 + N[(N[(2.0 * N[(N[(N[Power[t, 2.0], $MachinePrecision] / x), $MachinePrecision] + N[Power[t, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - (-t$95$1)), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5e-94], N[(t$95$4 / N[(N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] * (-N[Sqrt[N[(N[(x + 1.0), $MachinePrecision] / N[(-1.0 + x), $MachinePrecision]), $MachinePrecision]], $MachinePrecision])), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.5e-162], t$95$5, If[LessEqual[t, -3.9e-283], N[(t * N[(N[Sqrt[2.0], $MachinePrecision] / (-t$95$3)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.32e-257], N[(t * N[(N[(1.0 / l), $MachinePrecision] * N[Sqrt[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e-208], N[(t$95$4 / t$95$3), $MachinePrecision], If[LessEqual[t, 8.5e-39], t$95$5, N[(1.0 - N[(1.0 / x), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]
\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}}
\begin{array}{l}
t_1 := \frac{{\ell}^{2}}{x}\\
t_2 := 1 + \left(\frac{1}{x} + \frac{1}{x}\right)\\
t_3 := t \cdot \sqrt{2 \cdot t_2} + \sqrt{\frac{0.5}{t_2}} \cdot \frac{{\ell}^{2}}{t \cdot x}\\
t_4 := \sqrt{2} \cdot t\\
t_5 := t \cdot \frac{\sqrt{2}}{\sqrt{t_1 + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \left(-t_1\right)\right)}}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-94}:\\
\;\;\;\;\frac{t_4}{\left(t \cdot \sqrt{2}\right) \cdot \left(-\sqrt{\frac{x + 1}{-1 + x}}\right)}\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-162}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;t \leq -3.9 \cdot 10^{-283}:\\
\;\;\;\;t \cdot \frac{\sqrt{2}}{-t_3}\\
\mathbf{elif}\;t \leq 1.32 \cdot 10^{-257}:\\
\;\;\;\;t \cdot \left(\frac{1}{\ell} \cdot \sqrt{x}\right)\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{-208}:\\
\;\;\;\;\frac{t_4}{t_3}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-39}:\\
\;\;\;\;t_5\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{1}{x}\\
\end{array}
Results
if t < -4.9999999999999995e-94Initial program 38.6
Taylor expanded in t around -inf 7.9
Simplified7.9
[Start]7.9 | \[ \frac{\sqrt{2} \cdot t}{-1 \cdot \left(\left(\sqrt{2} \cdot t\right) \cdot \sqrt{\frac{1 + x}{x - 1}}\right)}
\] |
|---|---|
rational.json-simplify-43 [=>]7.9 | \[ \frac{\sqrt{2} \cdot t}{\color{blue}{\left(\sqrt{2} \cdot t\right) \cdot \left(\sqrt{\frac{1 + x}{x - 1}} \cdot -1\right)}}
\] |
rational.json-simplify-2 [<=]7.9 | \[ \frac{\sqrt{2} \cdot t}{\color{blue}{\left(t \cdot \sqrt{2}\right)} \cdot \left(\sqrt{\frac{1 + x}{x - 1}} \cdot -1\right)}
\] |
rational.json-simplify-9 [=>]7.9 | \[ \frac{\sqrt{2} \cdot t}{\left(t \cdot \sqrt{2}\right) \cdot \color{blue}{\left(-\sqrt{\frac{1 + x}{x - 1}}\right)}}
\] |
rational.json-simplify-1 [=>]7.9 | \[ \frac{\sqrt{2} \cdot t}{\left(t \cdot \sqrt{2}\right) \cdot \left(-\sqrt{\frac{\color{blue}{x + 1}}{x - 1}}\right)}
\] |
rational.json-simplify-15 [<=]7.9 | \[ \frac{\sqrt{2} \cdot t}{\left(t \cdot \sqrt{2}\right) \cdot \left(-\sqrt{\frac{x + 1}{\color{blue}{x + -1}}}\right)}
\] |
rational.json-simplify-1 [=>]7.9 | \[ \frac{\sqrt{2} \cdot t}{\left(t \cdot \sqrt{2}\right) \cdot \left(-\sqrt{\frac{x + 1}{\color{blue}{-1 + x}}}\right)}
\] |
if -4.9999999999999995e-94 < t < -7.49999999999999972e-162 or 1.65000000000000003e-208 < t < 8.5000000000000005e-39Initial program 41.2
Simplified41.2
[Start]41.2 | \[ \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}}
\] |
|---|---|
rational.json-simplify-49 [=>]41.2 | \[ \color{blue}{t \cdot \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}}
\] |
rational.json-simplify-16 [=>]41.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{\color{blue}{x + -1}} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}
\] |
Taylor expanded in x around inf 15.7
Simplified15.7
[Start]15.7 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\left(\frac{{\ell}^{2}}{x} + \left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right)\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
|---|---|
rational.json-simplify-1 [=>]15.7 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\color{blue}{\left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) + \frac{{\ell}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
rational.json-simplify-48 [=>]15.7 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\color{blue}{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}}
\] |
rational.json-simplify-1 [=>]15.7 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{\left(2 \cdot {t}^{2} + 2 \cdot \frac{{t}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]15.7 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot {t}^{2} + \color{blue}{\frac{{t}^{2}}{x} \cdot 2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-51 [=>]15.7 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]15.7 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x} \cdot -1}\right)}}
\] |
rational.json-simplify-9 [=>]15.7 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\left(-\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}\right)}}
\] |
Taylor expanded in l around inf 15.9
if -7.49999999999999972e-162 < t < -3.9000000000000002e-283Initial program 63.1
Simplified63.1
[Start]63.1 | \[ \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}}
\] |
|---|---|
rational.json-simplify-49 [=>]63.1 | \[ \color{blue}{t \cdot \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}}
\] |
rational.json-simplify-16 [=>]63.1 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{\color{blue}{x + -1}} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}
\] |
Taylor expanded in x around inf 34.6
Simplified34.6
[Start]34.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\left(\frac{{\ell}^{2}}{x} + \left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right)\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
|---|---|
rational.json-simplify-1 [=>]34.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\color{blue}{\left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) + \frac{{\ell}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
rational.json-simplify-48 [=>]34.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\color{blue}{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}}
\] |
rational.json-simplify-1 [=>]34.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{\left(2 \cdot {t}^{2} + 2 \cdot \frac{{t}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]34.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot {t}^{2} + \color{blue}{\frac{{t}^{2}}{x} \cdot 2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-51 [=>]34.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]34.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x} \cdot -1}\right)}}
\] |
rational.json-simplify-9 [=>]34.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\left(-\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}\right)}}
\] |
Taylor expanded in t around -inf 25.2
Simplified25.2
[Start]25.2 | \[ t \cdot \frac{\sqrt{2}}{-1 \cdot \left(\frac{{\ell}^{2}}{t \cdot x} \cdot \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}}\right) + -1 \cdot \left(t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}\right)}
\] |
|---|---|
rational.json-simplify-2 [=>]25.2 | \[ t \cdot \frac{\sqrt{2}}{-1 \cdot \color{blue}{\left(\sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}\right)} + -1 \cdot \left(t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}\right)}
\] |
rational.json-simplify-2 [=>]25.2 | \[ t \cdot \frac{\sqrt{2}}{-1 \cdot \left(\sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}\right) + -1 \cdot \color{blue}{\left(\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t\right)}}
\] |
rational.json-simplify-2 [=>]25.2 | \[ t \cdot \frac{\sqrt{2}}{-1 \cdot \left(\sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}\right) + \color{blue}{\left(\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t\right) \cdot -1}}
\] |
rational.json-simplify-51 [=>]25.2 | \[ t \cdot \frac{\sqrt{2}}{\color{blue}{-1 \cdot \left(\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}\right)}}
\] |
rational.json-simplify-2 [=>]25.2 | \[ t \cdot \frac{\sqrt{2}}{\color{blue}{\left(\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}\right) \cdot -1}}
\] |
rational.json-simplify-9 [=>]25.2 | \[ t \cdot \frac{\sqrt{2}}{\color{blue}{-\left(\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}\right)}}
\] |
if -3.9000000000000002e-283 < t < 1.32e-257Initial program 62.0
Simplified62.0
[Start]62.0 | \[ \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}}
\] |
|---|---|
rational.json-simplify-49 [=>]62.0 | \[ \color{blue}{t \cdot \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}}
\] |
rational.json-simplify-16 [=>]62.0 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{\color{blue}{x + -1}} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}
\] |
Taylor expanded in x around inf 30.2
Simplified30.2
[Start]30.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\left(\frac{{\ell}^{2}}{x} + \left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right)\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
|---|---|
rational.json-simplify-1 [=>]30.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\color{blue}{\left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) + \frac{{\ell}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
rational.json-simplify-48 [=>]30.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\color{blue}{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}}
\] |
rational.json-simplify-1 [=>]30.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{\left(2 \cdot {t}^{2} + 2 \cdot \frac{{t}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]30.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot {t}^{2} + \color{blue}{\frac{{t}^{2}}{x} \cdot 2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-51 [=>]30.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]30.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x} \cdot -1}\right)}}
\] |
rational.json-simplify-9 [=>]30.2 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\left(-\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}\right)}}
\] |
Taylor expanded in l around inf 31.6
Taylor expanded in l around 0 31.6
if 1.32e-257 < t < 1.65000000000000003e-208Initial program 63.4
Taylor expanded in x around inf 34.5
Simplified34.5
[Start]34.5 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{\left(\frac{{\ell}^{2}}{x} + \left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right)\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
|---|---|
rational.json-simplify-1 [=>]34.5 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{\left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) + \frac{{\ell}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
rational.json-simplify-48 [=>]34.5 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}}
\] |
rational.json-simplify-1 [=>]34.5 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{\left(2 \cdot {t}^{2} + 2 \cdot \frac{{t}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]34.5 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot {t}^{2} + \color{blue}{\frac{{t}^{2}}{x} \cdot 2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-51 [=>]34.5 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]34.5 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x} \cdot -1}\right)}}
\] |
rational.json-simplify-9 [=>]34.5 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\left(-\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}\right)}}
\] |
Taylor expanded in t around inf 22.9
Simplified22.9
[Start]22.9 | \[ \frac{\sqrt{2} \cdot t}{\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}}
\] |
|---|---|
rational.json-simplify-2 [<=]22.9 | \[ \frac{\sqrt{2} \cdot t}{\color{blue}{t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}}
\] |
rational.json-simplify-2 [=>]22.9 | \[ \frac{\sqrt{2} \cdot t}{t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + \color{blue}{\frac{1}{x} \cdot 2}} + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}}
\] |
rational.json-simplify-51 [=>]22.9 | \[ \frac{\sqrt{2} \cdot t}{t \cdot \sqrt{\color{blue}{2 \cdot \left(\frac{1}{x} + \left(1 + \frac{1}{x}\right)\right)}} + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}}
\] |
rational.json-simplify-41 [=>]22.9 | \[ \frac{\sqrt{2} \cdot t}{t \cdot \sqrt{2 \cdot \color{blue}{\left(1 + \left(\frac{1}{x} + \frac{1}{x}\right)\right)}} + \sqrt{\frac{1}{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}} \cdot \frac{{\ell}^{2}}{t \cdot x}}
\] |
if 8.5000000000000005e-39 < t Initial program 40.4
Simplified40.4
[Start]40.4 | \[ \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}}
\] |
|---|---|
rational.json-simplify-49 [=>]40.4 | \[ \color{blue}{t \cdot \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}}
\] |
rational.json-simplify-16 [=>]40.4 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{x + 1}{\color{blue}{x + -1}} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}
\] |
Taylor expanded in x around inf 36.6
Simplified36.6
[Start]36.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\left(\frac{{\ell}^{2}}{x} + \left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right)\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
|---|---|
rational.json-simplify-1 [=>]36.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\color{blue}{\left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) + \frac{{\ell}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}}}
\] |
rational.json-simplify-48 [=>]36.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\color{blue}{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot \frac{{t}^{2}}{x} + 2 \cdot {t}^{2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}}
\] |
rational.json-simplify-1 [=>]36.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{\left(2 \cdot {t}^{2} + 2 \cdot \frac{{t}^{2}}{x}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]36.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\left(2 \cdot {t}^{2} + \color{blue}{\frac{{t}^{2}}{x} \cdot 2}\right) - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-51 [=>]36.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(\color{blue}{2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right)} - -1 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}}
\] |
rational.json-simplify-2 [=>]36.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x} \cdot -1}\right)}}
\] |
rational.json-simplify-9 [=>]36.6 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{\frac{{\ell}^{2}}{x} + \left(2 \cdot \left(\frac{{t}^{2}}{x} + {t}^{2}\right) - \color{blue}{\left(-\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x}\right)}\right)}}
\] |
Taylor expanded in t around inf 7.1
Simplified7.1
[Start]7.1 | \[ t \cdot \frac{\sqrt{2}}{\sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}} \cdot t}
\] |
|---|---|
rational.json-simplify-2 [<=]7.1 | \[ t \cdot \frac{\sqrt{2}}{\color{blue}{t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + 2 \cdot \frac{1}{x}}}}
\] |
rational.json-simplify-2 [=>]7.1 | \[ t \cdot \frac{\sqrt{2}}{t \cdot \sqrt{2 \cdot \left(1 + \frac{1}{x}\right) + \color{blue}{\frac{1}{x} \cdot 2}}}
\] |
rational.json-simplify-51 [=>]7.1 | \[ t \cdot \frac{\sqrt{2}}{t \cdot \sqrt{\color{blue}{2 \cdot \left(\frac{1}{x} + \left(1 + \frac{1}{x}\right)\right)}}}
\] |
rational.json-simplify-41 [=>]7.1 | \[ t \cdot \frac{\sqrt{2}}{t \cdot \sqrt{2 \cdot \color{blue}{\left(1 + \left(\frac{1}{x} + \frac{1}{x}\right)\right)}}}
\] |
Taylor expanded in x around inf 6.7
Final simplification11.8
| Alternative 1 | |
|---|---|
| Error | 14.1 |
| Cost | 28300 |
| Alternative 2 | |
|---|---|
| Error | 13.9 |
| Cost | 28300 |
| Alternative 3 | |
|---|---|
| Error | 15.3 |
| Cost | 20356 |
| Alternative 4 | |
|---|---|
| Error | 15.2 |
| Cost | 20356 |
| Alternative 5 | |
|---|---|
| Error | 15.4 |
| Cost | 14084 |
| Alternative 6 | |
|---|---|
| Error | 15.4 |
| Cost | 14084 |
| Alternative 7 | |
|---|---|
| Error | 15.3 |
| Cost | 14084 |
| Alternative 8 | |
|---|---|
| Error | 15.7 |
| Cost | 13572 |
| Alternative 9 | |
|---|---|
| Error | 15.9 |
| Cost | 13188 |
| Alternative 10 | |
|---|---|
| Error | 33.8 |
| Cost | 7112 |
| Alternative 11 | |
|---|---|
| Error | 34.6 |
| Cost | 6984 |
| Alternative 12 | |
|---|---|
| Error | 34.6 |
| Cost | 6984 |
| Alternative 13 | |
|---|---|
| Error | 37.2 |
| Cost | 6852 |
| Alternative 14 | |
|---|---|
| Error | 39.1 |
| Cost | 320 |
| Alternative 15 | |
|---|---|
| Error | 39.3 |
| Cost | 64 |
herbie shell --seed 2023064
(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)))))