Download A Textbook Of Engineering Physics_M. N. Avadhanulu, And P. G. Kshirsagar.pdf PDF

TitleA Textbook Of Engineering Physics_M. N. Avadhanulu, And P. G. Kshirsagar.pdf
TagsPhysical Sciences Spectral Line Photon Permittivity Binding Energy
File Size670.2 KB
Total Pages116
Table of Contents
                            Electron Ballistics
Electron Optics
Properties of Light
Interference and Diffraction
Polarization
Architectural Acoustics
Ultrasonics
Atomic Physics
Lasers
Atomic nucleus and nuclear energy
Structure of Solids
The Band Theory of Solids
Semiconductors
PN Junction Diode
Magnetic Materials
Superconductivity
Dielectrics
Fibre optics
Digital electronics
                        
Document Text Contents
Page 1

Scilab Textbook Companion for
A Textbook Of Engineering Physics

by M. N. Avadhanulu, And P. G. Kshirsagar1

Created by
Jumana Mp

btech
Electronics Engineering

VNIT NAGPUR
College Teacher
Dr.A.S.Gandhi

Cross-Checked by
Mukul R. Kulkarni

August 10, 2013

1Funded by a grant from the National Mission on Education through ICT,
http://spoken-tutorial.org/NMEICT-Intro. This Textbook Companion and Scilab
codes written in it can be downloaded from the "Textbook Companion Project"
section at the website http://scilab.in

Page 2

Book Description

Title: A Textbook Of Engineering Physics

Author: M. N. Avadhanulu, And P. G. Kshirsagar

Publisher: S. Chand And Company, New Delhi

Edition: 9

Year: 2011

ISBN: 81-219-0817-5

1

Page 58

6 h=4.52*10^24; // no o f h o l e s per mˆ3
7 e=1.25*10^14; // no o f e l e c t r o n s per mˆ3
8 ue=.38; // e m o b i l i t y
9 uh=.18; // h o l e m o b i l i t y

10 q=1.6*10^ -19; // cha rge o f e i n C
11 // c a l c u l a t i o n
12 ni=sqrt(h*e);// i n t r i n s i c c o n c e n t r a t i o n
13 ci=q*ni*(ue+uh);
14 disp(ci, ’ c o n d u c t i v i t y o f s em i conduc to r ( i n S/m) i s ’ );
15 cp=q*h*uh;
16 disp(cp, ’ c o n d u c t i v i t y o f doped s emi conduc to r ( i n S/m

) i s ’ );

Scilab code Exa 18.7 calculation of hole concentration

1 clc;clear;
2 // Example 1 8 . 7
3 // c a l c u l a t i o n o f h o l e c o n c e n t r a t i o n
4
5 // g i v e n v a l u e s
6 ni =2.4*10^19; // c a r r i e r c o n c e n t r a t i o n per mˆ3
7 N=4*10^28; // c o n c e n t r a t i o n o f ge atoms per mˆ3
8
9 // c a l c u l a t i o n

10 ND=N/10^6; // donor c o c n t r t n
11 n=ND;// no o f e l e c t r o n e s
12
13 p=ni^2/n;
14 disp(p, ’ c o n c e n t a r t i o n o f h o l e s per mˆ3 i s ’ );

Scilab code Exa 18.8 calculation of Hall voltage

1 clc;clear;

57

Page 59

2 // Example 1 8 . 8
3 // c a l c u l a t i o n o f H a l l v o l t a g e
4
5 // g i v e n v a l u e s
6 ND =10^21;// donor d e n s i t y per mˆ3
7 B=.5; // magnet i c f i e l d i n T
8 J=500; // c u r r e n t d e n s i t y i n A/mˆ2
9 w=3*10^ -3; // width i n m

10 e =1.6*10^ -19; // cha rge i n C
11
12 // c a l c u l a t i o n
13
14
15 V=B*J*w/(ND*e); // i n v o l t s
16 disp (V*10^3 , ’ H a l l v o l t a g e i n mv i s ’ ) ;

58

Page 115

45 temp=temp1+temp2;
// f i n a l l y adding both the i n t e g e r and dec ima l

p a r t s to g e t t o t a l output .
46 endfunction

Scilab code AP 2 Decimal to Base 2 Converter

1 // dec21b in i s a f u n c t i o n whcih c o n v e r t s any dec ima l
number g i v e n to i t w i l l output i t s e q u i v a l e n t
b i na r y number

2 // pas s the dec ima l number as an argument to the
f u n c t i o n

3 // For eg : dec21b in ( 1 0 )
4 // Wi l l g i v e an output o f 1010
5
6 function [temp]= dec21bin(dec)
7 temp2=floor(dec);

// s e p a r a t i n g
i n t e g e r pa r t from the g i v e n number

8 temp4=modulo(dec ,1);
// s e p a r a t i n g

dec ima l pa r t from the g i v e n number
9

10 format( ’ v ’ ,18);
// chang ing

the d e f a u l t p r e c i s i o n to 18
11
12 i=1;p=0;x=1;

// f l a g
b i t s

13
14 while(temp2 >0)

// s t o r i n g each i n t e g e r d i g i t i n v e c t o r f o r
c o n v e n i e n c e

15 p(i)=( modulo(floor(temp2) ,2))
16 temp2=floor(temp2)/2;
17 i=i+1;
18 end

114

Page 116

19
20 temp2 =0;

/ / c l e a r i n g the temporary v a r i a b l e ’ temp2 ’
21
22 for j=1: length(p)

/ / m u l t i p l i y i n g the b i t s o f i n t e g e r pa r t wi th
t h e i r p o s i t i o n v a l u e s and add ing

23 temp2=temp2 +(p(j)*10^(j-1));
24 end
25
26 while(temp4 ~=0)

/ / s t o r i n g
each i n t e g e r d i g i t i n v e c t o r f o r c o n v e n i e n c e

27 temp4=temp4 *2;
28 d(x)=floor(temp4);
29 x=x+1;
30 temp4=modulo(temp4 ,1);
31 end
32
33 temp5 =0;

/ / c l e a r i n g the temporary v a r i a b l e ’ temp2 ’
34
35 for j=1:x-1 / /

m u l t i p l i y i n g the b i t s o f dec ima l pa r t wi th
t h e i r p o s i t i o n v a l u e s and add ing

36 temp5=temp5 +(10^( -1*j)*d(j))
37 end
38
39 temp=temp2+temp5;

/ /
f i n a l l y add ing both the i n t e g e r and dec ima l
p a r t s to ge t t o t a l ou tput .

40 endfunction

115

Similer Documents