Program geneng

The program geneng uses the three arguments of its invocation to calculate an energy in a sequence of energies. The output is given by

Output = Parm1 + Parm2*(Parm3-1)