General Format Math Logical Equations