--> //initializations

--> M=0.198 //kg  (mass of wet soil)
 M  = 

   0.198


--> M3=1.653 //kg (mass of pycnometer with soil and filled with water)
 M3  = 

   1.653


--> M4=1.528 //kg (mass of pycnometer filled with water only)
 M4  = 

   1.528


--> //calculations 

--> G=M/(M-(M3-M4)) //(specific gravity)
 G  = 

   2.7123288


--> //results

--> printf('specific gravity=%f',G)
specific gravity=2.712329