Skip to content

Instantly share code, notes, and snippets.

@dadeba
Last active March 22, 2018 21:13
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 dadeba/8b35ed9ac1c4266653a51554780df595 to your computer and use it in GitHub Desktop.
Save dadeba/8b35ed9ac1c4266653a51554780df595 to your computer and use it in GitHub Desktop.
pipeline description
/VARI xi, yi, zi, e2;
/VARJ xj, yj, zj, mj;
/VARF ax, ay, az, ap;
dx = xj - xi;
dy = yj - yi;
dz = zj - zi;
r2 = dx*dx + dy*dy + dz*dz + e2;
r1i = powm12(r2);
r2i = r1i*r1i;
r1im = mj*r1i;
r3im = r1im*r2i;
ax = dx*r3im;
ay = dy*r3im;
az = dz*r3im;
ap = -1.0*r1im;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment