--> //initialization

--> Pf=2.5 
 Pf  = 

   2.5


--> g=9.81
 g  = 

   9.81


--> //calculations

--> ss=(10^(Pf))/100 //(soil suction)
 ss  = 

   3.1622777


--> cp=-(ss*g*1000)/1000 //(Capillary potential)
 cp  = 

  -31.021944


--> //results

--> printf('Capillary potential=%f',cp) //KN/m^2
Capillary potential=-31.021944

