The raw materials mixture for glass melting is termed "batch".  The batch must be measured properly to achieve a given, desired glass formulation. This batch calculation is based on the common linear regression equation:
with N and N being the molarities 1-column matrices of the batch and glass components respectively, and B being the batching matrix. The symbol "" stands for the matrix transpose operation, "" indicates matrix inversion, and the sign "·" means the scalar product. From the molarities matrices N, percentages by weight (wt%) can easily be derived using the appropriate molar masses.