𝐴𝐴 = 𝐹𝐹(1 − 𝑟𝑟2) 𝑘𝑘1 �𝑟𝑟4 − �2 + 𝑚𝑚2 𝑚𝑚1 � 𝑟𝑟2 + 1� in matlab

You can write the equation as follows in MATLAB:

main.m
AA = FF*(1-r^2)*k1*(((r^4 - 2) + m2/m1)*r^2 + 1);
50 chars
2 lines

where FF, r, k1, m1, and m2 are the constants in the equation, and AA is the result. You just need to replace the constants with their respective values in your code.

related categories

gistlibby LogSnag