Calculation of the phase-space parameters for the study of quadrupole devices