\[-1000 < x \land x < 1000\]
\[\sin x - x
\]
↓
\[-0.16666666666666666 \cdot {x}^{3} + 0.008333333333333333 \cdot {x}^{5}
\]
(FPCore (x) :precision binary64 (- (sin x) x))
↓
(FPCore (x)
:precision binary64
(+ (* -0.16666666666666666 (pow x 3.0)) (* 0.008333333333333333 (pow x 5.0))))
double code(double x) {
return sin(x) - x;
}
↓
double code(double x) {
return (-0.16666666666666666 * pow(x, 3.0)) + (0.008333333333333333 * pow(x, 5.0));
}
real(8) function code(x)
real(8), intent (in) :: x
code = sin(x) - x
end function
↓
real(8) function code(x)
real(8), intent (in) :: x
code = ((-0.16666666666666666d0) * (x ** 3.0d0)) + (0.008333333333333333d0 * (x ** 5.0d0))
end function
public static double code(double x) {
return Math.sin(x) - x;
}
↓
public static double code(double x) {
return (-0.16666666666666666 * Math.pow(x, 3.0)) + (0.008333333333333333 * Math.pow(x, 5.0));
}
def code(x):
return math.sin(x) - x
↓
def code(x):
return (-0.16666666666666666 * math.pow(x, 3.0)) + (0.008333333333333333 * math.pow(x, 5.0))
function code(x)
return Float64(sin(x) - x)
end
↓
function code(x)
return Float64(Float64(-0.16666666666666666 * (x ^ 3.0)) + Float64(0.008333333333333333 * (x ^ 5.0)))
end
function tmp = code(x)
tmp = sin(x) - x;
end
↓
function tmp = code(x)
tmp = (-0.16666666666666666 * (x ^ 3.0)) + (0.008333333333333333 * (x ^ 5.0));
end
code[x_] := N[(N[Sin[x], $MachinePrecision] - x), $MachinePrecision]
↓
code[x_] := N[(N[(-0.16666666666666666 * N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] + N[(0.008333333333333333 * N[Power[x, 5.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\sin x - x
↓
-0.16666666666666666 \cdot {x}^{3} + 0.008333333333333333 \cdot {x}^{5}