Tag Info

New answers tagged

4

What you want to do is called "event location" and is realized with NDSolve using WhenEvent. In principle you give it a predicate that is true when the spaceship is at periapsis and NDSolve uses a root finding method to figure out exactly when this happens. G = 6.672*10^-11; m[1] = 6.4185*10^23; m[2] = 100; p[1] = {0, 0}; p[2] = {1000000, 1000000}; v[1] = ...


3

G = 6672*10^-14; m[1] = 64185*10^19; m[2] = 100; p[1] = {0, 0}; p[2] = {10^6, 10^6}; v[1] = {0, 2500}; v[2] = {0, 0}; tmax = 1000; soln = NDSolve[{ x[1]''[t] == -(G m[1] (x[1][t] - x[2][t]))/ Norm[{x[1][t], y[1][t]} - {x[2][t], y[2][t]}]^3, y[1]''[t] == -(G m[1] (y[1][t] - y[2][t]))/ Norm[{x[1][t], y[1][t]} - {x[2][t], y[2][t]}]^3, ...


1

WolframAlpha["mars Gravitational Constant mass product", {{"Result", 1}, "NumberData"}] 4.28*10^13 or WolframAlpha["mars Gravitational Constant mass product", {{"Result", 1}, "ComputableData"}] Quantity[4.28*10^13, ("Meters")^3/("Seconds")^2]



Top 50 recent answers are included