summaryrefslogtreecommitdiff
path: root/1730/CH2/EX2.2/Exa2_2.sce
blob: c27486679a7bfdd6c8a72e1be4f04b629465a15f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Exa2
clc;
clear;
close;
//given data :
//Electron density
n=1*10^24;//unit less
//Electron charge
e=1.6*10^-19; // in coulomb
//Drift velocity
v=1.5*10^-2; // in meter per second
//cross-sectional area
A=1; // in centimeter square
A=1*10^-4; // in meter square
I=e*n*v*A;// in ampere
disp("Magnitude of current is :"+string(I)+" A")