Suppose we would like to compute $\sin{1}$ with an error of less than $10^{-17}$ specifically using a Taylor polynomial at $\pi/2$ (instead of the easier route of doing the computation at $0$).
If we write
$$f(x)=\sin{x}=P_{n,a}(x)+R_{n,a}(x)$$
where $P_{n,a}(x)$ is the Taylor polynomial of degree $n$ for $f$ at $a$, and $R_{n,a}(x)$ is the remainder term, then by Taylor's Theorem we have
$$\sin{x}=\sum\limits_{i=0}^{2n+1} \left [\sin^{(i)}{(a)}\frac{(x-a)^{2n+1}}{(2n+1)!}\right ]+\frac{\sin^{(2n+2)}{(t)}}{(2n+2)!}(x-a)^{2n+2}, t\in (0,x)$$
$$R_{2n+1,a}(x)=\frac{\sin^{(2n+2)}{(t)}}{(2n+2)!}(x-a)^{2n+2}, t\in (0,x)$$
Then
$$R_{2n+1,\pi/2}(1)=\frac{\sin^{(2n+2)}{(t)}}{(2n+2)!}\left (1-\frac{\pi}{2}\right )^{2n+2}, t\in (0,1)$$
$$\leq \frac{1}{(2n+2)!}\left (1-\frac{\pi}{2}\right )^{2n+2}$$
$$<10^{-17}$$
$$\implies (2n+1)!>10^{17}\cdot \left (1-\frac{\pi}{2}\right )^{2n+1}\tag{1}$$
$$\implies (2n+1)!-10^{17}\cdot \left (1-\frac{\pi}{2}\right )^{2n+1}>0\tag{2}$$
Let's say we now want to use Maple to figure out which $n$ makes $(2)$ true. Why doesn't the following work?
f := n -> 10^(17)*[1 - 1/2*Pi]^(2*n + 2)
g := n -> (2*n + 2)!
h := n -> g(n) - f(n)
is(h(1)>0) // FAIL
Note that individually computing values of $f$, $g$, and $h$ works fine. In particular, h(1)
produces a result. Why doesn't the function is
work?