a bug in the derivative has been fixed: [i] instead if c[i] ineval_der.
Added test for derivative.
Tried fix.