diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1172/CH2/EX2.2/Example2_2.sce | |
download | Scilab-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.2/Example2_2.sce')
-rwxr-xr-x | 1172/CH2/EX2.2/Example2_2.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1172/CH2/EX2.2/Example2_2.sce b/1172/CH2/EX2.2/Example2_2.sce new file mode 100755 index 000000000..382999a8b --- /dev/null +++ b/1172/CH2/EX2.2/Example2_2.sce @@ -0,0 +1,16 @@ +clc
+// Given That
+E_0 = 50 // magnitude of electric field in N/C
+l = 100 // radius of cylinder in cm
+a = 5 // area of cross section in cm^2
+c = 3e8 // speed of light in m/s
+epsilon_0 = 8.85e-12 // permittivity of free space
+//Sample Problem 2 Page No. 79
+printf("\n # Problem 2 # \n ")
+v = a*1e-4 *l*1e-2//calculation of volume of cylinder
+u = (1/2)*epsilon_0*E_0^2//calculation of energy intensity
+U = v*u//calculation of Energy contained in cylinder
+I = u*c//calculation of Intensity of wave
+ printf("Energy contained in cylinder is %eJ \n", U)
+printf("Intensity of wave is %fW/m^2", I)
+
|