1 2 3 4 5 6 7 8 9
//Initialisation of variables clc a=10^(-5) d=1 e=4.8*10^(-10) g=980 X=4*%pi*a^3*d*g/(3*e) printf('field required to keep drop stationary is %e esu per cm \n',X)