1%
function infiniteDisplacement
4A=[Ax Ay Az]
'; % initial point of the source segment
5B=[Bx By Bz]'; %
final point of the source segment
7S=
A*(1-
u)+
B*
u; % the source point moving along
A->B as
a function of
u in [0,1]
8X=[x y z]
'; % the field point
9Rv=X-S; % the R vector (source to field)
10R=sqrt(dot(Rv,Rv)); % the magnitude of the R vector
initial point of the source segment B
function infiniteDisplacement syms Ax Ay Az Bx By Bz qx qy qz u L x y z real A
the magnitude of the R vector q
the R vector(source to field) R
final point of the source segment t
disp('Done integration') Is