summaryrefslogtreecommitdiff
path: root/3769/CH3/EX3.29/Ex3_29.sce
blob: e952a159893e02a5405d6a8f9a4f428de898e3f6 (plain)
1
2
3
4
5
6
7
8
9
clear
//Given
E=9*10**4                   //N/C
r=2*10**-2                  //m
m=9*10**9

//Calculation
a=r*E/(2.0*m)
printf("\n Linear charge density is  %0.3f  Cm-1", a)