MathGroup Archive 1999

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

Search the Archive

Re: Help Defining Variables (with long names)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16778] Re: [mg16720] Help Defining Variables (with long names)
  • From: "Nik Semchenok" <nms at pobox.spbu.ru>
  • Date: Wed, 24 Mar 1999 17:07:08 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

>What is the best way to declare variable with a 'long name'?  I am
>currently using the underscore to separate the words.  For example:
>liquid_density_of_ethylene_glycol=1.114
>Unfortunately, I run into trouble when performing basic arithmetic.

Hello!

_ or Blank[ ] is a pattern object that can stand for any Mathematica expression. 
It is the protected character in Mathematica.

You can use, for example, tilde

liquid~density~of~ethylene~glycol=1.114
1.114
4*liquid~density~of~ethylene~glycol
4.456

Nik



  • Prev by Date: RE: Combining Lists
  • Next by Date: Re: Combining Lists
  • Previous by thread: Re: Help Defining Variables (with long names)
  • Next by thread: Re: Help Defining Variables (with long names)