Implemented secant.c