Skip to content

Instantly share code, notes, and snippets.

@EzAccount
Created April 25, 2020 19:04
Show Gist options
  • Save EzAccount/2fa6b4f1211e35ccd9ea4c4cf3e7d2bb to your computer and use it in GitHub Desktop.
Save EzAccount/2fa6b4f1211e35ccd9ea4c4cf3e7d2bb to your computer and use it in GitHub Desktop.
tgA[i] = 1 / n_curved(x_temp, i*dz + dz/2) * (n_x_curved(x_temp) * dz - )
tg[j, i] = tgA[i] + tg[j, i - 1]
x_temp = x[i - 1] + dz / 2. * tg[j, i]
x[i] = x[i - 1] + dz * tg[j, i]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment