"Sanhita Mallick" <[EMAIL PROTECTED]> wrote

being calculated correctly as checked by the "print"
statement. But when we do
norm_ted = (2 * ted) / mag

It might be an integer division issue.

Try
norm_ted = (2*ted) / float(mag)

Just a thought...


--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld




_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to