Homework
Language: python3
on pyCharm
Requirements: sympy
to install: pip install sympy
Code’s logic:
For both LAT & DDT there are similarities in the code:
1 big global variable holding the necessary information.
Next on get_values, check_value, print_table, traverse, print_DDT/print_LAT functions the input from the user is taken and shown in tables. The difference is on calc_value function:
For LAT:
total
variabletotal - 2**(n-1) [2**(4-1) = 8]
[2**(n-1) - 2**(n/2 - 1) / 2**(n-1) - |max|]
returns the percentage of nlm
For DDT: