-1

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

  • Hi, @leilak can you Copy the code and paste it here instead of images? [Why should I not upload images of code/data/errors?](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors) – Bhargav - Retarded Skills Aug 07 '23 at 11:15
  • Have you? Jokes aside, it's better to share the code itself instead of a screenshot, and also what you want to achieve instead of naming the algorithm. – Harun Yilmaz Aug 07 '23 at 11:16
  • ***DO NOT*** post images of code, data, error messages, etc. - copy or type the text into the question. Please reserve the use of images for diagrams or demonstrating rendering bugs, things that are impossible to describe accurately via text. For more information please see the Meta FAQ entry [Why not upload images of code/errors when asking a question?](https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-errors-when-asking-a-question/285557#285557) – itprorh66 Aug 07 '23 at 13:53

0 Answers0