From: John Stone (johns_at_ks.uiuc.edu)
Date: Tue Jan 11 2005 - 19:05:43 CST

Ekta,
  To use functions like acos(), you need to use Tcl's 'expr' routine,
like this:
  set angle [expr acos([vecdot {1 0 0} {0 1 0}])]

  John Stone
  vmd_at_ks.uiuc.edu

On Tue, Jan 11, 2005 at 07:56:54PM -0500, Ekta Khurana wrote:
> Hello, I want to find out the angle between two vectors, which can be
> found using the dot product and acos. I know I can use vecdot to find dot
> product in TCL. Could someone tell me what command I can use for acosine.
> Thanks,
> Ekta

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349              
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078