
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
return (x + cos(y)) - (z * sin(y));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x + cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
return (x + Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z): return (x + math.cos(y)) - (z * math.sin(y))
function code(x, y, z) return Float64(Float64(x + cos(y)) - Float64(z * sin(y))) end
function tmp = code(x, y, z) tmp = (x + cos(y)) - (z * sin(y)); end
code[x_, y_, z_] := N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + \cos y\right) - z \cdot \sin y
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
return (x + cos(y)) - (z * sin(y));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x + cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
return (x + Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z): return (x + math.cos(y)) - (z * math.sin(y))
function code(x, y, z) return Float64(Float64(x + cos(y)) - Float64(z * sin(y))) end
function tmp = code(x, y, z) tmp = (x + cos(y)) - (z * sin(y)); end
code[x_, y_, z_] := N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + \cos y\right) - z \cdot \sin y
\end{array}
(FPCore (x y z) :precision binary64 (- x (fma z (sin y) (- (cos y)))))
double code(double x, double y, double z) {
return x - fma(z, sin(y), -cos(y));
}
function code(x, y, z) return Float64(x - fma(z, sin(y), Float64(-cos(y)))) end
code[x_, y_, z_] := N[(x - N[(z * N[Sin[y], $MachinePrecision] + (-N[Cos[y], $MachinePrecision])), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x - \mathsf{fma}\left(z, \sin y, -\cos y\right)
\end{array}
(FPCore (x y z) :precision binary64 (let* ((t_0 (* z (sin y)))) (if (or (<= x -320.0) (not (<= x 0.62))) (- x t_0) (- (cos y) t_0))))
double code(double x, double y, double z) {
double t_0 = z * sin(y);
double tmp;
if ((x <= -320.0) || !(x <= 0.62)) {
tmp = x - t_0;
} else {
tmp = cos(y) - t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = z * sin(y)
if ((x <= (-320.0d0)) .or. (.not. (x <= 0.62d0))) then
tmp = x - t_0
else
tmp = cos(y) - t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * Math.sin(y);
double tmp;
if ((x <= -320.0) || !(x <= 0.62)) {
tmp = x - t_0;
} else {
tmp = Math.cos(y) - t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * math.sin(y) tmp = 0 if (x <= -320.0) or not (x <= 0.62): tmp = x - t_0 else: tmp = math.cos(y) - t_0 return tmp
function code(x, y, z) t_0 = Float64(z * sin(y)) tmp = 0.0 if ((x <= -320.0) || !(x <= 0.62)) tmp = Float64(x - t_0); else tmp = Float64(cos(y) - t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * sin(y); tmp = 0.0; if ((x <= -320.0) || ~((x <= 0.62))) tmp = x - t_0; else tmp = cos(y) - t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -320.0], N[Not[LessEqual[x, 0.62]], $MachinePrecision]], N[(x - t$95$0), $MachinePrecision], N[(N[Cos[y], $MachinePrecision] - t$95$0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \sin y\\
\mathbf{if}\;x \leq -320 \lor \neg \left(x \leq 0.62\right):\\
\;\;\;\;x - t_0\\
\mathbf{else}:\\
\;\;\;\;\cos y - t_0\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
double code(double x, double y, double z) {
return (x + cos(y)) - (z * sin(y));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x + cos(y)) - (z * sin(y))
end function
public static double code(double x, double y, double z) {
return (x + Math.cos(y)) - (z * Math.sin(y));
}
def code(x, y, z): return (x + math.cos(y)) - (z * math.sin(y))
function code(x, y, z) return Float64(Float64(x + cos(y)) - Float64(z * sin(y))) end
function tmp = code(x, y, z) tmp = (x + cos(y)) - (z * sin(y)); end
code[x_, y_, z_] := N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + \cos y\right) - z \cdot \sin y
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (- (sin y)))))
(if (<= z -1.45e+210)
t_0
(if (<= z -1.5e+135)
(+ x (- 1.0 (* z y)))
(if (or (<= z -1.55e+128) (not (<= z 5e+139))) t_0 (+ x (cos y)))))))
double code(double x, double y, double z) {
double t_0 = z * -sin(y);
double tmp;
if (z <= -1.45e+210) {
tmp = t_0;
} else if (z <= -1.5e+135) {
tmp = x + (1.0 - (z * y));
} else if ((z <= -1.55e+128) || !(z <= 5e+139)) {
tmp = t_0;
} else {
tmp = x + cos(y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = z * -sin(y)
if (z <= (-1.45d+210)) then
tmp = t_0
else if (z <= (-1.5d+135)) then
tmp = x + (1.0d0 - (z * y))
else if ((z <= (-1.55d+128)) .or. (.not. (z <= 5d+139))) then
tmp = t_0
else
tmp = x + cos(y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * -Math.sin(y);
double tmp;
if (z <= -1.45e+210) {
tmp = t_0;
} else if (z <= -1.5e+135) {
tmp = x + (1.0 - (z * y));
} else if ((z <= -1.55e+128) || !(z <= 5e+139)) {
tmp = t_0;
} else {
tmp = x + Math.cos(y);
}
return tmp;
}
def code(x, y, z): t_0 = z * -math.sin(y) tmp = 0 if z <= -1.45e+210: tmp = t_0 elif z <= -1.5e+135: tmp = x + (1.0 - (z * y)) elif (z <= -1.55e+128) or not (z <= 5e+139): tmp = t_0 else: tmp = x + math.cos(y) return tmp
function code(x, y, z) t_0 = Float64(z * Float64(-sin(y))) tmp = 0.0 if (z <= -1.45e+210) tmp = t_0; elseif (z <= -1.5e+135) tmp = Float64(x + Float64(1.0 - Float64(z * y))); elseif ((z <= -1.55e+128) || !(z <= 5e+139)) tmp = t_0; else tmp = Float64(x + cos(y)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * -sin(y); tmp = 0.0; if (z <= -1.45e+210) tmp = t_0; elseif (z <= -1.5e+135) tmp = x + (1.0 - (z * y)); elseif ((z <= -1.55e+128) || ~((z <= 5e+139))) tmp = t_0; else tmp = x + cos(y); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * (-N[Sin[y], $MachinePrecision])), $MachinePrecision]}, If[LessEqual[z, -1.45e+210], t$95$0, If[LessEqual[z, -1.5e+135], N[(x + N[(1.0 - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -1.55e+128], N[Not[LessEqual[z, 5e+139]], $MachinePrecision]], t$95$0, N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(-\sin y\right)\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+210}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{+135}:\\
\;\;\;\;x + \left(1 - z \cdot y\right)\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{+128} \lor \neg \left(z \leq 5 \cdot 10^{+139}\right):\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;x + \cos y\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (if (or (<= z -4e+91) (not (<= z 4.1e+73))) (- x (* z (sin y))) (+ x (cos y))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -4e+91) || !(z <= 4.1e+73)) {
tmp = x - (z * sin(y));
} else {
tmp = x + cos(y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-4d+91)) .or. (.not. (z <= 4.1d+73))) then
tmp = x - (z * sin(y))
else
tmp = x + cos(y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -4e+91) || !(z <= 4.1e+73)) {
tmp = x - (z * Math.sin(y));
} else {
tmp = x + Math.cos(y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -4e+91) or not (z <= 4.1e+73): tmp = x - (z * math.sin(y)) else: tmp = x + math.cos(y) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -4e+91) || !(z <= 4.1e+73)) tmp = Float64(x - Float64(z * sin(y))); else tmp = Float64(x + cos(y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -4e+91) || ~((z <= 4.1e+73))) tmp = x - (z * sin(y)); else tmp = x + cos(y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -4e+91], N[Not[LessEqual[z, 4.1e+73]], $MachinePrecision]], N[(x - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+91} \lor \neg \left(z \leq 4.1 \cdot 10^{+73}\right):\\
\;\;\;\;x - z \cdot \sin y\\
\mathbf{else}:\\
\;\;\;\;x + \cos y\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (if (or (<= y -1920.0) (not (<= y 4.1e+25))) (+ x (cos y)) (+ x (- 1.0 (* z y)))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -1920.0) || !(y <= 4.1e+25)) {
tmp = x + cos(y);
} else {
tmp = x + (1.0 - (z * y));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((y <= (-1920.0d0)) .or. (.not. (y <= 4.1d+25))) then
tmp = x + cos(y)
else
tmp = x + (1.0d0 - (z * y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -1920.0) || !(y <= 4.1e+25)) {
tmp = x + Math.cos(y);
} else {
tmp = x + (1.0 - (z * y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -1920.0) or not (y <= 4.1e+25): tmp = x + math.cos(y) else: tmp = x + (1.0 - (z * y)) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -1920.0) || !(y <= 4.1e+25)) tmp = Float64(x + cos(y)); else tmp = Float64(x + Float64(1.0 - Float64(z * y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -1920.0) || ~((y <= 4.1e+25))) tmp = x + cos(y); else tmp = x + (1.0 - (z * y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -1920.0], N[Not[LessEqual[y, 4.1e+25]], $MachinePrecision]], N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision], N[(x + N[(1.0 - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1920 \lor \neg \left(y \leq 4.1 \cdot 10^{+25}\right):\\
\;\;\;\;x + \cos y\\
\mathbf{else}:\\
\;\;\;\;x + \left(1 - z \cdot y\right)\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (if (or (<= x -9e-16) (not (<= x 7.8e-10))) (+ x 1.0) (cos y)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -9e-16) || !(x <= 7.8e-10)) {
tmp = x + 1.0;
} else {
tmp = cos(y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-9d-16)) .or. (.not. (x <= 7.8d-10))) then
tmp = x + 1.0d0
else
tmp = cos(y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -9e-16) || !(x <= 7.8e-10)) {
tmp = x + 1.0;
} else {
tmp = Math.cos(y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -9e-16) or not (x <= 7.8e-10): tmp = x + 1.0 else: tmp = math.cos(y) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -9e-16) || !(x <= 7.8e-10)) tmp = Float64(x + 1.0); else tmp = cos(y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -9e-16) || ~((x <= 7.8e-10))) tmp = x + 1.0; else tmp = cos(y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -9e-16], N[Not[LessEqual[x, 7.8e-10]], $MachinePrecision]], N[(x + 1.0), $MachinePrecision], N[Cos[y], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-16} \lor \neg \left(x \leq 7.8 \cdot 10^{-10}\right):\\
\;\;\;\;x + 1\\
\mathbf{else}:\\
\;\;\;\;\cos y\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (if (or (<= y -7.8e+27) (not (<= y 1.45e+26))) (+ x 1.0) (+ x (- 1.0 (* z y)))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -7.8e+27) || !(y <= 1.45e+26)) {
tmp = x + 1.0;
} else {
tmp = x + (1.0 - (z * y));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((y <= (-7.8d+27)) .or. (.not. (y <= 1.45d+26))) then
tmp = x + 1.0d0
else
tmp = x + (1.0d0 - (z * y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -7.8e+27) || !(y <= 1.45e+26)) {
tmp = x + 1.0;
} else {
tmp = x + (1.0 - (z * y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -7.8e+27) or not (y <= 1.45e+26): tmp = x + 1.0 else: tmp = x + (1.0 - (z * y)) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -7.8e+27) || !(y <= 1.45e+26)) tmp = Float64(x + 1.0); else tmp = Float64(x + Float64(1.0 - Float64(z * y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -7.8e+27) || ~((y <= 1.45e+26))) tmp = x + 1.0; else tmp = x + (1.0 - (z * y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -7.8e+27], N[Not[LessEqual[y, 1.45e+26]], $MachinePrecision]], N[(x + 1.0), $MachinePrecision], N[(x + N[(1.0 - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.8 \cdot 10^{+27} \lor \neg \left(y \leq 1.45 \cdot 10^{+26}\right):\\
\;\;\;\;x + 1\\
\mathbf{else}:\\
\;\;\;\;x + \left(1 - z \cdot y\right)\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (if (<= x -9e-16) (+ x 1.0) (if (<= x 8.5e+21) (- 1.0 (* z y)) x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -9e-16) {
tmp = x + 1.0;
} else if (x <= 8.5e+21) {
tmp = 1.0 - (z * y);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-9d-16)) then
tmp = x + 1.0d0
else if (x <= 8.5d+21) then
tmp = 1.0d0 - (z * y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -9e-16) {
tmp = x + 1.0;
} else if (x <= 8.5e+21) {
tmp = 1.0 - (z * y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -9e-16: tmp = x + 1.0 elif x <= 8.5e+21: tmp = 1.0 - (z * y) else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -9e-16) tmp = Float64(x + 1.0); elseif (x <= 8.5e+21) tmp = Float64(1.0 - Float64(z * y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -9e-16) tmp = x + 1.0; elseif (x <= 8.5e+21) tmp = 1.0 - (z * y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -9e-16], N[(x + 1.0), $MachinePrecision], If[LessEqual[x, 8.5e+21], N[(1.0 - N[(z * y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9 \cdot 10^{-16}:\\
\;\;\;\;x + 1\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+21}:\\
\;\;\;\;1 - z \cdot y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (if (<= x -320.0) x (if (<= x 0.92) 1.0 x)))
double code(double x, double y, double z) {
double tmp;
if (x <= -320.0) {
tmp = x;
} else if (x <= 0.92) {
tmp = 1.0;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-320.0d0)) then
tmp = x
else if (x <= 0.92d0) then
tmp = 1.0d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -320.0) {
tmp = x;
} else if (x <= 0.92) {
tmp = 1.0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -320.0: tmp = x elif x <= 0.92: tmp = 1.0 else: tmp = x return tmp
function code(x, y, z) tmp = 0.0 if (x <= -320.0) tmp = x; elseif (x <= 0.92) tmp = 1.0; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -320.0) tmp = x; elseif (x <= 0.92) tmp = 1.0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -320.0], x, If[LessEqual[x, 0.92], 1.0, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -320:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 0.92:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (if (<= z 5.2e+243) (+ x 1.0) (- x (* z y))))
double code(double x, double y, double z) {
double tmp;
if (z <= 5.2e+243) {
tmp = x + 1.0;
} else {
tmp = x - (z * y);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= 5.2d+243) then
tmp = x + 1.0d0
else
tmp = x - (z * y)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= 5.2e+243) {
tmp = x + 1.0;
} else {
tmp = x - (z * y);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= 5.2e+243: tmp = x + 1.0 else: tmp = x - (z * y) return tmp
function code(x, y, z) tmp = 0.0 if (z <= 5.2e+243) tmp = Float64(x + 1.0); else tmp = Float64(x - Float64(z * y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= 5.2e+243) tmp = x + 1.0; else tmp = x - (z * y); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, 5.2e+243], N[(x + 1.0), $MachinePrecision], N[(x - N[(z * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 5.2 \cdot 10^{+243}:\\
\;\;\;\;x + 1\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot y\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (if (<= z 8e+243) (+ x 1.0) (* z (- y))))
double code(double x, double y, double z) {
double tmp;
if (z <= 8e+243) {
tmp = x + 1.0;
} else {
tmp = z * -y;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= 8d+243) then
tmp = x + 1.0d0
else
tmp = z * -y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= 8e+243) {
tmp = x + 1.0;
} else {
tmp = z * -y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= 8e+243: tmp = x + 1.0 else: tmp = z * -y return tmp
function code(x, y, z) tmp = 0.0 if (z <= 8e+243) tmp = Float64(x + 1.0); else tmp = Float64(z * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= 8e+243) tmp = x + 1.0; else tmp = z * -y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, 8e+243], N[(x + 1.0), $MachinePrecision], N[(z * (-y)), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 8 \cdot 10^{+243}:\\
\;\;\;\;x + 1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-y\right)\\
\end{array}
\end{array}
(FPCore (x y z) :precision binary64 (+ x 1.0))
double code(double x, double y, double z) {
return x + 1.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + 1.0d0
end function
public static double code(double x, double y, double z) {
return x + 1.0;
}
def code(x, y, z): return x + 1.0
function code(x, y, z) return Float64(x + 1.0) end
function tmp = code(x, y, z) tmp = x + 1.0; end
code[x_, y_, z_] := N[(x + 1.0), $MachinePrecision]
\begin{array}{l}
\\
x + 1
\end{array}
(FPCore (x y z) :precision binary64 1.0)
double code(double x, double y, double z) {
return 1.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 1.0d0
end function
public static double code(double x, double y, double z) {
return 1.0;
}
def code(x, y, z): return 1.0
function code(x, y, z) return 1.0 end
function tmp = code(x, y, z) tmp = 1.0; end
code[x_, y_, z_] := 1.0
\begin{array}{l}
\\
1
\end{array}
herbie shell --seed 2024006
(FPCore (x y z)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, B"
:precision binary64
(- (+ x (cos y)) (* z (sin y))))