From: Satyavani Vemparala (vani_at_VITAE.CMM.UPENN.EDU)
Date: Tue Mar 30 2004 - 16:44:03 CST

Hi:

Iam trying to find the vector subtraction and the following doesn't work:

set atm1 [atomselect top "resname TYR and resid 277 and name CG"]
set atm2 [atomselect top "resname TYR and resid 277 and name CE1"]
set atm3 [atomselect top "resname TYR and resid 277 and name CE2"]

set coord1 [$atm1 get {x y z}]
set coord2 [$atm2 get {x y z}]
set coord3 [$atm3 get {x y z}]

set vec1 [vecsub $coord1 $coord2]

The error i get is
vecsub: non-numeric in first argument

can not "vecsub" take variables as inline input?

Vani