hey all:
Probably more than you want to know but here it is, at least one example of a complex answer.
http://www.woodweb.com/knowledge_base/Calculating_the_weight_of_lumber.html