ahh, you calculated dxdy but called it dydx...that's confusing. See the docstring of idiff for syntax related to ordering of the args after eq.