summaryrefslogtreecommitdiff
path: root/964/CH9/EX9.9/9_9.sce
blob: fc82eb8ef3e49d111138fa9b7bf2426b1c8d8bb3 (plain)
1
2
3
4
5
6
7
8
9
10
//clc()
//0.0003*x1 + 3*x2 = 2.0001
//1*x1 + 1*x2 = 1
a11 = 0.000;
//multiplying first equation by 1/0.0003, we get, x1 + 10000*x2 = 6667
x2 = (6667-1)/(10000-1);
x1 = 6667 - 10000*x2;
disp(x2,"x2 = ")
disp(x1,"x1 = ")
disp("The error varies depending on the no. of significant figures used")