Analyze a logic equation