summaryrefslogtreecommitdiff
path: root/3850/CH29/EX29.3/Ex29_3.sce
blob: effe0c57c63dde95805b2f4ff05757e2b16ad856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

//To Calculate the Work Done by a person in pulling them apart to infinite separations

//Example 29.3

clear;

clc;

Q1=10*10^-6;//First Charge in Coloumbs

Q2=10*10^-6;//Second Charge in Coloumbs

Q3=10*10^-6;//Third Charge in Coloumbs

K=9*10^9;//Value of constant (1/(4*pi*ε0))

x=0.1;//Length of side of the Equilateral Triangle in metres

U=3*Q1*Q2*K/x;//Potential Energy of the System

printf("The amount of work done to pull the charges apart=%f J",U);