root finding for functions 3654241