//Chapter 8 Chemical Equlibrium clc; clear; //Initialisation of Variables x= 3.33 n= 5 //moles //CALCULATIONS N= x**2/(n-x)**2 //RESULTS mprintf("Moles of water and ester formed= %.0f",N)