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 /3369/CH3/EX3.17/Ex3_17.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 '3369/CH3/EX3.17/Ex3_17.sce')
-rwxr-xr-x | 3369/CH3/EX3.17/Ex3_17.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/3369/CH3/EX3.17/Ex3_17.sce b/3369/CH3/EX3.17/Ex3_17.sce new file mode 100755 index 000000000..fc69b6308 --- /dev/null +++ b/3369/CH3/EX3.17/Ex3_17.sce @@ -0,0 +1,11 @@ +//Chapter 3, Exmaple 17, page 110 +//Determine the ion density +clc +clear +//Based on equation 3.50 and 3.52 +nplus = 10**11*%e**(-1.6*10**-19*5*0.02/(1.38*10**-23*293)) +nminus = 10**11*%e**(-1.6*10**-19*5*-0.02/(1.38*10**-23*293)) //textbook uses 0.02 inseatead of -0.02. In the program I have used -0.02 +printf("\n+(0.02) = %e ions/m^3 ",nplus) +printf("\n+(-0.02) = %e ions/m^3 ",nminus) + +//answers may vary due to round off error |