MathGroup Archive 2006

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

Search the Archive


  • To: mathgroup at
  • Subject: [mg71840] [mg71780] SubValues
  • From: "dimitris" <dimmechan at>
  • Date: Thu, 30 Nov 2006 06:05:46 -0500 (EST)

I noticed the following:

\!\(f\_i[x_] := x\^i\)

\!\(\((f\_#1[x] &)\) /@ Range[10]\)
\!\({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]}\)


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

{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


  • Prev by Date: Re: Strange empty set of solutions
  • Next by Date: RE: Re: Re: Re: Arithmetic Puzzle (so simple it's hard)
  • Previous by thread: SubValues
  • Next by thread: NetLink with float* as argument