How to wright an Algebraic equation?