?

Average Error: 0.0 → 0.0
Time: 56.1s
Precision: binary64
Cost: 13248

?

\[\left(x + \sin y\right) + z \cdot \cos y \]
\[\left(x + \sin y\right) + z \cdot \cos y \]
(FPCore (x y z) :precision binary64 (+ (+ x (sin y)) (* z (cos y))))
(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));
}
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
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));
}
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))
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 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
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]
code[x_, y_, z_] := N[(N[(x + N[Sin[y], $MachinePrecision]), $MachinePrecision] + N[(z * N[Cos[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(x + \sin y\right) + z \cdot \cos y
\left(x + \sin y\right) + z \cdot \cos y

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 0.0

    \[\left(x + \sin y\right) + z \cdot \cos y \]

Alternatives

Alternative 1
Error20.9
Cost7124
\[\begin{array}{l} \mathbf{if}\;x \leq -7.5 \cdot 10^{-81}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;x \leq -4.2 \cdot 10^{-136}:\\ \;\;\;\;\sin y\\ \mathbf{elif}\;x \leq -2.2 \cdot 10^{-167}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;x \leq 2.15 \cdot 10^{-263}:\\ \;\;\;\;\left(y + x\right) + z\\ \mathbf{elif}\;x \leq 3.1 \cdot 10^{-198}:\\ \;\;\;\;\sin y\\ \mathbf{else}:\\ \;\;\;\;z + x\\ \end{array} \]
Alternative 2
Error19.9
Cost7120
\[\begin{array}{l} t_0 := \cos y \cdot z\\ \mathbf{if}\;z \leq -5.5 \cdot 10^{+66}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;z \leq -4.8 \cdot 10^{-118}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;z \leq -5.2 \cdot 10^{-278}:\\ \;\;\;\;\sin y\\ \mathbf{elif}\;z \leq 7.4 \cdot 10^{+152}:\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 3
Error20.3
Cost7120
\[\begin{array}{l} t_0 := \cos y \cdot z\\ \mathbf{if}\;z \leq -3.6 \cdot 10^{+67}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;z \leq -2 \cdot 10^{-66}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;z \leq -4.1 \cdot 10^{-278}:\\ \;\;\;\;\sin y + z\\ \mathbf{elif}\;z \leq 6.6 \cdot 10^{+151}:\\ \;\;\;\;z + x\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 4
Error9.3
Cost6984
\[\begin{array}{l} t_0 := x + z \cdot \cos y\\ \mathbf{if}\;x \leq -3.5 \cdot 10^{-78}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 3.2 \cdot 10^{-219}:\\ \;\;\;\;\sin y + z\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 5
Error0.4
Cost6984
\[\begin{array}{l} t_0 := x + z \cdot \cos y\\ \mathbf{if}\;z \leq -2400000000000:\\ \;\;\;\;t_0\\ \mathbf{elif}\;z \leq 10^{-8}:\\ \;\;\;\;\left(x + \sin y\right) + z\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 6
Error30.8
Cost592
\[\begin{array}{l} \mathbf{if}\;x \leq -2.65 \cdot 10^{+60}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 2100000:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 10^{+86}:\\ \;\;\;\;x\\ \mathbf{elif}\;x \leq 8 \cdot 10^{+135}:\\ \;\;\;\;z\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 7
Error18.8
Cost584
\[\begin{array}{l} \mathbf{if}\;y \leq -1.66 \cdot 10^{+66}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;y \leq 15500:\\ \;\;\;\;\left(y + x\right) + z\\ \mathbf{else}:\\ \;\;\;\;z + x\\ \end{array} \]
Alternative 8
Error20.2
Cost456
\[\begin{array}{l} \mathbf{if}\;x \leq -4.1 \cdot 10^{-168}:\\ \;\;\;\;z + x\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{-221}:\\ \;\;\;\;z + y\\ \mathbf{else}:\\ \;\;\;\;z + x\\ \end{array} \]
Alternative 9
Error21.3
Cost192
\[z + x \]
Alternative 10
Error36.8
Cost64
\[x \]

Error

Reproduce?

herbie shell --seed 2023033 
(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))))