Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuniyoshi/7c33ea17fb8d7fb185e4 to your computer and use it in GitHub Desktop.
Save kuniyoshi/7c33ea17fb8d7fb185e4 to your computer and use it in GitHub Desktop.
重力加速度(g)変化、地表からの距離
z.g <- 6.67259e-11
z.m <- 5.972e24
z.r <- 6.356752314e6
z.fg <- function(h) z.g * z.m / (h + z.r)^2
curve(z.fg, from = 0, to = 1e7, xlab = "h[m]", ylab = "g[m/s2]", ylim = c(0, 10))
abline(v = 400e3)
@kuniyoshi
Copy link
Author

g_at_a_space_shuttle

@kuniyoshi
Copy link
Author

z.g: 万有引力定数
z.m: 地球の質量
z.r: 地球の半径
z.fg: 重力加速度関数
400e3: スペースシャトルの位置
g: 重力加速度
h: 地表からの距離

重力加速度が地表から離れるにつれてどのように変わるかをプロットしました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment