summaryrefslogtreecommitdiff
path: root/2444/CH1/EX1.14/ex1_14.sce
blob: 540fe9a1b4ddb168eb15c0b2b6edbf0c00308fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Exa 1.14
clc;
clear;
close;
format('v',7)
// Given data
I_electrons = 3/4;
I_holes= 1/4;
v_h = 1;
v_e = 3;
ratio = (I_electrons/I_holes)*(v_h/v_e);
disp(ratio,"Ratio of electrons to holes is");