summaryrefslogtreecommitdiff
path: root/1172/CH2/EX2.9/Example2_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1172/CH2/EX2.9/Example2_9.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1172/CH2/EX2.9/Example2_9.sce')
-rwxr-xr-x1172/CH2/EX2.9/Example2_9.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1172/CH2/EX2.9/Example2_9.sce b/1172/CH2/EX2.9/Example2_9.sce
new file mode 100755
index 000000000..e0784f89c
--- /dev/null
+++ b/1172/CH2/EX2.9/Example2_9.sce
@@ -0,0 +1,11 @@
+clc
+// Given That
+sigma = 2e-6 // surface charge density in c/m^2 on XY plane
+theta = 60 // angle between normal and X axis on degree
+r = 10 // radius of circle in cm
+epsilon_0 = 8.85e-12 // permitivity of free space
+//Sample Problem 9 Page No. 84
+printf("\n # Problem 9 # \n ")
+printf("standard formula used \n phi = sigma*A*cos(theta)/(2*epsilon_0) \n\n")
+phi = sigma* %pi*(r*1e-2)^2 * cos (theta*%pi/180) / (2*epsilon_0) //calculation of Flux through coil
+ printf("Flux through coil is %e Nm^2/C. \n", phi)