--> //initializations

--> Ms=697.5 //gm (mass of clay with wax)
 Ms  = 

   697.5


--> Mr=690  //gm (mass of clay without wax)
 Mr  = 

   690.


--> Vw=355 //ml (volume of water)
 Vw  = 

   355.


--> w=.18 // (water content)
 w  = 

   0.18


--> G=2.7 // (specific gravity)
 G  = 

   2.7


--> Gw=.89 // (specific gravity of wax)
 Gw  = 

   0.89


--> Y=1.0 // (unit weight of wax)
 Y  = 

   1.


--> //calculations

--> Mw=Ms-Mr //(mass of wax)
 Mw  = 

   7.5


--> VW=Mw/(Gw*Y) //(volume of wax)
 VW  = 

   8.4269663


--> Vs=Vw-VW //(volume of soil)
 Vs  = 

   346.57303


--> D=Mr/Vs //(bulk density)
 D  = 

   1.9909224


--> Dd=D/(1+w) //(dry density)
 Dd  = 

   1.6872223


--> e=((G*Y)/Dd)-1 //(void ratio)
 e  = 

   0.6002633


--> S=(w*G*100)/e //(degree of saturation)
 S  = 

   80.964468


--> //results

--> printf('bulk density=%f',D) //gm/ml
bulk density=1.990922
--> printf('dry density=%f',Dd) //gm/ml
dry density=1.687222
--> printf('void ratio=%f',e)
void ratio=0.600263
--> printf('degree of saturation=%f',S) //%
degree of saturation=80.964468