
(FPCore (F B x) :precision binary64 (+ (- (* x (/ 1.0 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* 2.0 x)) (- (/ 1.0 2.0))))))
double code(double F, double B, double x) {
return -(x * (1.0 / tan(B))) + ((F / sin(B)) * pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)));
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
code = -(x * (1.0d0 / tan(b))) + ((f / sin(b)) * ((((f * f) + 2.0d0) + (2.0d0 * x)) ** -(1.0d0 / 2.0d0)))
end function
public static double code(double F, double B, double x) {
return -(x * (1.0 / Math.tan(B))) + ((F / Math.sin(B)) * Math.pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)));
}
def code(F, B, x): return -(x * (1.0 / math.tan(B))) + ((F / math.sin(B)) * math.pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)))
function code(F, B, x) return Float64(Float64(-Float64(x * Float64(1.0 / tan(B)))) + Float64(Float64(F / sin(B)) * (Float64(Float64(Float64(F * F) + 2.0) + Float64(2.0 * x)) ^ Float64(-Float64(1.0 / 2.0))))) end
function tmp = code(F, B, x) tmp = -(x * (1.0 / tan(B))) + ((F / sin(B)) * ((((F * F) + 2.0) + (2.0 * x)) ^ -(1.0 / 2.0))); end
code[F_, B_, x_] := N[((-N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]) + N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(N[(F * F), $MachinePrecision] + 2.0), $MachinePrecision] + N[(2.0 * x), $MachinePrecision]), $MachinePrecision], (-N[(1.0 / 2.0), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (F B x) :precision binary64 (+ (- (* x (/ 1.0 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* 2.0 x)) (- (/ 1.0 2.0))))))
double code(double F, double B, double x) {
return -(x * (1.0 / tan(B))) + ((F / sin(B)) * pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)));
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
code = -(x * (1.0d0 / tan(b))) + ((f / sin(b)) * ((((f * f) + 2.0d0) + (2.0d0 * x)) ** -(1.0d0 / 2.0d0)))
end function
public static double code(double F, double B, double x) {
return -(x * (1.0 / Math.tan(B))) + ((F / Math.sin(B)) * Math.pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)));
}
def code(F, B, x): return -(x * (1.0 / math.tan(B))) + ((F / math.sin(B)) * math.pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)))
function code(F, B, x) return Float64(Float64(-Float64(x * Float64(1.0 / tan(B)))) + Float64(Float64(F / sin(B)) * (Float64(Float64(Float64(F * F) + 2.0) + Float64(2.0 * x)) ^ Float64(-Float64(1.0 / 2.0))))) end
function tmp = code(F, B, x) tmp = -(x * (1.0 / tan(B))) + ((F / sin(B)) * ((((F * F) + 2.0) + (2.0 * x)) ^ -(1.0 / 2.0))); end
code[F_, B_, x_] := N[((-N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]) + N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(N[(F * F), $MachinePrecision] + 2.0), $MachinePrecision] + N[(2.0 * x), $MachinePrecision]), $MachinePrecision], (-N[(1.0 / 2.0), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.5e+62)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 58000000.0)
(- (* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* x 2.0)) -0.5)) t_0)
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.5e+62) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 58000000.0) {
tmp = ((F / sin(B)) * pow((((F * F) + 2.0) + (x * 2.0)), -0.5)) - t_0;
} else {
tmp = (1.0 / sin(B)) - t_0;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-1.5d+62)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 58000000.0d0) then
tmp = ((f / sin(b)) * ((((f * f) + 2.0d0) + (x * 2.0d0)) ** (-0.5d0))) - t_0
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -1.5e+62) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 58000000.0) {
tmp = ((F / Math.sin(B)) * Math.pow((((F * F) + 2.0) + (x * 2.0)), -0.5)) - t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.5e+62: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 58000000.0: tmp = ((F / math.sin(B)) * math.pow((((F * F) + 2.0) + (x * 2.0)), -0.5)) - t_0 else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.5e+62) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 58000000.0) tmp = Float64(Float64(Float64(F / sin(B)) * (Float64(Float64(Float64(F * F) + 2.0) + Float64(x * 2.0)) ^ -0.5)) - t_0); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -1.5e+62) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 58000000.0) tmp = ((F / sin(B)) * ((((F * F) + 2.0) + (x * 2.0)) ^ -0.5)) - t_0; else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.5e+62], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 58000000.0], N[(N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(N[(F * F), $MachinePrecision] + 2.0), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.5 \cdot 10^{+62}:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 58000000:\\
\;\;\;\;\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + x \cdot 2\right)}^{-0.5} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* x (/ -1.0 (tan B)))))
(if (<= F -0.92)
(+ t_0 (/ F (- (/ (* (sin B) (- -1.0 x)) F) (* F (sin B)))))
(if (<= F 2.4)
(+ t_0 (/ F (* (sin B) (sqrt (+ 2.0 (* x 2.0))))))
(- (/ 1.0 (sin B)) (/ x (tan B)))))))
double code(double F, double B, double x) {
double t_0 = x * (-1.0 / tan(B));
double tmp;
if (F <= -0.92) {
tmp = t_0 + (F / (((sin(B) * (-1.0 - x)) / F) - (F * sin(B))));
} else if (F <= 2.4) {
tmp = t_0 + (F / (sin(B) * sqrt((2.0 + (x * 2.0)))));
} else {
tmp = (1.0 / sin(B)) - (x / tan(B));
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = x * ((-1.0d0) / tan(b))
if (f <= (-0.92d0)) then
tmp = t_0 + (f / (((sin(b) * ((-1.0d0) - x)) / f) - (f * sin(b))))
else if (f <= 2.4d0) then
tmp = t_0 + (f / (sin(b) * sqrt((2.0d0 + (x * 2.0d0)))))
else
tmp = (1.0d0 / sin(b)) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x * (-1.0 / Math.tan(B));
double tmp;
if (F <= -0.92) {
tmp = t_0 + (F / (((Math.sin(B) * (-1.0 - x)) / F) - (F * Math.sin(B))));
} else if (F <= 2.4) {
tmp = t_0 + (F / (Math.sin(B) * Math.sqrt((2.0 + (x * 2.0)))));
} else {
tmp = (1.0 / Math.sin(B)) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): t_0 = x * (-1.0 / math.tan(B)) tmp = 0 if F <= -0.92: tmp = t_0 + (F / (((math.sin(B) * (-1.0 - x)) / F) - (F * math.sin(B)))) elif F <= 2.4: tmp = t_0 + (F / (math.sin(B) * math.sqrt((2.0 + (x * 2.0))))) else: tmp = (1.0 / math.sin(B)) - (x / math.tan(B)) return tmp
function code(F, B, x) t_0 = Float64(x * Float64(-1.0 / tan(B))) tmp = 0.0 if (F <= -0.92) tmp = Float64(t_0 + Float64(F / Float64(Float64(Float64(sin(B) * Float64(-1.0 - x)) / F) - Float64(F * sin(B))))); elseif (F <= 2.4) tmp = Float64(t_0 + Float64(F / Float64(sin(B) * sqrt(Float64(2.0 + Float64(x * 2.0)))))); else tmp = Float64(Float64(1.0 / sin(B)) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x * (-1.0 / tan(B)); tmp = 0.0; if (F <= -0.92) tmp = t_0 + (F / (((sin(B) * (-1.0 - x)) / F) - (F * sin(B)))); elseif (F <= 2.4) tmp = t_0 + (F / (sin(B) * sqrt((2.0 + (x * 2.0))))); else tmp = (1.0 / sin(B)) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.92], N[(t$95$0 + N[(F / N[(N[(N[(N[Sin[B], $MachinePrecision] * N[(-1.0 - x), $MachinePrecision]), $MachinePrecision] / F), $MachinePrecision] - N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 2.4], N[(t$95$0 + N[(F / N[(N[Sin[B], $MachinePrecision] * N[Sqrt[N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \frac{-1}{\tan B}\\
\mathbf{if}\;F \leq -0.92:\\
\;\;\;\;t_0 + \frac{F}{\frac{\sin B \cdot \left(-1 - x\right)}{F} - F \cdot \sin B}\\
\mathbf{elif}\;F \leq 2.4:\\
\;\;\;\;t_0 + \frac{F}{\sin B \cdot \sqrt{2 + x \cdot 2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.6)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 1.7)
(+ (* x (/ -1.0 (tan B))) (/ F (* (sin B) (sqrt (+ 2.0 (* x 2.0))))))
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.6) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 1.7) {
tmp = (x * (-1.0 / tan(B))) + (F / (sin(B) * sqrt((2.0 + (x * 2.0)))));
} else {
tmp = (1.0 / sin(B)) - t_0;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-1.6d0)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 1.7d0) then
tmp = (x * ((-1.0d0) / tan(b))) + (f / (sin(b) * sqrt((2.0d0 + (x * 2.0d0)))))
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -1.6) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 1.7) {
tmp = (x * (-1.0 / Math.tan(B))) + (F / (Math.sin(B) * Math.sqrt((2.0 + (x * 2.0)))));
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.6: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 1.7: tmp = (x * (-1.0 / math.tan(B))) + (F / (math.sin(B) * math.sqrt((2.0 + (x * 2.0))))) else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.6) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 1.7) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(F / Float64(sin(B) * sqrt(Float64(2.0 + Float64(x * 2.0)))))); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -1.6) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 1.7) tmp = (x * (-1.0 / tan(B))) + (F / (sin(B) * sqrt((2.0 + (x * 2.0))))); else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.6], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.7], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(F / N[(N[Sin[B], $MachinePrecision] * N[Sqrt[N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.6:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 1.7:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{F}{\sin B \cdot \sqrt{2 + x \cdot 2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (pow (+ (+ (* F F) 2.0) (* x 2.0)) -0.5))
(t_1 (- (* (/ F (sin B)) t_0) (/ x B)))
(t_2 (/ x (tan B)))
(t_3 (- (* t_0 (/ F B)) t_2)))
(if (<= F -0.00066)
(- (/ -1.0 (sin B)) t_2)
(if (<= F -9.4e-35)
t_1
(if (<= F 8.8e-79)
t_3
(if (<= F 1.28e-24)
t_1
(if (<= F 26500000.0) t_3 (- (/ 1.0 (sin B)) t_2))))))))
double code(double F, double B, double x) {
double t_0 = pow((((F * F) + 2.0) + (x * 2.0)), -0.5);
double t_1 = ((F / sin(B)) * t_0) - (x / B);
double t_2 = x / tan(B);
double t_3 = (t_0 * (F / B)) - t_2;
double tmp;
if (F <= -0.00066) {
tmp = (-1.0 / sin(B)) - t_2;
} else if (F <= -9.4e-35) {
tmp = t_1;
} else if (F <= 8.8e-79) {
tmp = t_3;
} else if (F <= 1.28e-24) {
tmp = t_1;
} else if (F <= 26500000.0) {
tmp = t_3;
} else {
tmp = (1.0 / sin(B)) - t_2;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = (((f * f) + 2.0d0) + (x * 2.0d0)) ** (-0.5d0)
t_1 = ((f / sin(b)) * t_0) - (x / b)
t_2 = x / tan(b)
t_3 = (t_0 * (f / b)) - t_2
if (f <= (-0.00066d0)) then
tmp = ((-1.0d0) / sin(b)) - t_2
else if (f <= (-9.4d-35)) then
tmp = t_1
else if (f <= 8.8d-79) then
tmp = t_3
else if (f <= 1.28d-24) then
tmp = t_1
else if (f <= 26500000.0d0) then
tmp = t_3
else
tmp = (1.0d0 / sin(b)) - t_2
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = Math.pow((((F * F) + 2.0) + (x * 2.0)), -0.5);
double t_1 = ((F / Math.sin(B)) * t_0) - (x / B);
double t_2 = x / Math.tan(B);
double t_3 = (t_0 * (F / B)) - t_2;
double tmp;
if (F <= -0.00066) {
tmp = (-1.0 / Math.sin(B)) - t_2;
} else if (F <= -9.4e-35) {
tmp = t_1;
} else if (F <= 8.8e-79) {
tmp = t_3;
} else if (F <= 1.28e-24) {
tmp = t_1;
} else if (F <= 26500000.0) {
tmp = t_3;
} else {
tmp = (1.0 / Math.sin(B)) - t_2;
}
return tmp;
}
def code(F, B, x): t_0 = math.pow((((F * F) + 2.0) + (x * 2.0)), -0.5) t_1 = ((F / math.sin(B)) * t_0) - (x / B) t_2 = x / math.tan(B) t_3 = (t_0 * (F / B)) - t_2 tmp = 0 if F <= -0.00066: tmp = (-1.0 / math.sin(B)) - t_2 elif F <= -9.4e-35: tmp = t_1 elif F <= 8.8e-79: tmp = t_3 elif F <= 1.28e-24: tmp = t_1 elif F <= 26500000.0: tmp = t_3 else: tmp = (1.0 / math.sin(B)) - t_2 return tmp
function code(F, B, x) t_0 = Float64(Float64(Float64(F * F) + 2.0) + Float64(x * 2.0)) ^ -0.5 t_1 = Float64(Float64(Float64(F / sin(B)) * t_0) - Float64(x / B)) t_2 = Float64(x / tan(B)) t_3 = Float64(Float64(t_0 * Float64(F / B)) - t_2) tmp = 0.0 if (F <= -0.00066) tmp = Float64(Float64(-1.0 / sin(B)) - t_2); elseif (F <= -9.4e-35) tmp = t_1; elseif (F <= 8.8e-79) tmp = t_3; elseif (F <= 1.28e-24) tmp = t_1; elseif (F <= 26500000.0) tmp = t_3; else tmp = Float64(Float64(1.0 / sin(B)) - t_2); end return tmp end
function tmp_2 = code(F, B, x) t_0 = (((F * F) + 2.0) + (x * 2.0)) ^ -0.5; t_1 = ((F / sin(B)) * t_0) - (x / B); t_2 = x / tan(B); t_3 = (t_0 * (F / B)) - t_2; tmp = 0.0; if (F <= -0.00066) tmp = (-1.0 / sin(B)) - t_2; elseif (F <= -9.4e-35) tmp = t_1; elseif (F <= 8.8e-79) tmp = t_3; elseif (F <= 1.28e-24) tmp = t_1; elseif (F <= 26500000.0) tmp = t_3; else tmp = (1.0 / sin(B)) - t_2; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[Power[N[(N[(N[(F * F), $MachinePrecision] + 2.0), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$0 * N[(F / B), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]}, If[LessEqual[F, -0.00066], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[F, -9.4e-35], t$95$1, If[LessEqual[F, 8.8e-79], t$95$3, If[LessEqual[F, 1.28e-24], t$95$1, If[LessEqual[F, 26500000.0], t$95$3, N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\left(F \cdot F + 2\right) + x \cdot 2\right)}^{-0.5}\\
t_1 := \frac{F}{\sin B} \cdot t_0 - \frac{x}{B}\\
t_2 := \frac{x}{\tan B}\\
t_3 := t_0 \cdot \frac{F}{B} - t_2\\
\mathbf{if}\;F \leq -0.00066:\\
\;\;\;\;\frac{-1}{\sin B} - t_2\\
\mathbf{elif}\;F \leq -9.4 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;F \leq 8.8 \cdot 10^{-79}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;F \leq 1.28 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;F \leq 26500000:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_2\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (pow (+ (+ (* F F) 2.0) (* x 2.0)) -0.5))
(t_1 (/ 1.0 (sin B)))
(t_2 (/ x (tan B)))
(t_3 (- (* t_0 (/ F B)) t_2)))
(if (<= F -0.00066)
(- (/ -1.0 (sin B)) t_2)
(if (<= F -5.2e-36)
(- (* (/ F (sin B)) t_0) (/ x B))
(if (<= F 4.6e-74)
t_3
(if (<= F 2.3e-24)
(- (* t_0 (* F t_1)) (/ x B))
(if (<= F 26500000.0) t_3 (- t_1 t_2))))))))
double code(double F, double B, double x) {
double t_0 = pow((((F * F) + 2.0) + (x * 2.0)), -0.5);
double t_1 = 1.0 / sin(B);
double t_2 = x / tan(B);
double t_3 = (t_0 * (F / B)) - t_2;
double tmp;
if (F <= -0.00066) {
tmp = (-1.0 / sin(B)) - t_2;
} else if (F <= -5.2e-36) {
tmp = ((F / sin(B)) * t_0) - (x / B);
} else if (F <= 4.6e-74) {
tmp = t_3;
} else if (F <= 2.3e-24) {
tmp = (t_0 * (F * t_1)) - (x / B);
} else if (F <= 26500000.0) {
tmp = t_3;
} else {
tmp = t_1 - t_2;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = (((f * f) + 2.0d0) + (x * 2.0d0)) ** (-0.5d0)
t_1 = 1.0d0 / sin(b)
t_2 = x / tan(b)
t_3 = (t_0 * (f / b)) - t_2
if (f <= (-0.00066d0)) then
tmp = ((-1.0d0) / sin(b)) - t_2
else if (f <= (-5.2d-36)) then
tmp = ((f / sin(b)) * t_0) - (x / b)
else if (f <= 4.6d-74) then
tmp = t_3
else if (f <= 2.3d-24) then
tmp = (t_0 * (f * t_1)) - (x / b)
else if (f <= 26500000.0d0) then
tmp = t_3
else
tmp = t_1 - t_2
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = Math.pow((((F * F) + 2.0) + (x * 2.0)), -0.5);
double t_1 = 1.0 / Math.sin(B);
double t_2 = x / Math.tan(B);
double t_3 = (t_0 * (F / B)) - t_2;
double tmp;
if (F <= -0.00066) {
tmp = (-1.0 / Math.sin(B)) - t_2;
} else if (F <= -5.2e-36) {
tmp = ((F / Math.sin(B)) * t_0) - (x / B);
} else if (F <= 4.6e-74) {
tmp = t_3;
} else if (F <= 2.3e-24) {
tmp = (t_0 * (F * t_1)) - (x / B);
} else if (F <= 26500000.0) {
tmp = t_3;
} else {
tmp = t_1 - t_2;
}
return tmp;
}
def code(F, B, x): t_0 = math.pow((((F * F) + 2.0) + (x * 2.0)), -0.5) t_1 = 1.0 / math.sin(B) t_2 = x / math.tan(B) t_3 = (t_0 * (F / B)) - t_2 tmp = 0 if F <= -0.00066: tmp = (-1.0 / math.sin(B)) - t_2 elif F <= -5.2e-36: tmp = ((F / math.sin(B)) * t_0) - (x / B) elif F <= 4.6e-74: tmp = t_3 elif F <= 2.3e-24: tmp = (t_0 * (F * t_1)) - (x / B) elif F <= 26500000.0: tmp = t_3 else: tmp = t_1 - t_2 return tmp
function code(F, B, x) t_0 = Float64(Float64(Float64(F * F) + 2.0) + Float64(x * 2.0)) ^ -0.5 t_1 = Float64(1.0 / sin(B)) t_2 = Float64(x / tan(B)) t_3 = Float64(Float64(t_0 * Float64(F / B)) - t_2) tmp = 0.0 if (F <= -0.00066) tmp = Float64(Float64(-1.0 / sin(B)) - t_2); elseif (F <= -5.2e-36) tmp = Float64(Float64(Float64(F / sin(B)) * t_0) - Float64(x / B)); elseif (F <= 4.6e-74) tmp = t_3; elseif (F <= 2.3e-24) tmp = Float64(Float64(t_0 * Float64(F * t_1)) - Float64(x / B)); elseif (F <= 26500000.0) tmp = t_3; else tmp = Float64(t_1 - t_2); end return tmp end
function tmp_2 = code(F, B, x) t_0 = (((F * F) + 2.0) + (x * 2.0)) ^ -0.5; t_1 = 1.0 / sin(B); t_2 = x / tan(B); t_3 = (t_0 * (F / B)) - t_2; tmp = 0.0; if (F <= -0.00066) tmp = (-1.0 / sin(B)) - t_2; elseif (F <= -5.2e-36) tmp = ((F / sin(B)) * t_0) - (x / B); elseif (F <= 4.6e-74) tmp = t_3; elseif (F <= 2.3e-24) tmp = (t_0 * (F * t_1)) - (x / B); elseif (F <= 26500000.0) tmp = t_3; else tmp = t_1 - t_2; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[Power[N[(N[(N[(F * F), $MachinePrecision] + 2.0), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]}, Block[{t$95$1 = N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t$95$0 * N[(F / B), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]}, If[LessEqual[F, -0.00066], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[F, -5.2e-36], N[(N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 4.6e-74], t$95$3, If[LessEqual[F, 2.3e-24], N[(N[(t$95$0 * N[(F * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 26500000.0], t$95$3, N[(t$95$1 - t$95$2), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := {\left(\left(F \cdot F + 2\right) + x \cdot 2\right)}^{-0.5}\\
t_1 := \frac{1}{\sin B}\\
t_2 := \frac{x}{\tan B}\\
t_3 := t_0 \cdot \frac{F}{B} - t_2\\
\mathbf{if}\;F \leq -0.00066:\\
\;\;\;\;\frac{-1}{\sin B} - t_2\\
\mathbf{elif}\;F \leq -5.2 \cdot 10^{-36}:\\
\;\;\;\;\frac{F}{\sin B} \cdot t_0 - \frac{x}{B}\\
\mathbf{elif}\;F \leq 4.6 \cdot 10^{-74}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;F \leq 2.3 \cdot 10^{-24}:\\
\;\;\;\;t_0 \cdot \left(F \cdot t_1\right) - \frac{x}{B}\\
\mathbf{elif}\;F \leq 26500000:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1 - t_2\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (+ (* x (/ -1.0 (tan B))) (/ F (* B (sqrt (+ 2.0 (* x 2.0)))))))
(t_1
(-
(* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* x 2.0)) -0.5))
(/ x B)))
(t_2 (/ x (tan B))))
(if (<= F -0.00066)
(- (/ -1.0 (sin B)) t_2)
(if (<= F -7e-33)
t_1
(if (<= F 1.7e-78)
t_0
(if (<= F 7.7e-25)
t_1
(if (<= F 1.2) t_0 (- (/ 1.0 (sin B)) t_2))))))))
double code(double F, double B, double x) {
double t_0 = (x * (-1.0 / tan(B))) + (F / (B * sqrt((2.0 + (x * 2.0)))));
double t_1 = ((F / sin(B)) * pow((((F * F) + 2.0) + (x * 2.0)), -0.5)) - (x / B);
double t_2 = x / tan(B);
double tmp;
if (F <= -0.00066) {
tmp = (-1.0 / sin(B)) - t_2;
} else if (F <= -7e-33) {
tmp = t_1;
} else if (F <= 1.7e-78) {
tmp = t_0;
} else if (F <= 7.7e-25) {
tmp = t_1;
} else if (F <= 1.2) {
tmp = t_0;
} else {
tmp = (1.0 / sin(B)) - t_2;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (x * ((-1.0d0) / tan(b))) + (f / (b * sqrt((2.0d0 + (x * 2.0d0)))))
t_1 = ((f / sin(b)) * ((((f * f) + 2.0d0) + (x * 2.0d0)) ** (-0.5d0))) - (x / b)
t_2 = x / tan(b)
if (f <= (-0.00066d0)) then
tmp = ((-1.0d0) / sin(b)) - t_2
else if (f <= (-7d-33)) then
tmp = t_1
else if (f <= 1.7d-78) then
tmp = t_0
else if (f <= 7.7d-25) then
tmp = t_1
else if (f <= 1.2d0) then
tmp = t_0
else
tmp = (1.0d0 / sin(b)) - t_2
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (x * (-1.0 / Math.tan(B))) + (F / (B * Math.sqrt((2.0 + (x * 2.0)))));
double t_1 = ((F / Math.sin(B)) * Math.pow((((F * F) + 2.0) + (x * 2.0)), -0.5)) - (x / B);
double t_2 = x / Math.tan(B);
double tmp;
if (F <= -0.00066) {
tmp = (-1.0 / Math.sin(B)) - t_2;
} else if (F <= -7e-33) {
tmp = t_1;
} else if (F <= 1.7e-78) {
tmp = t_0;
} else if (F <= 7.7e-25) {
tmp = t_1;
} else if (F <= 1.2) {
tmp = t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_2;
}
return tmp;
}
def code(F, B, x): t_0 = (x * (-1.0 / math.tan(B))) + (F / (B * math.sqrt((2.0 + (x * 2.0))))) t_1 = ((F / math.sin(B)) * math.pow((((F * F) + 2.0) + (x * 2.0)), -0.5)) - (x / B) t_2 = x / math.tan(B) tmp = 0 if F <= -0.00066: tmp = (-1.0 / math.sin(B)) - t_2 elif F <= -7e-33: tmp = t_1 elif F <= 1.7e-78: tmp = t_0 elif F <= 7.7e-25: tmp = t_1 elif F <= 1.2: tmp = t_0 else: tmp = (1.0 / math.sin(B)) - t_2 return tmp
function code(F, B, x) t_0 = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(F / Float64(B * sqrt(Float64(2.0 + Float64(x * 2.0)))))) t_1 = Float64(Float64(Float64(F / sin(B)) * (Float64(Float64(Float64(F * F) + 2.0) + Float64(x * 2.0)) ^ -0.5)) - Float64(x / B)) t_2 = Float64(x / tan(B)) tmp = 0.0 if (F <= -0.00066) tmp = Float64(Float64(-1.0 / sin(B)) - t_2); elseif (F <= -7e-33) tmp = t_1; elseif (F <= 1.7e-78) tmp = t_0; elseif (F <= 7.7e-25) tmp = t_1; elseif (F <= 1.2) tmp = t_0; else tmp = Float64(Float64(1.0 / sin(B)) - t_2); end return tmp end
function tmp_2 = code(F, B, x) t_0 = (x * (-1.0 / tan(B))) + (F / (B * sqrt((2.0 + (x * 2.0))))); t_1 = ((F / sin(B)) * ((((F * F) + 2.0) + (x * 2.0)) ^ -0.5)) - (x / B); t_2 = x / tan(B); tmp = 0.0; if (F <= -0.00066) tmp = (-1.0 / sin(B)) - t_2; elseif (F <= -7e-33) tmp = t_1; elseif (F <= 1.7e-78) tmp = t_0; elseif (F <= 7.7e-25) tmp = t_1; elseif (F <= 1.2) tmp = t_0; else tmp = (1.0 / sin(B)) - t_2; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(F / N[(B * N[Sqrt[N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(N[(F * F), $MachinePrecision] + 2.0), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.00066], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[F, -7e-33], t$95$1, If[LessEqual[F, 1.7e-78], t$95$0, If[LessEqual[F, 7.7e-25], t$95$1, If[LessEqual[F, 1.2], t$95$0, N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \frac{-1}{\tan B} + \frac{F}{B \cdot \sqrt{2 + x \cdot 2}}\\
t_1 := \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + x \cdot 2\right)}^{-0.5} - \frac{x}{B}\\
t_2 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -0.00066:\\
\;\;\;\;\frac{-1}{\sin B} - t_2\\
\mathbf{elif}\;F \leq -7 \cdot 10^{-33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;F \leq 1.7 \cdot 10^{-78}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;F \leq 7.7 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;F \leq 1.2:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_2\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -9e-19)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 0.19)
(+ (* x (/ -1.0 (tan B))) (/ F (* B (sqrt (+ 2.0 (* x 2.0))))))
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -9e-19) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 0.19) {
tmp = (x * (-1.0 / tan(B))) + (F / (B * sqrt((2.0 + (x * 2.0)))));
} else {
tmp = (1.0 / sin(B)) - t_0;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-9d-19)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 0.19d0) then
tmp = (x * ((-1.0d0) / tan(b))) + (f / (b * sqrt((2.0d0 + (x * 2.0d0)))))
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -9e-19) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 0.19) {
tmp = (x * (-1.0 / Math.tan(B))) + (F / (B * Math.sqrt((2.0 + (x * 2.0)))));
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -9e-19: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 0.19: tmp = (x * (-1.0 / math.tan(B))) + (F / (B * math.sqrt((2.0 + (x * 2.0))))) else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -9e-19) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 0.19) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(F / Float64(B * sqrt(Float64(2.0 + Float64(x * 2.0)))))); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -9e-19) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 0.19) tmp = (x * (-1.0 / tan(B))) + (F / (B * sqrt((2.0 + (x * 2.0))))); else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -9e-19], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 0.19], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(F / N[(B * N[Sqrt[N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -9 \cdot 10^{-19}:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 0.19:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{F}{B \cdot \sqrt{2 + x \cdot 2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.82e-34)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 3.4e-84) (/ (- x) (tan B)) (- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.82e-34) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 3.4e-84) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / sin(B)) - t_0;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-1.82d-34)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 3.4d-84) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -1.82e-34) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 3.4e-84) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.82e-34: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 3.4e-84: tmp = -x / math.tan(B) else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.82e-34) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 3.4e-84) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -1.82e-34) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 3.4e-84) tmp = -x / tan(B); else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.82e-34], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 3.4e-84], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.82 \cdot 10^{-34}:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 3.4 \cdot 10^{-84}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(if (<= F -7.8e-34)
(- (/ -1.0 (sin B)) (/ x (tan B)))
(if (<= F 4.3e+18)
(/ (- x) (tan B))
(if (<= F 2.6e+237)
(- (/ F (/ (sin B) (/ 1.0 F))) (/ x B))
(+ (* x (/ -1.0 (tan B))) (/ 1.0 B))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -7.8e-34) {
tmp = (-1.0 / sin(B)) - (x / tan(B));
} else if (F <= 4.3e+18) {
tmp = -x / tan(B);
} else if (F <= 2.6e+237) {
tmp = (F / (sin(B) / (1.0 / F))) - (x / B);
} else {
tmp = (x * (-1.0 / tan(B))) + (1.0 / B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-7.8d-34)) then
tmp = ((-1.0d0) / sin(b)) - (x / tan(b))
else if (f <= 4.3d+18) then
tmp = -x / tan(b)
else if (f <= 2.6d+237) then
tmp = (f / (sin(b) / (1.0d0 / f))) - (x / b)
else
tmp = (x * ((-1.0d0) / tan(b))) + (1.0d0 / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -7.8e-34) {
tmp = (-1.0 / Math.sin(B)) - (x / Math.tan(B));
} else if (F <= 4.3e+18) {
tmp = -x / Math.tan(B);
} else if (F <= 2.6e+237) {
tmp = (F / (Math.sin(B) / (1.0 / F))) - (x / B);
} else {
tmp = (x * (-1.0 / Math.tan(B))) + (1.0 / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -7.8e-34: tmp = (-1.0 / math.sin(B)) - (x / math.tan(B)) elif F <= 4.3e+18: tmp = -x / math.tan(B) elif F <= 2.6e+237: tmp = (F / (math.sin(B) / (1.0 / F))) - (x / B) else: tmp = (x * (-1.0 / math.tan(B))) + (1.0 / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -7.8e-34) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / tan(B))); elseif (F <= 4.3e+18) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 2.6e+237) tmp = Float64(Float64(F / Float64(sin(B) / Float64(1.0 / F))) - Float64(x / B)); else tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(1.0 / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -7.8e-34) tmp = (-1.0 / sin(B)) - (x / tan(B)); elseif (F <= 4.3e+18) tmp = -x / tan(B); elseif (F <= 2.6e+237) tmp = (F / (sin(B) / (1.0 / F))) - (x / B); else tmp = (x * (-1.0 / tan(B))) + (1.0 / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -7.8e-34], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 4.3e+18], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 2.6e+237], N[(N[(F / N[(N[Sin[B], $MachinePrecision] / N[(1.0 / F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.0 / B), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -7.8 \cdot 10^{-34}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 4.3 \cdot 10^{+18}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 2.6 \cdot 10^{+237}:\\
\;\;\;\;\frac{F}{\frac{\sin B}{\frac{1}{F}}} - \frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{1}{B}\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* x (/ -1.0 (tan B)))) (t_1 (- (/ -1.0 (sin B)) (/ x B))))
(if (<= F -1.85e+195)
t_1
(if (<= F -1.05e+108)
(+ t_0 (/ -1.0 B))
(if (<= F -0.16)
t_1
(if (<= F 4.3e+18)
(/ (- x) (tan B))
(if (<= F 2.5e+235)
(- (/ F (/ (sin B) (/ 1.0 F))) (/ x B))
(+ t_0 (/ 1.0 B)))))))))
double code(double F, double B, double x) {
double t_0 = x * (-1.0 / tan(B));
double t_1 = (-1.0 / sin(B)) - (x / B);
double tmp;
if (F <= -1.85e+195) {
tmp = t_1;
} else if (F <= -1.05e+108) {
tmp = t_0 + (-1.0 / B);
} else if (F <= -0.16) {
tmp = t_1;
} else if (F <= 4.3e+18) {
tmp = -x / tan(B);
} else if (F <= 2.5e+235) {
tmp = (F / (sin(B) / (1.0 / F))) - (x / B);
} else {
tmp = t_0 + (1.0 / B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = x * ((-1.0d0) / tan(b))
t_1 = ((-1.0d0) / sin(b)) - (x / b)
if (f <= (-1.85d+195)) then
tmp = t_1
else if (f <= (-1.05d+108)) then
tmp = t_0 + ((-1.0d0) / b)
else if (f <= (-0.16d0)) then
tmp = t_1
else if (f <= 4.3d+18) then
tmp = -x / tan(b)
else if (f <= 2.5d+235) then
tmp = (f / (sin(b) / (1.0d0 / f))) - (x / b)
else
tmp = t_0 + (1.0d0 / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x * (-1.0 / Math.tan(B));
double t_1 = (-1.0 / Math.sin(B)) - (x / B);
double tmp;
if (F <= -1.85e+195) {
tmp = t_1;
} else if (F <= -1.05e+108) {
tmp = t_0 + (-1.0 / B);
} else if (F <= -0.16) {
tmp = t_1;
} else if (F <= 4.3e+18) {
tmp = -x / Math.tan(B);
} else if (F <= 2.5e+235) {
tmp = (F / (Math.sin(B) / (1.0 / F))) - (x / B);
} else {
tmp = t_0 + (1.0 / B);
}
return tmp;
}
def code(F, B, x): t_0 = x * (-1.0 / math.tan(B)) t_1 = (-1.0 / math.sin(B)) - (x / B) tmp = 0 if F <= -1.85e+195: tmp = t_1 elif F <= -1.05e+108: tmp = t_0 + (-1.0 / B) elif F <= -0.16: tmp = t_1 elif F <= 4.3e+18: tmp = -x / math.tan(B) elif F <= 2.5e+235: tmp = (F / (math.sin(B) / (1.0 / F))) - (x / B) else: tmp = t_0 + (1.0 / B) return tmp
function code(F, B, x) t_0 = Float64(x * Float64(-1.0 / tan(B))) t_1 = Float64(Float64(-1.0 / sin(B)) - Float64(x / B)) tmp = 0.0 if (F <= -1.85e+195) tmp = t_1; elseif (F <= -1.05e+108) tmp = Float64(t_0 + Float64(-1.0 / B)); elseif (F <= -0.16) tmp = t_1; elseif (F <= 4.3e+18) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 2.5e+235) tmp = Float64(Float64(F / Float64(sin(B) / Float64(1.0 / F))) - Float64(x / B)); else tmp = Float64(t_0 + Float64(1.0 / B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x * (-1.0 / tan(B)); t_1 = (-1.0 / sin(B)) - (x / B); tmp = 0.0; if (F <= -1.85e+195) tmp = t_1; elseif (F <= -1.05e+108) tmp = t_0 + (-1.0 / B); elseif (F <= -0.16) tmp = t_1; elseif (F <= 4.3e+18) tmp = -x / tan(B); elseif (F <= 2.5e+235) tmp = (F / (sin(B) / (1.0 / F))) - (x / B); else tmp = t_0 + (1.0 / B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.85e+195], t$95$1, If[LessEqual[F, -1.05e+108], N[(t$95$0 + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -0.16], t$95$1, If[LessEqual[F, 4.3e+18], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 2.5e+235], N[(N[(F / N[(N[Sin[B], $MachinePrecision] / N[(1.0 / F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], N[(t$95$0 + N[(1.0 / B), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \frac{-1}{\tan B}\\
t_1 := \frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{if}\;F \leq -1.85 \cdot 10^{+195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;F \leq -1.05 \cdot 10^{+108}:\\
\;\;\;\;t_0 + \frac{-1}{B}\\
\mathbf{elif}\;F \leq -0.16:\\
\;\;\;\;t_1\\
\mathbf{elif}\;F \leq 4.3 \cdot 10^{+18}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 2.5 \cdot 10^{+235}:\\
\;\;\;\;\frac{F}{\frac{\sin B}{\frac{1}{F}}} - \frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;t_0 + \frac{1}{B}\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* x (/ -1.0 (tan B)))) (t_1 (- (/ -1.0 (sin B)) (/ x B))))
(if (<= F -5.5e+195)
t_1
(if (<= F -2.45e+107)
(+ t_0 (/ -1.0 B))
(if (<= F -1.1)
t_1
(if (<= F 1e-84) (/ (- x) (tan B)) (+ t_0 (/ 1.0 B))))))))
double code(double F, double B, double x) {
double t_0 = x * (-1.0 / tan(B));
double t_1 = (-1.0 / sin(B)) - (x / B);
double tmp;
if (F <= -5.5e+195) {
tmp = t_1;
} else if (F <= -2.45e+107) {
tmp = t_0 + (-1.0 / B);
} else if (F <= -1.1) {
tmp = t_1;
} else if (F <= 1e-84) {
tmp = -x / tan(B);
} else {
tmp = t_0 + (1.0 / B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = x * ((-1.0d0) / tan(b))
t_1 = ((-1.0d0) / sin(b)) - (x / b)
if (f <= (-5.5d+195)) then
tmp = t_1
else if (f <= (-2.45d+107)) then
tmp = t_0 + ((-1.0d0) / b)
else if (f <= (-1.1d0)) then
tmp = t_1
else if (f <= 1d-84) then
tmp = -x / tan(b)
else
tmp = t_0 + (1.0d0 / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x * (-1.0 / Math.tan(B));
double t_1 = (-1.0 / Math.sin(B)) - (x / B);
double tmp;
if (F <= -5.5e+195) {
tmp = t_1;
} else if (F <= -2.45e+107) {
tmp = t_0 + (-1.0 / B);
} else if (F <= -1.1) {
tmp = t_1;
} else if (F <= 1e-84) {
tmp = -x / Math.tan(B);
} else {
tmp = t_0 + (1.0 / B);
}
return tmp;
}
def code(F, B, x): t_0 = x * (-1.0 / math.tan(B)) t_1 = (-1.0 / math.sin(B)) - (x / B) tmp = 0 if F <= -5.5e+195: tmp = t_1 elif F <= -2.45e+107: tmp = t_0 + (-1.0 / B) elif F <= -1.1: tmp = t_1 elif F <= 1e-84: tmp = -x / math.tan(B) else: tmp = t_0 + (1.0 / B) return tmp
function code(F, B, x) t_0 = Float64(x * Float64(-1.0 / tan(B))) t_1 = Float64(Float64(-1.0 / sin(B)) - Float64(x / B)) tmp = 0.0 if (F <= -5.5e+195) tmp = t_1; elseif (F <= -2.45e+107) tmp = Float64(t_0 + Float64(-1.0 / B)); elseif (F <= -1.1) tmp = t_1; elseif (F <= 1e-84) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(t_0 + Float64(1.0 / B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x * (-1.0 / tan(B)); t_1 = (-1.0 / sin(B)) - (x / B); tmp = 0.0; if (F <= -5.5e+195) tmp = t_1; elseif (F <= -2.45e+107) tmp = t_0 + (-1.0 / B); elseif (F <= -1.1) tmp = t_1; elseif (F <= 1e-84) tmp = -x / tan(B); else tmp = t_0 + (1.0 / B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -5.5e+195], t$95$1, If[LessEqual[F, -2.45e+107], N[(t$95$0 + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -1.1], t$95$1, If[LessEqual[F, 1e-84], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(t$95$0 + N[(1.0 / B), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \frac{-1}{\tan B}\\
t_1 := \frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{if}\;F \leq -5.5 \cdot 10^{+195}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;F \leq -2.45 \cdot 10^{+107}:\\
\;\;\;\;t_0 + \frac{-1}{B}\\
\mathbf{elif}\;F \leq -1.1:\\
\;\;\;\;t_1\\
\mathbf{elif}\;F \leq 10^{-84}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;t_0 + \frac{1}{B}\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (- (/ -1.0 (sin B)) (/ x B))))
(if (<= F -9.5e+194)
t_0
(if (<= F -1.55e+110)
(+ (* x (/ -1.0 (tan B))) (/ -1.0 B))
(if (<= F -1.05)
t_0
(if (or (<= F 4.5e+18) (not (<= F 9.4e+229)))
(/ (- x) (tan B))
(- (/ 1.0 B) (+ (/ x B) (* -0.3333333333333333 (* B x))))))))))
double code(double F, double B, double x) {
double t_0 = (-1.0 / sin(B)) - (x / B);
double tmp;
if (F <= -9.5e+194) {
tmp = t_0;
} else if (F <= -1.55e+110) {
tmp = (x * (-1.0 / tan(B))) + (-1.0 / B);
} else if (F <= -1.05) {
tmp = t_0;
} else if ((F <= 4.5e+18) || !(F <= 9.4e+229)) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x)));
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = ((-1.0d0) / sin(b)) - (x / b)
if (f <= (-9.5d+194)) then
tmp = t_0
else if (f <= (-1.55d+110)) then
tmp = (x * ((-1.0d0) / tan(b))) + ((-1.0d0) / b)
else if (f <= (-1.05d0)) then
tmp = t_0
else if ((f <= 4.5d+18) .or. (.not. (f <= 9.4d+229))) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / b) - ((x / b) + ((-0.3333333333333333d0) * (b * x)))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (-1.0 / Math.sin(B)) - (x / B);
double tmp;
if (F <= -9.5e+194) {
tmp = t_0;
} else if (F <= -1.55e+110) {
tmp = (x * (-1.0 / Math.tan(B))) + (-1.0 / B);
} else if (F <= -1.05) {
tmp = t_0;
} else if ((F <= 4.5e+18) || !(F <= 9.4e+229)) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x)));
}
return tmp;
}
def code(F, B, x): t_0 = (-1.0 / math.sin(B)) - (x / B) tmp = 0 if F <= -9.5e+194: tmp = t_0 elif F <= -1.55e+110: tmp = (x * (-1.0 / math.tan(B))) + (-1.0 / B) elif F <= -1.05: tmp = t_0 elif (F <= 4.5e+18) or not (F <= 9.4e+229): tmp = -x / math.tan(B) else: tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x))) return tmp
function code(F, B, x) t_0 = Float64(Float64(-1.0 / sin(B)) - Float64(x / B)) tmp = 0.0 if (F <= -9.5e+194) tmp = t_0; elseif (F <= -1.55e+110) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(-1.0 / B)); elseif (F <= -1.05) tmp = t_0; elseif ((F <= 4.5e+18) || !(F <= 9.4e+229)) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / B) - Float64(Float64(x / B) + Float64(-0.3333333333333333 * Float64(B * x)))); end return tmp end
function tmp_2 = code(F, B, x) t_0 = (-1.0 / sin(B)) - (x / B); tmp = 0.0; if (F <= -9.5e+194) tmp = t_0; elseif (F <= -1.55e+110) tmp = (x * (-1.0 / tan(B))) + (-1.0 / B); elseif (F <= -1.05) tmp = t_0; elseif ((F <= 4.5e+18) || ~((F <= 9.4e+229))) tmp = -x / tan(B); else tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x))); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -9.5e+194], t$95$0, If[LessEqual[F, -1.55e+110], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -1.05], t$95$0, If[Or[LessEqual[F, 4.5e+18], N[Not[LessEqual[F, 9.4e+229]], $MachinePrecision]], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(N[(x / B), $MachinePrecision] + N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{if}\;F \leq -9.5 \cdot 10^{+194}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;F \leq -1.55 \cdot 10^{+110}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{-1}{B}\\
\mathbf{elif}\;F \leq -1.05:\\
\;\;\;\;t_0\\
\mathbf{elif}\;F \leq 4.5 \cdot 10^{+18} \lor \neg \left(F \leq 9.4 \cdot 10^{+229}\right):\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \left(\frac{x}{B} + -0.3333333333333333 \cdot \left(B \cdot x\right)\right)\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(if (<= F -2.8e+62)
(+ (* B (- (* x 0.3333333333333333) 0.16666666666666666)) (/ (- -1.0 x) B))
(if (or (<= F 4.3e+18) (not (<= F 7.2e+233)))
(/ (- x) (tan B))
(- (/ 1.0 B) (+ (/ x B) (* -0.3333333333333333 (* B x)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -2.8e+62) {
tmp = (B * ((x * 0.3333333333333333) - 0.16666666666666666)) + ((-1.0 - x) / B);
} else if ((F <= 4.3e+18) || !(F <= 7.2e+233)) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x)));
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-2.8d+62)) then
tmp = (b * ((x * 0.3333333333333333d0) - 0.16666666666666666d0)) + (((-1.0d0) - x) / b)
else if ((f <= 4.3d+18) .or. (.not. (f <= 7.2d+233))) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / b) - ((x / b) + ((-0.3333333333333333d0) * (b * x)))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -2.8e+62) {
tmp = (B * ((x * 0.3333333333333333) - 0.16666666666666666)) + ((-1.0 - x) / B);
} else if ((F <= 4.3e+18) || !(F <= 7.2e+233)) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x)));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -2.8e+62: tmp = (B * ((x * 0.3333333333333333) - 0.16666666666666666)) + ((-1.0 - x) / B) elif (F <= 4.3e+18) or not (F <= 7.2e+233): tmp = -x / math.tan(B) else: tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x))) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -2.8e+62) tmp = Float64(Float64(B * Float64(Float64(x * 0.3333333333333333) - 0.16666666666666666)) + Float64(Float64(-1.0 - x) / B)); elseif ((F <= 4.3e+18) || !(F <= 7.2e+233)) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / B) - Float64(Float64(x / B) + Float64(-0.3333333333333333 * Float64(B * x)))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -2.8e+62) tmp = (B * ((x * 0.3333333333333333) - 0.16666666666666666)) + ((-1.0 - x) / B); elseif ((F <= 4.3e+18) || ~((F <= 7.2e+233))) tmp = -x / tan(B); else tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x))); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -2.8e+62], N[(N[(B * N[(N[(x * 0.3333333333333333), $MachinePrecision] - 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[F, 4.3e+18], N[Not[LessEqual[F, 7.2e+233]], $MachinePrecision]], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(N[(x / B), $MachinePrecision] + N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -2.8 \cdot 10^{+62}:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 4.3 \cdot 10^{+18} \lor \neg \left(F \leq 7.2 \cdot 10^{+233}\right):\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \left(\frac{x}{B} + -0.3333333333333333 \cdot \left(B \cdot x\right)\right)\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(if (<= F -1.15)
(- (/ -1.0 (sin B)) (/ x B))
(if (or (<= F 4.3e+18) (not (<= F 3.7e+234)))
(/ (- x) (tan B))
(- (/ 1.0 B) (+ (/ x B) (* -0.3333333333333333 (* B x)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.15) {
tmp = (-1.0 / sin(B)) - (x / B);
} else if ((F <= 4.3e+18) || !(F <= 3.7e+234)) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x)));
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-1.15d0)) then
tmp = ((-1.0d0) / sin(b)) - (x / b)
else if ((f <= 4.3d+18) .or. (.not. (f <= 3.7d+234))) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / b) - ((x / b) + ((-0.3333333333333333d0) * (b * x)))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.15) {
tmp = (-1.0 / Math.sin(B)) - (x / B);
} else if ((F <= 4.3e+18) || !(F <= 3.7e+234)) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x)));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.15: tmp = (-1.0 / math.sin(B)) - (x / B) elif (F <= 4.3e+18) or not (F <= 3.7e+234): tmp = -x / math.tan(B) else: tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x))) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.15) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / B)); elseif ((F <= 4.3e+18) || !(F <= 3.7e+234)) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / B) - Float64(Float64(x / B) + Float64(-0.3333333333333333 * Float64(B * x)))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.15) tmp = (-1.0 / sin(B)) - (x / B); elseif ((F <= 4.3e+18) || ~((F <= 3.7e+234))) tmp = -x / tan(B); else tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x))); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.15], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[F, 4.3e+18], N[Not[LessEqual[F, 3.7e+234]], $MachinePrecision]], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(N[(x / B), $MachinePrecision] + N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.15:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 4.3 \cdot 10^{+18} \lor \neg \left(F \leq 3.7 \cdot 10^{+234}\right):\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \left(\frac{x}{B} + -0.3333333333333333 \cdot \left(B \cdot x\right)\right)\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(if (<= F -0.0043)
(+ (* B (- (* x 0.3333333333333333) 0.16666666666666666)) (/ (- -1.0 x) B))
(if (<= F 7.5e-20)
(/ (- x) (sin B))
(- (/ 1.0 B) (+ (/ x B) (* -0.3333333333333333 (* B x)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -0.0043) {
tmp = (B * ((x * 0.3333333333333333) - 0.16666666666666666)) + ((-1.0 - x) / B);
} else if (F <= 7.5e-20) {
tmp = -x / sin(B);
} else {
tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x)));
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-0.0043d0)) then
tmp = (b * ((x * 0.3333333333333333d0) - 0.16666666666666666d0)) + (((-1.0d0) - x) / b)
else if (f <= 7.5d-20) then
tmp = -x / sin(b)
else
tmp = (1.0d0 / b) - ((x / b) + ((-0.3333333333333333d0) * (b * x)))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -0.0043) {
tmp = (B * ((x * 0.3333333333333333) - 0.16666666666666666)) + ((-1.0 - x) / B);
} else if (F <= 7.5e-20) {
tmp = -x / Math.sin(B);
} else {
tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x)));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -0.0043: tmp = (B * ((x * 0.3333333333333333) - 0.16666666666666666)) + ((-1.0 - x) / B) elif F <= 7.5e-20: tmp = -x / math.sin(B) else: tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x))) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -0.0043) tmp = Float64(Float64(B * Float64(Float64(x * 0.3333333333333333) - 0.16666666666666666)) + Float64(Float64(-1.0 - x) / B)); elseif (F <= 7.5e-20) tmp = Float64(Float64(-x) / sin(B)); else tmp = Float64(Float64(1.0 / B) - Float64(Float64(x / B) + Float64(-0.3333333333333333 * Float64(B * x)))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -0.0043) tmp = (B * ((x * 0.3333333333333333) - 0.16666666666666666)) + ((-1.0 - x) / B); elseif (F <= 7.5e-20) tmp = -x / sin(B); else tmp = (1.0 / B) - ((x / B) + (-0.3333333333333333 * (B * x))); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -0.0043], N[(N[(B * N[(N[(x * 0.3333333333333333), $MachinePrecision] - 0.16666666666666666), $MachinePrecision]), $MachinePrecision] + N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7.5e-20], N[((-x) / N[Sin[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(N[(x / B), $MachinePrecision] + N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -0.0043:\\
\;\;\;\;B \cdot \left(x \cdot 0.3333333333333333 - 0.16666666666666666\right) + \frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 7.5 \cdot 10^{-20}:\\
\;\;\;\;\frac{-x}{\sin B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \left(\frac{x}{B} + -0.3333333333333333 \cdot \left(B \cdot x\right)\right)\\
\end{array}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* -0.3333333333333333 (* B x))))
(if (<= F -4e-45)
(/ (- -1.0 x) B)
(if (<= F 3.2e-84) (- (/ (- x) B) t_0) (- (/ 1.0 B) (+ (/ x B) t_0))))))
double code(double F, double B, double x) {
double t_0 = -0.3333333333333333 * (B * x);
double tmp;
if (F <= -4e-45) {
tmp = (-1.0 - x) / B;
} else if (F <= 3.2e-84) {
tmp = (-x / B) - t_0;
} else {
tmp = (1.0 / B) - ((x / B) + t_0);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.3333333333333333d0) * (b * x)
if (f <= (-4d-45)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 3.2d-84) then
tmp = (-x / b) - t_0
else
tmp = (1.0d0 / b) - ((x / b) + t_0)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = -0.3333333333333333 * (B * x);
double tmp;
if (F <= -4e-45) {
tmp = (-1.0 - x) / B;
} else if (F <= 3.2e-84) {
tmp = (-x / B) - t_0;
} else {
tmp = (1.0 / B) - ((x / B) + t_0);
}
return tmp;
}
def code(F, B, x): t_0 = -0.3333333333333333 * (B * x) tmp = 0 if F <= -4e-45: tmp = (-1.0 - x) / B elif F <= 3.2e-84: tmp = (-x / B) - t_0 else: tmp = (1.0 / B) - ((x / B) + t_0) return tmp
function code(F, B, x) t_0 = Float64(-0.3333333333333333 * Float64(B * x)) tmp = 0.0 if (F <= -4e-45) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 3.2e-84) tmp = Float64(Float64(Float64(-x) / B) - t_0); else tmp = Float64(Float64(1.0 / B) - Float64(Float64(x / B) + t_0)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = -0.3333333333333333 * (B * x); tmp = 0.0; if (F <= -4e-45) tmp = (-1.0 - x) / B; elseif (F <= 3.2e-84) tmp = (-x / B) - t_0; else tmp = (1.0 / B) - ((x / B) + t_0); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -4e-45], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 3.2e-84], N[(N[((-x) / B), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(N[(x / B), $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.3333333333333333 \cdot \left(B \cdot x\right)\\
\mathbf{if}\;F \leq -4 \cdot 10^{-45}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 3.2 \cdot 10^{-84}:\\
\;\;\;\;\frac{-x}{B} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \left(\frac{x}{B} + t_0\right)\\
\end{array}
\end{array}
(FPCore (F B x) :precision binary64 (if (<= F -3.8e-47) (/ (- -1.0 x) B) (- (/ (- x) B) (* -0.3333333333333333 (* B x)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -3.8e-47) {
tmp = (-1.0 - x) / B;
} else {
tmp = (-x / B) - (-0.3333333333333333 * (B * x));
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-3.8d-47)) then
tmp = ((-1.0d0) - x) / b
else
tmp = (-x / b) - ((-0.3333333333333333d0) * (b * x))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -3.8e-47) {
tmp = (-1.0 - x) / B;
} else {
tmp = (-x / B) - (-0.3333333333333333 * (B * x));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -3.8e-47: tmp = (-1.0 - x) / B else: tmp = (-x / B) - (-0.3333333333333333 * (B * x)) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -3.8e-47) tmp = Float64(Float64(-1.0 - x) / B); else tmp = Float64(Float64(Float64(-x) / B) - Float64(-0.3333333333333333 * Float64(B * x))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -3.8e-47) tmp = (-1.0 - x) / B; else tmp = (-x / B) - (-0.3333333333333333 * (B * x)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -3.8e-47], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], N[(N[((-x) / B), $MachinePrecision] - N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -3.8 \cdot 10^{-47}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{B} - -0.3333333333333333 \cdot \left(B \cdot x\right)\\
\end{array}
\end{array}
(FPCore (F B x) :precision binary64 (if (<= F -1.45e-47) (/ (- -1.0 x) B) (* x (+ (* B 0.3333333333333333) (/ -1.0 B)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.45e-47) {
tmp = (-1.0 - x) / B;
} else {
tmp = x * ((B * 0.3333333333333333) + (-1.0 / B));
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-1.45d-47)) then
tmp = ((-1.0d0) - x) / b
else
tmp = x * ((b * 0.3333333333333333d0) + ((-1.0d0) / b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.45e-47) {
tmp = (-1.0 - x) / B;
} else {
tmp = x * ((B * 0.3333333333333333) + (-1.0 / B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.45e-47: tmp = (-1.0 - x) / B else: tmp = x * ((B * 0.3333333333333333) + (-1.0 / B)) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.45e-47) tmp = Float64(Float64(-1.0 - x) / B); else tmp = Float64(x * Float64(Float64(B * 0.3333333333333333) + Float64(-1.0 / B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.45e-47) tmp = (-1.0 - x) / B; else tmp = x * ((B * 0.3333333333333333) + (-1.0 / B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.45e-47], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], N[(x * N[(N[(B * 0.3333333333333333), $MachinePrecision] + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.45 \cdot 10^{-47}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(B \cdot 0.3333333333333333 + \frac{-1}{B}\right)\\
\end{array}
\end{array}
(FPCore (F B x) :precision binary64 (if (or (<= x -6.2e-82) (not (<= x 4.3e-195))) (/ (- x) B) (/ -1.0 B)))
double code(double F, double B, double x) {
double tmp;
if ((x <= -6.2e-82) || !(x <= 4.3e-195)) {
tmp = -x / B;
} else {
tmp = -1.0 / B;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if ((x <= (-6.2d-82)) .or. (.not. (x <= 4.3d-195))) then
tmp = -x / b
else
tmp = (-1.0d0) / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if ((x <= -6.2e-82) || !(x <= 4.3e-195)) {
tmp = -x / B;
} else {
tmp = -1.0 / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if (x <= -6.2e-82) or not (x <= 4.3e-195): tmp = -x / B else: tmp = -1.0 / B return tmp
function code(F, B, x) tmp = 0.0 if ((x <= -6.2e-82) || !(x <= 4.3e-195)) tmp = Float64(Float64(-x) / B); else tmp = Float64(-1.0 / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if ((x <= -6.2e-82) || ~((x <= 4.3e-195))) tmp = -x / B; else tmp = -1.0 / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[Or[LessEqual[x, -6.2e-82], N[Not[LessEqual[x, 4.3e-195]], $MachinePrecision]], N[((-x) / B), $MachinePrecision], N[(-1.0 / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{-82} \lor \neg \left(x \leq 4.3 \cdot 10^{-195}\right):\\
\;\;\;\;\frac{-x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{B}\\
\end{array}
\end{array}
(FPCore (F B x) :precision binary64 (if (<= F -3.5e-50) (/ (- -1.0 x) B) (/ (- x) B)))
double code(double F, double B, double x) {
double tmp;
if (F <= -3.5e-50) {
tmp = (-1.0 - x) / B;
} else {
tmp = -x / B;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-3.5d-50)) then
tmp = ((-1.0d0) - x) / b
else
tmp = -x / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -3.5e-50) {
tmp = (-1.0 - x) / B;
} else {
tmp = -x / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -3.5e-50: tmp = (-1.0 - x) / B else: tmp = -x / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= -3.5e-50) tmp = Float64(Float64(-1.0 - x) / B); else tmp = Float64(Float64(-x) / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -3.5e-50) tmp = (-1.0 - x) / B; else tmp = -x / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -3.5e-50], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], N[((-x) / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -3.5 \cdot 10^{-50}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{B}\\
\end{array}
\end{array}
(FPCore (F B x) :precision binary64 (/ -1.0 B))
double code(double F, double B, double x) {
return -1.0 / B;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
code = (-1.0d0) / b
end function
public static double code(double F, double B, double x) {
return -1.0 / B;
}
def code(F, B, x): return -1.0 / B
function code(F, B, x) return Float64(-1.0 / B) end
function tmp = code(F, B, x) tmp = -1.0 / B; end
code[F_, B_, x_] := N[(-1.0 / B), $MachinePrecision]
\begin{array}{l}
\\
\frac{-1}{B}
\end{array}
herbie shell --seed 2024010
(FPCore (F B x)
:name "VandenBroeck and Keller, Equation (23)"
:precision binary64
(+ (- (* x (/ 1.0 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* 2.0 x)) (- (/ 1.0 2.0))))))