how to fix “ValueError: setting an array element with a sequence.”?
I have to model a Wilberforce pendulum in Python for my final project in my classical mechanics class. I am getting the error “ValueError: setting an array element with a sequence.” inside my loop that is using the Verlet method to approximate the accelerations and displacement to then plotted. I have asked my professor but unfortunately, he has not seen this error before so he is not sure how to address it, especially since I am adapting his working code to the Wilberforce pendulum.