summaryrefslogtreecommitdiff
path: root/3769/CH1/EX1.16/Ex1_16.sce
blob: d7e2c5c6fa9ebcf3eb8037faf6978c9ed8bd678e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clear
//Given
m=9*10**9                    //C
q1=10*10**-6
q2=5*10**-6
r=0.05

//Calculation
//
F1=m*q1*q2/r**2
F2=m*q1*q2/r**2
F3=sqrt(F1**2+F2**2+(2*F1*F2*cos(120)*180/3.14))

//Result
printf("\n Resultant charge is  %0.0f  N",F3*10**-1)