diff options
Diffstat (limited to '2681/CH1/EX1.5/Ex1_5.sce')
-rwxr-xr-x | 2681/CH1/EX1.5/Ex1_5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2681/CH1/EX1.5/Ex1_5.sce b/2681/CH1/EX1.5/Ex1_5.sce new file mode 100755 index 000000000..f94bdbf61 --- /dev/null +++ b/2681/CH1/EX1.5/Ex1_5.sce @@ -0,0 +1,13 @@ +//the electric field at Q1 needed to be determined.
+//given
+clc
+Q1=1d-9//at (-1,1,-3)
+Q2=5d-9//at (3,1,0)
+epsilon0=8.85D-12//the values may differ as i have used the exact value of permitivity
+R=[-1 1 -3]-[3 1 0]//
+r=norm(R)//magnitude of the vector r
+ar=R/r//unit vector
+E=(Q1/(4*%pi*epsilon0*(r^2)))*ar
+E=round(E*10000)/10000///rounding off decimals
+disp(E,'THE electric field at Q1 is given as:')//both vectors are in ax and az directions respectively
+//ERROR in the book
|