MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Log[x]//TraditionalForm


Log /: MakeBoxes[Log[x_], TraditionalForm] :=
  RowBox[{"ln", "(", MakeBoxes[x, TraditionalForm], ")"}]


slawek wrote:
> The natural logarithm function in "traditional form" in Mathematica (version 
>   Log[x]//TraditionalForm
>   log(x)
> This is "not a bug but a feature", but in mathematics the natural logarithm 
> is just ln(x) or even ln x.
> The true traditional notation use log for decimal logarithm, ln for natural 
> logarithm, lb for binary logarithm, and
> log_{b}x  for logarithm with base b. Unfortunatelly in most computer 
> programs (see FORTRAN) LOG
> stands for natural logarithm (an exception is Pascal).
> Nevertheless, how to force to use ln(x) instead log(x) ?
> The brute way is use /.Log->ln//TraditionalForm.
> Is any more elegant way to do this?
> slawek

  • Prev by Date: Re: Log[x]//TraditionalForm
  • Next by Date: Loop programming; how do i do this ???
  • Previous by thread: Re: Log[x]//TraditionalForm
  • Next by thread: Re: Log[x]//TraditionalForm