(FPCore (x y z) :precision binary64 (- (+ x (cos y)) (* z (sin y))))
(FPCore (x y z) :precision binary64 (+ (cos y) (- x (* z (sin y)))))
double code(double x, double y, double z) {
return (x + cos(y)) - (z * sin(y));
}
double code(double x, double y, double z) {
return cos(y) + (x - (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
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = cos(y) + (x - (z * sin(y)))
end function
public static double code(double x, double y, double z) {
return (x + Math.cos(y)) - (z * Math.sin(y));
}
public static double code(double x, double y, double z) {
return Math.cos(y) + (x - (z * Math.sin(y)));
}
def code(x, y, z): return (x + math.cos(y)) - (z * math.sin(y))
def code(x, y, z): return math.cos(y) + (x - (z * math.sin(y)))
function code(x, y, z) return Float64(Float64(x + cos(y)) - Float64(z * sin(y))) end
function code(x, y, z) return Float64(cos(y) + Float64(x - Float64(z * sin(y)))) end
function tmp = code(x, y, z) tmp = (x + cos(y)) - (z * sin(y)); end
function tmp = code(x, y, z) tmp = cos(y) + (x - (z * sin(y))); end
code[x_, y_, z_] := N[(N[(x + N[Cos[y], $MachinePrecision]), $MachinePrecision] - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_] := N[(N[Cos[y], $MachinePrecision] + N[(x - N[(z * N[Sin[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(x + \cos y\right) - z \cdot \sin y
\cos y + \left(x - z \cdot \sin y\right)



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 0.1
Applied egg-rr0.1
Final simplification0.1
herbie shell --seed 2022150
(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))))