11.07.2015 Views

VMD User's Guide

VMD User's Guide

VMD User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• veccross v1 v2 – Returns the vector cross product of the two vectors.Examples:vmd > veccross {1 0 0} {0 1 0}0 0 1vmd > veccross {2 2 2} {-1 0 0}0 -2 2• veclength v – Returns the scalar length of v (‖v‖)Examples:vmd> veclength 55.0vmd > veclength {5 12}13.0vmd > veclength {3 4 12}13.0vmd > veclength {1 -2 3 -4}5.47723• veclength2 v – Returns the square of the scalar length of v (‖v‖ 2 )Examples:vmd > veclength2 525vmd > veclength2 {5 12}169vmd > veclength2 {3 4 12}169vmd > veclength2 {1 -2 3 -4}30• vecnorm v – Returns the vector of length 1 directed along vExamples:vmd > vecnorm -10-1.0vmd > vecnorm {1 1 }0.707109 0.707109vmd > vecnorm {2 -3 1}0.534522 -0.801783 0.267261vmd > vecnorm {2 2 -2 2 -2 -2}0.408248 0.408248 -0.408248 0.408248 -0.408248 -0.408248• vecdist v1 v2 – Returns the distance between the two vectors (‖v 2 − v 1 ‖)149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!