The question below is chemistry related but needs to be solved through the use of GAMS . Inputs and outputs must be included so that I know the code works .
Exercise – 1: Nonlinear Equations – van der Waals Equation of State
[15]
Using GAMS (as a programming language) solve for V the following van der Waals equation of state for
ammonia at 10 atm and 250°C by using Secant Method where two initial guesses for V are 2.50 and 2.51.
(P + a/V2) (V – b) = RT
a= (27/64) (R2T2/P.)
b=RT/(8P)
Given: R=0.08206 atm 1 K-mol“!, P = 10 atm, T = 523 K, Te = 407.5 K, Pc = 111.3 atm, a = 4.238448, b =
0.037556.
Provide the formulation of the problem and progress of the iterations in the report. Also upload the GAMS
(.gms and .Ist) files.