new method for trigtech roots using bisection and newton's method