summaryrefslogtreecommitdiff
path: root/3537/CH7/EX7.17/Ex7_17.sce
diff options
context:
space:
mode:
Diffstat (limited to '3537/CH7/EX7.17/Ex7_17.sce')
-rw-r--r--3537/CH7/EX7.17/Ex7_17.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3537/CH7/EX7.17/Ex7_17.sce b/3537/CH7/EX7.17/Ex7_17.sce
new file mode 100644
index 000000000..ff4320907
--- /dev/null
+++ b/3537/CH7/EX7.17/Ex7_17.sce
@@ -0,0 +1,8 @@
+//Example 7_17
+clc();
+clear;
+//To calculate the critical angle
+n1=1.53
+n2=1.42
+theta=asin(n2/n1)*180/%pi
+printf("The critical angle is %.2f degrees",theta)