Skip to main content
9 events
when toggle format what by license comment
Apr 22, 2023 at 21:27 comment added James @Michael <html><script> let G = 0.0000000000667408; let m = 0.142; let min_distance = 0.074; let t = 0; let a1 = 0; let v1 = 0; let p1 = 0; let a2 = 0; let v2 = 0; let p2 = 1; while (p2 - p1 > min_distance) time_step(); document.write ("t: " + t/3600/24); function time_step () { let r = p2 - p1; a1 = Gm/(rr); a2 = -a1; v1 += a1; p1 += v1; v2 += a2; p2 += v2; t++; } </script></html>
Apr 22, 2023 at 21:26 comment added James @Micheal I'm sorry i did not save the excel unfortunately, but the solution 2.93 was not actually using spreadsheet (because of number of row limitations won't let us go that far). Here's a javascript code for it:
Apr 22, 2023 at 16:05 comment added Ghoster @James 2.93 days This agrees with the analytic formula.
Apr 22, 2023 at 14:33 comment added Michael @James hi, can I have your excel file please ? I'm not very good at excel
Apr 22, 2023 at 11:41 comment added James The balls separated by 1 meter will hit each other in 2.93 days. The earth and the sun in the same situation will hit in 65.05 days.
Apr 22, 2023 at 5:44 history edited James CC BY-SA 4.0
deleted 47 characters in body
Apr 22, 2023 at 5:23 comment added James @ghoster oh yes, the acceleration must be recalculated every step. i will update.
Apr 22, 2023 at 5:20 comment added Ghoster You haven’t shown the Excel formulas for the velocity or position. Are you using the acceleration calculated in B4? If so, that’s only the initial acceleration.
Apr 22, 2023 at 5:06 history answered James CC BY-SA 4.0