plot2d and quad_qags feeding non-numeric input to user function



Thanks for the replies.  Quoting the first argument fixed the problem in 
both cases.