The lncollect command collects the logarithm in an expression; namely, it rewrites sums of logarithms as the logarithm of a product.
It may be a good idea to factor the expression with factor before collecting by lncollect).
Examples.
ln | ⎛ ⎝ | ⎛ ⎝ | x+1 | ⎞ ⎠ | ⎛ ⎝ | x−1 | ⎞ ⎠ | ⎞ ⎠ |
⎛ ⎝ | x+1 | ⎞ ⎠ | ⎛ ⎝ | x−1 | ⎞ ⎠ |
Warning!!!
For Xcas, log is the natural logarithm, the same as
ln; for the base 10 logarithm, use log10.