summaryrefslogtreecommitdiff
path: root/964/CH19/EX19.4/19_4.sce
blob: 78c5f1fd125eefecacc429384787ae2d81cc8beb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clc;
clear;
s=[0.0002 0.0002 0.0005 0.0005 0.001 0.001];
r=[0.2 0.5 0.2 0.5 0.2 0.5];
u=[0.25; 0.5; 0.4; 0.75; 0.5; 1];
logs=log10(s);
logr=log10(r);
logu=log10(u);
for i=1:6
    m(i,1)=1;
    m(i,2)=logs(i);
    m(i,3)=logr(i);
end

a=m\logu;
disp(10^a(1),"alpha=")
disp(a(2),"sigma=")
disp(a(3),"rho=")