blob: 1bdc6319dcee3f57f79c97a2e9282cfa9e449841 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Example 4// Ch 4
clc;
clear;
close;
// given data
a=7.5*1e5;
b=-4*1e4;
c=59.97;
p = poly([c, b,a], 'x', 'c');
alpha=roots(p);
printf('The distance it must travel to produce an avalanche of 1E9 electrons is (in m) %f',alpha(2))
|