Using subscripts in function-parameter names

*To*: mathgroup at smc.vnet.net*Subject*: [mg71653] Using subscripts in function-parameter names*From*: eriwik at student.chalmers.se*Date*: Sun, 26 Nov 2006 03:48:35 -0500 (EST)

I'm quite new to using Mathematica and I'll probably not use it much in the future either, but right now I need to use it to calculate some values for comparison. My problem is that I can't get seem to get a function to work if the parameters have a subscript in the name. The following demonstrates the problem (copied from the notebook-file): (F[\(x\_1\) _, \(x\_2) _] := \[Sum]\+\(i = 1\)\%2 x\_i;\) Or put another way, a function F that takes two arguments Subscript[x,1] and Subscript[x,2] and runs a summation over Subscript[x,i] from i = 1 to 2. Now, this is quite a contrived example and could easily be expanded by hand, but what I need it for is much harder, with 8 parameters and nested summations. As I understand perhaps Utilities`Notation` could be used, but I don't understand how to use it. Could someone give a short demonstration (if that is the solution), perhaps on the above example? -- Erik Wikström