Solving equations and finding roots