summaryrefslogtreecommitdiff
path: root/623/CH27/EX5.5.12/U5_C5_12.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /623/CH27/EX5.5.12/U5_C5_12.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 '623/CH27/EX5.5.12/U5_C5_12.sce')
-rwxr-xr-x623/CH27/EX5.5.12/U5_C5_12.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/623/CH27/EX5.5.12/U5_C5_12.sce b/623/CH27/EX5.5.12/U5_C5_12.sce
new file mode 100755
index 000000000..0241fe411
--- /dev/null
+++ b/623/CH27/EX5.5.12/U5_C5_12.sce
@@ -0,0 +1,14 @@
+//variable initialization
+v1=288600 //intense absorption (m-1)
+v2=566800 //intense absorption (m-1)
+v3=834700 //intense absorption (m-1)
+A=[1 -2;2 -6]; //coefficient matrix
+b=[v1;v2]; //right hand side matrix
+mu=1.61*10^-27; //reduced mass (kg)
+c=3*10^8; //speed of light (m/s)
+
+//calculation
+x=inv(A)*b; //values of omega and x*omega (m-1)
+k=4*(%pi*c*x(1))^2*mu; //force constant (N/m)
+
+printf("\nωe = %.0f m-1\nxe*ωe = %.0f m-1\nforce constant = %.1f N/m",x(1),x(2),k);