Sorry, you're correct. Some others here have suggested variants of this which work for restricted ranges of angles. On Wed, Mar 21, 2012 at 1:59 AM, Mark Rages wrote: > On Tue, Mar 20, 2012 at 10:14 PM, Sean Breheny wrote: >> You could also do your sum modulo 360: 0+1+359=3D360 =A0360 mod 360=3D0 >> >> You would divide by N (number of samples) after performing the modulo su= m. >> >> Sean >> > > No, modulo isn't enough. =A0Try it on two samples: 0, 359. > > -- > Regards, > Mark > markrages@gmail > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .