equation solver implemented