Stoner-Wohlfarth Calculation on Particle with Both Magnetocrystalline and Shape Anisotropy