MathGroup Archive 2008

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

Search the Archive

Re: Using \[Breve] as a substitute for underscore

Steven Siew wrote:
> In mathematica you cannot use underscore _  as part of a variable name
> as you could in other computer languages.
> Has anyone tried using \[Breve] as an underscore substitute instead.
> for example:
> mass\[Breve]of\[Breve]earth = 5.97*^24
> or
> mass[esc]bv[esc]of[esc]bv[esc]earth = 5.97*^24
> I kinda like "breve" because it looks like the standard underscore
> character.
> What other characters do other people uses?
> Steven Siew
I also use \[Breve] extensively for this purpose in my Super Widget 
Package, and in other code I have written for my clients. I think it is 
a shame that underscore got used for patterns, and since I also write 
some Java and C code, I regularly forget and create 'variables' 
containing underscores.

Unfortunately, the breve character does not paste well into 
non-mathematica UNICODE environments because it would seem that it is a 
diacritic character.

David Bailey

  • Prev by Date: Re: Recognize vector expression
  • Next by Date: Re: Problem with evaluating Graphics3D output
  • Previous by thread: Re: Using \[Breve] as a substitute for underscore
  • Next by thread: Re: Using \[Breve] as a substitute for underscore