summaryrefslogtreecommitdiff
path: root/2234/CH4/EX4.10/ex4_10.sce
blob: dc6fb3470fe39cbef98a9e52b60c9ebee4e2b942 (plain)
1
2
3
4
5
6
7
8
clc;
q1=(2*10^-8);  //charge in coulomb
q2=(-2*10^-8);  //charge in coulomb
q3=(3*10^-8);  //charge in coulomb
q4=(6*10^-8);  //charge in coulomb
s=1;  //side in m
V=(9*10^9)*(1/s)*(q1+q2+q3+q4);  //calculating voltage
disp(V,"Voltage in Volts = ");  //displaying result