Getting symbols out of list returned by solve
- To: mathgroup at smc.vnet.net
- Subject: [mg37328] Getting symbols out of list returned by solve
- From: phry420 at yahoo.com (Sam)
- Date: Wed, 23 Oct 2002 02:57:27 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
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?