
(FPCore (x y z) :precision binary64 (+ (+ x (sin y)) (* z (cos y))))
double code(double x, double y, double z) {
return (x + sin(y)) + (z * cos(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 + sin(y)) + (z * cos(y))
end function
public static double code(double x, double y, double z) {
return (x + Math.sin(y)) + (z * Math.cos(y));
}
def code(x, y, z): return (x + math.sin(y)) + (z * math.cos(y))
function code(x, y, z) return Float64(Float64(x + sin(y)) + Float64(z * cos(y))) end
function tmp = code(x, y, z) tmp = (x + sin(y)) + (z * cos(y)); end
code[x_, y_, z_] := N[(N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision] + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + \sin y\right) + z \cdot \cos y
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 9 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ (+ x (sin y)) (* z (cos y))))
double code(double x, double y, double z) {
return (x + sin(y)) + (z * cos(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 + sin(y)) + (z * cos(y))
end function
public static double code(double x, double y, double z) {
return (x + Math.sin(y)) + (z * Math.cos(y));
}
def code(x, y, z): return (x + math.sin(y)) + (z * math.cos(y))
function code(x, y, z) return Float64(Float64(x + sin(y)) + Float64(z * cos(y))) end
function tmp = code(x, y, z) tmp = (x + sin(y)) + (z * cos(y)); end
code[x_, y_, z_] := N[(N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision] + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + \sin y\right) + z \cdot \cos y
\end{array}
(FPCore (x y z) :precision binary64 (+ (* z (cos y)) (+ x (sin y))))
double code(double x, double y, double z) {
return (z * cos(y)) + (x + 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 = (z * cos(y)) + (x + sin(y))
end function
public static double code(double x, double y, double z) {
return (z * Math.cos(y)) + (x + Math.sin(y));
}
def code(x, y, z): return (z * math.cos(y)) + (x + math.sin(y))
function code(x, y, z) return Float64(Float64(z * cos(y)) + Float64(x + sin(y))) end
function tmp = code(x, y, z) tmp = (z * cos(y)) + (x + sin(y)); end
code[x_, y_, z_] := N[(N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision] + N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
z \cdot \cos y + \left(x + \sin y\right)
\end{array}
Initial program 99.9%
Final simplification99.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -4.4e-10) (not (<= x 3.2e-26))) (+ x z) (+ (sin y) (* z (cos y)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4.4e-10) || !(x <= 3.2e-26)) {
tmp = x + z;
} else {
tmp = sin(y) + (z * 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 <= (-4.4d-10)) .or. (.not. (x <= 3.2d-26))) then
tmp = x + z
else
tmp = sin(y) + (z * cos(y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -4.4e-10) || !(x <= 3.2e-26)) {
tmp = x + z;
} else {
tmp = Math.sin(y) + (z * Math.cos(y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -4.4e-10) or not (x <= 3.2e-26): tmp = x + z else: tmp = math.sin(y) + (z * math.cos(y)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -4.4e-10) || !(x <= 3.2e-26)) tmp = Float64(x + z); else tmp = Float64(sin(y) + Float64(z * cos(y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -4.4e-10) || ~((x <= 3.2e-26))) tmp = x + z; else tmp = sin(y) + (z * cos(y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -4.4e-10], N[Not[LessEqual[x, 3.2e-26]], $MachinePrecision]], N[(x + z), $MachinePrecision], N[(N[Sin[y], $MachinePrecision] + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.4 \cdot 10^{-10} \lor \neg \left(x \leq 3.2 \cdot 10^{-26}\right):\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;\sin y + z \cdot \cos y\\
\end{array}
\end{array}
if x < -4.3999999999999998e-10 or 3.2000000000000001e-26 < x Initial program 99.9%
Taylor expanded in y around 0 91.2%
+-commutative91.2%
Simplified91.2%
if -4.3999999999999998e-10 < x < 3.2000000000000001e-26Initial program 99.9%
Taylor expanded in x around 0 91.5%
Final simplification91.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (cos y))))
(if (<= z -1.25e+115)
t_0
(if (<= z -2.2e-284)
(+ x z)
(if (<= z 8.5e-138) (+ x y) (if (<= z 2.3e+148) (+ x z) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -1.25e+115) {
tmp = t_0;
} else if (z <= -2.2e-284) {
tmp = x + z;
} else if (z <= 8.5e-138) {
tmp = x + y;
} else if (z <= 2.3e+148) {
tmp = x + z;
} else {
tmp = 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 * cos(y)
if (z <= (-1.25d+115)) then
tmp = t_0
else if (z <= (-2.2d-284)) then
tmp = x + z
else if (z <= 8.5d-138) then
tmp = x + y
else if (z <= 2.3d+148) then
tmp = x + z
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * Math.cos(y);
double tmp;
if (z <= -1.25e+115) {
tmp = t_0;
} else if (z <= -2.2e-284) {
tmp = x + z;
} else if (z <= 8.5e-138) {
tmp = x + y;
} else if (z <= 2.3e+148) {
tmp = x + z;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * math.cos(y) tmp = 0 if z <= -1.25e+115: tmp = t_0 elif z <= -2.2e-284: tmp = x + z elif z <= 8.5e-138: tmp = x + y elif z <= 2.3e+148: tmp = x + z else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * cos(y)) tmp = 0.0 if (z <= -1.25e+115) tmp = t_0; elseif (z <= -2.2e-284) tmp = Float64(x + z); elseif (z <= 8.5e-138) tmp = Float64(x + y); elseif (z <= 2.3e+148) tmp = Float64(x + z); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * cos(y); tmp = 0.0; if (z <= -1.25e+115) tmp = t_0; elseif (z <= -2.2e-284) tmp = x + z; elseif (z <= 8.5e-138) tmp = x + y; elseif (z <= 2.3e+148) tmp = x + z; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e+115], t$95$0, If[LessEqual[z, -2.2e-284], N[(x + z), $MachinePrecision], If[LessEqual[z, 8.5e-138], N[(x + y), $MachinePrecision], If[LessEqual[z, 2.3e+148], N[(x + z), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{+115}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-284}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-138}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+148}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -1.25000000000000002e115 or 2.3000000000000001e148 < z Initial program 99.8%
Taylor expanded in z around inf 91.3%
if -1.25000000000000002e115 < z < -2.2000000000000001e-284 or 8.50000000000000035e-138 < z < 2.3000000000000001e148Initial program 100.0%
Taylor expanded in y around 0 78.2%
+-commutative78.2%
Simplified78.2%
if -2.2000000000000001e-284 < z < 8.50000000000000035e-138Initial program 100.0%
Taylor expanded in z around 0 100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 78.2%
Final simplification82.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (cos y))))
(if (<= z -7.5e+114)
t_0
(if (<= z -4.5e-82)
(+ x z)
(if (<= z 1.15e-35) (+ x (sin y)) (if (<= z 4.9e+148) (+ x z) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -7.5e+114) {
tmp = t_0;
} else if (z <= -4.5e-82) {
tmp = x + z;
} else if (z <= 1.15e-35) {
tmp = x + sin(y);
} else if (z <= 4.9e+148) {
tmp = x + z;
} else {
tmp = 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 * cos(y)
if (z <= (-7.5d+114)) then
tmp = t_0
else if (z <= (-4.5d-82)) then
tmp = x + z
else if (z <= 1.15d-35) then
tmp = x + sin(y)
else if (z <= 4.9d+148) then
tmp = x + z
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * Math.cos(y);
double tmp;
if (z <= -7.5e+114) {
tmp = t_0;
} else if (z <= -4.5e-82) {
tmp = x + z;
} else if (z <= 1.15e-35) {
tmp = x + Math.sin(y);
} else if (z <= 4.9e+148) {
tmp = x + z;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * math.cos(y) tmp = 0 if z <= -7.5e+114: tmp = t_0 elif z <= -4.5e-82: tmp = x + z elif z <= 1.15e-35: tmp = x + math.sin(y) elif z <= 4.9e+148: tmp = x + z else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * cos(y)) tmp = 0.0 if (z <= -7.5e+114) tmp = t_0; elseif (z <= -4.5e-82) tmp = Float64(x + z); elseif (z <= 1.15e-35) tmp = Float64(x + sin(y)); elseif (z <= 4.9e+148) tmp = Float64(x + z); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * cos(y); tmp = 0.0; if (z <= -7.5e+114) tmp = t_0; elseif (z <= -4.5e-82) tmp = x + z; elseif (z <= 1.15e-35) tmp = x + sin(y); elseif (z <= 4.9e+148) tmp = x + z; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.5e+114], t$95$0, If[LessEqual[z, -4.5e-82], N[(x + z), $MachinePrecision], If[LessEqual[z, 1.15e-35], N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.9e+148], N[(x + z), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -7.5 \cdot 10^{+114}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-82}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-35}:\\
\;\;\;\;x + \sin y\\
\mathbf{elif}\;z \leq 4.9 \cdot 10^{+148}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -7.5000000000000001e114 or 4.9e148 < z Initial program 99.8%
Taylor expanded in z around inf 91.3%
if -7.5000000000000001e114 < z < -4.4999999999999998e-82 or 1.1499999999999999e-35 < z < 4.9e148Initial program 100.0%
Taylor expanded in y around 0 84.6%
+-commutative84.6%
Simplified84.6%
if -4.4999999999999998e-82 < z < 1.1499999999999999e-35Initial program 100.0%
Taylor expanded in z around 0 96.2%
+-commutative96.2%
Simplified96.2%
Final simplification91.5%
(FPCore (x y z)
:precision binary64
(if (<= z -5.8e+116)
z
(if (<= z -2e-283)
x
(if (<= z 3.9e-137) (+ x y) (if (<= z 1.24e+215) x z)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.8e+116) {
tmp = z;
} else if (z <= -2e-283) {
tmp = x;
} else if (z <= 3.9e-137) {
tmp = x + y;
} else if (z <= 1.24e+215) {
tmp = x;
} else {
tmp = z;
}
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.8d+116)) then
tmp = z
else if (z <= (-2d-283)) then
tmp = x
else if (z <= 3.9d-137) then
tmp = x + y
else if (z <= 1.24d+215) then
tmp = x
else
tmp = z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -5.8e+116) {
tmp = z;
} else if (z <= -2e-283) {
tmp = x;
} else if (z <= 3.9e-137) {
tmp = x + y;
} else if (z <= 1.24e+215) {
tmp = x;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.8e+116: tmp = z elif z <= -2e-283: tmp = x elif z <= 3.9e-137: tmp = x + y elif z <= 1.24e+215: tmp = x else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.8e+116) tmp = z; elseif (z <= -2e-283) tmp = x; elseif (z <= 3.9e-137) tmp = Float64(x + y); elseif (z <= 1.24e+215) tmp = x; else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -5.8e+116) tmp = z; elseif (z <= -2e-283) tmp = x; elseif (z <= 3.9e-137) tmp = x + y; elseif (z <= 1.24e+215) tmp = x; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.8e+116], z, If[LessEqual[z, -2e-283], x, If[LessEqual[z, 3.9e-137], N[(x + y), $MachinePrecision], If[LessEqual[z, 1.24e+215], x, z]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+116}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-283}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-137}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 1.24 \cdot 10^{+215}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -5.8000000000000003e116 or 1.23999999999999991e215 < z Initial program 99.8%
Taylor expanded in z around inf 97.4%
Taylor expanded in y around 0 60.5%
if -5.8000000000000003e116 < z < -1.99999999999999989e-283 or 3.8999999999999999e-137 < z < 1.23999999999999991e215Initial program 100.0%
Taylor expanded in x around inf 54.5%
if -1.99999999999999989e-283 < z < 3.8999999999999999e-137Initial program 100.0%
Taylor expanded in z around 0 100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 78.2%
Final simplification59.7%
(FPCore (x y z) :precision binary64 (if (or (<= y -3.2e+26) (not (<= y 3.5e-5))) (+ x z) (+ y (+ x z))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -3.2e+26) || !(y <= 3.5e-5)) {
tmp = x + z;
} else {
tmp = y + (x + z);
}
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 <= (-3.2d+26)) .or. (.not. (y <= 3.5d-5))) then
tmp = x + z
else
tmp = y + (x + z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -3.2e+26) || !(y <= 3.5e-5)) {
tmp = x + z;
} else {
tmp = y + (x + z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -3.2e+26) or not (y <= 3.5e-5): tmp = x + z else: tmp = y + (x + z) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -3.2e+26) || !(y <= 3.5e-5)) tmp = Float64(x + z); else tmp = Float64(y + Float64(x + z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -3.2e+26) || ~((y <= 3.5e-5))) tmp = x + z; else tmp = y + (x + z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -3.2e+26], N[Not[LessEqual[y, 3.5e-5]], $MachinePrecision]], N[(x + z), $MachinePrecision], N[(y + N[(x + z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+26} \lor \neg \left(y \leq 3.5 \cdot 10^{-5}\right):\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;y + \left(x + z\right)\\
\end{array}
\end{array}
if y < -3.20000000000000029e26 or 3.4999999999999997e-5 < y Initial program 99.9%
Taylor expanded in y around 0 45.7%
+-commutative45.7%
Simplified45.7%
if -3.20000000000000029e26 < y < 3.4999999999999997e-5Initial program 100.0%
Taylor expanded in y around 0 97.4%
+-commutative97.4%
associate-+l+97.4%
Simplified97.4%
Final simplification73.8%
(FPCore (x y z) :precision binary64 (if (<= z -2.8e+116) z (if (<= z 1.24e+215) x z)))
double code(double x, double y, double z) {
double tmp;
if (z <= -2.8e+116) {
tmp = z;
} else if (z <= 1.24e+215) {
tmp = x;
} else {
tmp = z;
}
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 <= (-2.8d+116)) then
tmp = z
else if (z <= 1.24d+215) then
tmp = x
else
tmp = z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -2.8e+116) {
tmp = z;
} else if (z <= 1.24e+215) {
tmp = x;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -2.8e+116: tmp = z elif z <= 1.24e+215: tmp = x else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -2.8e+116) tmp = z; elseif (z <= 1.24e+215) tmp = x; else tmp = z; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -2.8e+116) tmp = z; elseif (z <= 1.24e+215) tmp = x; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -2.8e+116], z, If[LessEqual[z, 1.24e+215], x, z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+116}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 1.24 \cdot 10^{+215}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -2.80000000000000004e116 or 1.23999999999999991e215 < z Initial program 99.8%
Taylor expanded in z around inf 97.4%
Taylor expanded in y around 0 60.5%
if -2.80000000000000004e116 < z < 1.23999999999999991e215Initial program 100.0%
Taylor expanded in x around inf 56.5%
Final simplification57.5%
(FPCore (x y z) :precision binary64 (+ x z))
double code(double x, double y, double z) {
return x + z;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + z
end function
public static double code(double x, double y, double z) {
return x + z;
}
def code(x, y, z): return x + z
function code(x, y, z) return Float64(x + z) end
function tmp = code(x, y, z) tmp = x + z; end
code[x_, y_, z_] := N[(x + z), $MachinePrecision]
\begin{array}{l}
\\
x + z
\end{array}
Initial program 99.9%
Taylor expanded in y around 0 69.4%
+-commutative69.4%
Simplified69.4%
Final simplification69.4%
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
return x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x
end function
public static double code(double x, double y, double z) {
return x;
}
def code(x, y, z): return x
function code(x, y, z) return x end
function tmp = code(x, y, z) tmp = x; end
code[x_, y_, z_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 99.9%
Taylor expanded in x around inf 43.4%
Final simplification43.4%
herbie shell --seed 2024031
(FPCore (x y z)
:name "Graphics.Rasterific.Svg.PathConverter:segmentToBezier from rasterific-svg-0.2.3.1, C"
:precision binary64
(+ (+ x (sin y)) (* z (cos y))))