From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 24/DEPENDENCIES/electrostatics.sci | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 24/DEPENDENCIES/electrostatics.sci (limited to '24/DEPENDENCIES/electrostatics.sci') diff --git a/24/DEPENDENCIES/electrostatics.sci b/24/DEPENDENCIES/electrostatics.sci new file mode 100755 index 000000000..ef708effe --- /dev/null +++ b/24/DEPENDENCIES/electrostatics.sci @@ -0,0 +1,16 @@ +//permitivity constant +Eo = 8.85*10^-12 //in C^2/N.m^2 +//electric consatnt +k = 1/(4*%pi*Eo) +//charge on proton +e = 1.6*10^-19 //in C + +//calculates coloumb force on two charged particle having charge q1, q2 seprated by distance equal to r +function [F] = coulomb(q1, q2, r) + F = k*q1*q2/r^2 +endfunction + +//calculates the potential due to a particle having charge q at a distance d from the particle +function [V] = EPotential(q, r) + V = k*q/r +endfunction \ No newline at end of file -- cgit