Large nonuniform bending of beams with compressible stored energy functions of polynomial-type