The anti-trigonometric function is used to strictly solve the uniaxial anisotropic Stoner-Wohlfarth (SW) model, which can obtain the relation of the angle α (θ) between the magnetization (the anisotropy field) and the applied magnetic field. Using this analytic solution, the hysteresis loops of uniaxial anisotropic SW particles magnetized in typical directions could be numerically calculated. Then, the hysteresis loops are obtained in randomly distributed SW particle ensembles while ignoring the dipole interaction among them with the analytic solution. Finally, the correctness of the analytic solution is verified by the exact solutions of remanence, switching field, and coercivity from SW model. The analytic solution provides an important reference for understanding the magnetizing and magnetization reversal processes of magnetic materials.