summaryrefslogtreecommitdiff
path: root/3411/CH6/EX6.1/Ex6_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3411/CH6/EX6.1/Ex6_1.sce')
-rw-r--r--3411/CH6/EX6.1/Ex6_1.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3411/CH6/EX6.1/Ex6_1.sce b/3411/CH6/EX6.1/Ex6_1.sce
new file mode 100644
index 000000000..2020c25ec
--- /dev/null
+++ b/3411/CH6/EX6.1/Ex6_1.sce
@@ -0,0 +1,11 @@
+//Example 6_1
+clc();
+clear;
+//To calculate the Electric field of a laser beam
+i=10^-3/(3*10^-6) //units in W/mts^2
+c=3*10^8 //units in mts/sec
+u=4*10^-7 //units in SI
+n=1
+E0=sqrt((i*2*c*u)/n) //units in V/mts
+printf("The electric field is E0=%.2f V/m",E0)
+//In text book answer is given E0=501 V/m but the correct answer is E0=282.84 V/m