
(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 31 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 (cos B))))
(if (<= F -6e+164)
(/ (- -1.0 t_0) (sin B))
(if (<= F 50000.0)
(/ (- (/ F (sqrt (+ 2.0 (* F F)))) t_0) (sin B))
(/ (- 1.0 t_0) (sin B))))))
double code(double F, double B, double x) {
double t_0 = x * cos(B);
double tmp;
if (F <= -6e+164) {
tmp = (-1.0 - t_0) / sin(B);
} else if (F <= 50000.0) {
tmp = ((F / sqrt((2.0 + (F * F)))) - t_0) / sin(B);
} else {
tmp = (1.0 - t_0) / sin(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 * cos(b)
if (f <= (-6d+164)) then
tmp = ((-1.0d0) - t_0) / sin(b)
else if (f <= 50000.0d0) then
tmp = ((f / sqrt((2.0d0 + (f * f)))) - t_0) / sin(b)
else
tmp = (1.0d0 - t_0) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x * Math.cos(B);
double tmp;
if (F <= -6e+164) {
tmp = (-1.0 - t_0) / Math.sin(B);
} else if (F <= 50000.0) {
tmp = ((F / Math.sqrt((2.0 + (F * F)))) - t_0) / Math.sin(B);
} else {
tmp = (1.0 - t_0) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = x * math.cos(B) tmp = 0 if F <= -6e+164: tmp = (-1.0 - t_0) / math.sin(B) elif F <= 50000.0: tmp = ((F / math.sqrt((2.0 + (F * F)))) - t_0) / math.sin(B) else: tmp = (1.0 - t_0) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(x * cos(B)) tmp = 0.0 if (F <= -6e+164) tmp = Float64(Float64(-1.0 - t_0) / sin(B)); elseif (F <= 50000.0) tmp = Float64(Float64(Float64(F / sqrt(Float64(2.0 + Float64(F * F)))) - t_0) / sin(B)); else tmp = Float64(Float64(1.0 - t_0) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x * cos(B); tmp = 0.0; if (F <= -6e+164) tmp = (-1.0 - t_0) / sin(B); elseif (F <= 50000.0) tmp = ((F / sqrt((2.0 + (F * F)))) - t_0) / sin(B); else tmp = (1.0 - t_0) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -6e+164], N[(N[(-1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 50000.0], N[(N[(N[(F / N[Sqrt[N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \cos B\\
\mathbf{if}\;F \leq -6 \cdot 10^{+164}:\\
\;\;\;\;\frac{-1 - t\_0}{\sin B}\\
\mathbf{elif}\;F \leq 50000:\\
\;\;\;\;\frac{\frac{F}{\sqrt{2 + F \cdot F}} - t\_0}{\sin B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_0}{\sin B}\\
\end{array}
\end{array}
if F < -6.00000000000000001e164Initial program 20.1%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified33.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6433.5%
Simplified33.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6433.7%
Applied egg-rr33.7%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr33.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -6.00000000000000001e164 < F < 5e4Initial program 98.8%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.6%
Simplified99.6%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6499.5%
Applied egg-rr99.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr99.6%
if 5e4 < F Initial program 62.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.2%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.2%
Simplified75.2%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.2%
Applied egg-rr75.2%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.3%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.8%
Simplified99.8%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* x (cos B))))
(if (<= F -68000000000000.0)
(/ (- -1.0 t_0) (sin B))
(if (<= F 0.00088)
(/ (- (/ F (sqrt 2.0)) t_0) (sin B))
(/ (- 1.0 t_0) (sin B))))))
double code(double F, double B, double x) {
double t_0 = x * cos(B);
double tmp;
if (F <= -68000000000000.0) {
tmp = (-1.0 - t_0) / sin(B);
} else if (F <= 0.00088) {
tmp = ((F / sqrt(2.0)) - t_0) / sin(B);
} else {
tmp = (1.0 - t_0) / sin(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 * cos(b)
if (f <= (-68000000000000.0d0)) then
tmp = ((-1.0d0) - t_0) / sin(b)
else if (f <= 0.00088d0) then
tmp = ((f / sqrt(2.0d0)) - t_0) / sin(b)
else
tmp = (1.0d0 - t_0) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x * Math.cos(B);
double tmp;
if (F <= -68000000000000.0) {
tmp = (-1.0 - t_0) / Math.sin(B);
} else if (F <= 0.00088) {
tmp = ((F / Math.sqrt(2.0)) - t_0) / Math.sin(B);
} else {
tmp = (1.0 - t_0) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = x * math.cos(B) tmp = 0 if F <= -68000000000000.0: tmp = (-1.0 - t_0) / math.sin(B) elif F <= 0.00088: tmp = ((F / math.sqrt(2.0)) - t_0) / math.sin(B) else: tmp = (1.0 - t_0) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(x * cos(B)) tmp = 0.0 if (F <= -68000000000000.0) tmp = Float64(Float64(-1.0 - t_0) / sin(B)); elseif (F <= 0.00088) tmp = Float64(Float64(Float64(F / sqrt(2.0)) - t_0) / sin(B)); else tmp = Float64(Float64(1.0 - t_0) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x * cos(B); tmp = 0.0; if (F <= -68000000000000.0) tmp = (-1.0 - t_0) / sin(B); elseif (F <= 0.00088) tmp = ((F / sqrt(2.0)) - t_0) / sin(B); else tmp = (1.0 - t_0) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -68000000000000.0], N[(N[(-1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00088], N[(N[(N[(F / N[Sqrt[2.0], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \cos B\\
\mathbf{if}\;F \leq -68000000000000:\\
\;\;\;\;\frac{-1 - t\_0}{\sin B}\\
\mathbf{elif}\;F \leq 0.00088:\\
\;\;\;\;\frac{\frac{F}{\sqrt{2}} - t\_0}{\sin B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_0}{\sin B}\\
\end{array}
\end{array}
if F < -6.8e13Initial program 62.6%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified70.4%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6470.4%
Simplified70.4%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6470.5%
Applied egg-rr70.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr70.5%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.8%
Simplified99.8%
if -6.8e13 < F < 8.80000000000000031e-4Initial program 99.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.6%
Simplified99.6%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6499.5%
Applied egg-rr99.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr99.6%
Taylor expanded in F around 0
sqrt-lowering-sqrt.f6499.3%
Simplified99.3%
if 8.80000000000000031e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.8%
Applied egg-rr75.8%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* x (cos B))))
(if (<= F -0.021)
(/ (- -1.0 t_0) (sin B))
(if (<= F 0.00088)
(- (* F (/ (sqrt 0.5) (sin B))) (/ x (tan B)))
(/ (- 1.0 t_0) (sin B))))))
double code(double F, double B, double x) {
double t_0 = x * cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_0) / sin(B);
} else if (F <= 0.00088) {
tmp = (F * (sqrt(0.5) / sin(B))) - (x / tan(B));
} else {
tmp = (1.0 - t_0) / sin(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 * cos(b)
if (f <= (-0.021d0)) then
tmp = ((-1.0d0) - t_0) / sin(b)
else if (f <= 0.00088d0) then
tmp = (f * (sqrt(0.5d0) / sin(b))) - (x / tan(b))
else
tmp = (1.0d0 - t_0) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x * Math.cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_0) / Math.sin(B);
} else if (F <= 0.00088) {
tmp = (F * (Math.sqrt(0.5) / Math.sin(B))) - (x / Math.tan(B));
} else {
tmp = (1.0 - t_0) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = x * math.cos(B) tmp = 0 if F <= -0.021: tmp = (-1.0 - t_0) / math.sin(B) elif F <= 0.00088: tmp = (F * (math.sqrt(0.5) / math.sin(B))) - (x / math.tan(B)) else: tmp = (1.0 - t_0) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(x * cos(B)) tmp = 0.0 if (F <= -0.021) tmp = Float64(Float64(-1.0 - t_0) / sin(B)); elseif (F <= 0.00088) tmp = Float64(Float64(F * Float64(sqrt(0.5) / sin(B))) - Float64(x / tan(B))); else tmp = Float64(Float64(1.0 - t_0) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x * cos(B); tmp = 0.0; if (F <= -0.021) tmp = (-1.0 - t_0) / sin(B); elseif (F <= 0.00088) tmp = (F * (sqrt(0.5) / sin(B))) - (x / tan(B)); else tmp = (1.0 - t_0) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.021], N[(N[(-1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00088], N[(N[(F * N[(N[Sqrt[0.5], $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \cos B\\
\mathbf{if}\;F \leq -0.021:\\
\;\;\;\;\frac{-1 - t\_0}{\sin B}\\
\mathbf{elif}\;F \leq 0.00088:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{\sin B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_0}{\sin B}\\
\end{array}
\end{array}
if F < -0.0210000000000000013Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6471.5%
Simplified71.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6471.5%
Applied egg-rr71.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr71.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -0.0210000000000000013 < F < 8.80000000000000031e-4Initial program 99.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.6%
Simplified99.6%
Taylor expanded in F around 0
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
if 8.80000000000000031e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.8%
Applied egg-rr75.8%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* x (cos B))))
(if (<= F -0.021)
(/ (- -1.0 t_0) (sin B))
(if (<= F 7.2e-106)
(- (* (sqrt (/ 1.0 (+ 2.0 (* F F)))) (/ F B)) (/ x (tan B)))
(if (<= F 0.00088)
(- (/ (* F (pow (+ (* F F) (+ 2.0 (* x 2.0))) -0.5)) (sin B)) (/ x B))
(/ (- 1.0 t_0) (sin B)))))))
double code(double F, double B, double x) {
double t_0 = x * cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_0) / sin(B);
} else if (F <= 7.2e-106) {
tmp = (sqrt((1.0 / (2.0 + (F * F)))) * (F / B)) - (x / tan(B));
} else if (F <= 0.00088) {
tmp = ((F * pow(((F * F) + (2.0 + (x * 2.0))), -0.5)) / sin(B)) - (x / B);
} else {
tmp = (1.0 - t_0) / sin(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 * cos(b)
if (f <= (-0.021d0)) then
tmp = ((-1.0d0) - t_0) / sin(b)
else if (f <= 7.2d-106) then
tmp = (sqrt((1.0d0 / (2.0d0 + (f * f)))) * (f / b)) - (x / tan(b))
else if (f <= 0.00088d0) then
tmp = ((f * (((f * f) + (2.0d0 + (x * 2.0d0))) ** (-0.5d0))) / sin(b)) - (x / b)
else
tmp = (1.0d0 - t_0) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x * Math.cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_0) / Math.sin(B);
} else if (F <= 7.2e-106) {
tmp = (Math.sqrt((1.0 / (2.0 + (F * F)))) * (F / B)) - (x / Math.tan(B));
} else if (F <= 0.00088) {
tmp = ((F * Math.pow(((F * F) + (2.0 + (x * 2.0))), -0.5)) / Math.sin(B)) - (x / B);
} else {
tmp = (1.0 - t_0) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = x * math.cos(B) tmp = 0 if F <= -0.021: tmp = (-1.0 - t_0) / math.sin(B) elif F <= 7.2e-106: tmp = (math.sqrt((1.0 / (2.0 + (F * F)))) * (F / B)) - (x / math.tan(B)) elif F <= 0.00088: tmp = ((F * math.pow(((F * F) + (2.0 + (x * 2.0))), -0.5)) / math.sin(B)) - (x / B) else: tmp = (1.0 - t_0) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(x * cos(B)) tmp = 0.0 if (F <= -0.021) tmp = Float64(Float64(-1.0 - t_0) / sin(B)); elseif (F <= 7.2e-106) tmp = Float64(Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(F * F)))) * Float64(F / B)) - Float64(x / tan(B))); elseif (F <= 0.00088) tmp = Float64(Float64(Float64(F * (Float64(Float64(F * F) + Float64(2.0 + Float64(x * 2.0))) ^ -0.5)) / sin(B)) - Float64(x / B)); else tmp = Float64(Float64(1.0 - t_0) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x * cos(B); tmp = 0.0; if (F <= -0.021) tmp = (-1.0 - t_0) / sin(B); elseif (F <= 7.2e-106) tmp = (sqrt((1.0 / (2.0 + (F * F)))) * (F / B)) - (x / tan(B)); elseif (F <= 0.00088) tmp = ((F * (((F * F) + (2.0 + (x * 2.0))) ^ -0.5)) / sin(B)) - (x / B); else tmp = (1.0 - t_0) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.021], N[(N[(-1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7.2e-106], N[(N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(F / B), $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00088], N[(N[(N[(F * N[Power[N[(N[(F * F), $MachinePrecision] + N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \cos B\\
\mathbf{if}\;F \leq -0.021:\\
\;\;\;\;\frac{-1 - t\_0}{\sin B}\\
\mathbf{elif}\;F \leq 7.2 \cdot 10^{-106}:\\
\;\;\;\;\sqrt{\frac{1}{2 + F \cdot F}} \cdot \frac{F}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 0.00088:\\
\;\;\;\;\frac{F \cdot {\left(F \cdot F + \left(2 + x \cdot 2\right)\right)}^{-0.5}}{\sin B} - \frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_0}{\sin B}\\
\end{array}
\end{array}
if F < -0.0210000000000000013Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6471.5%
Simplified71.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6471.5%
Applied egg-rr71.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr71.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -0.0210000000000000013 < F < 7.20000000000000025e-106Initial program 99.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.6%
Simplified99.6%
Taylor expanded in B around 0
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f6487.4%
Simplified87.4%
if 7.20000000000000025e-106 < F < 8.80000000000000031e-4Initial program 99.2%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.2%
Taylor expanded in B around 0
/-lowering-/.f6489.9%
Simplified89.9%
if 8.80000000000000031e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.8%
Applied egg-rr75.8%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ (- (/ F (sqrt (+ 2.0 (* F F)))) x) (sin B)))
(t_1 (* x (cos B))))
(if (<= F -0.021)
(/ (- -1.0 t_1) (sin B))
(if (<= F -6.5e-169)
t_0
(if (<= F 3.4e-130)
(/ t_1 (- 0.0 (sin B)))
(if (<= F 0.00088) t_0 (/ (- 1.0 t_1) (sin B))))))))
double code(double F, double B, double x) {
double t_0 = ((F / sqrt((2.0 + (F * F)))) - x) / sin(B);
double t_1 = x * cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_1) / sin(B);
} else if (F <= -6.5e-169) {
tmp = t_0;
} else if (F <= 3.4e-130) {
tmp = t_1 / (0.0 - sin(B));
} else if (F <= 0.00088) {
tmp = t_0;
} else {
tmp = (1.0 - t_1) / sin(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 = ((f / sqrt((2.0d0 + (f * f)))) - x) / sin(b)
t_1 = x * cos(b)
if (f <= (-0.021d0)) then
tmp = ((-1.0d0) - t_1) / sin(b)
else if (f <= (-6.5d-169)) then
tmp = t_0
else if (f <= 3.4d-130) then
tmp = t_1 / (0.0d0 - sin(b))
else if (f <= 0.00088d0) then
tmp = t_0
else
tmp = (1.0d0 - t_1) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = ((F / Math.sqrt((2.0 + (F * F)))) - x) / Math.sin(B);
double t_1 = x * Math.cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_1) / Math.sin(B);
} else if (F <= -6.5e-169) {
tmp = t_0;
} else if (F <= 3.4e-130) {
tmp = t_1 / (0.0 - Math.sin(B));
} else if (F <= 0.00088) {
tmp = t_0;
} else {
tmp = (1.0 - t_1) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = ((F / math.sqrt((2.0 + (F * F)))) - x) / math.sin(B) t_1 = x * math.cos(B) tmp = 0 if F <= -0.021: tmp = (-1.0 - t_1) / math.sin(B) elif F <= -6.5e-169: tmp = t_0 elif F <= 3.4e-130: tmp = t_1 / (0.0 - math.sin(B)) elif F <= 0.00088: tmp = t_0 else: tmp = (1.0 - t_1) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(Float64(Float64(F / sqrt(Float64(2.0 + Float64(F * F)))) - x) / sin(B)) t_1 = Float64(x * cos(B)) tmp = 0.0 if (F <= -0.021) tmp = Float64(Float64(-1.0 - t_1) / sin(B)); elseif (F <= -6.5e-169) tmp = t_0; elseif (F <= 3.4e-130) tmp = Float64(t_1 / Float64(0.0 - sin(B))); elseif (F <= 0.00088) tmp = t_0; else tmp = Float64(Float64(1.0 - t_1) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = ((F / sqrt((2.0 + (F * F)))) - x) / sin(B); t_1 = x * cos(B); tmp = 0.0; if (F <= -0.021) tmp = (-1.0 - t_1) / sin(B); elseif (F <= -6.5e-169) tmp = t_0; elseif (F <= 3.4e-130) tmp = t_1 / (0.0 - sin(B)); elseif (F <= 0.00088) tmp = t_0; else tmp = (1.0 - t_1) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(N[(F / N[Sqrt[N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.021], N[(N[(-1.0 - t$95$1), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -6.5e-169], t$95$0, If[LessEqual[F, 3.4e-130], N[(t$95$1 / N[(0.0 - N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00088], t$95$0, N[(N[(1.0 - t$95$1), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\frac{F}{\sqrt{2 + F \cdot F}} - x}{\sin B}\\
t_1 := x \cdot \cos B\\
\mathbf{if}\;F \leq -0.021:\\
\;\;\;\;\frac{-1 - t\_1}{\sin B}\\
\mathbf{elif}\;F \leq -6.5 \cdot 10^{-169}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 3.4 \cdot 10^{-130}:\\
\;\;\;\;\frac{t\_1}{0 - \sin B}\\
\mathbf{elif}\;F \leq 0.00088:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_1}{\sin B}\\
\end{array}
\end{array}
if F < -0.0210000000000000013Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6471.5%
Simplified71.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6471.5%
Applied egg-rr71.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr71.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -0.0210000000000000013 < F < -6.5000000000000002e-169 or 3.40000000000000005e-130 < F < 8.80000000000000031e-4Initial program 99.3%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.4%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.5%
Simplified99.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6499.4%
Applied egg-rr99.4%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr99.5%
Taylor expanded in B around 0
Simplified81.2%
if -6.5000000000000002e-169 < F < 3.40000000000000005e-130Initial program 99.4%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6488.1%
Simplified88.1%
if 8.80000000000000031e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.8%
Applied egg-rr75.8%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
Final simplification92.3%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ (/ F (pow (+ 2.0 (* F F)) 0.5)) (sin B))) (t_1 (* x (cos B))))
(if (<= F -0.015)
(/ (- -1.0 t_1) (sin B))
(if (<= F -1.5e-31)
t_0
(if (<= F 5.8e-78)
(/ t_1 (- 0.0 (sin B)))
(if (<= F 0.00082) t_0 (/ (- 1.0 t_1) (sin B))))))))
double code(double F, double B, double x) {
double t_0 = (F / pow((2.0 + (F * F)), 0.5)) / sin(B);
double t_1 = x * cos(B);
double tmp;
if (F <= -0.015) {
tmp = (-1.0 - t_1) / sin(B);
} else if (F <= -1.5e-31) {
tmp = t_0;
} else if (F <= 5.8e-78) {
tmp = t_1 / (0.0 - sin(B));
} else if (F <= 0.00082) {
tmp = t_0;
} else {
tmp = (1.0 - t_1) / sin(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 = (f / ((2.0d0 + (f * f)) ** 0.5d0)) / sin(b)
t_1 = x * cos(b)
if (f <= (-0.015d0)) then
tmp = ((-1.0d0) - t_1) / sin(b)
else if (f <= (-1.5d-31)) then
tmp = t_0
else if (f <= 5.8d-78) then
tmp = t_1 / (0.0d0 - sin(b))
else if (f <= 0.00082d0) then
tmp = t_0
else
tmp = (1.0d0 - t_1) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (F / Math.pow((2.0 + (F * F)), 0.5)) / Math.sin(B);
double t_1 = x * Math.cos(B);
double tmp;
if (F <= -0.015) {
tmp = (-1.0 - t_1) / Math.sin(B);
} else if (F <= -1.5e-31) {
tmp = t_0;
} else if (F <= 5.8e-78) {
tmp = t_1 / (0.0 - Math.sin(B));
} else if (F <= 0.00082) {
tmp = t_0;
} else {
tmp = (1.0 - t_1) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = (F / math.pow((2.0 + (F * F)), 0.5)) / math.sin(B) t_1 = x * math.cos(B) tmp = 0 if F <= -0.015: tmp = (-1.0 - t_1) / math.sin(B) elif F <= -1.5e-31: tmp = t_0 elif F <= 5.8e-78: tmp = t_1 / (0.0 - math.sin(B)) elif F <= 0.00082: tmp = t_0 else: tmp = (1.0 - t_1) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(Float64(F / (Float64(2.0 + Float64(F * F)) ^ 0.5)) / sin(B)) t_1 = Float64(x * cos(B)) tmp = 0.0 if (F <= -0.015) tmp = Float64(Float64(-1.0 - t_1) / sin(B)); elseif (F <= -1.5e-31) tmp = t_0; elseif (F <= 5.8e-78) tmp = Float64(t_1 / Float64(0.0 - sin(B))); elseif (F <= 0.00082) tmp = t_0; else tmp = Float64(Float64(1.0 - t_1) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = (F / ((2.0 + (F * F)) ^ 0.5)) / sin(B); t_1 = x * cos(B); tmp = 0.0; if (F <= -0.015) tmp = (-1.0 - t_1) / sin(B); elseif (F <= -1.5e-31) tmp = t_0; elseif (F <= 5.8e-78) tmp = t_1 / (0.0 - sin(B)); elseif (F <= 0.00082) tmp = t_0; else tmp = (1.0 - t_1) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(F / N[Power[N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision], 0.5], $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.015], N[(N[(-1.0 - t$95$1), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -1.5e-31], t$95$0, If[LessEqual[F, 5.8e-78], N[(t$95$1 / N[(0.0 - N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00082], t$95$0, N[(N[(1.0 - t$95$1), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\frac{F}{{\left(2 + F \cdot F\right)}^{0.5}}}{\sin B}\\
t_1 := x \cdot \cos B\\
\mathbf{if}\;F \leq -0.015:\\
\;\;\;\;\frac{-1 - t\_1}{\sin B}\\
\mathbf{elif}\;F \leq -1.5 \cdot 10^{-31}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 5.8 \cdot 10^{-78}:\\
\;\;\;\;\frac{t\_1}{0 - \sin B}\\
\mathbf{elif}\;F \leq 0.00082:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_1}{\sin B}\\
\end{array}
\end{array}
if F < -0.014999999999999999Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6471.5%
Simplified71.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6471.5%
Applied egg-rr71.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr71.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -0.014999999999999999 < F < -1.49999999999999991e-31 or 5.8000000000000001e-78 < F < 8.1999999999999998e-4Initial program 99.1%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6477.9%
Simplified77.9%
associate-*r/N/A
/-lowering-/.f64N/A
sqrt-divN/A
metadata-evalN/A
un-div-invN/A
/-lowering-/.f64N/A
pow1/2N/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6478.2%
Applied egg-rr78.2%
if -1.49999999999999991e-31 < F < 5.8000000000000001e-78Initial program 99.4%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6474.6%
Simplified74.6%
if 8.1999999999999998e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.8%
Applied egg-rr75.8%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
Final simplification87.7%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ F (/ (sin B) (pow (+ 2.0 (* F F)) -0.5)))) (t_1 (* x (cos B))))
(if (<= F -0.021)
(/ (- -1.0 t_1) (sin B))
(if (<= F -2.1e-32)
t_0
(if (<= F 7.6e-75)
(/ t_1 (- 0.0 (sin B)))
(if (<= F 0.00088) t_0 (/ (- 1.0 t_1) (sin B))))))))
double code(double F, double B, double x) {
double t_0 = F / (sin(B) / pow((2.0 + (F * F)), -0.5));
double t_1 = x * cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_1) / sin(B);
} else if (F <= -2.1e-32) {
tmp = t_0;
} else if (F <= 7.6e-75) {
tmp = t_1 / (0.0 - sin(B));
} else if (F <= 0.00088) {
tmp = t_0;
} else {
tmp = (1.0 - t_1) / sin(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 = f / (sin(b) / ((2.0d0 + (f * f)) ** (-0.5d0)))
t_1 = x * cos(b)
if (f <= (-0.021d0)) then
tmp = ((-1.0d0) - t_1) / sin(b)
else if (f <= (-2.1d-32)) then
tmp = t_0
else if (f <= 7.6d-75) then
tmp = t_1 / (0.0d0 - sin(b))
else if (f <= 0.00088d0) then
tmp = t_0
else
tmp = (1.0d0 - t_1) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = F / (Math.sin(B) / Math.pow((2.0 + (F * F)), -0.5));
double t_1 = x * Math.cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_1) / Math.sin(B);
} else if (F <= -2.1e-32) {
tmp = t_0;
} else if (F <= 7.6e-75) {
tmp = t_1 / (0.0 - Math.sin(B));
} else if (F <= 0.00088) {
tmp = t_0;
} else {
tmp = (1.0 - t_1) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = F / (math.sin(B) / math.pow((2.0 + (F * F)), -0.5)) t_1 = x * math.cos(B) tmp = 0 if F <= -0.021: tmp = (-1.0 - t_1) / math.sin(B) elif F <= -2.1e-32: tmp = t_0 elif F <= 7.6e-75: tmp = t_1 / (0.0 - math.sin(B)) elif F <= 0.00088: tmp = t_0 else: tmp = (1.0 - t_1) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(F / Float64(sin(B) / (Float64(2.0 + Float64(F * F)) ^ -0.5))) t_1 = Float64(x * cos(B)) tmp = 0.0 if (F <= -0.021) tmp = Float64(Float64(-1.0 - t_1) / sin(B)); elseif (F <= -2.1e-32) tmp = t_0; elseif (F <= 7.6e-75) tmp = Float64(t_1 / Float64(0.0 - sin(B))); elseif (F <= 0.00088) tmp = t_0; else tmp = Float64(Float64(1.0 - t_1) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = F / (sin(B) / ((2.0 + (F * F)) ^ -0.5)); t_1 = x * cos(B); tmp = 0.0; if (F <= -0.021) tmp = (-1.0 - t_1) / sin(B); elseif (F <= -2.1e-32) tmp = t_0; elseif (F <= 7.6e-75) tmp = t_1 / (0.0 - sin(B)); elseif (F <= 0.00088) tmp = t_0; else tmp = (1.0 - t_1) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(F / N[(N[Sin[B], $MachinePrecision] / N[Power[N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.021], N[(N[(-1.0 - t$95$1), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -2.1e-32], t$95$0, If[LessEqual[F, 7.6e-75], N[(t$95$1 / N[(0.0 - N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00088], t$95$0, N[(N[(1.0 - t$95$1), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{F}{\frac{\sin B}{{\left(2 + F \cdot F\right)}^{-0.5}}}\\
t_1 := x \cdot \cos B\\
\mathbf{if}\;F \leq -0.021:\\
\;\;\;\;\frac{-1 - t\_1}{\sin B}\\
\mathbf{elif}\;F \leq -2.1 \cdot 10^{-32}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 7.6 \cdot 10^{-75}:\\
\;\;\;\;\frac{t\_1}{0 - \sin B}\\
\mathbf{elif}\;F \leq 0.00088:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_1}{\sin B}\\
\end{array}
\end{array}
if F < -0.0210000000000000013Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6471.5%
Simplified71.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6471.5%
Applied egg-rr71.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr71.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -0.0210000000000000013 < F < -2.0999999999999999e-32 or 7.59999999999999987e-75 < F < 8.80000000000000031e-4Initial program 99.1%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6480.3%
Simplified80.3%
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
inv-powN/A
sqrt-pow1N/A
metadata-evalN/A
pow-lowering-pow.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6480.2%
Applied egg-rr80.2%
if -2.0999999999999999e-32 < F < 7.59999999999999987e-75Initial program 99.4%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6474.2%
Simplified74.2%
if 8.80000000000000031e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.8%
Applied egg-rr75.8%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
Final simplification87.7%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* x (cos B))))
(if (<= F -5.1e-5)
(/ (- -1.0 t_0) (sin B))
(if (<= F -2.9e-31)
(/ (* F (sqrt 0.5)) (sin B))
(if (<= F 1.22e-108)
(/ t_0 (- 0.0 (sin B)))
(if (<= F 0.0007)
(/
(-
(+
(*
(sqrt (/ 1.0 (+ 2.0 (+ (* F F) (* x 2.0)))))
(+ F (* 0.16666666666666666 (* F (* B B)))))
(* B (* B (* x 0.3333333333333333))))
x)
B)
(/ (- 1.0 t_0) (sin B))))))))
double code(double F, double B, double x) {
double t_0 = x * cos(B);
double tmp;
if (F <= -5.1e-5) {
tmp = (-1.0 - t_0) / sin(B);
} else if (F <= -2.9e-31) {
tmp = (F * sqrt(0.5)) / sin(B);
} else if (F <= 1.22e-108) {
tmp = t_0 / (0.0 - sin(B));
} else if (F <= 0.0007) {
tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B;
} else {
tmp = (1.0 - t_0) / sin(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 * cos(b)
if (f <= (-5.1d-5)) then
tmp = ((-1.0d0) - t_0) / sin(b)
else if (f <= (-2.9d-31)) then
tmp = (f * sqrt(0.5d0)) / sin(b)
else if (f <= 1.22d-108) then
tmp = t_0 / (0.0d0 - sin(b))
else if (f <= 0.0007d0) then
tmp = (((sqrt((1.0d0 / (2.0d0 + ((f * f) + (x * 2.0d0))))) * (f + (0.16666666666666666d0 * (f * (b * b))))) + (b * (b * (x * 0.3333333333333333d0)))) - x) / b
else
tmp = (1.0d0 - t_0) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x * Math.cos(B);
double tmp;
if (F <= -5.1e-5) {
tmp = (-1.0 - t_0) / Math.sin(B);
} else if (F <= -2.9e-31) {
tmp = (F * Math.sqrt(0.5)) / Math.sin(B);
} else if (F <= 1.22e-108) {
tmp = t_0 / (0.0 - Math.sin(B));
} else if (F <= 0.0007) {
tmp = (((Math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B;
} else {
tmp = (1.0 - t_0) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = x * math.cos(B) tmp = 0 if F <= -5.1e-5: tmp = (-1.0 - t_0) / math.sin(B) elif F <= -2.9e-31: tmp = (F * math.sqrt(0.5)) / math.sin(B) elif F <= 1.22e-108: tmp = t_0 / (0.0 - math.sin(B)) elif F <= 0.0007: tmp = (((math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B else: tmp = (1.0 - t_0) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(x * cos(B)) tmp = 0.0 if (F <= -5.1e-5) tmp = Float64(Float64(-1.0 - t_0) / sin(B)); elseif (F <= -2.9e-31) tmp = Float64(Float64(F * sqrt(0.5)) / sin(B)); elseif (F <= 1.22e-108) tmp = Float64(t_0 / Float64(0.0 - sin(B))); elseif (F <= 0.0007) tmp = Float64(Float64(Float64(Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) * Float64(F + Float64(0.16666666666666666 * Float64(F * Float64(B * B))))) + Float64(B * Float64(B * Float64(x * 0.3333333333333333)))) - x) / B); else tmp = Float64(Float64(1.0 - t_0) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x * cos(B); tmp = 0.0; if (F <= -5.1e-5) tmp = (-1.0 - t_0) / sin(B); elseif (F <= -2.9e-31) tmp = (F * sqrt(0.5)) / sin(B); elseif (F <= 1.22e-108) tmp = t_0 / (0.0 - sin(B)); elseif (F <= 0.0007) tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B; else tmp = (1.0 - t_0) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -5.1e-5], N[(N[(-1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -2.9e-31], N[(N[(F * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.22e-108], N[(t$95$0 / N[(0.0 - N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.0007], N[(N[(N[(N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(F + N[(0.16666666666666666 * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(B * N[(B * N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \cos B\\
\mathbf{if}\;F \leq -5.1 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1 - t\_0}{\sin B}\\
\mathbf{elif}\;F \leq -2.9 \cdot 10^{-31}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5}}{\sin B}\\
\mathbf{elif}\;F \leq 1.22 \cdot 10^{-108}:\\
\;\;\;\;\frac{t\_0}{0 - \sin B}\\
\mathbf{elif}\;F \leq 0.0007:\\
\;\;\;\;\frac{\left(\sqrt{\frac{1}{2 + \left(F \cdot F + x \cdot 2\right)}} \cdot \left(F + 0.16666666666666666 \cdot \left(F \cdot \left(B \cdot B\right)\right)\right) + B \cdot \left(B \cdot \left(x \cdot 0.3333333333333333\right)\right)\right) - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_0}{\sin B}\\
\end{array}
\end{array}
if F < -5.09999999999999996e-5Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6471.5%
Simplified71.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6471.5%
Applied egg-rr71.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr71.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -5.09999999999999996e-5 < F < -2.9000000000000001e-31Initial program 99.2%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.2%
Simplified99.2%
Taylor expanded in F around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
sin-lowering-sin.f6495.2%
Simplified95.2%
if -2.9000000000000001e-31 < F < 1.2199999999999999e-108Initial program 99.5%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6477.0%
Simplified77.0%
if 1.2199999999999999e-108 < F < 6.99999999999999993e-4Initial program 99.2%
Taylor expanded in B around 0
/-lowering-/.f64N/A
Simplified64.5%
if 6.99999999999999993e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.8%
Applied egg-rr75.8%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
Final simplification87.6%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* x (cos B))))
(if (<= F -0.00023)
(/ (- -1.0 t_0) (sin B))
(if (<= F -1.5e-31)
(/ (* F (sqrt 0.5)) (sin B))
(if (<= F 1.1e-108)
(/ t_0 (- 0.0 (sin B)))
(if (<= F 0.00082)
(/
(-
(+
(*
(sqrt (/ 1.0 (+ 2.0 (+ (* F F) (* x 2.0)))))
(+ F (* 0.16666666666666666 (* F (* B B)))))
(* B (* B (* x 0.3333333333333333))))
x)
B)
(- (/ 1.0 (sin B)) (/ x (tan B)))))))))
double code(double F, double B, double x) {
double t_0 = x * cos(B);
double tmp;
if (F <= -0.00023) {
tmp = (-1.0 - t_0) / sin(B);
} else if (F <= -1.5e-31) {
tmp = (F * sqrt(0.5)) / sin(B);
} else if (F <= 1.1e-108) {
tmp = t_0 / (0.0 - sin(B));
} else if (F <= 0.00082) {
tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B;
} 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 * cos(b)
if (f <= (-0.00023d0)) then
tmp = ((-1.0d0) - t_0) / sin(b)
else if (f <= (-1.5d-31)) then
tmp = (f * sqrt(0.5d0)) / sin(b)
else if (f <= 1.1d-108) then
tmp = t_0 / (0.0d0 - sin(b))
else if (f <= 0.00082d0) then
tmp = (((sqrt((1.0d0 / (2.0d0 + ((f * f) + (x * 2.0d0))))) * (f + (0.16666666666666666d0 * (f * (b * b))))) + (b * (b * (x * 0.3333333333333333d0)))) - x) / b
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 * Math.cos(B);
double tmp;
if (F <= -0.00023) {
tmp = (-1.0 - t_0) / Math.sin(B);
} else if (F <= -1.5e-31) {
tmp = (F * Math.sqrt(0.5)) / Math.sin(B);
} else if (F <= 1.1e-108) {
tmp = t_0 / (0.0 - Math.sin(B));
} else if (F <= 0.00082) {
tmp = (((Math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B;
} else {
tmp = (1.0 / Math.sin(B)) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): t_0 = x * math.cos(B) tmp = 0 if F <= -0.00023: tmp = (-1.0 - t_0) / math.sin(B) elif F <= -1.5e-31: tmp = (F * math.sqrt(0.5)) / math.sin(B) elif F <= 1.1e-108: tmp = t_0 / (0.0 - math.sin(B)) elif F <= 0.00082: tmp = (((math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B else: tmp = (1.0 / math.sin(B)) - (x / math.tan(B)) return tmp
function code(F, B, x) t_0 = Float64(x * cos(B)) tmp = 0.0 if (F <= -0.00023) tmp = Float64(Float64(-1.0 - t_0) / sin(B)); elseif (F <= -1.5e-31) tmp = Float64(Float64(F * sqrt(0.5)) / sin(B)); elseif (F <= 1.1e-108) tmp = Float64(t_0 / Float64(0.0 - sin(B))); elseif (F <= 0.00082) tmp = Float64(Float64(Float64(Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) * Float64(F + Float64(0.16666666666666666 * Float64(F * Float64(B * B))))) + Float64(B * Float64(B * Float64(x * 0.3333333333333333)))) - x) / B); 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 * cos(B); tmp = 0.0; if (F <= -0.00023) tmp = (-1.0 - t_0) / sin(B); elseif (F <= -1.5e-31) tmp = (F * sqrt(0.5)) / sin(B); elseif (F <= 1.1e-108) tmp = t_0 / (0.0 - sin(B)); elseif (F <= 0.00082) tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B; 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[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.00023], N[(N[(-1.0 - t$95$0), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -1.5e-31], N[(N[(F * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.1e-108], N[(t$95$0 / N[(0.0 - N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00082], N[(N[(N[(N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(F + N[(0.16666666666666666 * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(B * N[(B * N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $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 \cos B\\
\mathbf{if}\;F \leq -0.00023:\\
\;\;\;\;\frac{-1 - t\_0}{\sin B}\\
\mathbf{elif}\;F \leq -1.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5}}{\sin B}\\
\mathbf{elif}\;F \leq 1.1 \cdot 10^{-108}:\\
\;\;\;\;\frac{t\_0}{0 - \sin B}\\
\mathbf{elif}\;F \leq 0.00082:\\
\;\;\;\;\frac{\left(\sqrt{\frac{1}{2 + \left(F \cdot F + x \cdot 2\right)}} \cdot \left(F + 0.16666666666666666 \cdot \left(F \cdot \left(B \cdot B\right)\right)\right) + B \cdot \left(B \cdot \left(x \cdot 0.3333333333333333\right)\right)\right) - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if F < -2.3000000000000001e-4Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6471.5%
Simplified71.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6471.5%
Applied egg-rr71.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr71.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -2.3000000000000001e-4 < F < -1.49999999999999991e-31Initial program 99.2%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.2%
Simplified99.2%
Taylor expanded in F around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
sin-lowering-sin.f6495.2%
Simplified95.2%
if -1.49999999999999991e-31 < F < 1.1000000000000001e-108Initial program 99.5%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6477.0%
Simplified77.0%
if 1.1000000000000001e-108 < F < 8.1999999999999998e-4Initial program 99.2%
Taylor expanded in B around 0
/-lowering-/.f64N/A
Simplified64.5%
if 8.1999999999999998e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in F around inf
/-lowering-/.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
Final simplification87.6%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -0.0038)
(- (/ -1.0 (sin B)) t_0)
(if (<= F -1.95e-32)
(/ (* F (sqrt 0.5)) (sin B))
(if (<= F 1.55e-108)
(/ (* x (cos B)) (- 0.0 (sin B)))
(if (<= F 3.2e-6)
(/
(-
(+
(*
(sqrt (/ 1.0 (+ 2.0 (+ (* F F) (* x 2.0)))))
(+ F (* 0.16666666666666666 (* F (* B B)))))
(* B (* B (* x 0.3333333333333333))))
x)
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 <= -0.0038) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= -1.95e-32) {
tmp = (F * sqrt(0.5)) / sin(B);
} else if (F <= 1.55e-108) {
tmp = (x * cos(B)) / (0.0 - sin(B));
} else if (F <= 3.2e-6) {
tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / 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 <= (-0.0038d0)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= (-1.95d-32)) then
tmp = (f * sqrt(0.5d0)) / sin(b)
else if (f <= 1.55d-108) then
tmp = (x * cos(b)) / (0.0d0 - sin(b))
else if (f <= 3.2d-6) then
tmp = (((sqrt((1.0d0 / (2.0d0 + ((f * f) + (x * 2.0d0))))) * (f + (0.16666666666666666d0 * (f * (b * b))))) + (b * (b * (x * 0.3333333333333333d0)))) - x) / 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 <= -0.0038) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= -1.95e-32) {
tmp = (F * Math.sqrt(0.5)) / Math.sin(B);
} else if (F <= 1.55e-108) {
tmp = (x * Math.cos(B)) / (0.0 - Math.sin(B));
} else if (F <= 3.2e-6) {
tmp = (((Math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / 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 <= -0.0038: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= -1.95e-32: tmp = (F * math.sqrt(0.5)) / math.sin(B) elif F <= 1.55e-108: tmp = (x * math.cos(B)) / (0.0 - math.sin(B)) elif F <= 3.2e-6: tmp = (((math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / 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 <= -0.0038) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= -1.95e-32) tmp = Float64(Float64(F * sqrt(0.5)) / sin(B)); elseif (F <= 1.55e-108) tmp = Float64(Float64(x * cos(B)) / Float64(0.0 - sin(B))); elseif (F <= 3.2e-6) tmp = Float64(Float64(Float64(Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) * Float64(F + Float64(0.16666666666666666 * Float64(F * Float64(B * B))))) + Float64(B * Float64(B * Float64(x * 0.3333333333333333)))) - x) / 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 <= -0.0038) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= -1.95e-32) tmp = (F * sqrt(0.5)) / sin(B); elseif (F <= 1.55e-108) tmp = (x * cos(B)) / (0.0 - sin(B)); elseif (F <= 3.2e-6) tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / 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, -0.0038], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, -1.95e-32], N[(N[(F * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.55e-108], N[(N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision] / N[(0.0 - N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 3.2e-6], N[(N[(N[(N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(F + N[(0.16666666666666666 * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(B * N[(B * N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $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 -0.0038:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq -1.95 \cdot 10^{-32}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5}}{\sin B}\\
\mathbf{elif}\;F \leq 1.55 \cdot 10^{-108}:\\
\;\;\;\;\frac{x \cdot \cos B}{0 - \sin B}\\
\mathbf{elif}\;F \leq 3.2 \cdot 10^{-6}:\\
\;\;\;\;\frac{\left(\sqrt{\frac{1}{2 + \left(F \cdot F + x \cdot 2\right)}} \cdot \left(F + 0.16666666666666666 \cdot \left(F \cdot \left(B \cdot B\right)\right)\right) + B \cdot \left(B \cdot \left(x \cdot 0.3333333333333333\right)\right)\right) - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -0.00379999999999999999Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in F around -inf
/-lowering-/.f64N/A
sin-lowering-sin.f6499.8%
Simplified99.8%
if -0.00379999999999999999 < F < -1.9500000000000001e-32Initial program 99.2%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.2%
Simplified99.2%
Taylor expanded in F around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
sin-lowering-sin.f6495.2%
Simplified95.2%
if -1.9500000000000001e-32 < F < 1.55000000000000007e-108Initial program 99.5%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6477.0%
Simplified77.0%
if 1.55000000000000007e-108 < F < 3.1999999999999999e-6Initial program 99.2%
Taylor expanded in B around 0
/-lowering-/.f64N/A
Simplified64.5%
if 3.1999999999999999e-6 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in F around inf
/-lowering-/.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
Final simplification87.6%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -0.001)
(- (/ -1.0 (sin B)) t_0)
(if (<= F -1.8e-32)
(/ (* F (sqrt 0.5)) (sin B))
(if (<= F 5.4e-110)
(* x (/ (cos B) (- 0.0 (sin B))))
(if (<= F 5.8e-6)
(/
(-
(+
(*
(sqrt (/ 1.0 (+ 2.0 (+ (* F F) (* x 2.0)))))
(+ F (* 0.16666666666666666 (* F (* B B)))))
(* B (* B (* x 0.3333333333333333))))
x)
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 <= -0.001) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= -1.8e-32) {
tmp = (F * sqrt(0.5)) / sin(B);
} else if (F <= 5.4e-110) {
tmp = x * (cos(B) / (0.0 - sin(B)));
} else if (F <= 5.8e-6) {
tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / 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 <= (-0.001d0)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= (-1.8d-32)) then
tmp = (f * sqrt(0.5d0)) / sin(b)
else if (f <= 5.4d-110) then
tmp = x * (cos(b) / (0.0d0 - sin(b)))
else if (f <= 5.8d-6) then
tmp = (((sqrt((1.0d0 / (2.0d0 + ((f * f) + (x * 2.0d0))))) * (f + (0.16666666666666666d0 * (f * (b * b))))) + (b * (b * (x * 0.3333333333333333d0)))) - x) / 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 <= -0.001) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= -1.8e-32) {
tmp = (F * Math.sqrt(0.5)) / Math.sin(B);
} else if (F <= 5.4e-110) {
tmp = x * (Math.cos(B) / (0.0 - Math.sin(B)));
} else if (F <= 5.8e-6) {
tmp = (((Math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / 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 <= -0.001: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= -1.8e-32: tmp = (F * math.sqrt(0.5)) / math.sin(B) elif F <= 5.4e-110: tmp = x * (math.cos(B) / (0.0 - math.sin(B))) elif F <= 5.8e-6: tmp = (((math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / 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 <= -0.001) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= -1.8e-32) tmp = Float64(Float64(F * sqrt(0.5)) / sin(B)); elseif (F <= 5.4e-110) tmp = Float64(x * Float64(cos(B) / Float64(0.0 - sin(B)))); elseif (F <= 5.8e-6) tmp = Float64(Float64(Float64(Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) * Float64(F + Float64(0.16666666666666666 * Float64(F * Float64(B * B))))) + Float64(B * Float64(B * Float64(x * 0.3333333333333333)))) - x) / 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 <= -0.001) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= -1.8e-32) tmp = (F * sqrt(0.5)) / sin(B); elseif (F <= 5.4e-110) tmp = x * (cos(B) / (0.0 - sin(B))); elseif (F <= 5.8e-6) tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / 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, -0.001], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, -1.8e-32], N[(N[(F * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 5.4e-110], N[(x * N[(N[Cos[B], $MachinePrecision] / N[(0.0 - N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 5.8e-6], N[(N[(N[(N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(F + N[(0.16666666666666666 * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(B * N[(B * N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $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 -0.001:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq -1.8 \cdot 10^{-32}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5}}{\sin B}\\
\mathbf{elif}\;F \leq 5.4 \cdot 10^{-110}:\\
\;\;\;\;x \cdot \frac{\cos B}{0 - \sin B}\\
\mathbf{elif}\;F \leq 5.8 \cdot 10^{-6}:\\
\;\;\;\;\frac{\left(\sqrt{\frac{1}{2 + \left(F \cdot F + x \cdot 2\right)}} \cdot \left(F + 0.16666666666666666 \cdot \left(F \cdot \left(B \cdot B\right)\right)\right) + B \cdot \left(B \cdot \left(x \cdot 0.3333333333333333\right)\right)\right) - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -1e-3Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in F around -inf
/-lowering-/.f64N/A
sin-lowering-sin.f6499.8%
Simplified99.8%
if -1e-3 < F < -1.79999999999999996e-32Initial program 99.2%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.2%
Simplified99.2%
Taylor expanded in F around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
sin-lowering-sin.f6495.2%
Simplified95.2%
if -1.79999999999999996e-32 < F < 5.3999999999999996e-110Initial program 99.5%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.6%
Simplified99.6%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6499.6%
Applied egg-rr99.6%
Taylor expanded in F around 0
mul-1-negN/A
associate-/l*N/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6476.8%
Simplified76.8%
if 5.3999999999999996e-110 < F < 5.8000000000000004e-6Initial program 99.2%
Taylor expanded in B around 0
/-lowering-/.f64N/A
Simplified64.5%
if 5.8000000000000004e-6 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in F around inf
/-lowering-/.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
Final simplification87.5%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (+ 2.0 (* F F))) (t_1 (* x (cos B))))
(if (<= F -0.021)
(/ (- -1.0 t_1) (sin B))
(if (<= F 1.1e-105)
(- (* (sqrt (/ 1.0 t_0)) (/ F B)) (/ x (tan B)))
(if (<= F 0.00088)
(/ (- (/ F (sqrt t_0)) x) (sin B))
(/ (- 1.0 t_1) (sin B)))))))
double code(double F, double B, double x) {
double t_0 = 2.0 + (F * F);
double t_1 = x * cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_1) / sin(B);
} else if (F <= 1.1e-105) {
tmp = (sqrt((1.0 / t_0)) * (F / B)) - (x / tan(B));
} else if (F <= 0.00088) {
tmp = ((F / sqrt(t_0)) - x) / sin(B);
} else {
tmp = (1.0 - t_1) / sin(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 = 2.0d0 + (f * f)
t_1 = x * cos(b)
if (f <= (-0.021d0)) then
tmp = ((-1.0d0) - t_1) / sin(b)
else if (f <= 1.1d-105) then
tmp = (sqrt((1.0d0 / t_0)) * (f / b)) - (x / tan(b))
else if (f <= 0.00088d0) then
tmp = ((f / sqrt(t_0)) - x) / sin(b)
else
tmp = (1.0d0 - t_1) / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = 2.0 + (F * F);
double t_1 = x * Math.cos(B);
double tmp;
if (F <= -0.021) {
tmp = (-1.0 - t_1) / Math.sin(B);
} else if (F <= 1.1e-105) {
tmp = (Math.sqrt((1.0 / t_0)) * (F / B)) - (x / Math.tan(B));
} else if (F <= 0.00088) {
tmp = ((F / Math.sqrt(t_0)) - x) / Math.sin(B);
} else {
tmp = (1.0 - t_1) / Math.sin(B);
}
return tmp;
}
def code(F, B, x): t_0 = 2.0 + (F * F) t_1 = x * math.cos(B) tmp = 0 if F <= -0.021: tmp = (-1.0 - t_1) / math.sin(B) elif F <= 1.1e-105: tmp = (math.sqrt((1.0 / t_0)) * (F / B)) - (x / math.tan(B)) elif F <= 0.00088: tmp = ((F / math.sqrt(t_0)) - x) / math.sin(B) else: tmp = (1.0 - t_1) / math.sin(B) return tmp
function code(F, B, x) t_0 = Float64(2.0 + Float64(F * F)) t_1 = Float64(x * cos(B)) tmp = 0.0 if (F <= -0.021) tmp = Float64(Float64(-1.0 - t_1) / sin(B)); elseif (F <= 1.1e-105) tmp = Float64(Float64(sqrt(Float64(1.0 / t_0)) * Float64(F / B)) - Float64(x / tan(B))); elseif (F <= 0.00088) tmp = Float64(Float64(Float64(F / sqrt(t_0)) - x) / sin(B)); else tmp = Float64(Float64(1.0 - t_1) / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = 2.0 + (F * F); t_1 = x * cos(B); tmp = 0.0; if (F <= -0.021) tmp = (-1.0 - t_1) / sin(B); elseif (F <= 1.1e-105) tmp = (sqrt((1.0 / t_0)) * (F / B)) - (x / tan(B)); elseif (F <= 0.00088) tmp = ((F / sqrt(t_0)) - x) / sin(B); else tmp = (1.0 - t_1) / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[Cos[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -0.021], N[(N[(-1.0 - t$95$1), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.1e-105], N[(N[(N[Sqrt[N[(1.0 / t$95$0), $MachinePrecision]], $MachinePrecision] * N[(F / B), $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00088], N[(N[(N[(F / N[Sqrt[t$95$0], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - t$95$1), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 2 + F \cdot F\\
t_1 := x \cdot \cos B\\
\mathbf{if}\;F \leq -0.021:\\
\;\;\;\;\frac{-1 - t\_1}{\sin B}\\
\mathbf{elif}\;F \leq 1.1 \cdot 10^{-105}:\\
\;\;\;\;\sqrt{\frac{1}{t\_0}} \cdot \frac{F}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 0.00088:\\
\;\;\;\;\frac{\frac{F}{\sqrt{t\_0}} - x}{\sin B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - t\_1}{\sin B}\\
\end{array}
\end{array}
if F < -0.0210000000000000013Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6471.5%
Simplified71.5%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6471.5%
Applied egg-rr71.5%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr71.6%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.9%
Simplified99.9%
if -0.0210000000000000013 < F < 1.10000000000000002e-105Initial program 99.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.6%
Simplified99.6%
Taylor expanded in B around 0
*-commutativeN/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
/-lowering-/.f6487.4%
Simplified87.4%
if 1.10000000000000002e-105 < F < 8.80000000000000031e-4Initial program 99.2%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.2%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.4%
Simplified99.4%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6499.4%
Applied egg-rr99.4%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr99.6%
Taylor expanded in B around 0
Simplified89.8%
if 8.80000000000000031e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6475.8%
Applied egg-rr75.8%
associate-*r/N/A
associate-*l/N/A
sub-divN/A
fmm-defN/A
*-commutativeN/A
/-lowering-/.f64N/A
Applied egg-rr75.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6499.3%
Simplified99.3%
(FPCore (F B x)
:precision binary64
(if (<= F -0.00088)
(- (/ -1.0 (sin B)) (/ x (tan B)))
(if (<= F -4e-32)
(/ (* F (sqrt 0.5)) (sin B))
(if (<= F 4.6e-109)
(* x (/ (cos B) (- 0.0 (sin B))))
(if (<= F 0.00088)
(/
(-
(+
(*
(sqrt (/ 1.0 (+ 2.0 (+ (* F F) (* x 2.0)))))
(+ F (* 0.16666666666666666 (* F (* B B)))))
(* B (* B (* x 0.3333333333333333))))
x)
B)
(- (* F (/ 1.0 (* F (sin B)))) (/ x B)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -0.00088) {
tmp = (-1.0 / sin(B)) - (x / tan(B));
} else if (F <= -4e-32) {
tmp = (F * sqrt(0.5)) / sin(B);
} else if (F <= 4.6e-109) {
tmp = x * (cos(B) / (0.0 - sin(B)));
} else if (F <= 0.00088) {
tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B;
} else {
tmp = (F * (1.0 / (F * sin(B)))) - (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 <= (-0.00088d0)) then
tmp = ((-1.0d0) / sin(b)) - (x / tan(b))
else if (f <= (-4d-32)) then
tmp = (f * sqrt(0.5d0)) / sin(b)
else if (f <= 4.6d-109) then
tmp = x * (cos(b) / (0.0d0 - sin(b)))
else if (f <= 0.00088d0) then
tmp = (((sqrt((1.0d0 / (2.0d0 + ((f * f) + (x * 2.0d0))))) * (f + (0.16666666666666666d0 * (f * (b * b))))) + (b * (b * (x * 0.3333333333333333d0)))) - x) / b
else
tmp = (f * (1.0d0 / (f * sin(b)))) - (x / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -0.00088) {
tmp = (-1.0 / Math.sin(B)) - (x / Math.tan(B));
} else if (F <= -4e-32) {
tmp = (F * Math.sqrt(0.5)) / Math.sin(B);
} else if (F <= 4.6e-109) {
tmp = x * (Math.cos(B) / (0.0 - Math.sin(B)));
} else if (F <= 0.00088) {
tmp = (((Math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B;
} else {
tmp = (F * (1.0 / (F * Math.sin(B)))) - (x / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -0.00088: tmp = (-1.0 / math.sin(B)) - (x / math.tan(B)) elif F <= -4e-32: tmp = (F * math.sqrt(0.5)) / math.sin(B) elif F <= 4.6e-109: tmp = x * (math.cos(B) / (0.0 - math.sin(B))) elif F <= 0.00088: tmp = (((math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B else: tmp = (F * (1.0 / (F * math.sin(B)))) - (x / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -0.00088) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / tan(B))); elseif (F <= -4e-32) tmp = Float64(Float64(F * sqrt(0.5)) / sin(B)); elseif (F <= 4.6e-109) tmp = Float64(x * Float64(cos(B) / Float64(0.0 - sin(B)))); elseif (F <= 0.00088) tmp = Float64(Float64(Float64(Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) * Float64(F + Float64(0.16666666666666666 * Float64(F * Float64(B * B))))) + Float64(B * Float64(B * Float64(x * 0.3333333333333333)))) - x) / B); else tmp = Float64(Float64(F * Float64(1.0 / Float64(F * sin(B)))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -0.00088) tmp = (-1.0 / sin(B)) - (x / tan(B)); elseif (F <= -4e-32) tmp = (F * sqrt(0.5)) / sin(B); elseif (F <= 4.6e-109) tmp = x * (cos(B) / (0.0 - sin(B))); elseif (F <= 0.00088) tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B; else tmp = (F * (1.0 / (F * sin(B)))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -0.00088], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -4e-32], N[(N[(F * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 4.6e-109], N[(x * N[(N[Cos[B], $MachinePrecision] / N[(0.0 - N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.00088], N[(N[(N[(N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(F + N[(0.16666666666666666 * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(B * N[(B * N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(F * N[(1.0 / N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -0.00088:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq -4 \cdot 10^{-32}:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5}}{\sin B}\\
\mathbf{elif}\;F \leq 4.6 \cdot 10^{-109}:\\
\;\;\;\;x \cdot \frac{\cos B}{0 - \sin B}\\
\mathbf{elif}\;F \leq 0.00088:\\
\;\;\;\;\frac{\left(\sqrt{\frac{1}{2 + \left(F \cdot F + x \cdot 2\right)}} \cdot \left(F + 0.16666666666666666 \cdot \left(F \cdot \left(B \cdot B\right)\right)\right) + B \cdot \left(B \cdot \left(x \cdot 0.3333333333333333\right)\right)\right) - x}{B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{1}{F \cdot \sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -8.80000000000000031e-4Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified71.5%
Taylor expanded in F around -inf
/-lowering-/.f64N/A
sin-lowering-sin.f6499.8%
Simplified99.8%
if -8.80000000000000031e-4 < F < -4.00000000000000022e-32Initial program 99.2%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.2%
Simplified99.2%
Taylor expanded in F around 0
/-lowering-/.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
sin-lowering-sin.f6495.2%
Simplified95.2%
if -4.00000000000000022e-32 < F < 4.6000000000000003e-109Initial program 99.5%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified99.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.6%
Simplified99.6%
tan-quotN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sin-lowering-sin.f64N/A
cos-lowering-cos.f6499.6%
Applied egg-rr99.6%
Taylor expanded in F around 0
mul-1-negN/A
associate-/l*N/A
distribute-lft-neg-inN/A
*-lowering-*.f64N/A
neg-sub0N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
cos-lowering-cos.f64N/A
sin-lowering-sin.f6476.8%
Simplified76.8%
if 4.6000000000000003e-109 < F < 8.80000000000000031e-4Initial program 99.2%
Taylor expanded in B around 0
/-lowering-/.f64N/A
Simplified64.5%
if 8.80000000000000031e-4 < F Initial program 63.9%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified75.8%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6475.8%
Simplified75.8%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6499.0%
Simplified99.0%
Taylor expanded in B around 0
/-lowering-/.f6473.5%
Simplified73.5%
Final simplification79.7%
(FPCore (F B x)
:precision binary64
(if (<= B 0.00055)
(/
(-
(+
(*
(sqrt (/ 1.0 (+ 2.0 (+ (* F F) (* x 2.0)))))
(+ F (* 0.16666666666666666 (* F (* B B)))))
(* B (* B (* x 0.3333333333333333))))
x)
B)
(-
(*
F
(/
1.0
(*
F
(*
B
(+
1.0
(*
(* B B)
(+
(*
(* B B)
(+ 0.008333333333333333 (* (* B B) -0.0001984126984126984)))
-0.16666666666666666)))))))
(/ x (tan B)))))
double code(double F, double B, double x) {
double tmp;
if (B <= 0.00055) {
tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B;
} else {
tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * (((B * B) * (0.008333333333333333 + ((B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - (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) :: tmp
if (b <= 0.00055d0) then
tmp = (((sqrt((1.0d0 / (2.0d0 + ((f * f) + (x * 2.0d0))))) * (f + (0.16666666666666666d0 * (f * (b * b))))) + (b * (b * (x * 0.3333333333333333d0)))) - x) / b
else
tmp = (f * (1.0d0 / (f * (b * (1.0d0 + ((b * b) * (((b * b) * (0.008333333333333333d0 + ((b * b) * (-0.0001984126984126984d0)))) + (-0.16666666666666666d0)))))))) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (B <= 0.00055) {
tmp = (((Math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B;
} else {
tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * (((B * B) * (0.008333333333333333 + ((B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if B <= 0.00055: tmp = (((math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B else: tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * (((B * B) * (0.008333333333333333 + ((B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (B <= 0.00055) tmp = Float64(Float64(Float64(Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) * Float64(F + Float64(0.16666666666666666 * Float64(F * Float64(B * B))))) + Float64(B * Float64(B * Float64(x * 0.3333333333333333)))) - x) / B); else tmp = Float64(Float64(F * Float64(1.0 / Float64(F * Float64(B * Float64(1.0 + Float64(Float64(B * B) * Float64(Float64(Float64(B * B) * Float64(0.008333333333333333 + Float64(Float64(B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (B <= 0.00055) tmp = (((sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0))))) * (F + (0.16666666666666666 * (F * (B * B))))) + (B * (B * (x * 0.3333333333333333)))) - x) / B; else tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * (((B * B) * (0.008333333333333333 + ((B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[B, 0.00055], N[(N[(N[(N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(F + N[(0.16666666666666666 * N[(F * N[(B * B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(B * N[(B * N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(F * N[(1.0 / N[(F * N[(B * N[(1.0 + N[(N[(B * B), $MachinePrecision] * N[(N[(N[(B * B), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(B * B), $MachinePrecision] * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;B \leq 0.00055:\\
\;\;\;\;\frac{\left(\sqrt{\frac{1}{2 + \left(F \cdot F + x \cdot 2\right)}} \cdot \left(F + 0.16666666666666666 \cdot \left(F \cdot \left(B \cdot B\right)\right)\right) + B \cdot \left(B \cdot \left(x \cdot 0.3333333333333333\right)\right)\right) - x}{B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{1}{F \cdot \left(B \cdot \left(1 + \left(B \cdot B\right) \cdot \left(\left(B \cdot B\right) \cdot \left(0.008333333333333333 + \left(B \cdot B\right) \cdot -0.0001984126984126984\right) + -0.16666666666666666\right)\right)\right)} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if B < 5.50000000000000033e-4Initial program 79.1%
Taylor expanded in B around 0
/-lowering-/.f64N/A
Simplified54.0%
if 5.50000000000000033e-4 < B Initial program 88.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified88.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6488.7%
Simplified88.7%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6460.2%
Simplified60.2%
Taylor expanded in B around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.9%
Simplified66.9%
Final simplification57.0%
(FPCore (F B x)
:precision binary64
(if (<= B 0.00015)
(/ (- (/ F (sqrt (+ 2.0 (+ (* F F) (* x 2.0))))) x) B)
(-
(*
F
(/
1.0
(*
F
(*
B
(+
1.0
(*
(* B B)
(+
(*
(* B B)
(+ 0.008333333333333333 (* (* B B) -0.0001984126984126984)))
-0.16666666666666666)))))))
(/ x (tan B)))))
double code(double F, double B, double x) {
double tmp;
if (B <= 0.00015) {
tmp = ((F / sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B;
} else {
tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * (((B * B) * (0.008333333333333333 + ((B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - (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) :: tmp
if (b <= 0.00015d0) then
tmp = ((f / sqrt((2.0d0 + ((f * f) + (x * 2.0d0))))) - x) / b
else
tmp = (f * (1.0d0 / (f * (b * (1.0d0 + ((b * b) * (((b * b) * (0.008333333333333333d0 + ((b * b) * (-0.0001984126984126984d0)))) + (-0.16666666666666666d0)))))))) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (B <= 0.00015) {
tmp = ((F / Math.sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B;
} else {
tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * (((B * B) * (0.008333333333333333 + ((B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if B <= 0.00015: tmp = ((F / math.sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B else: tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * (((B * B) * (0.008333333333333333 + ((B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (B <= 0.00015) tmp = Float64(Float64(Float64(F / sqrt(Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) - x) / B); else tmp = Float64(Float64(F * Float64(1.0 / Float64(F * Float64(B * Float64(1.0 + Float64(Float64(B * B) * Float64(Float64(Float64(B * B) * Float64(0.008333333333333333 + Float64(Float64(B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (B <= 0.00015) tmp = ((F / sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B; else tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * (((B * B) * (0.008333333333333333 + ((B * B) * -0.0001984126984126984))) + -0.16666666666666666))))))) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[B, 0.00015], N[(N[(N[(F / N[Sqrt[N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(F * N[(1.0 / N[(F * N[(B * N[(1.0 + N[(N[(B * B), $MachinePrecision] * N[(N[(N[(B * B), $MachinePrecision] * N[(0.008333333333333333 + N[(N[(B * B), $MachinePrecision] * -0.0001984126984126984), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;B \leq 0.00015:\\
\;\;\;\;\frac{\frac{F}{\sqrt{2 + \left(F \cdot F + x \cdot 2\right)}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{1}{F \cdot \left(B \cdot \left(1 + \left(B \cdot B\right) \cdot \left(\left(B \cdot B\right) \cdot \left(0.008333333333333333 + \left(B \cdot B\right) \cdot -0.0001984126984126984\right) + -0.16666666666666666\right)\right)\right)} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if B < 1.49999999999999987e-4Initial program 79.1%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6454.6%
Simplified54.6%
/-lowering-/.f64N/A
Applied egg-rr54.6%
if 1.49999999999999987e-4 < B Initial program 88.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified88.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6488.7%
Simplified88.7%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6460.2%
Simplified60.2%
Taylor expanded in B around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.9%
Simplified66.9%
Final simplification57.4%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (- (/ 1.0 B) (/ x (tan B)))))
(if (<= x -9.6e-177)
t_0
(if (<= x 6.5e-278)
(* F (/ (sqrt (/ 1.0 (+ 2.0 (* F F)))) B))
(if (<= x 1.7e-161)
(/ 1.0 (sin B))
(if (<= x 1.1e-24)
(- (* (/ F B) (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) (/ x B))
t_0))))))
double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / tan(B));
double tmp;
if (x <= -9.6e-177) {
tmp = t_0;
} else if (x <= 6.5e-278) {
tmp = F * (sqrt((1.0 / (2.0 + (F * F)))) / B);
} else if (x <= 1.7e-161) {
tmp = 1.0 / sin(B);
} else if (x <= 1.1e-24) {
tmp = ((F / B) * sqrt((1.0 / (2.0 + (x * 2.0))))) - (x / B);
} else {
tmp = 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 = (1.0d0 / b) - (x / tan(b))
if (x <= (-9.6d-177)) then
tmp = t_0
else if (x <= 6.5d-278) then
tmp = f * (sqrt((1.0d0 / (2.0d0 + (f * f)))) / b)
else if (x <= 1.7d-161) then
tmp = 1.0d0 / sin(b)
else if (x <= 1.1d-24) then
tmp = ((f / b) * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - (x / b)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / Math.tan(B));
double tmp;
if (x <= -9.6e-177) {
tmp = t_0;
} else if (x <= 6.5e-278) {
tmp = F * (Math.sqrt((1.0 / (2.0 + (F * F)))) / B);
} else if (x <= 1.7e-161) {
tmp = 1.0 / Math.sin(B);
} else if (x <= 1.1e-24) {
tmp = ((F / B) * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - (x / B);
} else {
tmp = t_0;
}
return tmp;
}
def code(F, B, x): t_0 = (1.0 / B) - (x / math.tan(B)) tmp = 0 if x <= -9.6e-177: tmp = t_0 elif x <= 6.5e-278: tmp = F * (math.sqrt((1.0 / (2.0 + (F * F)))) / B) elif x <= 1.7e-161: tmp = 1.0 / math.sin(B) elif x <= 1.1e-24: tmp = ((F / B) * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - (x / B) else: tmp = t_0 return tmp
function code(F, B, x) t_0 = Float64(Float64(1.0 / B) - Float64(x / tan(B))) tmp = 0.0 if (x <= -9.6e-177) tmp = t_0; elseif (x <= 6.5e-278) tmp = Float64(F * Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(F * F)))) / B)); elseif (x <= 1.7e-161) tmp = Float64(1.0 / sin(B)); elseif (x <= 1.1e-24) tmp = Float64(Float64(Float64(F / B) * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - Float64(x / B)); else tmp = t_0; end return tmp end
function tmp_2 = code(F, B, x) t_0 = (1.0 / B) - (x / tan(B)); tmp = 0.0; if (x <= -9.6e-177) tmp = t_0; elseif (x <= 6.5e-278) tmp = F * (sqrt((1.0 / (2.0 + (F * F)))) / B); elseif (x <= 1.7e-161) tmp = 1.0 / sin(B); elseif (x <= 1.1e-24) tmp = ((F / B) * sqrt((1.0 / (2.0 + (x * 2.0))))) - (x / B); else tmp = t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.6e-177], t$95$0, If[LessEqual[x, 6.5e-278], N[(F * N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.7e-161], N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e-24], N[(N[(N[(F / B), $MachinePrecision] * N[Sqrt[N[(1.0 / N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{B} - \frac{x}{\tan B}\\
\mathbf{if}\;x \leq -9.6 \cdot 10^{-177}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-278}:\\
\;\;\;\;F \cdot \frac{\sqrt{\frac{1}{2 + F \cdot F}}}{B}\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-161}:\\
\;\;\;\;\frac{1}{\sin B}\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-24}:\\
\;\;\;\;\frac{F}{B} \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - \frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -9.5999999999999995e-177 or 1.10000000000000001e-24 < x Initial program 81.6%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified90.3%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6490.3%
Simplified90.3%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6467.8%
Simplified67.8%
Taylor expanded in B around 0
/-lowering-/.f6476.1%
Simplified76.1%
if -9.5999999999999995e-177 < x < 6.5e-278Initial program 79.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6468.4%
Simplified68.4%
Taylor expanded in B around 0
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6447.6%
Simplified47.6%
if 6.5e-278 < x < 1.69999999999999991e-161Initial program 80.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6469.9%
Simplified69.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
sin-lowering-sin.f6444.9%
Simplified44.9%
if 1.69999999999999991e-161 < x < 1.10000000000000001e-24Initial program 82.7%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.0%
Simplified50.0%
Taylor expanded in F around 0
+-commutativeN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6447.4%
Simplified47.4%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (- (/ 1.0 B) (/ x (tan B)))))
(if (<= x -2.2e-176)
t_0
(if (<= x 2.45e-278)
(* F (/ (sqrt (/ 1.0 (+ 2.0 (* F F)))) B))
(if (<= x 3.6e-158)
(/ 1.0 (sin B))
(if (<= x 2e-25)
(/ (- (* F (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) x) B)
t_0))))))
double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / tan(B));
double tmp;
if (x <= -2.2e-176) {
tmp = t_0;
} else if (x <= 2.45e-278) {
tmp = F * (sqrt((1.0 / (2.0 + (F * F)))) / B);
} else if (x <= 3.6e-158) {
tmp = 1.0 / sin(B);
} else if (x <= 2e-25) {
tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else {
tmp = 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 = (1.0d0 / b) - (x / tan(b))
if (x <= (-2.2d-176)) then
tmp = t_0
else if (x <= 2.45d-278) then
tmp = f * (sqrt((1.0d0 / (2.0d0 + (f * f)))) / b)
else if (x <= 3.6d-158) then
tmp = 1.0d0 / sin(b)
else if (x <= 2d-25) then
tmp = ((f * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - x) / b
else
tmp = t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / Math.tan(B));
double tmp;
if (x <= -2.2e-176) {
tmp = t_0;
} else if (x <= 2.45e-278) {
tmp = F * (Math.sqrt((1.0 / (2.0 + (F * F)))) / B);
} else if (x <= 3.6e-158) {
tmp = 1.0 / Math.sin(B);
} else if (x <= 2e-25) {
tmp = ((F * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else {
tmp = t_0;
}
return tmp;
}
def code(F, B, x): t_0 = (1.0 / B) - (x / math.tan(B)) tmp = 0 if x <= -2.2e-176: tmp = t_0 elif x <= 2.45e-278: tmp = F * (math.sqrt((1.0 / (2.0 + (F * F)))) / B) elif x <= 3.6e-158: tmp = 1.0 / math.sin(B) elif x <= 2e-25: tmp = ((F * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B else: tmp = t_0 return tmp
function code(F, B, x) t_0 = Float64(Float64(1.0 / B) - Float64(x / tan(B))) tmp = 0.0 if (x <= -2.2e-176) tmp = t_0; elseif (x <= 2.45e-278) tmp = Float64(F * Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(F * F)))) / B)); elseif (x <= 3.6e-158) tmp = Float64(1.0 / sin(B)); elseif (x <= 2e-25) tmp = Float64(Float64(Float64(F * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - x) / B); else tmp = t_0; end return tmp end
function tmp_2 = code(F, B, x) t_0 = (1.0 / B) - (x / tan(B)); tmp = 0.0; if (x <= -2.2e-176) tmp = t_0; elseif (x <= 2.45e-278) tmp = F * (sqrt((1.0 / (2.0 + (F * F)))) / B); elseif (x <= 3.6e-158) tmp = 1.0 / sin(B); elseif (x <= 2e-25) tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B; else tmp = t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.2e-176], t$95$0, If[LessEqual[x, 2.45e-278], N[(F * N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.6e-158], N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e-25], N[(N[(N[(F * N[Sqrt[N[(1.0 / N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{B} - \frac{x}{\tan B}\\
\mathbf{if}\;x \leq -2.2 \cdot 10^{-176}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.45 \cdot 10^{-278}:\\
\;\;\;\;F \cdot \frac{\sqrt{\frac{1}{2 + F \cdot F}}}{B}\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-158}:\\
\;\;\;\;\frac{1}{\sin B}\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-25}:\\
\;\;\;\;\frac{F \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -2.1999999999999999e-176 or 2.00000000000000008e-25 < x Initial program 81.6%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified90.3%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6490.3%
Simplified90.3%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6467.8%
Simplified67.8%
Taylor expanded in B around 0
/-lowering-/.f6476.1%
Simplified76.1%
if -2.1999999999999999e-176 < x < 2.4500000000000001e-278Initial program 79.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6468.4%
Simplified68.4%
Taylor expanded in B around 0
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6447.6%
Simplified47.6%
if 2.4500000000000001e-278 < x < 3.59999999999999991e-158Initial program 80.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6469.9%
Simplified69.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
sin-lowering-sin.f6444.9%
Simplified44.9%
if 3.59999999999999991e-158 < x < 2.00000000000000008e-25Initial program 82.7%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.0%
Simplified50.0%
Taylor expanded in F around 0
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6447.4%
Simplified47.4%
(FPCore (F B x)
:precision binary64
(if (<= B 0.00012)
(/ (- (/ F (sqrt (+ 2.0 (+ (* F F) (* x 2.0))))) x) B)
(-
(*
F
(/
1.0
(*
B
(+
F
(*
(* B B)
(* F (+ -0.16666666666666666 (* (* B B) 0.008333333333333333))))))))
(/ x (tan B)))))
double code(double F, double B, double x) {
double tmp;
if (B <= 0.00012) {
tmp = ((F / sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B;
} else {
tmp = (F * (1.0 / (B * (F + ((B * B) * (F * (-0.16666666666666666 + ((B * B) * 0.008333333333333333)))))))) - (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) :: tmp
if (b <= 0.00012d0) then
tmp = ((f / sqrt((2.0d0 + ((f * f) + (x * 2.0d0))))) - x) / b
else
tmp = (f * (1.0d0 / (b * (f + ((b * b) * (f * ((-0.16666666666666666d0) + ((b * b) * 0.008333333333333333d0)))))))) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (B <= 0.00012) {
tmp = ((F / Math.sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B;
} else {
tmp = (F * (1.0 / (B * (F + ((B * B) * (F * (-0.16666666666666666 + ((B * B) * 0.008333333333333333)))))))) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if B <= 0.00012: tmp = ((F / math.sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B else: tmp = (F * (1.0 / (B * (F + ((B * B) * (F * (-0.16666666666666666 + ((B * B) * 0.008333333333333333)))))))) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (B <= 0.00012) tmp = Float64(Float64(Float64(F / sqrt(Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) - x) / B); else tmp = Float64(Float64(F * Float64(1.0 / Float64(B * Float64(F + Float64(Float64(B * B) * Float64(F * Float64(-0.16666666666666666 + Float64(Float64(B * B) * 0.008333333333333333)))))))) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (B <= 0.00012) tmp = ((F / sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B; else tmp = (F * (1.0 / (B * (F + ((B * B) * (F * (-0.16666666666666666 + ((B * B) * 0.008333333333333333)))))))) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[B, 0.00012], N[(N[(N[(F / N[Sqrt[N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(F * N[(1.0 / N[(B * N[(F + N[(N[(B * B), $MachinePrecision] * N[(F * N[(-0.16666666666666666 + N[(N[(B * B), $MachinePrecision] * 0.008333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;B \leq 0.00012:\\
\;\;\;\;\frac{\frac{F}{\sqrt{2 + \left(F \cdot F + x \cdot 2\right)}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{1}{B \cdot \left(F + \left(B \cdot B\right) \cdot \left(F \cdot \left(-0.16666666666666666 + \left(B \cdot B\right) \cdot 0.008333333333333333\right)\right)\right)} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if B < 1.20000000000000003e-4Initial program 79.1%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6454.6%
Simplified54.6%
/-lowering-/.f64N/A
Applied egg-rr54.6%
if 1.20000000000000003e-4 < B Initial program 88.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified88.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6488.7%
Simplified88.7%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6460.2%
Simplified60.2%
Taylor expanded in B around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-commutativeN/A
associate-*r*N/A
distribute-rgt-outN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.9%
Simplified66.9%
Final simplification57.4%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (- (/ 1.0 B) (/ x (tan B)))))
(if (<= x -9.5e-176)
t_0
(if (<= x 5.3e-278)
(* F (/ (sqrt (/ 1.0 (+ 2.0 (* F F)))) B))
(if (<= x 2.4e-27)
(* F (/ (/ (+ 1.0 (/ -1.0 (* F F))) F) (sin B)))
t_0)))))
double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / tan(B));
double tmp;
if (x <= -9.5e-176) {
tmp = t_0;
} else if (x <= 5.3e-278) {
tmp = F * (sqrt((1.0 / (2.0 + (F * F)))) / B);
} else if (x <= 2.4e-27) {
tmp = F * (((1.0 + (-1.0 / (F * F))) / F) / sin(B));
} else {
tmp = 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 = (1.0d0 / b) - (x / tan(b))
if (x <= (-9.5d-176)) then
tmp = t_0
else if (x <= 5.3d-278) then
tmp = f * (sqrt((1.0d0 / (2.0d0 + (f * f)))) / b)
else if (x <= 2.4d-27) then
tmp = f * (((1.0d0 + ((-1.0d0) / (f * f))) / f) / sin(b))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / Math.tan(B));
double tmp;
if (x <= -9.5e-176) {
tmp = t_0;
} else if (x <= 5.3e-278) {
tmp = F * (Math.sqrt((1.0 / (2.0 + (F * F)))) / B);
} else if (x <= 2.4e-27) {
tmp = F * (((1.0 + (-1.0 / (F * F))) / F) / Math.sin(B));
} else {
tmp = t_0;
}
return tmp;
}
def code(F, B, x): t_0 = (1.0 / B) - (x / math.tan(B)) tmp = 0 if x <= -9.5e-176: tmp = t_0 elif x <= 5.3e-278: tmp = F * (math.sqrt((1.0 / (2.0 + (F * F)))) / B) elif x <= 2.4e-27: tmp = F * (((1.0 + (-1.0 / (F * F))) / F) / math.sin(B)) else: tmp = t_0 return tmp
function code(F, B, x) t_0 = Float64(Float64(1.0 / B) - Float64(x / tan(B))) tmp = 0.0 if (x <= -9.5e-176) tmp = t_0; elseif (x <= 5.3e-278) tmp = Float64(F * Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(F * F)))) / B)); elseif (x <= 2.4e-27) tmp = Float64(F * Float64(Float64(Float64(1.0 + Float64(-1.0 / Float64(F * F))) / F) / sin(B))); else tmp = t_0; end return tmp end
function tmp_2 = code(F, B, x) t_0 = (1.0 / B) - (x / tan(B)); tmp = 0.0; if (x <= -9.5e-176) tmp = t_0; elseif (x <= 5.3e-278) tmp = F * (sqrt((1.0 / (2.0 + (F * F)))) / B); elseif (x <= 2.4e-27) tmp = F * (((1.0 + (-1.0 / (F * F))) / F) / sin(B)); else tmp = t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.5e-176], t$95$0, If[LessEqual[x, 5.3e-278], N[(F * N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-27], N[(F * N[(N[(N[(1.0 + N[(-1.0 / N[(F * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / F), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{B} - \frac{x}{\tan B}\\
\mathbf{if}\;x \leq -9.5 \cdot 10^{-176}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 5.3 \cdot 10^{-278}:\\
\;\;\;\;F \cdot \frac{\sqrt{\frac{1}{2 + F \cdot F}}}{B}\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-27}:\\
\;\;\;\;F \cdot \frac{\frac{1 + \frac{-1}{F \cdot F}}{F}}{\sin B}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -9.5e-176 or 2.40000000000000002e-27 < x Initial program 81.7%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified90.4%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6490.4%
Simplified90.4%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6467.4%
Simplified67.4%
Taylor expanded in B around 0
/-lowering-/.f6475.7%
Simplified75.7%
if -9.5e-176 < x < 5.3e-278Initial program 79.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6468.4%
Simplified68.4%
Taylor expanded in B around 0
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6447.6%
Simplified47.6%
if 5.3e-278 < x < 2.40000000000000002e-27Initial program 81.3%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6455.6%
Simplified55.6%
Taylor expanded in F around inf
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6436.6%
Simplified36.6%
(FPCore (F B x)
:precision binary64
(if (<= B 0.000116)
(/ (- (/ F (sqrt (+ 2.0 (+ (* F F) (* x 2.0))))) x) B)
(-
(* F (/ 1.0 (* F (* B (+ 1.0 (* (* B B) -0.16666666666666666))))))
(/ x (tan B)))))
double code(double F, double B, double x) {
double tmp;
if (B <= 0.000116) {
tmp = ((F / sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B;
} else {
tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * -0.16666666666666666)))))) - (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) :: tmp
if (b <= 0.000116d0) then
tmp = ((f / sqrt((2.0d0 + ((f * f) + (x * 2.0d0))))) - x) / b
else
tmp = (f * (1.0d0 / (f * (b * (1.0d0 + ((b * b) * (-0.16666666666666666d0))))))) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (B <= 0.000116) {
tmp = ((F / Math.sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B;
} else {
tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * -0.16666666666666666)))))) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if B <= 0.000116: tmp = ((F / math.sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B else: tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * -0.16666666666666666)))))) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (B <= 0.000116) tmp = Float64(Float64(Float64(F / sqrt(Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) - x) / B); else tmp = Float64(Float64(F * Float64(1.0 / Float64(F * Float64(B * Float64(1.0 + Float64(Float64(B * B) * -0.16666666666666666)))))) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (B <= 0.000116) tmp = ((F / sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B; else tmp = (F * (1.0 / (F * (B * (1.0 + ((B * B) * -0.16666666666666666)))))) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[B, 0.000116], N[(N[(N[(F / N[Sqrt[N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(F * N[(1.0 / N[(F * N[(B * N[(1.0 + N[(N[(B * B), $MachinePrecision] * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;B \leq 0.000116:\\
\;\;\;\;\frac{\frac{F}{\sqrt{2 + \left(F \cdot F + x \cdot 2\right)}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{1}{F \cdot \left(B \cdot \left(1 + \left(B \cdot B\right) \cdot -0.16666666666666666\right)\right)} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if B < 1.16e-4Initial program 79.1%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6454.6%
Simplified54.6%
/-lowering-/.f64N/A
Applied egg-rr54.6%
if 1.16e-4 < B Initial program 88.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified88.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6488.7%
Simplified88.7%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6460.2%
Simplified60.2%
Taylor expanded in B around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.3%
Simplified66.3%
Final simplification57.3%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (- (/ 1.0 B) (/ x (tan B)))))
(if (<= x -5.1e-176)
t_0
(if (<= x 4.2e-278)
(* F (/ (sqrt (/ 1.0 (+ 2.0 (* F F)))) B))
(if (<= x 4e-35) (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / tan(B));
double tmp;
if (x <= -5.1e-176) {
tmp = t_0;
} else if (x <= 4.2e-278) {
tmp = F * (sqrt((1.0 / (2.0 + (F * F)))) / B);
} else if (x <= 4e-35) {
tmp = 1.0 / sin(B);
} else {
tmp = 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 = (1.0d0 / b) - (x / tan(b))
if (x <= (-5.1d-176)) then
tmp = t_0
else if (x <= 4.2d-278) then
tmp = f * (sqrt((1.0d0 / (2.0d0 + (f * f)))) / b)
else if (x <= 4d-35) then
tmp = 1.0d0 / sin(b)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / Math.tan(B));
double tmp;
if (x <= -5.1e-176) {
tmp = t_0;
} else if (x <= 4.2e-278) {
tmp = F * (Math.sqrt((1.0 / (2.0 + (F * F)))) / B);
} else if (x <= 4e-35) {
tmp = 1.0 / Math.sin(B);
} else {
tmp = t_0;
}
return tmp;
}
def code(F, B, x): t_0 = (1.0 / B) - (x / math.tan(B)) tmp = 0 if x <= -5.1e-176: tmp = t_0 elif x <= 4.2e-278: tmp = F * (math.sqrt((1.0 / (2.0 + (F * F)))) / B) elif x <= 4e-35: tmp = 1.0 / math.sin(B) else: tmp = t_0 return tmp
function code(F, B, x) t_0 = Float64(Float64(1.0 / B) - Float64(x / tan(B))) tmp = 0.0 if (x <= -5.1e-176) tmp = t_0; elseif (x <= 4.2e-278) tmp = Float64(F * Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(F * F)))) / B)); elseif (x <= 4e-35) tmp = Float64(1.0 / sin(B)); else tmp = t_0; end return tmp end
function tmp_2 = code(F, B, x) t_0 = (1.0 / B) - (x / tan(B)); tmp = 0.0; if (x <= -5.1e-176) tmp = t_0; elseif (x <= 4.2e-278) tmp = F * (sqrt((1.0 / (2.0 + (F * F)))) / B); elseif (x <= 4e-35) tmp = 1.0 / sin(B); else tmp = t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.1e-176], t$95$0, If[LessEqual[x, 4.2e-278], N[(F * N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e-35], N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{B} - \frac{x}{\tan B}\\
\mathbf{if}\;x \leq -5.1 \cdot 10^{-176}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{-278}:\\
\;\;\;\;F \cdot \frac{\sqrt{\frac{1}{2 + F \cdot F}}}{B}\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-35}:\\
\;\;\;\;\frac{1}{\sin B}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.1000000000000003e-176 or 4.00000000000000003e-35 < x Initial program 81.8%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified90.4%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6490.4%
Simplified90.4%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6467.0%
Simplified67.0%
Taylor expanded in B around 0
/-lowering-/.f6475.2%
Simplified75.2%
if -5.1000000000000003e-176 < x < 4.20000000000000027e-278Initial program 79.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6468.4%
Simplified68.4%
Taylor expanded in B around 0
associate-*l/N/A
*-lft-identityN/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f6447.6%
Simplified47.6%
if 4.20000000000000027e-278 < x < 4.00000000000000003e-35Initial program 81.0%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6456.6%
Simplified56.6%
Taylor expanded in F around inf
/-lowering-/.f64N/A
sin-lowering-sin.f6437.1%
Simplified37.1%
(FPCore (F B x) :precision binary64 (if (<= B 0.00022) (/ (- (/ F (sqrt (+ 2.0 (+ (* F F) (* x 2.0))))) x) B) (- (/ 1.0 B) (/ x (tan B)))))
double code(double F, double B, double x) {
double tmp;
if (B <= 0.00022) {
tmp = ((F / sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B;
} else {
tmp = (1.0 / 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) :: tmp
if (b <= 0.00022d0) then
tmp = ((f / sqrt((2.0d0 + ((f * f) + (x * 2.0d0))))) - x) / b
else
tmp = (1.0d0 / b) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (B <= 0.00022) {
tmp = ((F / Math.sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B;
} else {
tmp = (1.0 / B) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if B <= 0.00022: tmp = ((F / math.sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B else: tmp = (1.0 / B) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (B <= 0.00022) tmp = Float64(Float64(Float64(F / sqrt(Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0))))) - x) / B); else tmp = Float64(Float64(1.0 / B) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (B <= 0.00022) tmp = ((F / sqrt((2.0 + ((F * F) + (x * 2.0))))) - x) / B; else tmp = (1.0 / B) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[B, 0.00022], N[(N[(N[(F / N[Sqrt[N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;B \leq 0.00022:\\
\;\;\;\;\frac{\frac{F}{\sqrt{2 + \left(F \cdot F + x \cdot 2\right)}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if B < 2.20000000000000008e-4Initial program 79.1%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6454.6%
Simplified54.6%
/-lowering-/.f64N/A
Applied egg-rr54.6%
if 2.20000000000000008e-4 < B Initial program 88.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified88.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6488.7%
Simplified88.7%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6460.2%
Simplified60.2%
Taylor expanded in B around 0
/-lowering-/.f6462.2%
Simplified62.2%
Final simplification56.4%
(FPCore (F B x)
:precision binary64
(if (<= B 2.3e-165)
(/ (- 0.0 x) B)
(if (<= B 0.000116)
(/
(-
(* B (/ F (* F (+ 1.0 (/ (* 0.5 (+ 2.0 (* x 2.0))) (* F F))))))
(* x B))
(* B B))
(- (/ 1.0 B) (/ x (tan B))))))
double code(double F, double B, double x) {
double tmp;
if (B <= 2.3e-165) {
tmp = (0.0 - x) / B;
} else if (B <= 0.000116) {
tmp = ((B * (F / (F * (1.0 + ((0.5 * (2.0 + (x * 2.0))) / (F * F)))))) - (x * B)) / (B * B);
} else {
tmp = (1.0 / 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) :: tmp
if (b <= 2.3d-165) then
tmp = (0.0d0 - x) / b
else if (b <= 0.000116d0) then
tmp = ((b * (f / (f * (1.0d0 + ((0.5d0 * (2.0d0 + (x * 2.0d0))) / (f * f)))))) - (x * b)) / (b * b)
else
tmp = (1.0d0 / b) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (B <= 2.3e-165) {
tmp = (0.0 - x) / B;
} else if (B <= 0.000116) {
tmp = ((B * (F / (F * (1.0 + ((0.5 * (2.0 + (x * 2.0))) / (F * F)))))) - (x * B)) / (B * B);
} else {
tmp = (1.0 / B) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if B <= 2.3e-165: tmp = (0.0 - x) / B elif B <= 0.000116: tmp = ((B * (F / (F * (1.0 + ((0.5 * (2.0 + (x * 2.0))) / (F * F)))))) - (x * B)) / (B * B) else: tmp = (1.0 / B) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (B <= 2.3e-165) tmp = Float64(Float64(0.0 - x) / B); elseif (B <= 0.000116) tmp = Float64(Float64(Float64(B * Float64(F / Float64(F * Float64(1.0 + Float64(Float64(0.5 * Float64(2.0 + Float64(x * 2.0))) / Float64(F * F)))))) - Float64(x * B)) / Float64(B * B)); else tmp = Float64(Float64(1.0 / B) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (B <= 2.3e-165) tmp = (0.0 - x) / B; elseif (B <= 0.000116) tmp = ((B * (F / (F * (1.0 + ((0.5 * (2.0 + (x * 2.0))) / (F * F)))))) - (x * B)) / (B * B); else tmp = (1.0 / B) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[B, 2.3e-165], N[(N[(0.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[B, 0.000116], N[(N[(N[(B * N[(F / N[(F * N[(1.0 + N[(N[(0.5 * N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(F * F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * B), $MachinePrecision]), $MachinePrecision] / N[(B * B), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;B \leq 2.3 \cdot 10^{-165}:\\
\;\;\;\;\frac{0 - x}{B}\\
\mathbf{elif}\;B \leq 0.000116:\\
\;\;\;\;\frac{B \cdot \frac{F}{F \cdot \left(1 + \frac{0.5 \cdot \left(2 + x \cdot 2\right)}{F \cdot F}\right)} - x \cdot B}{B \cdot B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if B < 2.3e-165Initial program 79.6%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.6%
Simplified47.6%
Taylor expanded in F around 0
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f6430.8%
Simplified30.8%
if 2.3e-165 < B < 1.16e-4Initial program 76.3%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6493.1%
Simplified93.1%
div-subN/A
frac-subN/A
/-lowering-/.f64N/A
Applied egg-rr92.8%
Taylor expanded in F around inf
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6471.3%
Simplified71.3%
if 1.16e-4 < B Initial program 88.4%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified88.6%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6488.7%
Simplified88.7%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6460.2%
Simplified60.2%
Taylor expanded in B around 0
/-lowering-/.f6462.2%
Simplified62.2%
Final simplification42.8%
(FPCore (F B x) :precision binary64 (if (<= F -2.22e+21) (/ -1.0 (sin B)) (if (<= F 3.7e-14) (/ (- 0.0 x) B) (/ 1.0 (sin B)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -2.22e+21) {
tmp = -1.0 / sin(B);
} else if (F <= 3.7e-14) {
tmp = (0.0 - x) / B;
} else {
tmp = 1.0 / sin(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 <= (-2.22d+21)) then
tmp = (-1.0d0) / sin(b)
else if (f <= 3.7d-14) then
tmp = (0.0d0 - x) / b
else
tmp = 1.0d0 / sin(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -2.22e+21) {
tmp = -1.0 / Math.sin(B);
} else if (F <= 3.7e-14) {
tmp = (0.0 - x) / B;
} else {
tmp = 1.0 / Math.sin(B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -2.22e+21: tmp = -1.0 / math.sin(B) elif F <= 3.7e-14: tmp = (0.0 - x) / B else: tmp = 1.0 / math.sin(B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -2.22e+21) tmp = Float64(-1.0 / sin(B)); elseif (F <= 3.7e-14) tmp = Float64(Float64(0.0 - x) / B); else tmp = Float64(1.0 / sin(B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -2.22e+21) tmp = -1.0 / sin(B); elseif (F <= 3.7e-14) tmp = (0.0 - x) / B; else tmp = 1.0 / sin(B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -2.22e+21], N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 3.7e-14], N[(N[(0.0 - x), $MachinePrecision] / B), $MachinePrecision], N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -2.22 \cdot 10^{+21}:\\
\;\;\;\;\frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 3.7 \cdot 10^{-14}:\\
\;\;\;\;\frac{0 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B}\\
\end{array}
\end{array}
if F < -2.22e21Initial program 59.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6427.1%
Simplified27.1%
Taylor expanded in F around -inf
/-lowering-/.f64N/A
sin-lowering-sin.f6457.9%
Simplified57.9%
if -2.22e21 < F < 3.70000000000000001e-14Initial program 99.4%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6452.2%
Simplified52.2%
Taylor expanded in F around 0
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f6433.6%
Simplified33.6%
if 3.70000000000000001e-14 < F Initial program 66.0%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6436.2%
Simplified36.2%
Taylor expanded in F around inf
/-lowering-/.f64N/A
sin-lowering-sin.f6452.7%
Simplified52.7%
(FPCore (F B x)
:precision binary64
(if (<= F -2.22e+21)
(/ -1.0 (sin B))
(if (<= F 1.2e-77)
(/ (- 0.0 x) B)
(/
(+
1.0
(-
(*
(* B B)
(+
(+ 0.16666666666666666 (* x 0.3333333333333333))
(*
(* B B)
(+
(+ 0.019444444444444445 (* x 0.022222222222222223))
(*
(* B B)
(+
(* (* x 0.022222222222222223) -0.3333333333333333)
(+ (* x 0.009523809523809525) 0.00205026455026455)))))))
x))
B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -2.22e+21) {
tmp = -1.0 / sin(B);
} else if (F <= 1.2e-77) {
tmp = (0.0 - x) / B;
} else {
tmp = (1.0 + (((B * B) * ((0.16666666666666666 + (x * 0.3333333333333333)) + ((B * B) * ((0.019444444444444445 + (x * 0.022222222222222223)) + ((B * B) * (((x * 0.022222222222222223) * -0.3333333333333333) + ((x * 0.009523809523809525) + 0.00205026455026455))))))) - 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 <= (-2.22d+21)) then
tmp = (-1.0d0) / sin(b)
else if (f <= 1.2d-77) then
tmp = (0.0d0 - x) / b
else
tmp = (1.0d0 + (((b * b) * ((0.16666666666666666d0 + (x * 0.3333333333333333d0)) + ((b * b) * ((0.019444444444444445d0 + (x * 0.022222222222222223d0)) + ((b * b) * (((x * 0.022222222222222223d0) * (-0.3333333333333333d0)) + ((x * 0.009523809523809525d0) + 0.00205026455026455d0))))))) - x)) / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -2.22e+21) {
tmp = -1.0 / Math.sin(B);
} else if (F <= 1.2e-77) {
tmp = (0.0 - x) / B;
} else {
tmp = (1.0 + (((B * B) * ((0.16666666666666666 + (x * 0.3333333333333333)) + ((B * B) * ((0.019444444444444445 + (x * 0.022222222222222223)) + ((B * B) * (((x * 0.022222222222222223) * -0.3333333333333333) + ((x * 0.009523809523809525) + 0.00205026455026455))))))) - x)) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -2.22e+21: tmp = -1.0 / math.sin(B) elif F <= 1.2e-77: tmp = (0.0 - x) / B else: tmp = (1.0 + (((B * B) * ((0.16666666666666666 + (x * 0.3333333333333333)) + ((B * B) * ((0.019444444444444445 + (x * 0.022222222222222223)) + ((B * B) * (((x * 0.022222222222222223) * -0.3333333333333333) + ((x * 0.009523809523809525) + 0.00205026455026455))))))) - x)) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= -2.22e+21) tmp = Float64(-1.0 / sin(B)); elseif (F <= 1.2e-77) tmp = Float64(Float64(0.0 - x) / B); else tmp = Float64(Float64(1.0 + Float64(Float64(Float64(B * B) * Float64(Float64(0.16666666666666666 + Float64(x * 0.3333333333333333)) + Float64(Float64(B * B) * Float64(Float64(0.019444444444444445 + Float64(x * 0.022222222222222223)) + Float64(Float64(B * B) * Float64(Float64(Float64(x * 0.022222222222222223) * -0.3333333333333333) + Float64(Float64(x * 0.009523809523809525) + 0.00205026455026455))))))) - x)) / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -2.22e+21) tmp = -1.0 / sin(B); elseif (F <= 1.2e-77) tmp = (0.0 - x) / B; else tmp = (1.0 + (((B * B) * ((0.16666666666666666 + (x * 0.3333333333333333)) + ((B * B) * ((0.019444444444444445 + (x * 0.022222222222222223)) + ((B * B) * (((x * 0.022222222222222223) * -0.3333333333333333) + ((x * 0.009523809523809525) + 0.00205026455026455))))))) - x)) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -2.22e+21], N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.2e-77], N[(N[(0.0 - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(1.0 + N[(N[(N[(B * B), $MachinePrecision] * N[(N[(0.16666666666666666 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision] + N[(N[(B * B), $MachinePrecision] * N[(N[(0.019444444444444445 + N[(x * 0.022222222222222223), $MachinePrecision]), $MachinePrecision] + N[(N[(B * B), $MachinePrecision] * N[(N[(N[(x * 0.022222222222222223), $MachinePrecision] * -0.3333333333333333), $MachinePrecision] + N[(N[(x * 0.009523809523809525), $MachinePrecision] + 0.00205026455026455), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -2.22 \cdot 10^{+21}:\\
\;\;\;\;\frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 1.2 \cdot 10^{-77}:\\
\;\;\;\;\frac{0 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 + \left(\left(B \cdot B\right) \cdot \left(\left(0.16666666666666666 + x \cdot 0.3333333333333333\right) + \left(B \cdot B\right) \cdot \left(\left(0.019444444444444445 + x \cdot 0.022222222222222223\right) + \left(B \cdot B\right) \cdot \left(\left(x \cdot 0.022222222222222223\right) \cdot -0.3333333333333333 + \left(x \cdot 0.009523809523809525 + 0.00205026455026455\right)\right)\right)\right) - x\right)}{B}\\
\end{array}
\end{array}
if F < -2.22e21Initial program 59.5%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6427.1%
Simplified27.1%
Taylor expanded in F around -inf
/-lowering-/.f64N/A
sin-lowering-sin.f6457.9%
Simplified57.9%
if -2.22e21 < F < 1.19999999999999995e-77Initial program 99.4%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6452.0%
Simplified52.0%
Taylor expanded in F around 0
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f6435.3%
Simplified35.3%
if 1.19999999999999995e-77 < F Initial program 70.8%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified80.4%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6480.5%
Simplified80.5%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6485.9%
Simplified85.9%
Taylor expanded in B around 0
Simplified40.8%
(FPCore (F B x)
:precision binary64
(if (<= F -2.4e-77)
(/ (- -1.0 x) B)
(if (<= F 1.2e-77)
(/ (- 0.0 x) B)
(/
(+
1.0
(-
(*
(* B B)
(+
(+ 0.16666666666666666 (* x 0.3333333333333333))
(*
(* B B)
(+
(+ 0.019444444444444445 (* x 0.022222222222222223))
(*
(* B B)
(+
(* (* x 0.022222222222222223) -0.3333333333333333)
(+ (* x 0.009523809523809525) 0.00205026455026455)))))))
x))
B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -2.4e-77) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.2e-77) {
tmp = (0.0 - x) / B;
} else {
tmp = (1.0 + (((B * B) * ((0.16666666666666666 + (x * 0.3333333333333333)) + ((B * B) * ((0.019444444444444445 + (x * 0.022222222222222223)) + ((B * B) * (((x * 0.022222222222222223) * -0.3333333333333333) + ((x * 0.009523809523809525) + 0.00205026455026455))))))) - 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 <= (-2.4d-77)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 1.2d-77) then
tmp = (0.0d0 - x) / b
else
tmp = (1.0d0 + (((b * b) * ((0.16666666666666666d0 + (x * 0.3333333333333333d0)) + ((b * b) * ((0.019444444444444445d0 + (x * 0.022222222222222223d0)) + ((b * b) * (((x * 0.022222222222222223d0) * (-0.3333333333333333d0)) + ((x * 0.009523809523809525d0) + 0.00205026455026455d0))))))) - x)) / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -2.4e-77) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.2e-77) {
tmp = (0.0 - x) / B;
} else {
tmp = (1.0 + (((B * B) * ((0.16666666666666666 + (x * 0.3333333333333333)) + ((B * B) * ((0.019444444444444445 + (x * 0.022222222222222223)) + ((B * B) * (((x * 0.022222222222222223) * -0.3333333333333333) + ((x * 0.009523809523809525) + 0.00205026455026455))))))) - x)) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -2.4e-77: tmp = (-1.0 - x) / B elif F <= 1.2e-77: tmp = (0.0 - x) / B else: tmp = (1.0 + (((B * B) * ((0.16666666666666666 + (x * 0.3333333333333333)) + ((B * B) * ((0.019444444444444445 + (x * 0.022222222222222223)) + ((B * B) * (((x * 0.022222222222222223) * -0.3333333333333333) + ((x * 0.009523809523809525) + 0.00205026455026455))))))) - x)) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= -2.4e-77) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 1.2e-77) tmp = Float64(Float64(0.0 - x) / B); else tmp = Float64(Float64(1.0 + Float64(Float64(Float64(B * B) * Float64(Float64(0.16666666666666666 + Float64(x * 0.3333333333333333)) + Float64(Float64(B * B) * Float64(Float64(0.019444444444444445 + Float64(x * 0.022222222222222223)) + Float64(Float64(B * B) * Float64(Float64(Float64(x * 0.022222222222222223) * -0.3333333333333333) + Float64(Float64(x * 0.009523809523809525) + 0.00205026455026455))))))) - x)) / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -2.4e-77) tmp = (-1.0 - x) / B; elseif (F <= 1.2e-77) tmp = (0.0 - x) / B; else tmp = (1.0 + (((B * B) * ((0.16666666666666666 + (x * 0.3333333333333333)) + ((B * B) * ((0.019444444444444445 + (x * 0.022222222222222223)) + ((B * B) * (((x * 0.022222222222222223) * -0.3333333333333333) + ((x * 0.009523809523809525) + 0.00205026455026455))))))) - x)) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -2.4e-77], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 1.2e-77], N[(N[(0.0 - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(1.0 + N[(N[(N[(B * B), $MachinePrecision] * N[(N[(0.16666666666666666 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision] + N[(N[(B * B), $MachinePrecision] * N[(N[(0.019444444444444445 + N[(x * 0.022222222222222223), $MachinePrecision]), $MachinePrecision] + N[(N[(B * B), $MachinePrecision] * N[(N[(N[(x * 0.022222222222222223), $MachinePrecision] * -0.3333333333333333), $MachinePrecision] + N[(N[(x * 0.009523809523809525), $MachinePrecision] + 0.00205026455026455), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision] / B), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -2.4 \cdot 10^{-77}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.2 \cdot 10^{-77}:\\
\;\;\;\;\frac{0 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 + \left(\left(B \cdot B\right) \cdot \left(\left(0.16666666666666666 + x \cdot 0.3333333333333333\right) + \left(B \cdot B\right) \cdot \left(\left(0.019444444444444445 + x \cdot 0.022222222222222223\right) + \left(B \cdot B\right) \cdot \left(\left(x \cdot 0.022222222222222223\right) \cdot -0.3333333333333333 + \left(x \cdot 0.009523809523809525 + 0.00205026455026455\right)\right)\right)\right) - x\right)}{B}\\
\end{array}
\end{array}
if F < -2.3999999999999999e-77Initial program 71.6%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6439.9%
Simplified39.9%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f6442.2%
Simplified42.2%
if -2.3999999999999999e-77 < F < 1.19999999999999995e-77Initial program 99.5%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.6%
Simplified50.6%
Taylor expanded in F around 0
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f6438.4%
Simplified38.4%
if 1.19999999999999995e-77 < F Initial program 70.8%
+-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
Simplified80.4%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6480.5%
Simplified80.5%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6485.9%
Simplified85.9%
Taylor expanded in B around 0
Simplified40.8%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ (- 0.0 x) B)))
(if (<= F -6.2e-74)
(/ (- -1.0 x) B)
(if (<= F 1.15e-14) t_0 (if (<= F 3.4e+232) (/ 1.0 B) t_0)))))
double code(double F, double B, double x) {
double t_0 = (0.0 - x) / B;
double tmp;
if (F <= -6.2e-74) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.15e-14) {
tmp = t_0;
} else if (F <= 3.4e+232) {
tmp = 1.0 / B;
} else {
tmp = 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.0d0 - x) / b
if (f <= (-6.2d-74)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 1.15d-14) then
tmp = t_0
else if (f <= 3.4d+232) then
tmp = 1.0d0 / b
else
tmp = t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (0.0 - x) / B;
double tmp;
if (F <= -6.2e-74) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.15e-14) {
tmp = t_0;
} else if (F <= 3.4e+232) {
tmp = 1.0 / B;
} else {
tmp = t_0;
}
return tmp;
}
def code(F, B, x): t_0 = (0.0 - x) / B tmp = 0 if F <= -6.2e-74: tmp = (-1.0 - x) / B elif F <= 1.15e-14: tmp = t_0 elif F <= 3.4e+232: tmp = 1.0 / B else: tmp = t_0 return tmp
function code(F, B, x) t_0 = Float64(Float64(0.0 - x) / B) tmp = 0.0 if (F <= -6.2e-74) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 1.15e-14) tmp = t_0; elseif (F <= 3.4e+232) tmp = Float64(1.0 / B); else tmp = t_0; end return tmp end
function tmp_2 = code(F, B, x) t_0 = (0.0 - x) / B; tmp = 0.0; if (F <= -6.2e-74) tmp = (-1.0 - x) / B; elseif (F <= 1.15e-14) tmp = t_0; elseif (F <= 3.4e+232) tmp = 1.0 / B; else tmp = t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(0.0 - x), $MachinePrecision] / B), $MachinePrecision]}, If[LessEqual[F, -6.2e-74], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 1.15e-14], t$95$0, If[LessEqual[F, 3.4e+232], N[(1.0 / B), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{0 - x}{B}\\
\mathbf{if}\;F \leq -6.2 \cdot 10^{-74}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.15 \cdot 10^{-14}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 3.4 \cdot 10^{+232}:\\
\;\;\;\;\frac{1}{B}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if F < -6.2000000000000003e-74Initial program 71.6%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6439.9%
Simplified39.9%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f6442.2%
Simplified42.2%
if -6.2000000000000003e-74 < F < 1.14999999999999999e-14 or 3.3999999999999998e232 < F Initial program 85.9%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6448.3%
Simplified48.3%
Taylor expanded in F around 0
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f6436.3%
Simplified36.3%
if 1.14999999999999999e-14 < F < 3.3999999999999998e232Initial program 82.1%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6451.9%
Simplified51.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6459.0%
Simplified59.0%
Taylor expanded in B around 0
/-lowering-/.f6431.5%
Simplified31.5%
(FPCore (F B x) :precision binary64 (if (<= F -2.7e-74) (/ (- -1.0 x) B) (if (<= F 5.8e-78) (/ (- 0.0 x) B) (/ (- 1.0 x) B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -2.7e-74) {
tmp = (-1.0 - x) / B;
} else if (F <= 5.8e-78) {
tmp = (0.0 - x) / B;
} else {
tmp = (1.0 - 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 <= (-2.7d-74)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 5.8d-78) then
tmp = (0.0d0 - x) / b
else
tmp = (1.0d0 - x) / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -2.7e-74) {
tmp = (-1.0 - x) / B;
} else if (F <= 5.8e-78) {
tmp = (0.0 - x) / B;
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -2.7e-74: tmp = (-1.0 - x) / B elif F <= 5.8e-78: tmp = (0.0 - x) / B else: tmp = (1.0 - x) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= -2.7e-74) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 5.8e-78) tmp = Float64(Float64(0.0 - x) / B); else tmp = Float64(Float64(1.0 - x) / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -2.7e-74) tmp = (-1.0 - x) / B; elseif (F <= 5.8e-78) tmp = (0.0 - x) / B; else tmp = (1.0 - x) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -2.7e-74], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 5.8e-78], N[(N[(0.0 - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -2.7 \cdot 10^{-74}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 5.8 \cdot 10^{-78}:\\
\;\;\;\;\frac{0 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B}\\
\end{array}
\end{array}
if F < -2.70000000000000018e-74Initial program 71.6%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6439.9%
Simplified39.9%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f6442.2%
Simplified42.2%
if -2.70000000000000018e-74 < F < 5.8000000000000001e-78Initial program 99.5%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6450.6%
Simplified50.6%
Taylor expanded in F around 0
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
neg-sub0N/A
--lowering--.f6438.4%
Simplified38.4%
if 5.8000000000000001e-78 < F Initial program 70.8%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6438.8%
Simplified38.8%
Taylor expanded in F around inf
/-lowering-/.f64N/A
--lowering--.f6440.7%
Simplified40.7%
(FPCore (F B x) :precision binary64 (let* ((t_0 (/ (- -1.0 x) B))) (if (<= F 3.5e-14) t_0 (if (<= F 4.1e+235) (/ 1.0 B) t_0))))
double code(double F, double B, double x) {
double t_0 = (-1.0 - x) / B;
double tmp;
if (F <= 3.5e-14) {
tmp = t_0;
} else if (F <= 4.1e+235) {
tmp = 1.0 / B;
} else {
tmp = 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 = ((-1.0d0) - x) / b
if (f <= 3.5d-14) then
tmp = t_0
else if (f <= 4.1d+235) then
tmp = 1.0d0 / b
else
tmp = t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (-1.0 - x) / B;
double tmp;
if (F <= 3.5e-14) {
tmp = t_0;
} else if (F <= 4.1e+235) {
tmp = 1.0 / B;
} else {
tmp = t_0;
}
return tmp;
}
def code(F, B, x): t_0 = (-1.0 - x) / B tmp = 0 if F <= 3.5e-14: tmp = t_0 elif F <= 4.1e+235: tmp = 1.0 / B else: tmp = t_0 return tmp
function code(F, B, x) t_0 = Float64(Float64(-1.0 - x) / B) tmp = 0.0 if (F <= 3.5e-14) tmp = t_0; elseif (F <= 4.1e+235) tmp = Float64(1.0 / B); else tmp = t_0; end return tmp end
function tmp_2 = code(F, B, x) t_0 = (-1.0 - x) / B; tmp = 0.0; if (F <= 3.5e-14) tmp = t_0; elseif (F <= 4.1e+235) tmp = 1.0 / B; else tmp = t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision]}, If[LessEqual[F, 3.5e-14], t$95$0, If[LessEqual[F, 4.1e+235], N[(1.0 / B), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{-1 - x}{B}\\
\mathbf{if}\;F \leq 3.5 \cdot 10^{-14}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 4.1 \cdot 10^{+235}:\\
\;\;\;\;\frac{1}{B}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if F < 3.5000000000000002e-14 or 4.1000000000000002e235 < F Initial program 81.0%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6445.4%
Simplified45.4%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f6428.2%
Simplified28.2%
if 3.5000000000000002e-14 < F < 4.1000000000000002e235Initial program 82.1%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6451.9%
Simplified51.9%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6459.0%
Simplified59.0%
Taylor expanded in B around 0
/-lowering-/.f6431.5%
Simplified31.5%
(FPCore (F B x) :precision binary64 (if (<= F 6.2e-136) (/ -1.0 B) (/ 1.0 B)))
double code(double F, double B, double x) {
double tmp;
if (F <= 6.2e-136) {
tmp = -1.0 / 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 (f <= 6.2d-136) then
tmp = (-1.0d0) / 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 (F <= 6.2e-136) {
tmp = -1.0 / B;
} else {
tmp = 1.0 / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= 6.2e-136: tmp = -1.0 / B else: tmp = 1.0 / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= 6.2e-136) tmp = Float64(-1.0 / B); else tmp = Float64(1.0 / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= 6.2e-136) tmp = -1.0 / B; else tmp = 1.0 / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, 6.2e-136], N[(-1.0 / B), $MachinePrecision], N[(1.0 / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq 6.2 \cdot 10^{-136}:\\
\;\;\;\;\frac{-1}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B}\\
\end{array}
\end{array}
if F < 6.2e-136Initial program 86.4%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6445.1%
Simplified45.1%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f6428.9%
Simplified28.9%
Taylor expanded in x around 0
/-lowering-/.f6413.0%
Simplified13.0%
if 6.2e-136 < F Initial program 74.2%
Taylor expanded in x around 0
associate-*l/N/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
sin-lowering-sin.f6440.1%
Simplified40.1%
Taylor expanded in F around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sin-lowering-sin.f6440.8%
Simplified40.8%
Taylor expanded in B around 0
/-lowering-/.f6421.3%
Simplified21.3%
(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}
Initial program 81.2%
Taylor expanded in B around 0
/-lowering-/.f64N/A
--lowering--.f64N/A
*-lowering-*.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-lowering-*.f6443.3%
Simplified43.3%
Taylor expanded in F around -inf
associate-*r/N/A
mul-1-negN/A
/-lowering-/.f64N/A
distribute-neg-inN/A
metadata-evalN/A
unsub-negN/A
--lowering--.f6423.7%
Simplified23.7%
Taylor expanded in x around 0
/-lowering-/.f648.6%
Simplified8.6%
herbie shell --seed 2024139
(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))))))