MathGroup Archive 2002

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

Search the Archive

Getting symbols out of list returned by solve


This may be really simple but I am having trouble setting the
variables to the values returned by solve.  If
solution={S0 -> 0,S1 -> 5....}the numbers of S# are subscripts
I can get to the idivdual parts with 
solution[[1]][[1]] and solution[[1]][[2]] but when I try to set the
one equal to the other I get this error
Set::"setps": solution[[1]] in assignment of part is not a symbol."
What is going on and how can I fix this?


  • Prev by Date: Some speedups
  • Next by Date: Re: Raising Contour Plot Graphics to 3D
  • Previous by thread: Some speedups
  • Next by thread: Re: Getting symbols out of list returned by solve