Calculates the bending stress in a beam based on applied moment, beam geometry, and material properties.