MathGroup Archive 1997

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

Search the Archive

Re: using indexed variables in MultiplierMethod[ ], etc.


SymbolicSum.  In the def. of SymbolicSum, the arguments are constrained
by the Symbol heads.  So all I have to do to circumvent this is to fool
the function as if symbolic arguments are being supplied.  If your
function is doing the same thing as SymbolicSum, then this might help.

SymbolicSum[K,{K,n}] --> (n*(1 + n))/2
SymbolicSum[K[1],{K[1],n}] --> SymbolicSum[K[1], {K[1], n}]
SymbolicSum[K[1],{K[1],n}]/.K[1]->Symbol[K[1]] --> (n*(1 + n))/2

This may come in handy too:
Thread[Array[u,2]->Array[Composition[Symbol,u],2]]
--> {u[1] -> Symbol[u[1]], u[2] -> Symbol[u[2]]}

Ask the package author before attempting to modify the source code as
there may be a reason why certain argument constraints are imposed.


  • Prev by Date: Re: Contours in ListContourPlot
  • Next by Date: Lighting
  • Previous by thread: using indexed variables in MultiplierMethod[ ], etc.
  • Next by thread: Mathematica Developer Conference 1997