-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well, first that sounds somehow like a homework assignment, so only some hints:
a) work out the underlying math. Consider all special edge cases. b) I'm not completely sure what you need, but a feeling in the stomach tells me that you might need the atan function, it's provided in Python in the math module. Andreas nitin chandra wrote: > Hello Every One, > > I create a list of coordinates of 2 lines. > X11,Y11 & X12,Y12 as starting and ending of one line. > X21,Y21 & X22, Y22 as starting and ending of the 2nd line. > > Now is there any way to calculate the deflection angle between the two > lines? Will any modules be required other than Python 2.3 (on Linux)? > > and > > How will it be done? > > TIA, > > Nitin > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGi+h4HJdudm4KnO0RAgaTAKDV9dRcoFRuFpU0l0uNRrVmmUGZvACgm2B8 ute28hDtZfeMQGg+0QoF7Mo= =kBWC -----END PGP SIGNATURE----- _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor