Average Error: 42.6 → 9.2
Time: 6.4s
Precision: binary64
\[\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} \mathbf{if}\;t \leq -9.246115186556483 \cdot 10^{+93}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{2 \cdot \left(\frac{t}{x \cdot \left(x \cdot \left(2 \cdot \sqrt{2}\right)\right)} - \frac{t}{\sqrt{2} \cdot x}\right) - t \cdot \sqrt{2}}\\ \mathbf{elif}\;t \leq 1.6159271744704112 \cdot 10^{+56}:\\ \;\;\;\;\frac{\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \left(t \cdot \sqrt[3]{\sqrt{2}}\right)}{\sqrt{4 \cdot \frac{t}{\frac{x}{t}} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{t \cdot \sqrt{2} + \left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + \frac{t}{x \cdot x} \cdot \left(\frac{2}{\sqrt{2}} - \frac{2}{2 \cdot \sqrt{2}}\right)\right)}\\ \end{array}\]
\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}
\mathbf{if}\;t \leq -9.246115186556483 \cdot 10^{+93}:\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{2 \cdot \left(\frac{t}{x \cdot \left(x \cdot \left(2 \cdot \sqrt{2}\right)\right)} - \frac{t}{\sqrt{2} \cdot x}\right) - t \cdot \sqrt{2}}\\

\mathbf{elif}\;t \leq 1.6159271744704112 \cdot 10^{+56}:\\
\;\;\;\;\frac{\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \left(t \cdot \sqrt[3]{\sqrt{2}}\right)}{\sqrt{4 \cdot \frac{t}{\frac{x}{t}} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}\\

\mathbf{else}:\\
\;\;\;\;\frac{t \cdot \sqrt{2}}{t \cdot \sqrt{2} + \left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + \frac{t}{x \cdot x} \cdot \left(\frac{2}{\sqrt{2}} - \frac{2}{2 \cdot \sqrt{2}}\right)\right)}\\

\end{array}
double code(double x, double l, double t) {
	return (((double) (((double) sqrt(2.0)) * t)) / ((double) sqrt(((double) (((double) ((((double) (x + 1.0)) / ((double) (x - 1.0))) * ((double) (((double) (l * l)) + ((double) (2.0 * ((double) (t * t)))))))) - ((double) (l * l)))))));
}
double code(double x, double l, double t) {
	double VAR;
	if ((t <= -9.246115186556483e+93)) {
		VAR = (((double) (t * ((double) sqrt(2.0)))) / ((double) (((double) (2.0 * ((double) ((t / ((double) (x * ((double) (x * ((double) (2.0 * ((double) sqrt(2.0))))))))) - (t / ((double) (((double) sqrt(2.0)) * x))))))) - ((double) (t * ((double) sqrt(2.0)))))));
	} else {
		double VAR_1;
		if ((t <= 1.6159271744704112e+56)) {
			VAR_1 = (((double) (((double) (((double) cbrt(((double) sqrt(2.0)))) * ((double) cbrt(((double) sqrt(2.0)))))) * ((double) (t * ((double) cbrt(((double) sqrt(2.0)))))))) / ((double) sqrt(((double) (((double) (4.0 * (t / (x / t)))) + ((double) (2.0 * ((double) (((double) (t * t)) + (l / (x / l)))))))))));
		} else {
			VAR_1 = (((double) (t * ((double) sqrt(2.0)))) / ((double) (((double) (t * ((double) sqrt(2.0)))) + ((double) (((double) (2.0 * (t / ((double) (((double) sqrt(2.0)) * x))))) + ((double) ((t / ((double) (x * x))) * ((double) ((2.0 / ((double) sqrt(2.0))) - (2.0 / ((double) (2.0 * ((double) sqrt(2.0))))))))))))));
		}
		VAR = VAR_1;
	}
	return VAR;
}

Error

Bits error versus x

Bits error versus l

Bits error versus t

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 3 regimes
  2. if t < -9.2461151865564831e93

    1. Initial program Error: 49.5 bits

      \[\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}}\]
    2. Taylor expanded around inf Error: 49.1 bits

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{2 \cdot {t}^{2} + \left(2 \cdot \frac{{\ell}^{2}}{x} + 4 \cdot \frac{{t}^{2}}{x}\right)}}}\]
    3. SimplifiedError: 46.8 bits

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{4 \cdot \frac{t}{\frac{x}{t}} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}}\]
    4. Taylor expanded around -inf Error: 3.7 bits

      \[\leadsto \frac{\sqrt{2} \cdot t}{\color{blue}{2 \cdot \frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}} - \left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + t \cdot \sqrt{2}\right)}}\]
    5. SimplifiedError: 3.7 bits

      \[\leadsto \frac{\sqrt{2} \cdot t}{\color{blue}{2 \cdot \left(\frac{t}{x \cdot \left(x \cdot \left(2 \cdot \sqrt{2}\right)\right)} - \frac{t}{x \cdot \sqrt{2}}\right) - t \cdot \sqrt{2}}}\]

    if -9.2461151865564831e93 < t < 1.6159271744704112e56

    1. Initial program Error: 39.2 bits

      \[\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}}\]
    2. Taylor expanded around inf Error: 17.9 bits

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{2 \cdot {t}^{2} + \left(2 \cdot \frac{{\ell}^{2}}{x} + 4 \cdot \frac{{t}^{2}}{x}\right)}}}\]
    3. SimplifiedError: 13.7 bits

      \[\leadsto \frac{\sqrt{2} \cdot t}{\sqrt{\color{blue}{4 \cdot \frac{t}{\frac{x}{t}} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}}\]
    4. Using strategy rm
    5. Applied add-cube-cbrtError: 13.7 bits

      \[\leadsto \frac{\color{blue}{\left(\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \sqrt[3]{\sqrt{2}}\right)} \cdot t}{\sqrt{4 \cdot \frac{t}{\frac{x}{t}} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}\]
    6. Applied associate-*l*Error: 13.7 bits

      \[\leadsto \frac{\color{blue}{\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \left(\sqrt[3]{\sqrt{2}} \cdot t\right)}}{\sqrt{4 \cdot \frac{t}{\frac{x}{t}} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}\]
    7. SimplifiedError: 13.7 bits

      \[\leadsto \frac{\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \color{blue}{\left(t \cdot \sqrt[3]{\sqrt{2}}\right)}}{\sqrt{4 \cdot \frac{t}{\frac{x}{t}} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}\]

    if 1.6159271744704112e56 < t

    1. Initial program Error: 44.6 bits

      \[\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}}\]
    2. Taylor expanded around inf Error: 3.6 bits

      \[\leadsto \frac{\sqrt{2} \cdot t}{\color{blue}{\left(2 \cdot \frac{t}{\sqrt{2} \cdot {x}^{2}} + \left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + t \cdot \sqrt{2}\right)\right) - 2 \cdot \frac{t}{{\left(\sqrt{2}\right)}^{3} \cdot {x}^{2}}}}\]
    3. SimplifiedError: 3.6 bits

      \[\leadsto \frac{\sqrt{2} \cdot t}{\color{blue}{t \cdot \sqrt{2} + \left(2 \cdot \frac{t}{x \cdot \sqrt{2}} + \frac{t}{x \cdot x} \cdot \left(\frac{2}{\sqrt{2}} - \frac{2}{2 \cdot \sqrt{2}}\right)\right)}}\]
  3. Recombined 3 regimes into one program.
  4. Final simplificationError: 9.2 bits

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9.246115186556483 \cdot 10^{+93}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{2 \cdot \left(\frac{t}{x \cdot \left(x \cdot \left(2 \cdot \sqrt{2}\right)\right)} - \frac{t}{\sqrt{2} \cdot x}\right) - t \cdot \sqrt{2}}\\ \mathbf{elif}\;t \leq 1.6159271744704112 \cdot 10^{+56}:\\ \;\;\;\;\frac{\left(\sqrt[3]{\sqrt{2}} \cdot \sqrt[3]{\sqrt{2}}\right) \cdot \left(t \cdot \sqrt[3]{\sqrt{2}}\right)}{\sqrt{4 \cdot \frac{t}{\frac{x}{t}} + 2 \cdot \left(t \cdot t + \frac{\ell}{\frac{x}{\ell}}\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{t \cdot \sqrt{2}}{t \cdot \sqrt{2} + \left(2 \cdot \frac{t}{\sqrt{2} \cdot x} + \frac{t}{x \cdot x} \cdot \left(\frac{2}{\sqrt{2}} - \frac{2}{2 \cdot \sqrt{2}}\right)\right)}\\ \end{array}\]

Reproduce

herbie shell --seed 2020200 
(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)))))