?

Average Accuracy: 70.6% → 92.3%
Time: 18.3s
Precision: binary64
Cost: 14288

?

\[ \begin{array}{c}[V, l] = \mathsf{sort}([V, l])\\ \end{array} \]
\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]
\[\begin{array}{l} t_0 := \sqrt{-\frac{A}{\ell}}\\ t_1 := \sqrt{-V}\\ \mathbf{if}\;V \cdot \ell \leq -\infty:\\ \;\;\;\;\frac{c0}{t_1} \cdot t_0\\ \mathbf{elif}\;V \cdot \ell \leq -5 \cdot 10^{-318}:\\ \;\;\;\;\frac{c0}{\frac{\sqrt{V \cdot \left(-\ell\right)}}{\sqrt{-A}}}\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;\frac{c0}{\frac{t_1}{t_0}}\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \end{array} \]
(FPCore (c0 A V l) :precision binary64 (* c0 (sqrt (/ A (* V l)))))
(FPCore (c0 A V l)
 :precision binary64
 (let* ((t_0 (sqrt (- (/ A l)))) (t_1 (sqrt (- V))))
   (if (<= (* V l) (- INFINITY))
     (* (/ c0 t_1) t_0)
     (if (<= (* V l) -5e-318)
       (/ c0 (/ (sqrt (* V (- l))) (sqrt (- A))))
       (if (<= (* V l) 0.0)
         (/ c0 (/ t_1 t_0))
         (if (<= (* V l) 1e+306)
           (* c0 (/ (sqrt A) (sqrt (* V l))))
           (* c0 (sqrt (/ (/ A l) V)))))))))
double code(double c0, double A, double V, double l) {
	return c0 * sqrt((A / (V * l)));
}
double code(double c0, double A, double V, double l) {
	double t_0 = sqrt(-(A / l));
	double t_1 = sqrt(-V);
	double tmp;
	if ((V * l) <= -((double) INFINITY)) {
		tmp = (c0 / t_1) * t_0;
	} else if ((V * l) <= -5e-318) {
		tmp = c0 / (sqrt((V * -l)) / sqrt(-A));
	} else if ((V * l) <= 0.0) {
		tmp = c0 / (t_1 / t_0);
	} else if ((V * l) <= 1e+306) {
		tmp = c0 * (sqrt(A) / sqrt((V * l)));
	} else {
		tmp = c0 * sqrt(((A / l) / V));
	}
	return tmp;
}
public static double code(double c0, double A, double V, double l) {
	return c0 * Math.sqrt((A / (V * l)));
}
public static double code(double c0, double A, double V, double l) {
	double t_0 = Math.sqrt(-(A / l));
	double t_1 = Math.sqrt(-V);
	double tmp;
	if ((V * l) <= -Double.POSITIVE_INFINITY) {
		tmp = (c0 / t_1) * t_0;
	} else if ((V * l) <= -5e-318) {
		tmp = c0 / (Math.sqrt((V * -l)) / Math.sqrt(-A));
	} else if ((V * l) <= 0.0) {
		tmp = c0 / (t_1 / t_0);
	} else if ((V * l) <= 1e+306) {
		tmp = c0 * (Math.sqrt(A) / Math.sqrt((V * l)));
	} else {
		tmp = c0 * Math.sqrt(((A / l) / V));
	}
	return tmp;
}
def code(c0, A, V, l):
	return c0 * math.sqrt((A / (V * l)))
def code(c0, A, V, l):
	t_0 = math.sqrt(-(A / l))
	t_1 = math.sqrt(-V)
	tmp = 0
	if (V * l) <= -math.inf:
		tmp = (c0 / t_1) * t_0
	elif (V * l) <= -5e-318:
		tmp = c0 / (math.sqrt((V * -l)) / math.sqrt(-A))
	elif (V * l) <= 0.0:
		tmp = c0 / (t_1 / t_0)
	elif (V * l) <= 1e+306:
		tmp = c0 * (math.sqrt(A) / math.sqrt((V * l)))
	else:
		tmp = c0 * math.sqrt(((A / l) / V))
	return tmp
function code(c0, A, V, l)
	return Float64(c0 * sqrt(Float64(A / Float64(V * l))))
end
function code(c0, A, V, l)
	t_0 = sqrt(Float64(-Float64(A / l)))
	t_1 = sqrt(Float64(-V))
	tmp = 0.0
	if (Float64(V * l) <= Float64(-Inf))
		tmp = Float64(Float64(c0 / t_1) * t_0);
	elseif (Float64(V * l) <= -5e-318)
		tmp = Float64(c0 / Float64(sqrt(Float64(V * Float64(-l))) / sqrt(Float64(-A))));
	elseif (Float64(V * l) <= 0.0)
		tmp = Float64(c0 / Float64(t_1 / t_0));
	elseif (Float64(V * l) <= 1e+306)
		tmp = Float64(c0 * Float64(sqrt(A) / sqrt(Float64(V * l))));
	else
		tmp = Float64(c0 * sqrt(Float64(Float64(A / l) / V)));
	end
	return tmp
end
function tmp = code(c0, A, V, l)
	tmp = c0 * sqrt((A / (V * l)));
end
function tmp_2 = code(c0, A, V, l)
	t_0 = sqrt(-(A / l));
	t_1 = sqrt(-V);
	tmp = 0.0;
	if ((V * l) <= -Inf)
		tmp = (c0 / t_1) * t_0;
	elseif ((V * l) <= -5e-318)
		tmp = c0 / (sqrt((V * -l)) / sqrt(-A));
	elseif ((V * l) <= 0.0)
		tmp = c0 / (t_1 / t_0);
	elseif ((V * l) <= 1e+306)
		tmp = c0 * (sqrt(A) / sqrt((V * l)));
	else
		tmp = c0 * sqrt(((A / l) / V));
	end
	tmp_2 = tmp;
end
code[c0_, A_, V_, l_] := N[(c0 * N[Sqrt[N[(A / N[(V * l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
code[c0_, A_, V_, l_] := Block[{t$95$0 = N[Sqrt[(-N[(A / l), $MachinePrecision])], $MachinePrecision]}, Block[{t$95$1 = N[Sqrt[(-V)], $MachinePrecision]}, If[LessEqual[N[(V * l), $MachinePrecision], (-Infinity)], N[(N[(c0 / t$95$1), $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[N[(V * l), $MachinePrecision], -5e-318], N[(c0 / N[(N[Sqrt[N[(V * (-l)), $MachinePrecision]], $MachinePrecision] / N[Sqrt[(-A)], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(V * l), $MachinePrecision], 0.0], N[(c0 / N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(V * l), $MachinePrecision], 1e+306], N[(c0 * N[(N[Sqrt[A], $MachinePrecision] / N[Sqrt[N[(V * l), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c0 * N[Sqrt[N[(N[(A / l), $MachinePrecision] / V), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]]]
c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}
\begin{array}{l}
t_0 := \sqrt{-\frac{A}{\ell}}\\
t_1 := \sqrt{-V}\\
\mathbf{if}\;V \cdot \ell \leq -\infty:\\
\;\;\;\;\frac{c0}{t_1} \cdot t_0\\

\mathbf{elif}\;V \cdot \ell \leq -5 \cdot 10^{-318}:\\
\;\;\;\;\frac{c0}{\frac{\sqrt{V \cdot \left(-\ell\right)}}{\sqrt{-A}}}\\

\mathbf{elif}\;V \cdot \ell \leq 0:\\
\;\;\;\;\frac{c0}{\frac{t_1}{t_0}}\\

\mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\

\mathbf{else}:\\
\;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Split input into 5 regimes
  2. if (*.f64 V l) < -inf.0

    1. Initial program 36.2%

      \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]
    2. Applied egg-rr66.3%

      \[\leadsto \color{blue}{\frac{c0}{\sqrt{\frac{V}{\frac{A}{\ell}}}}} \]
      Proof

      [Start]36.2

      \[ c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]

      clear-num [=>]36.2

      \[ c0 \cdot \sqrt{\color{blue}{\frac{1}{\frac{V \cdot \ell}{A}}}} \]

      sqrt-div [=>]36.2

      \[ c0 \cdot \color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{V \cdot \ell}{A}}}} \]

      metadata-eval [=>]36.2

      \[ c0 \cdot \frac{\color{blue}{1}}{\sqrt{\frac{V \cdot \ell}{A}}} \]

      associate-*r/ [=>]36.2

      \[ \color{blue}{\frac{c0 \cdot 1}{\sqrt{\frac{V \cdot \ell}{A}}}} \]

      *-commutative [<=]36.2

      \[ \frac{\color{blue}{1 \cdot c0}}{\sqrt{\frac{V \cdot \ell}{A}}} \]

      *-un-lft-identity [<=]36.2

      \[ \frac{\color{blue}{c0}}{\sqrt{\frac{V \cdot \ell}{A}}} \]

      associate-/l* [=>]66.3

      \[ \frac{c0}{\sqrt{\color{blue}{\frac{V}{\frac{A}{\ell}}}}} \]
    3. Applied egg-rr86.0%

      \[\leadsto \color{blue}{\frac{c0}{\sqrt{-V}} \cdot \sqrt{\frac{-A}{\ell}}} \]
      Proof

      [Start]66.3

      \[ \frac{c0}{\sqrt{\frac{V}{\frac{A}{\ell}}}} \]

      frac-2neg [=>]66.3

      \[ \frac{c0}{\sqrt{\color{blue}{\frac{-V}{-\frac{A}{\ell}}}}} \]

      sqrt-div [=>]86.6

      \[ \frac{c0}{\color{blue}{\frac{\sqrt{-V}}{\sqrt{-\frac{A}{\ell}}}}} \]

      associate-/r/ [=>]86.0

      \[ \color{blue}{\frac{c0}{\sqrt{-V}} \cdot \sqrt{-\frac{A}{\ell}}} \]

      distribute-neg-frac [=>]86.0

      \[ \frac{c0}{\sqrt{-V}} \cdot \sqrt{\color{blue}{\frac{-A}{\ell}}} \]

    if -inf.0 < (*.f64 V l) < -4.9999987e-318

    1. Initial program 84.6%

      \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]
    2. Applied egg-rr95.7%

      \[\leadsto \color{blue}{\frac{c0 \cdot \sqrt{-A}}{\sqrt{V \cdot \left(-\ell\right)}}} \]
      Proof

      [Start]84.6

      \[ c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]

      frac-2neg [=>]84.6

      \[ c0 \cdot \sqrt{\color{blue}{\frac{-A}{-V \cdot \ell}}} \]

      sqrt-div [=>]99.2

      \[ c0 \cdot \color{blue}{\frac{\sqrt{-A}}{\sqrt{-V \cdot \ell}}} \]

      associate-*r/ [=>]95.7

      \[ \color{blue}{\frac{c0 \cdot \sqrt{-A}}{\sqrt{-V \cdot \ell}}} \]

      distribute-rgt-neg-in [=>]95.7

      \[ \frac{c0 \cdot \sqrt{-A}}{\sqrt{\color{blue}{V \cdot \left(-\ell\right)}}} \]
    3. Simplified99.3%

      \[\leadsto \color{blue}{\frac{c0}{\frac{\sqrt{V \cdot \left(-\ell\right)}}{\sqrt{-A}}}} \]
      Proof

      [Start]95.7

      \[ \frac{c0 \cdot \sqrt{-A}}{\sqrt{V \cdot \left(-\ell\right)}} \]

      associate-/l* [=>]99.3

      \[ \color{blue}{\frac{c0}{\frac{\sqrt{V \cdot \left(-\ell\right)}}{\sqrt{-A}}}} \]

    if -4.9999987e-318 < (*.f64 V l) < 0.0

    1. Initial program 1.0%

      \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]
    2. Applied egg-rr39.4%

      \[\leadsto \color{blue}{\frac{c0}{\sqrt{\frac{V}{\frac{A}{\ell}}}}} \]
      Proof

      [Start]1.0

      \[ c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]

      clear-num [=>]1.0

      \[ c0 \cdot \sqrt{\color{blue}{\frac{1}{\frac{V \cdot \ell}{A}}}} \]

      sqrt-div [=>]1.0

      \[ c0 \cdot \color{blue}{\frac{\sqrt{1}}{\sqrt{\frac{V \cdot \ell}{A}}}} \]

      metadata-eval [=>]1.0

      \[ c0 \cdot \frac{\color{blue}{1}}{\sqrt{\frac{V \cdot \ell}{A}}} \]

      associate-*r/ [=>]1.0

      \[ \color{blue}{\frac{c0 \cdot 1}{\sqrt{\frac{V \cdot \ell}{A}}}} \]

      *-commutative [<=]1.0

      \[ \frac{\color{blue}{1 \cdot c0}}{\sqrt{\frac{V \cdot \ell}{A}}} \]

      *-un-lft-identity [<=]1.0

      \[ \frac{\color{blue}{c0}}{\sqrt{\frac{V \cdot \ell}{A}}} \]

      associate-/l* [=>]39.4

      \[ \frac{c0}{\sqrt{\color{blue}{\frac{V}{\frac{A}{\ell}}}}} \]
    3. Applied egg-rr55.8%

      \[\leadsto \frac{c0}{\color{blue}{\frac{\sqrt{-V}}{\sqrt{\frac{-A}{\ell}}}}} \]
      Proof

      [Start]39.4

      \[ \frac{c0}{\sqrt{\frac{V}{\frac{A}{\ell}}}} \]

      frac-2neg [=>]39.4

      \[ \frac{c0}{\sqrt{\color{blue}{\frac{-V}{-\frac{A}{\ell}}}}} \]

      sqrt-div [=>]55.8

      \[ \frac{c0}{\color{blue}{\frac{\sqrt{-V}}{\sqrt{-\frac{A}{\ell}}}}} \]

      distribute-neg-frac [=>]55.8

      \[ \frac{c0}{\frac{\sqrt{-V}}{\sqrt{\color{blue}{\frac{-A}{\ell}}}}} \]

    if 0.0 < (*.f64 V l) < 1.00000000000000002e306

    1. Initial program 83.3%

      \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]
    2. Applied egg-rr98.7%

      \[\leadsto c0 \cdot \color{blue}{\left(\sqrt{A} \cdot \frac{1}{\sqrt{V \cdot \ell}}\right)} \]
      Proof

      [Start]83.3

      \[ c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]

      sqrt-div [=>]98.8

      \[ c0 \cdot \color{blue}{\frac{\sqrt{A}}{\sqrt{V \cdot \ell}}} \]

      div-inv [=>]98.7

      \[ c0 \cdot \color{blue}{\left(\sqrt{A} \cdot \frac{1}{\sqrt{V \cdot \ell}}\right)} \]
    3. Simplified98.8%

      \[\leadsto c0 \cdot \color{blue}{\frac{\sqrt{A}}{\sqrt{V \cdot \ell}}} \]
      Proof

      [Start]98.7

      \[ c0 \cdot \left(\sqrt{A} \cdot \frac{1}{\sqrt{V \cdot \ell}}\right) \]

      *-commutative [<=]98.7

      \[ c0 \cdot \color{blue}{\left(\frac{1}{\sqrt{V \cdot \ell}} \cdot \sqrt{A}\right)} \]

      associate-*l/ [=>]98.8

      \[ c0 \cdot \color{blue}{\frac{1 \cdot \sqrt{A}}{\sqrt{V \cdot \ell}}} \]

      *-lft-identity [=>]98.8

      \[ c0 \cdot \frac{\color{blue}{\sqrt{A}}}{\sqrt{V \cdot \ell}} \]

    if 1.00000000000000002e306 < (*.f64 V l)

    1. Initial program 33.3%

      \[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]
    2. Applied egg-rr63.7%

      \[\leadsto c0 \cdot \sqrt{\color{blue}{\frac{A}{\ell} \cdot \frac{1}{V}}} \]
      Proof

      [Start]33.3

      \[ c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]

      *-un-lft-identity [=>]33.3

      \[ c0 \cdot \sqrt{\frac{\color{blue}{1 \cdot A}}{V \cdot \ell}} \]

      times-frac [=>]63.7

      \[ c0 \cdot \sqrt{\color{blue}{\frac{1}{V} \cdot \frac{A}{\ell}}} \]

      *-commutative [=>]63.7

      \[ c0 \cdot \sqrt{\color{blue}{\frac{A}{\ell} \cdot \frac{1}{V}}} \]
    3. Applied egg-rr63.7%

      \[\leadsto c0 \cdot \sqrt{\color{blue}{\frac{\frac{A}{\ell}}{V}}} \]
      Proof

      [Start]63.7

      \[ c0 \cdot \sqrt{\frac{A}{\ell} \cdot \frac{1}{V}} \]

      un-div-inv [=>]63.7

      \[ c0 \cdot \sqrt{\color{blue}{\frac{\frac{A}{\ell}}{V}}} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification92.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;V \cdot \ell \leq -\infty:\\ \;\;\;\;\frac{c0}{\sqrt{-V}} \cdot \sqrt{-\frac{A}{\ell}}\\ \mathbf{elif}\;V \cdot \ell \leq -5 \cdot 10^{-318}:\\ \;\;\;\;\frac{c0}{\frac{\sqrt{V \cdot \left(-\ell\right)}}{\sqrt{-A}}}\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;\frac{c0}{\frac{\sqrt{-V}}{\sqrt{-\frac{A}{\ell}}}}\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \end{array} \]

Alternatives

Alternative 1
Accuracy92.0%
Cost20036
\[\begin{array}{l} \mathbf{if}\;V \cdot \ell \leq 0:\\ \;\;\;\;\frac{c0}{\frac{\sqrt{\ell}}{\sqrt{-A}} \cdot \sqrt{-V}}\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \end{array} \]
Alternative 2
Accuracy83.7%
Cost14288
\[\begin{array}{l} t_0 := c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \mathbf{if}\;V \cdot \ell \leq -5 \cdot 10^{+231}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq -2 \cdot 10^{-142}:\\ \;\;\;\;c0 \cdot {\left(\frac{V \cdot \ell}{A}\right)}^{-0.5}\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;c0 \cdot {\left(\ell \cdot \frac{V}{A}\right)}^{-0.5}\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 3
Accuracy87.4%
Cost14288
\[\begin{array}{l} t_0 := c0 \cdot \frac{\sqrt{\frac{A}{V}}}{\sqrt{\ell}}\\ \mathbf{if}\;V \cdot \ell \leq -5 \cdot 10^{+231}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq -4 \cdot 10^{-72}:\\ \;\;\;\;c0 \cdot {\left(\frac{V \cdot \ell}{A}\right)}^{-0.5}\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \end{array} \]
Alternative 4
Accuracy87.7%
Cost14288
\[\begin{array}{l} t_0 := \sqrt{\frac{A}{V}}\\ \mathbf{if}\;V \cdot \ell \leq -5 \cdot 10^{+165}:\\ \;\;\;\;\frac{c0}{\frac{\sqrt{\ell}}{t_0}}\\ \mathbf{elif}\;V \cdot \ell \leq -4 \cdot 10^{-72}:\\ \;\;\;\;c0 \cdot {\left(\frac{V \cdot \ell}{A}\right)}^{-0.5}\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;c0 \cdot \frac{t_0}{\sqrt{\ell}}\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \end{array} \]
Alternative 5
Accuracy87.0%
Cost14288
\[\begin{array}{l} t_0 := \frac{c0}{\sqrt{-V}} \cdot \sqrt{-\frac{A}{\ell}}\\ \mathbf{if}\;V \cdot \ell \leq -5 \cdot 10^{+220}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq -2 \cdot 10^{-77}:\\ \;\;\;\;c0 \cdot {\left(\frac{V \cdot \ell}{A}\right)}^{-0.5}\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \end{array} \]
Alternative 6
Accuracy90.7%
Cost14288
\[\begin{array}{l} t_0 := \frac{c0}{\sqrt{-V}} \cdot \sqrt{-\frac{A}{\ell}}\\ \mathbf{if}\;V \cdot \ell \leq -\infty:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq -5 \cdot 10^{-318}:\\ \;\;\;\;\sqrt{-A} \cdot \frac{c0}{\sqrt{V \cdot \left(-\ell\right)}}\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \end{array} \]
Alternative 7
Accuracy90.8%
Cost14288
\[\begin{array}{l} t_0 := \sqrt{-\frac{A}{\ell}}\\ t_1 := \sqrt{-V}\\ \mathbf{if}\;V \cdot \ell \leq -\infty:\\ \;\;\;\;\frac{c0}{t_1} \cdot t_0\\ \mathbf{elif}\;V \cdot \ell \leq -5 \cdot 10^{-318}:\\ \;\;\;\;\sqrt{-A} \cdot \frac{c0}{\sqrt{V \cdot \left(-\ell\right)}}\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;\frac{c0}{\frac{t_1}{t_0}}\\ \mathbf{elif}\;V \cdot \ell \leq 10^{+306}:\\ \;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \end{array} \]
Alternative 8
Accuracy77.5%
Cost7952
\[\begin{array}{l} t_0 := c0 \cdot {\left(\frac{V \cdot \ell}{A}\right)}^{-0.5}\\ t_1 := c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \mathbf{if}\;V \cdot \ell \leq -5 \cdot 10^{+231}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;V \cdot \ell \leq -2 \cdot 10^{-142}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;c0 \cdot {\left(\ell \cdot \frac{V}{A}\right)}^{-0.5}\\ \mathbf{elif}\;V \cdot \ell \leq 5 \cdot 10^{+105}:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Accuracy77.6%
Cost7888
\[\begin{array}{l} t_0 := c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\\ t_1 := c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \mathbf{if}\;V \cdot \ell \leq -\infty:\\ \;\;\;\;t_1\\ \mathbf{elif}\;V \cdot \ell \leq -2 \cdot 10^{-194}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;V \cdot \ell \leq 0:\\ \;\;\;\;\frac{c0}{\sqrt{\ell \cdot \frac{V}{A}}}\\ \mathbf{elif}\;V \cdot \ell \leq 5 \cdot 10^{+105}:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 10
Accuracy77.9%
Cost7752
\[\begin{array}{l} t_0 := \frac{A}{V \cdot \ell}\\ \mathbf{if}\;t_0 \leq 4 \cdot 10^{-316}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \mathbf{elif}\;t_0 \leq 5 \cdot 10^{+301}:\\ \;\;\;\;c0 \cdot {\left(\frac{V \cdot \ell}{A}\right)}^{-0.5}\\ \mathbf{else}:\\ \;\;\;\;\sqrt{\frac{c0 \cdot \frac{A}{\frac{\ell}{c0}}}{V}}\\ \end{array} \]
Alternative 11
Accuracy78.0%
Cost7624
\[\begin{array}{l} t_0 := \frac{A}{V \cdot \ell}\\ \mathbf{if}\;t_0 \leq 0:\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \mathbf{elif}\;t_0 \leq 4 \cdot 10^{+299}:\\ \;\;\;\;c0 \cdot \sqrt{t_0}\\ \mathbf{else}:\\ \;\;\;\;\frac{c0}{\sqrt{V \cdot \frac{\ell}{A}}}\\ \end{array} \]
Alternative 12
Accuracy74.4%
Cost7369
\[\begin{array}{l} \mathbf{if}\;V \cdot \ell \leq -\infty \lor \neg \left(V \cdot \ell \leq 5 \cdot 10^{+105}\right):\\ \;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{\ell}}{V}}\\ \mathbf{else}:\\ \;\;\;\;c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\\ \end{array} \]
Alternative 13
Accuracy70.6%
Cost6848
\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}} \]

Error

Reproduce?

herbie shell --seed 2023140 
(FPCore (c0 A V l)
  :name "Henrywood and Agarwal, Equation (3)"
  :precision binary64
  (* c0 (sqrt (/ A (* V l)))))