When you start the calculation, a
is a number. After yur first NSolve
, a becomes a list of lists of replacement rules.It is not a number any more. You have to extract the numbers inside before feeding them to another NSolve
. Have a look at the syntax of NSolve
and its solutions, and how you use them.