blob: a0e8b5c5d573b6fcb0bb7425102e30eddaafd5d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//Given
qa=2.5*10**-7
qb=-2.5*10**-7
a=15
b=15
//Calculation
q=qa+qb
C=(a+b)*10**-2
E=qa*C
//Result
printf("\n Total charge is %0.3f \nElectric dipole moment of the system is %0.3f Cm",q,E)
|