Give exact ways of avoiding loss-of-significance errors in the following computations:
a. $log(x+1)-log$, with large $x$
b. $\frac{1-cosx}{x^2}$, with $x\approx 0$
c.$(1+x)^{1/3}-1$, with $x\approx 0$
Am I doing this correctly?
a. I got $$log(x+1)-log(x)= log(\frac{x+1}{x})= log(1+\frac{1}{x}) \approx \frac{1}{x}-\frac{1}{2x^2}+\frac{1}{3x^3} ...$$
c. I got $$\frac{x}{(1+x)^{2/3}+(1+x)^{1/3}+1}$$
b. I am stuck
