
(FPCore (c0 A V l) :precision binary64 (* c0 (sqrt (/ A (* V l)))))
double code(double c0, double A, double V, double l) {
return c0 * sqrt((A / (V * l)));
}
real(8) function code(c0, a, v, l)
real(8), intent (in) :: c0
real(8), intent (in) :: a
real(8), intent (in) :: v
real(8), intent (in) :: l
code = c0 * sqrt((a / (v * l)))
end function
public static double code(double c0, double A, double V, double l) {
return c0 * Math.sqrt((A / (V * l)));
}
def code(c0, A, V, l): return c0 * math.sqrt((A / (V * l)))
function code(c0, A, V, l) return Float64(c0 * sqrt(Float64(A / Float64(V * l)))) end
function tmp = code(c0, A, V, l) tmp = c0 * sqrt((A / (V * l))); end
code[c0_, A_, V_, l_] := N[(c0 * N[Sqrt[N[(A / N[(V * l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}
\end{array}
herbie shell --seed 2024198
(FPCore (c0 A V l)
:name "Henrywood and Agarwal, Equation (3)"
:precision binary64
(* c0 (sqrt (/ A (* V l)))))
Please file a bug report with this information.
| discretization: arity mismatch; the expected number of arguments does not match the given number expected: 3 given: 2 | L | C | |
|---|---|---|---|
| loop | .../private/map.rkt | 40 | 19 |
| make-search-func | /home/nightlies/herbie/zane-patch-1/src/sampling.rkt | 140 | 0 |
| sample-points | /home/nightlies/herbie/zane-patch-1/src/sampling.rkt | 241 | 0 |
| setup-context! | /home/nightlies/herbie/zane-patch-1/src/mainloop.rkt | 42 | 0 |
| get-alternatives/report | /home/nightlies/herbie/zane-patch-1/src/sandbox.rkt | 167 | 0 |
| (unnamed) | /home/nightlies/herbie/zane-patch-1/src/sandbox.rkt | 261 | 6 |
| (unnamed) | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/engine.rkt | 42 | 24 |