Tried the Processing code I asked for a simple pendulum system and I only had to make a very simple correction, that is changing one of the variable name (bc ChatGPT used an apostrophe for the var name) and damn it worked smoothly.