I have tried to write a program in Python for the Verlet algorithm to simulate a mass on a spring. Here is the code: attempted code
However, this is the graph that resulted. I am not sure if it is correct or not.resulting graph
I have tried to write a program in Python for the Verlet algorithm to simulate a mass on a spring. Here is the code: attempted code
However, this is the graph that resulted. I am not sure if it is correct or not.resulting graph