theoretical vs real angles

This commit is contained in:
Motiejus Jakštys 2019-11-24 22:49:31 +02:00
parent 9a36562ac0
commit 265f85ae56

View File

@ -52,11 +52,15 @@ pals = [
PAL(4, guess('150-15-41'), Dec('179.336')), PAL(4, guess('150-15-41'), Dec('179.336')),
] ]
angle_sum = Dec(0)
for pal in pals:
angle_sum += pal.ang
theoretical_angle_sum = Dec(int((len(pals)-2)*180))
if __name__ == '__main__': if __name__ == '__main__':
print(""" print("""
Pradinis direkcinis kampas: %.4f""" % (90 - A11_2) + """ Pradinis direkcinis kampas: %.4f""" % (90 - A11_2) + """
""") """)
print("angle sum %.4f, theoretical angle sum %d" % \
for i in pals: (angle_sum, theoretical_angle_sum))
print(i)