You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: oneMinusCosGustFg0.m
    path of file: ./repos/LADAC/environment/atmosphere
    
    the code of the file until where you have to start completion: % oneMinusCosGustFg0 computes the Flight Profile Alleviation Factor at 
%   sea level for a 1-cos gust according to the requirements of Tilte 14, 
%  
    
function F_g0 = oneMinusCosGustFg0( m_maxLand, m_maxTO, m_maxZeroFuel, alt_mo ) %#codegen

R_1 = m_maxLand / m_maxTO;
R_2 = m_maxZeroFuel / m_maxTO;

F_gm = sqrt( R_2 * tan( pi * R_1 / 4 ) );

Z_mo_ft = m2ft( alt_mo );
F_gz = 1 - Z_mo_ft / 250000;

F_g0 = 0.5 * ( F_gz + F_gm );

end