Title: The generalized beam theory with finite difference applications