MDistance

MDistance[ { ato1 , ato2 } ]
returns the geometric distance between the atoms ato1 and ato2 in Angstrom ().
MDistance[ {{ ato1 , ato2 } , { atoi , atoj } , ... }]
returns the geometric distance in Angstrom () computed for each pair of atoms.
  • ato1 and ato2 are molecula hierarchical expressions with head MAtom.
  • Cartesian coordinates are used to compute the distance.
In[1]:=
Click for copyable input
Loads a set of sample atoms:
In[2]:=
Click for copyable input
Out[2]=
Compute the distance:
In[3]:=
Click for copyable input
Out[3]=
Loads all pairs of atoms C5' and C4' of the molecule:
In[4]:=
Click for copyable input
Computes all C5' C4' distances:
In[5]:=
Click for copyable input
Out[5]=