Yeah, I tried to do that in a n - masses pendulum in java. I innocuously used the Euler method because I normally think of plainly adding acceleration to velocity and velocity to position, but it added up within a few seconds till all of the values got too big to store. I tried to constantly compensate for the increasing energy by scaling up and down the speeds to compensate for the error, but it weirdly made it so that it always fell into the weird wave symmetrically waving back and forth. I really want a simple integration method that can make an accurate simulation without energy continuously adding to the system.
Using the Euler step won't show a constant energy sadly. The errors would pile up
Yeah, I tried to do that in a n - masses pendulum in java. I innocuously used the Euler method because I normally think of plainly adding acceleration to velocity and velocity to position, but it added up within a few seconds till all of the values got too big to store. I tried to constantly compensate for the increasing energy by scaling up and down the speeds to compensate for the error, but it weirdly made it so that it always fell into the weird wave symmetrically waving back and forth. I really want a simple integration method that can make an accurate simulation without energy continuously adding to the system.
Sphere is not defined? Any help with this error.
are you on glowscript.org? If you are on trinket.io be sure to select "new->glowscript" instead of "new-python"
oh, did you write it as "sphere()" or "Sphere()" - python is case sensitive. It should be lower case
Do you use euler step
yes
Real physicists use FORTRAN :)
Real physicists use pure binary machine code