SubValues
- To: mathgroup at smc.vnet.net
- Subject: [mg71840] [mg71780] SubValues
- From: "dimitris" <dimmechan at yahoo.com>
- Date: Thu, 30 Nov 2006 06:05:46 -0500 (EST)
I noticed the following:
\!\(f\_i[x_] := x\^i\)
\!\(\((f\_#1[x] &)\) /@ Range[10]\)
Out[6]
\!\({f\_1[x], f\_2[x], f\_3[x], f\_4[x], f\_5[x], f\_6[x], f\_7[
x], f\_8[x], f\_9[x], f\_10[x]}\)
?f
Global`f
After I converted to InputForm
Subscript[f, i][x_] := x^i
(Subscript[f, #1][x] & ) /@ Range[10]
{Subscript[f, 1][x], Subscript[f, 2][x],
Subscript[f, 3][x], Subscript[f, 4][x],
Subscript[f, 5][x], Subscript[f, 6][x],
Subscript[f, 7][x], Subscript[f, 8][x],
Subscript[f, 9][x], Subscript[f, 10][x]}
And I tried
SubValues[Subscript]
{HoldPattern[Subscript[f, i][x_]] :> x^i}
taking what I want (i.e. where the definition is stored)
Information["SubValues", LongForm -> False]
"SubValues[f] gives a list of transformation rules \
corresponding to all subvalues (values for \
f[x,..][..], etc.) defined for the symbol f."
Can somebody provide me with further examples of "storing" in
SubValues?
Regards
Dimitris