MATLAB行星运动仿真程序.docxVIP

  • 100
  • 0
  • 约2.03千字
  • 约 3页
  • 2019-01-28 发布于北京
  • 举报
MATLAB行星运动仿真程序.docx

clear all; close all; G=6.67*10^-11; % The universal gravitational constant m = [1.989e30,3.5844e23,4.89868e24,5.974e24,6.5714e23,1.89854e27,5.68725e26,8.72204e25,1.02753e26]; % An array of masses n = length(m); Number_of_planets = n % The number of masses x_p = [0,58340100000,1.07705e11,1.4959e11,2.27377e11,7.77868e11,1.42709e12,2.87512e12,4.49668e12]; % An array of x positions y_p= [0,0,0,0,0,0,0,0,0]; % An array of y positions x_v = [0,0,0,0,0,0,0,0,0]; % An array of x velocities y_v = [0,47856.46,34961.72,29780,23883.56,12924.52,9618.94,6789.84,5419.96]; % An array of y velocities T

文档评论(0)

1亿VIP精品文档

相关文档