planar problem fixed

Differentiation failed when the first equation did not have parameters.
The number of parameters is now given as an input