MathGroup Archive 2009

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

Search the Archive

Re: Log[x]//TraditionalForm

  • To: mathgroup at
  • Subject: [mg96070] Re: [mg96049] Log[x]//TraditionalForm
  • From: "David Park" <djmpark at>
  • Date: Wed, 4 Feb 2009 05:19:29 -0500 (EST)
  • References: <18434169.1233661588561.JavaMail.root@m02>

You can make your own output format by writing a MakeBoxes definition.

MakeBoxes[Log[x_], form : StandardForm | TraditionalForm] := 
 InterpretationBox[#1, #2] & @@
      {RowBox[{"ln(", MakeBoxes[x, form], ")"}], Log[x]}

Log[x^2 + 2] // TraditionalForm

David Park
djmpark at  

From: slawek [mailto:human at] 

The natural logarithm function in "traditional form" in Mathematica (version


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?


  • Prev by Date: Split Screen Redux
  • Next by Date: Re: Printing (v7)
  • Previous by thread: Re: Log[x]//TraditionalForm
  • Next by thread: Re: Log[x]//TraditionalForm