
(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 -5.5e-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 <= -5.5e-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 <= (-5.5d-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 <= -5.5e-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 <= -5.5e-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 <= -5.5e-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 <= -5.5e-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, -5.5e-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 -5.5 \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 < -5.4999999999999996e-10 or 3.2000000000000001e-26 < x Initial program 99.9%
Taylor expanded in y around 0 91.1%
+-commutative91.1%
Simplified91.1%
if -5.4999999999999996e-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.8e+114)
t_0
(if (<= z -8e-285)
(+ x z)
(if (<= z 5.4e-141) (+ y (+ x z)) (if (<= z 4.4e+149) (+ x z) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -1.8e+114) {
tmp = t_0;
} else if (z <= -8e-285) {
tmp = x + z;
} else if (z <= 5.4e-141) {
tmp = y + (x + z);
} else if (z <= 4.4e+149) {
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.8d+114)) then
tmp = t_0
else if (z <= (-8d-285)) then
tmp = x + z
else if (z <= 5.4d-141) then
tmp = y + (x + z)
else if (z <= 4.4d+149) 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.8e+114) {
tmp = t_0;
} else if (z <= -8e-285) {
tmp = x + z;
} else if (z <= 5.4e-141) {
tmp = y + (x + z);
} else if (z <= 4.4e+149) {
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.8e+114: tmp = t_0 elif z <= -8e-285: tmp = x + z elif z <= 5.4e-141: tmp = y + (x + z) elif z <= 4.4e+149: 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.8e+114) tmp = t_0; elseif (z <= -8e-285) tmp = Float64(x + z); elseif (z <= 5.4e-141) tmp = Float64(y + Float64(x + z)); elseif (z <= 4.4e+149) 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.8e+114) tmp = t_0; elseif (z <= -8e-285) tmp = x + z; elseif (z <= 5.4e-141) tmp = y + (x + z); elseif (z <= 4.4e+149) 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.8e+114], t$95$0, If[LessEqual[z, -8e-285], N[(x + z), $MachinePrecision], If[LessEqual[z, 5.4e-141], N[(y + N[(x + z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.4e+149], N[(x + z), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{+114}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-285}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-141}:\\
\;\;\;\;y + \left(x + z\right)\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+149}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -1.8e114 or 4.4e149 < z Initial program 99.8%
Taylor expanded in z around inf 91.4%
if -1.8e114 < z < -8.00000000000000059e-285 or 5.4000000000000005e-141 < z < 4.4e149Initial program 100.0%
Taylor expanded in y around 0 77.8%
+-commutative77.8%
Simplified77.8%
if -8.00000000000000059e-285 < z < 5.4000000000000005e-141Initial program 100.0%
Taylor expanded in y around 0 76.3%
+-commutative76.3%
associate-+l+76.3%
Simplified76.3%
Final simplification82.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (cos y))))
(if (<= z -4.2e+115)
t_0
(if (<= z -2.25e-82)
(+ x z)
(if (<= z 8.8e-36) (+ x (sin y)) (if (<= z 2.2e+148) (+ x z) t_0))))))
double code(double x, double y, double z) {
double t_0 = z * cos(y);
double tmp;
if (z <= -4.2e+115) {
tmp = t_0;
} else if (z <= -2.25e-82) {
tmp = x + z;
} else if (z <= 8.8e-36) {
tmp = x + sin(y);
} else if (z <= 2.2e+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 <= (-4.2d+115)) then
tmp = t_0
else if (z <= (-2.25d-82)) then
tmp = x + z
else if (z <= 8.8d-36) then
tmp = x + sin(y)
else if (z <= 2.2d+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 <= -4.2e+115) {
tmp = t_0;
} else if (z <= -2.25e-82) {
tmp = x + z;
} else if (z <= 8.8e-36) {
tmp = x + Math.sin(y);
} else if (z <= 2.2e+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 <= -4.2e+115: tmp = t_0 elif z <= -2.25e-82: tmp = x + z elif z <= 8.8e-36: tmp = x + math.sin(y) elif z <= 2.2e+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 <= -4.2e+115) tmp = t_0; elseif (z <= -2.25e-82) tmp = Float64(x + z); elseif (z <= 8.8e-36) tmp = Float64(x + sin(y)); elseif (z <= 2.2e+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 <= -4.2e+115) tmp = t_0; elseif (z <= -2.25e-82) tmp = x + z; elseif (z <= 8.8e-36) tmp = x + sin(y); elseif (z <= 2.2e+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, -4.2e+115], t$95$0, If[LessEqual[z, -2.25e-82], N[(x + z), $MachinePrecision], If[LessEqual[z, 8.8e-36], N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+148], N[(x + z), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \cos y\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+115}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -2.25 \cdot 10^{-82}:\\
\;\;\;\;x + z\\
\mathbf{elif}\;z \leq 8.8 \cdot 10^{-36}:\\
\;\;\;\;x + \sin y\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+148}:\\
\;\;\;\;x + z\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -4.20000000000000007e115 or 2.1999999999999999e148 < z Initial program 99.8%
Taylor expanded in z around inf 91.4%
if -4.20000000000000007e115 < z < -2.2499999999999999e-82 or 8.7999999999999997e-36 < z < 2.1999999999999999e148Initial program 100.0%
Taylor expanded in y around 0 84.4%
+-commutative84.4%
Simplified84.4%
if -2.2499999999999999e-82 < z < 8.7999999999999997e-36Initial 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 -4.4e+117)
z
(if (<= z -6.6e-283)
x
(if (<= z 1.05e-136) (+ x y) (if (<= z 1.24e+215) x z)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -4.4e+117) {
tmp = z;
} else if (z <= -6.6e-283) {
tmp = x;
} else if (z <= 1.05e-136) {
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 <= (-4.4d+117)) then
tmp = z
else if (z <= (-6.6d-283)) then
tmp = x
else if (z <= 1.05d-136) 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 <= -4.4e+117) {
tmp = z;
} else if (z <= -6.6e-283) {
tmp = x;
} else if (z <= 1.05e-136) {
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 <= -4.4e+117: tmp = z elif z <= -6.6e-283: tmp = x elif z <= 1.05e-136: 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 <= -4.4e+117) tmp = z; elseif (z <= -6.6e-283) tmp = x; elseif (z <= 1.05e-136) 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 <= -4.4e+117) tmp = z; elseif (z <= -6.6e-283) tmp = x; elseif (z <= 1.05e-136) 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, -4.4e+117], z, If[LessEqual[z, -6.6e-283], x, If[LessEqual[z, 1.05e-136], N[(x + y), $MachinePrecision], If[LessEqual[z, 1.24e+215], x, z]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{+117}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq -6.6 \cdot 10^{-283}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-136}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 1.24 \cdot 10^{+215}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -4.40000000000000028e117 or 1.23999999999999991e215 < z Initial program 99.8%
Taylor expanded in z around inf 97.5%
Taylor expanded in y around 0 61.2%
if -4.40000000000000028e117 < z < -6.60000000000000039e-283 or 1.0499999999999999e-136 < z < 1.23999999999999991e215Initial program 100.0%
Taylor expanded in x around inf 54.5%
if -6.60000000000000039e-283 < z < 1.0499999999999999e-136Initial program 100.0%
Taylor expanded in z around 0 100.0%
+-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 76.3%
Final simplification59.7%
(FPCore (x y z) :precision binary64 (if (or (<= y -4e+21) (not (<= y 3.5e-5))) (+ x z) (+ y (+ x z))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -4e+21) || !(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 <= (-4d+21)) .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 <= -4e+21) || !(y <= 3.5e-5)) {
tmp = x + z;
} else {
tmp = y + (x + z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -4e+21) 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 <= -4e+21) || !(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 <= -4e+21) || ~((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, -4e+21], 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 -4 \cdot 10^{+21} \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 < -4e21 or 3.4999999999999997e-5 < y Initial program 99.9%
Taylor expanded in y around 0 44.9%
+-commutative44.9%
Simplified44.9%
if -4e21 < 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.4%
(FPCore (x y z) :precision binary64 (if (<= z -5.8e+115) z (if (<= z 1.24e+215) x z)))
double code(double x, double y, double z) {
double tmp;
if (z <= -5.8e+115) {
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 <= (-5.8d+115)) 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 <= -5.8e+115) {
tmp = z;
} else if (z <= 1.24e+215) {
tmp = x;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -5.8e+115: tmp = z elif z <= 1.24e+215: tmp = x else: tmp = z return tmp
function code(x, y, z) tmp = 0.0 if (z <= -5.8e+115) 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 <= -5.8e+115) tmp = z; elseif (z <= 1.24e+215) tmp = x; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -5.8e+115], z, If[LessEqual[z, 1.24e+215], x, z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+115}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 1.24 \cdot 10^{+215}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -5.80000000000000009e115 or 1.23999999999999991e215 < z Initial program 99.8%
Taylor expanded in z around inf 97.5%
Taylor expanded in y around 0 61.2%
if -5.80000000000000009e115 < z < 1.23999999999999991e215Initial program 100.0%
Taylor expanded in x around inf 56.3%
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.0%
+-commutative69.0%
Simplified69.0%
Final simplification69.0%
(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.0%
Final simplification43.0%
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))))