electrical engineering logic