Alan,
Thank you for the response. As a question of how it is working; is the program making a loop in the definition? Are we circularly defining both the density(T,P) and P(T,density), but we are just giving it a starting place with the density?
If we are, I didn't know that would work.