clc //initialisation of variables l= 1.5418 //A a= 19.076 //degrees d2= 1.444 //A //CALCULATIONS d= l/(2*sind(a)) a= sqrt(8*d2^2) //RESULTS printf (' size of cubic unit cell = %.4f A',a)