separated root finder in util.math