summaryrefslogtreecommitdiff
path: root/3768/CH6/EX6.10/Ex6_10.sce
blob: d17578965ac1f61b579e50dfe17ccd606a0145b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example number 6.10, Page number 120

clc;clear;
close;

//Variable declaration
A=10*10**-6;     //area(m**2)
i=100;    //current(amp)
n=8.5*10**28;    //number of electrons
e=1.6*10**-19;      //charge(c)
//Calculation
vd=i/(n*A*e);     //drift velocity(m/s)
//Result
printf("drift velocity is %.4e m/s",vd)