Գրեք սա: PAIR FUNCTION FOR RECTANGULAR ISING FERROMAGNET