added ndgridn, to me used for derivative/integral