Chaos in one-dimensional structural mechanics