A method for solving the nonsimilar laminar boundary-layer equations including foreign gas injection