Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Getting the length of a vector

Is there a way to get the length of a vector according to the form: For a vector (v_1,v_2,v_3, ... , v_n), get the result sqrt(v_1^2 + v_2^2 + v_3^2 + ... + v_n^2).