Update double gyre demo derivative function

Correct documentation and check input argument attributes.