The first thing to do is to compute E and C (see appendix A for details).