Analyse a logic equation