Running Exw.exe spring.ex.. ------------------------------------- Note: There are other simulation scenarios available by changing the source code comments { time, spring potential, equilibrium length, velocity_1, position_1, velocity_2, position_2 } the second mass is displaced slightly inwards, the spring moves with oscilation and settles into a new equilibrium {0,0,2,0,-1,0,0.9} {20,-0.01378534962,2,-0.01002073315,-1.086629993,0.01002073315,0.9866299927} {40,0.00667989334,2,0.01406597333,-1.030387991,-0.01406597333,0.930387991} {60,-5.856904072e-005,2,-0.014338585,-1.053046421,0.014338585,0.953046421} {80,-0.004904867849,2,0.01173636166,-1.059938892,-0.01173636166,0.9599388917} {100,0.007657039434,2,-0.007493361639,-1.032294687,0.007493361639,0.9322946874} {120,-0.008216835273,2,0.002853620992,-1.070048702,-0.002853620992,0.9700487016} {140,0.007027437178,2,0.001174823723,-1.03212231,-0.001174823723,0.9321223102} {160,-0.004762615821,2,-0.003957711758,-1.062755309,0.003957711758,0.9627553088} {180,0.002136736337,2,0.005264449641,-1.043571885,-0.005264449641,0.9435718849} {200,0.0002452796757,2,-0.005211467572,-1.050438114,0.005211467572,0.9504381137} {220,-0.001978746567,2,0.004151943052,-1.054127446,-0.004151943052,0.9541274456} {240,0.002887929936,2,-0.002546994904,-1.043265805,0.002546994904,0.9432658047} {260,-0.003002715846,2,0.0008482270521,-1.057365836,-0.0008482270521,0.957365836} {280,0.002500921584,2,0.0005882528831,-1.043603287,-0.0005882528831,0.9436032873} {300,-0.00163620027,2,-0.001547448673,-1.054420066,0.001547448673,0.9544200657} {320,0.0006692806506,2,0.001961974296,-1.047923255,-0.001961974296,0.947923255} {340,0.0001848421994,2,-0.001888026522,-1.04991779,0.001888026522,0.9499177903} {360,-0.0007874518291,2,0.001463229688,-1.051680766,-0.001463229688,0.9516807661} {380,0.001084026493,2,-0.0008591729057,-1.047452632,0.0008591729057,0.9474526321} {400,-0.001093682292,2,0.0002392664453,-1.052696957,-0.0002392664453,0.9526969569} {420,0.0008868667289,2,0.0002711761271,-1.047718971,-0.0002711761271,0.9477189708} {440,-0.0005586303898,2,-0.0005998573649,-1.05152356,0.0005998573649,0.9515235596} {460,0.0002038223924,2,0.0007282784981,-1.049341104,-0.0007282784981,0.9493411042} {480,0.0001014210819,2,-0.0006817961294,-1.049883281,0.0006817961294,0.9498832807} {500,-0.0003098590192,2,0.0005136031765,-1.050673946,-0.0005136031765,0.9506739462} {520,0.0004051058158,2,-0.0002873008429,-1.049041207,0.0002873008429,0.9490412067} {540,-0.0003970588125,2,6.182755987e-005,-1.050984187,-6.182755987e-005,0.9509841868} {560,0.0003133349731,2,0.0001188998794,-1.04918943,-0.0001188998794,0.9491894302} {580,-0.0001893987388,2,-0.000230793758,-1.050522094,0.000230793758,0.9505220936} {600,5.964304497e-005,2,0.0002693102243,-1.049795828,-0.0002693102243,0.9497958281} {620,4.907133673e-005,2,-0.0002454111936,-1.049926447,0.0002454111936,0.9499264467} {640,-0.0001207735454,2,0.0001795097978,-1.050266865,-0.0001795097978,0.9502668646} {660,0.0001507626439,2,-9.509265918e-005,-1.049640787,9.509265918e-005,0.9496407874} {680,-0.0001436862653,2,1.334860651e-005,-1.050357979,-1.334860651e-005,0.9503579791} {700,0.0001102741217,2,5.039872997e-005,-1.049713001,-5.039872997e-005,0.949713001} {720,-6.370477044e-005,2,-8.821108274e-005,-1.050177748,8.821108274e-005,0.9501777476} {740,1.640913386e-005,2,9.922711346e-005,-1.049938745,-9.922711346e-005,0.9499387454} {760,2.21737783e-005,2,-8.804676414e-005,-1.049962144,8.804676414e-005,0.9499621438} {780,-4.668979957e-005,2,6.245415187e-005,-1.050104571,-6.245415187e-005,0.9501045709} {800,5.588757437e-005,2,-3.10914081e-005,-1.049865999,3.10914081e-005,0.9498659991} {820,-5.182906299e-005,2,1.551066921e-006,-1.050129787,-1.551066921e-006,0.9501297866} {840,3.86506659e-005,2,2.084519555e-005,-1.049898765,-2.084519555e-005,0.9498987648} {860,-2.12307155e-005,2,-3.351550717e-005,-1.05006007,3.351550717e-005,0.9500600701} {880,4.047717757e-006,2,3.643232843e-005,-1.049982473,-3.643232843e-005,0.9499824725} {900,9.595301945e-006,2,-3.148385088e-005,-1.04998228,3.148385088e-005,0.9499822804} {920,-1.792085218e-005,2,2.162148359e-005,-1.050040612,-2.162148359e-005,0.9500406125} {940,2.064022267e-005,2,-1.001419799e-005,-1.049950214,1.001419799e-005,0.9499502143} {960,-1.863463847e-005,2,-6.265007728e-007,-1.050046903,6.265007728e-007,0.950046903} {980,1.348784076e-005,2,8.46188855e-006,-1.049964432,-8.46188855e-006,0.949964432} {1000,-6.999027436e-006,2,-1.266582306e-005,-1.05002013,1.266582306e-005,0.95002013} {1020,7.764243009e-007,2,1.333113319e-005,-1.049995355,-1.333113319e-005,0.9499953554} {1040,4.029302345e-006,2,-1.121976368e-005,-1.049992154,1.121976368e-005,0.9499921545} {1060,-6.834875994e-006,2,7.444964617e-006,-1.050015651,-7.444964617e-006,0.9500156513} {1080,7.595510219e-006,2,-3.164854871e-006,-1.049981574,3.164854871e-006,0.9499815739} {1100,-6.677910918e-006,2,-6.555374899e-007,-1.050016895,6.555374899e-007,0.9500168953} {1120,4.684766569e-006,2,3.384452646e-006,-1.049987556,-3.384452646e-006,0.949987556} {1140,-2.277304991e-006,2,-4.7630137e-006,-1.05000668,4.7630137e-006,0.9500066796} {1160,3.113026462e-008,2,4.861879495e-006,-1.049998939,-4.861879495e-006,0.9499989387} {1180,1.654837532e-006,2,-3.98433484e-006,-1.049996652,3.98433484e-006,0.9499966517} {1200,-2.591887132e-006,2,2.548287749e-006,-1.050005991,-2.548287749e-006,0.9500059908} {1220,2.7854502e-006,2,-9.755850831e-007,-1.049993205,9.755850831e-007,0.9499932053} {1240,-2.385091573e-006,2,-3.915372202e-007,-1.050006066,3.915372202e-007,0.9500060662} {1260,1.618900516e-006,2,1.337359485e-006,-1.049995666,-1.337359485e-006,0.9499956658} {1280,-7.290555989e-007,2,-1.782998375e-006,-1.050002191,1.782998375e-006,0.9500021906} {1300,-7.912254502e-008,2,1.767345814e-006,-1.049999841,-1.767345814e-006,0.9499998412} {1320,6.680605776e-007,2,-1.409764553e-006,-1.049998608,1.409764553e-006,0.9499986081} {1340,-9.777757217e-007,2,8.664404331e-007,-1.050002279,-8.664404331e-007,0.9500022792} {1360,1.018052661e-006,2,-2.90532611e-007,-1.049997503,2.90532611e-007,0.9499975033} {1380,-8.489390732e-007,2,-1.970370804e-007,-1.050002171,1.970370804e-007,0.9500021708} {1400,5.563219521e-007,2,5.231213215e-007,-1.049998498,-5.231213215e-007,0.9499984978} {1420,-2.286047244e-007,2,-6.646176839e-007,-1.050000708,6.646176839e-007,0.9500007082} {1440,-6.122800647e-008,2,6.403726704e-007,-1.050000024,-6.403726704e-007,0.9500000242} {1460,2.660064211e-007,2,-4.969173514e-007,-1.049999433,4.969173514e-007,0.9499994328} {1480,-3.670984112e-007,2,2.923813365e-007,-1.050000862,-2.923813365e-007,0.9500008624} {1500,3.708610932e-007,2,-8.219244115e-008,-1.049999086,8.219244115e-008,0.9499990857} {1520,-3.010964882e-007,2,-9.10895365e-008,-1.050000774,9.10895365e-008,0.9500007742} {1540,1.899952347e-007,2,2.028576515e-007,-1.049999482,-2.028576515e-007,0.9499994821} {1560,-6.97218665e-008,2,-2.467472425e-007,-1.050000225,2.467472425e-007,0.9500002249} {1580,-3.387330288e-008,2,2.312823242e-007,-1.050000038,-2.312823242e-007,0.9500000383} {1600,1.047212422e-007,2,-1.744537193e-007,-1.049999772,1.744537193e-007,0.9499997724} {1620,-1.372129321e-007,2,9.781145508e-008,-1.050000325,-9.781145508e-008,0.9500003247} {1640,1.346599187e-007,2,-2.135002097e-008,-1.049999666,2.135002097e-008,0.9499996663} {1660,-1.063972059e-007,2,-4.001243704e-008,-1.050000275,4.001243704e-008,0.9500002752} {1680,6.44377498e-008,2,7.807380945e-008,-1.049999822,-7.807380945e-008,0.9499998225} {1700,-2.044632838e-008,2,-9.12599731e-008,-1.05000007,9.12599731e-008,0.9500000698} {1720,-1.645550923e-008,2,8.326182257e-008,-1.050000024,-8.326182257e-008,0.9500000245} {1740,4.083336641e-008,2,-6.098554991e-008,-1.04999991,6.098554991e-008,0.9499999098} {1760,-5.107393261e-008,2,3.239044944e-008,-1.050000122,-3.239044944e-008,0.9500001217} {1780,4.873735149e-008,2,-4.665754936e-009,-1.049999879,4.665754936e-009,0.9499998786} {1800,-3.745181382e-008,2,-1.698217074e-008,-1.050000097,1.698217074e-008,0.9500000974} {1820,2.168211963e-008,2,2.984881987e-008,-1.04999994,-2.984881987e-008,0.9499999395} {1840,-5.644978845e-009,2,-3.363006066e-008,-1.050000021,3.363006066e-008,0.950000021} {1860,-7.45366302e-009,2,2.987647998e-008,-1.050000013,-2.987647998e-008,0.9500000127} {1880,1.57912077e-008,2,-2.122232288e-008,-1.049999965,2.122232288e-008,0.9499999647} {1900,-1.893632659e-008,2,1.05967539e-008,-1.050000045,-1.05967539e-008,0.9500000454} {1920,1.758261001e-008,2,-5.76256275e-010,-1.049999956,5.76256275e-010,0.949999956} {1940,-1.312921805e-008,2,-7.030676911e-009,-1.050000034,7.030676911e-009,0.9500000344} {1960,7.229174481e-009,2,1.134384684e-008,-1.04999998,-1.134384684e-008,0.9499999796} {1980,-1.401861849e-009,2,-1.234956676e-008,-1.050000006,1.234956676e-008,0.950000006} {2000,-3.230633983e-009,2,1.068487972e-008,-1.050000006,-1.068487972e-008,0.9500000059} Process terminated successfully. Exit code: 0