| Alternative 1 | |
|---|---|
| Error | 9.9 |
| Cost | 20356 |
(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 (* (sqrt 2.0) (/ t (sqrt (* 2.0 (+ (/ l (/ x l)) (* t t))))))))
(if (<= t -1.45e-12)
(/
(* t (sqrt 2.0))
(* (sqrt (/ (+ x 1.0) (+ x -1.0))) (* t (- (sqrt 2.0)))))
(if (<= t 4.1e-297)
t_1
(if (<= t 1.36e-173)
(sqrt
(*
2.0
(/
t
(fma
2.0
t
(fma
2.0
(/ l (/ (* t x) l))
(fma 4.0 (/ t x) (/ (* l l) (/ t 2.0))))))))
(if (<= t 1.12e+97) t_1 (+ 1.0 (+ (/ 0.5 (* x x)) (/ -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 = sqrt(2.0) * (t / sqrt((2.0 * ((l / (x / l)) + (t * t)))));
double tmp;
if (t <= -1.45e-12) {
tmp = (t * sqrt(2.0)) / (sqrt(((x + 1.0) / (x + -1.0))) * (t * -sqrt(2.0)));
} else if (t <= 4.1e-297) {
tmp = t_1;
} else if (t <= 1.36e-173) {
tmp = sqrt((2.0 * (t / fma(2.0, t, fma(2.0, (l / ((t * x) / l)), fma(4.0, (t / x), ((l * l) / (t / 2.0))))))));
} else if (t <= 1.12e+97) {
tmp = t_1;
} else {
tmp = 1.0 + ((0.5 / (x * x)) + (-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(sqrt(2.0) * Float64(t / sqrt(Float64(2.0 * Float64(Float64(l / Float64(x / l)) + Float64(t * t)))))) tmp = 0.0 if (t <= -1.45e-12) tmp = Float64(Float64(t * sqrt(2.0)) / Float64(sqrt(Float64(Float64(x + 1.0) / Float64(x + -1.0))) * Float64(t * Float64(-sqrt(2.0))))); elseif (t <= 4.1e-297) tmp = t_1; elseif (t <= 1.36e-173) tmp = sqrt(Float64(2.0 * Float64(t / fma(2.0, t, fma(2.0, Float64(l / Float64(Float64(t * x) / l)), fma(4.0, Float64(t / x), Float64(Float64(l * l) / Float64(t / 2.0)))))))); elseif (t <= 1.12e+97) tmp = t_1; else tmp = Float64(1.0 + Float64(Float64(0.5 / Float64(x * x)) + Float64(-1.0 / x))); end return 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[Sqrt[2.0], $MachinePrecision] * N[(t / N[Sqrt[N[(2.0 * N[(N[(l / N[(x / l), $MachinePrecision]), $MachinePrecision] + N[(t * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e-12], N[(N[(t * N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] / N[(N[Sqrt[N[(N[(x + 1.0), $MachinePrecision] / N[(x + -1.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(t * (-N[Sqrt[2.0], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.1e-297], t$95$1, If[LessEqual[t, 1.36e-173], N[Sqrt[N[(2.0 * N[(t / N[(2.0 * t + N[(2.0 * N[(l / N[(N[(t * x), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision] + N[(4.0 * N[(t / x), $MachinePrecision] + N[(N[(l * l), $MachinePrecision] / N[(t / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], If[LessEqual[t, 1.12e+97], t$95$1, N[(1.0 + N[(N[(0.5 / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / x), $MachinePrecision]), $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 := \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\frac{\ell}{\frac{x}{\ell}} + t \cdot t\right)}}\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{-12}:\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{\sqrt{\frac{x + 1}{x + -1}} \cdot \left(t \cdot \left(-\sqrt{2}\right)\right)}\\
\mathbf{elif}\;t \leq 4.1 \cdot 10^{-297}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.36 \cdot 10^{-173}:\\
\;\;\;\;\sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \mathsf{fma}\left(2, \frac{\ell}{\frac{t \cdot x}{\ell}}, \mathsf{fma}\left(4, \frac{t}{x}, \frac{\ell \cdot \ell}{\frac{t}{2}}\right)\right)\right)}}\\
\mathbf{elif}\;t \leq 1.12 \cdot 10^{+97}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;1 + \left(\frac{0.5}{x \cdot x} + \frac{-1}{x}\right)\\
\end{array}
if t < -1.4500000000000001e-12Initial program 41.8
Taylor expanded in t around -inf 4.7
Simplified4.7
[Start]4.7 | \[ \frac{\sqrt{2} \cdot t}{-1 \cdot \left(\left(\sqrt{2} \cdot t\right) \cdot \sqrt{\frac{1 + x}{x - 1}}\right)}
\] |
|---|---|
mul-1-neg [=>]4.7 | \[ \frac{\sqrt{2} \cdot t}{\color{blue}{-\left(\sqrt{2} \cdot t\right) \cdot \sqrt{\frac{1 + x}{x - 1}}}}
\] |
*-commutative [<=]4.7 | \[ \frac{\sqrt{2} \cdot t}{-\color{blue}{\left(t \cdot \sqrt{2}\right)} \cdot \sqrt{\frac{1 + x}{x - 1}}}
\] |
sub-neg [=>]4.7 | \[ \frac{\sqrt{2} \cdot t}{-\left(t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{1 + x}{\color{blue}{x + \left(-1\right)}}}}
\] |
metadata-eval [=>]4.7 | \[ \frac{\sqrt{2} \cdot t}{-\left(t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{1 + x}{x + \color{blue}{-1}}}}
\] |
+-commutative [=>]4.7 | \[ \frac{\sqrt{2} \cdot t}{-\left(t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{\color{blue}{x + 1}}{x + -1}}}
\] |
+-commutative [=>]4.7 | \[ \frac{\sqrt{2} \cdot t}{-\left(t \cdot \sqrt{2}\right) \cdot \sqrt{\frac{x + 1}{\color{blue}{-1 + x}}}}
\] |
if -1.4500000000000001e-12 < t < 4.1000000000000002e-297 or 1.3600000000000001e-173 < t < 1.12e97Initial program 37.1
Simplified43.9
[Start]37.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}}
\] |
|---|---|
associate-*r/ [<=]37.2 | \[ \color{blue}{\sqrt{2} \cdot \frac{t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}}
\] |
associate-*l/ [=>]39.8 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\frac{\left(x + 1\right) \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)}{x - 1}} - \ell \cdot \ell}}
\] |
associate-*r/ [<=]44.6 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(x + 1\right) \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}} - \ell \cdot \ell}}
\] |
*-lft-identity [<=]44.6 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(1 \cdot \left(x + 1\right)\right)} \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1} - \ell \cdot \ell}}
\] |
associate-*r* [<=]44.6 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{1 \cdot \left(\left(x + 1\right) \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right)} - \ell \cdot \ell}}
\] |
*-commutative [<=]44.6 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{1 \cdot \color{blue}{\left(\frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1} \cdot \left(x + 1\right)\right)} - \ell \cdot \ell}}
\] |
associate-*r* [=>]44.6 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right) \cdot \left(x + 1\right)} - \ell \cdot \ell}}
\] |
*-commutative [<=]44.6 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(x + 1\right) \cdot \left(1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right)} - \ell \cdot \ell}}
\] |
fma-neg [=>]43.9 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\mathsf{fma}\left(x + 1, 1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}, -\ell \cdot \ell\right)}}}
\] |
Taylor expanded in x around -inf 16.5
Simplified16.5
[Start]16.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x} + 2 \cdot {t}^{2}}}
\] |
|---|---|
distribute-lft-out [=>]16.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{2 \cdot \left(\frac{{\ell}^{2} + 2 \cdot {t}^{2}}{x} + {t}^{2}\right)}}}
\] |
+-commutative [=>]16.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\frac{\color{blue}{2 \cdot {t}^{2} + {\ell}^{2}}}{x} + {t}^{2}\right)}}
\] |
unpow2 [=>]16.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\frac{2 \cdot {t}^{2} + \color{blue}{\ell \cdot \ell}}{x} + {t}^{2}\right)}}
\] |
fma-udef [<=]16.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\frac{\color{blue}{\mathsf{fma}\left(2, {t}^{2}, \ell \cdot \ell\right)}}{x} + {t}^{2}\right)}}
\] |
unpow2 [=>]16.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\frac{\mathsf{fma}\left(2, \color{blue}{t \cdot t}, \ell \cdot \ell\right)}{x} + {t}^{2}\right)}}
\] |
unpow2 [=>]16.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\frac{\mathsf{fma}\left(2, t \cdot t, \ell \cdot \ell\right)}{x} + \color{blue}{t \cdot t}\right)}}
\] |
Taylor expanded in t around 0 16.9
Simplified12.4
[Start]16.9 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\frac{{\ell}^{2}}{x} + t \cdot t\right)}}
\] |
|---|---|
unpow2 [=>]16.9 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\frac{\color{blue}{\ell \cdot \ell}}{x} + t \cdot t\right)}}
\] |
associate-/l* [=>]12.4 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{2 \cdot \left(\color{blue}{\frac{\ell}{\frac{x}{\ell}}} + t \cdot t\right)}}
\] |
if 4.1000000000000002e-297 < t < 1.3600000000000001e-173Initial program 63.5
Simplified62.2
[Start]63.5 | \[ \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}}
\] |
|---|---|
associate-*r/ [<=]63.5 | \[ \color{blue}{\sqrt{2} \cdot \frac{t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}}
\] |
associate-*l/ [=>]61.9 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\frac{\left(x + 1\right) \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)}{x - 1}} - \ell \cdot \ell}}
\] |
associate-*r/ [<=]63.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(x + 1\right) \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}} - \ell \cdot \ell}}
\] |
*-lft-identity [<=]63.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(1 \cdot \left(x + 1\right)\right)} \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1} - \ell \cdot \ell}}
\] |
associate-*r* [<=]63.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{1 \cdot \left(\left(x + 1\right) \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right)} - \ell \cdot \ell}}
\] |
*-commutative [<=]63.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{1 \cdot \color{blue}{\left(\frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1} \cdot \left(x + 1\right)\right)} - \ell \cdot \ell}}
\] |
associate-*r* [=>]63.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right) \cdot \left(x + 1\right)} - \ell \cdot \ell}}
\] |
*-commutative [<=]63.5 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(x + 1\right) \cdot \left(1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right)} - \ell \cdot \ell}}
\] |
fma-neg [=>]62.2 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\mathsf{fma}\left(x + 1, 1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}, -\ell \cdot \ell\right)}}}
\] |
Applied egg-rr48.7
Taylor expanded in x around inf 27.2
Simplified25.2
[Start]27.2 | \[ \sqrt{2 \cdot \frac{t}{2 \cdot t + \left(2 \cdot \frac{{\ell}^{2}}{t \cdot x} + \left(4 \cdot \frac{t}{x} + 2 \cdot \frac{{\ell}^{2}}{t}\right)\right)}}
\] |
|---|---|
fma-def [=>]27.2 | \[ \sqrt{2 \cdot \frac{t}{\color{blue}{\mathsf{fma}\left(2, t, 2 \cdot \frac{{\ell}^{2}}{t \cdot x} + \left(4 \cdot \frac{t}{x} + 2 \cdot \frac{{\ell}^{2}}{t}\right)\right)}}}
\] |
fma-def [=>]27.2 | \[ \sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \color{blue}{\mathsf{fma}\left(2, \frac{{\ell}^{2}}{t \cdot x}, 4 \cdot \frac{t}{x} + 2 \cdot \frac{{\ell}^{2}}{t}\right)}\right)}}
\] |
unpow2 [=>]27.2 | \[ \sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \mathsf{fma}\left(2, \frac{\color{blue}{\ell \cdot \ell}}{t \cdot x}, 4 \cdot \frac{t}{x} + 2 \cdot \frac{{\ell}^{2}}{t}\right)\right)}}
\] |
associate-/l* [=>]25.2 | \[ \sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \mathsf{fma}\left(2, \color{blue}{\frac{\ell}{\frac{t \cdot x}{\ell}}}, 4 \cdot \frac{t}{x} + 2 \cdot \frac{{\ell}^{2}}{t}\right)\right)}}
\] |
fma-def [=>]25.2 | \[ \sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \mathsf{fma}\left(2, \frac{\ell}{\frac{t \cdot x}{\ell}}, \color{blue}{\mathsf{fma}\left(4, \frac{t}{x}, 2 \cdot \frac{{\ell}^{2}}{t}\right)}\right)\right)}}
\] |
associate-*r/ [=>]25.2 | \[ \sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \mathsf{fma}\left(2, \frac{\ell}{\frac{t \cdot x}{\ell}}, \mathsf{fma}\left(4, \frac{t}{x}, \color{blue}{\frac{2 \cdot {\ell}^{2}}{t}}\right)\right)\right)}}
\] |
*-commutative [=>]25.2 | \[ \sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \mathsf{fma}\left(2, \frac{\ell}{\frac{t \cdot x}{\ell}}, \mathsf{fma}\left(4, \frac{t}{x}, \frac{\color{blue}{{\ell}^{2} \cdot 2}}{t}\right)\right)\right)}}
\] |
associate-/l* [=>]25.2 | \[ \sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \mathsf{fma}\left(2, \frac{\ell}{\frac{t \cdot x}{\ell}}, \mathsf{fma}\left(4, \frac{t}{x}, \color{blue}{\frac{{\ell}^{2}}{\frac{t}{2}}}\right)\right)\right)}}
\] |
unpow2 [=>]25.2 | \[ \sqrt{2 \cdot \frac{t}{\mathsf{fma}\left(2, t, \mathsf{fma}\left(2, \frac{\ell}{\frac{t \cdot x}{\ell}}, \mathsf{fma}\left(4, \frac{t}{x}, \frac{\color{blue}{\ell \cdot \ell}}{\frac{t}{2}}\right)\right)\right)}}
\] |
if 1.12e97 < t Initial program 50.2
Simplified50.2
[Start]50.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}}
\] |
|---|---|
associate-*r/ [<=]50.2 | \[ \color{blue}{\sqrt{2} \cdot \frac{t}{\sqrt{\frac{x + 1}{x - 1} \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right) - \ell \cdot \ell}}}
\] |
associate-*l/ [=>]60.0 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\frac{\left(x + 1\right) \cdot \left(\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)\right)}{x - 1}} - \ell \cdot \ell}}
\] |
associate-*r/ [<=]50.2 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(x + 1\right) \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}} - \ell \cdot \ell}}
\] |
*-lft-identity [<=]50.2 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(1 \cdot \left(x + 1\right)\right)} \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1} - \ell \cdot \ell}}
\] |
associate-*r* [<=]50.2 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{1 \cdot \left(\left(x + 1\right) \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right)} - \ell \cdot \ell}}
\] |
*-commutative [<=]50.2 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{1 \cdot \color{blue}{\left(\frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1} \cdot \left(x + 1\right)\right)} - \ell \cdot \ell}}
\] |
associate-*r* [=>]50.2 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right) \cdot \left(x + 1\right)} - \ell \cdot \ell}}
\] |
*-commutative [<=]50.2 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\left(x + 1\right) \cdot \left(1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}\right)} - \ell \cdot \ell}}
\] |
fma-neg [=>]50.2 | \[ \sqrt{2} \cdot \frac{t}{\sqrt{\color{blue}{\mathsf{fma}\left(x + 1, 1 \cdot \frac{\ell \cdot \ell + 2 \cdot \left(t \cdot t\right)}{x - 1}, -\ell \cdot \ell\right)}}}
\] |
Taylor expanded in t around inf 3.5
Applied egg-rr2.6
Taylor expanded in x around inf 3.0
Simplified3.0
[Start]3.0 | \[ 1 \cdot \left(\left(1 + 0.5 \cdot \frac{1}{{x}^{2}}\right) - \frac{1}{x}\right)
\] |
|---|---|
associate--l+ [=>]3.0 | \[ 1 \cdot \color{blue}{\left(1 + \left(0.5 \cdot \frac{1}{{x}^{2}} - \frac{1}{x}\right)\right)}
\] |
associate-*r/ [=>]3.0 | \[ 1 \cdot \left(1 + \left(\color{blue}{\frac{0.5 \cdot 1}{{x}^{2}}} - \frac{1}{x}\right)\right)
\] |
metadata-eval [=>]3.0 | \[ 1 \cdot \left(1 + \left(\frac{\color{blue}{0.5}}{{x}^{2}} - \frac{1}{x}\right)\right)
\] |
unpow2 [=>]3.0 | \[ 1 \cdot \left(1 + \left(\frac{0.5}{\color{blue}{x \cdot x}} - \frac{1}{x}\right)\right)
\] |
Final simplification9.2
| Alternative 1 | |
|---|---|
| Error | 9.9 |
| Cost | 20356 |
| Alternative 2 | |
|---|---|
| Error | 9.9 |
| Cost | 20356 |
| Alternative 3 | |
|---|---|
| Error | 9.9 |
| Cost | 14288 |
| Alternative 4 | |
|---|---|
| Error | 13.8 |
| Cost | 13768 |
| Alternative 5 | |
|---|---|
| Error | 13.5 |
| Cost | 13768 |
| Alternative 6 | |
|---|---|
| Error | 14.4 |
| Cost | 7556 |
| Alternative 7 | |
|---|---|
| Error | 14.4 |
| Cost | 7112 |
| Alternative 8 | |
|---|---|
| Error | 14.6 |
| Cost | 7048 |
| Alternative 9 | |
|---|---|
| Error | 14.6 |
| Cost | 7048 |
| Alternative 10 | |
|---|---|
| Error | 14.1 |
| Cost | 6984 |
| Alternative 11 | |
|---|---|
| Error | 14.9 |
| Cost | 836 |
| Alternative 12 | |
|---|---|
| Error | 14.9 |
| Cost | 836 |
| Alternative 13 | |
|---|---|
| Error | 14.9 |
| Cost | 836 |
| Alternative 14 | |
|---|---|
| Error | 15.2 |
| Cost | 452 |
| Alternative 15 | |
|---|---|
| Error | 15.0 |
| Cost | 452 |
| Alternative 16 | |
|---|---|
| Error | 15.5 |
| Cost | 196 |
| Alternative 17 | |
|---|---|
| Error | 39.4 |
| Cost | 64 |
herbie shell --seed 2023027
(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)))))