0

As question in the title, how should I rewrite $\ln x-1$ and $\log x - \log (1/x)$ in a way that can avoid the loss of significance?

I have tried to use the taylor series expand the lnx - 1 and my answer is $$\dfrac{6(x-2)- 3(x-1)^2+ 2(x-1)^3}{6}$$ which I think is slightly weird.

Can someone helps me in solving this question? thanks in advance!

bjcolby15
  • 3,599
Hanyi Koh
  • 121
  • Can you give an example value of $x$ where significance is lost? (Do you mean significant digits are lost?) – irchans Nov 22 '19 at 01:11
  • ya for two terms , if their value are very close, when they do subtraction, the loss of significance will occur – Hanyi Koh Nov 22 '19 at 02:02

1 Answers1

1

For the first one render $1=\ln e$ and remember the difference between logs to the same base is the log of a quotient.

For the second one put $\log (1/x)=-\log x$ and simplify.

Oscar Lanzi
  • 39,403