| Author |
Comment/Response |
fpgh
|
06/11/12 1:42pm
Hi,
I'm trying to decipher the following code:
Do[c[i] =
c[i] /. Solve[veqexp[n] == 0, c[i]][[1]], {i, 1, n}]
It clearly solves an equation (that involves c[i]) for c[i]. then updates this c[i] and moves on to the next, but what is the purpose of [[1]] here? Is it just taking the first of possibly many solutions or something?
thanks for any help.
URL: , |
|