| Author |
Comment/Response |
Mac
|
09/19/12 4:51pm
As part of a code I am writing, I am trying to take a list of elements that I already have, numerically solve an equation for 1 variable (c) with the other variable in the equation (rhs) being substituted by the ith element of a list (rhs). I want to iterate over the list and obtain a list of values for c. I found a template for doing so on the forum, but I know certain values of c vs rhs and it I know that the program is not spitting out the correct numbers. I am a newbie. Can some look at this code and tell me what I am doing wrong?
Code:
rhs = {.0983367, .0929156, .0874946}
Table[NSolve[.5*Log10[c] + .0983367*c == rhs[[i]], c], {i, 1, 3}]
URL: , |
|