//block on horizontal plane //refer fig. 15.6 (a) and (b) //Inertia force of block m*a=3/9.81 kN //applying equilibrium conditions //N=1+P/2 //P*cosd(30)-F-3/9.81 //From law of friction //F=mu*N //Solving above equations P=((3/9.81)+(0.25))/(cosd(30)-(0.125)) //kN printf("\nP=%.3f kN",P) //The answers vary due to round off error