Added the derivative function and sourceview

Signed-off-by: bvanr <henkibrij@hotmail.com>