Just been having a look at the Morale calculations for planets to see why my equations weren't working exactly, and noticed something odd. Here is the equation:
M = [(1 - (CR * TL * CL)) * (Sum of Each3 (NF * FA))] / [(Sum of Each4 (NF * FA)) + 2(Sum of Each5 (NF * FA)) + 4(Sum of Each6 (NF * FA))]
Now, the Each3 facilities boost morale, and the Each4, Each5, Each6 facilities reduce morale. If you look closely, you will see that if you have a only facilities that boost morale (like religious facilities), morale will still end up as 0 (or really an error) as you will be dividing by 0.
Now this seems just wrong, and I am wondering if there is something on the second half of the divide that should be there to take that into account?