log - Maple Help

convert/log

convert to %log[b] form

 Calling Sequence convert(expression, %log[b])

Parameters

 expression - expression involving log or ln b - integer; logarithm base

Description

 • Maple prefers to deal with computations using natural logarithms, and therefore automatically converts log[b](x) to ln(x)/ln(b).   When dealing with step-by-step solutions intended to be viewed by students this conversion is not always intuitive.  This method converts log and ln functions within an expression to the specified %log[b] form.
 • Note the use of the % prefix denotes InertForm, which stops evaluation avoiding automatic conversion back to ln.
 • For converting inverse trigonometric functions in an expression into their corresponding logarithmic form, see convert/ln.

Examples

 > $\mathrm{ex1}≔\mathrm{log}\left[10\right]\left(x\right)$
 ${\mathrm{ex1}}{≔}\frac{{\mathrm{ln}}{}\left({x}\right)}{{\mathrm{ln}}{}\left({10}\right)}$ (1)
 > $\mathrm{convert}\left(\mathrm{ex1},\mathrm{%log}\left[10\right]\right)$
 ${{\mathrm{log}}}_{{10}}{}\left({x}\right)$ (2)
 > $\mathrm{convert}\left(\mathrm{ln}\left(x\right),\mathrm{%log}\left[10\right]\right)$
 $\frac{{{\mathrm{log}}}_{{10}}{}\left({x}\right)}{{{\mathrm{log}}}_{{10}}{}\left({ⅇ}\right)}$ (3)
 > $\mathrm{convert}\left(\frac{\mathrm{ln}\left(x\right)}{\mathrm{ln}\left(10\right)}-\mathrm{log}\left[100\right]\left(x\right),\mathrm{%log}\left[10\right]\right)$
 $\frac{{{\mathrm{log}}}_{{10}}{}\left({x}\right)}{{2}}$ (4)

Compatibility

 • The convert/log command was introduced in Maple 2024.