According to the documentation of Lagrange interpolation the operation of taking a derivative can be nested.
The code sample in the documentation:
var