Re: Help Defining Variables (with long names)
- To: mathgroup at smc.vnet.net
- Subject: [mg16793] Re: [mg16720] Help Defining Variables (with long names)
- From: "Johan Gunnarsson" <johan at kestrel.edu>
- Date: Tue, 30 Mar 1999 02:35:05 -0500
- Organization: Concentric Internet Services
- References: <7dbngm$c45@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Nik Semchenok <nms at pobox.spbu.ru> wrote in message news:7dbngm$c45 at smc.vnet.net... > _ 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 > Don't use tilde since tilde is in Mathematica used for infix operators, i.e., a ~op~ b is the same as op[a,b] so you example works but the name is not a name of a symbol. In[1]:= Hold[liquid~density~of~ethylene~glycol = 1.114] // FullForm Out[1]//FullForm= Hold[Set[ethylene[density[liquid, of], glycol], 1.114`]] In[2]:= ?liquid~density~of~ethylene~glycol Information::"notfound": "Symbol \!\(\"liquid~density~of~ethylene~glycol\"\) \ not found." The only resonable solution is ( as proposed before ) LiquidDensityEthyleneGlycol since Mathematica has a predefined meaning to almost all non alphabetic characters. /Johan Gunnarsson, MathCore AB, http://www.mathcore.com