\[\frac{x \cdot x - 3}{6}
\]
(FPCore (x) :precision binary64 (/ (- (* x x) 3.0) 6.0))
double code(double x) {
return ((x * x) - 3.0) / 6.0;
}
real(8) function code(x)
real(8), intent (in) :: x
code = ((x * x) - 3.0d0) / 6.0d0
end function
public static double code(double x) {
return ((x * x) - 3.0) / 6.0;
}
def code(x):
return ((x * x) - 3.0) / 6.0
function code(x)
return Float64(Float64(Float64(x * x) - 3.0) / 6.0)
end
function tmp = code(x)
tmp = ((x * x) - 3.0) / 6.0;
end
code[x_] := N[(N[(N[(x * x), $MachinePrecision] - 3.0), $MachinePrecision] / 6.0), $MachinePrecision]