average atomic mass

van der Waal's equation

sums of multiples of 4

residual

solve by Newton-Raphson

solve a linear system of equations using INVERSE routine