From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 964/CH9/EX9.9/9_9.sce | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 964/CH9/EX9.9/9_9.sce (limited to '964/CH9/EX9.9/9_9.sce') diff --git a/964/CH9/EX9.9/9_9.sce b/964/CH9/EX9.9/9_9.sce new file mode 100755 index 000000000..fc82eb8ef --- /dev/null +++ b/964/CH9/EX9.9/9_9.sce @@ -0,0 +1,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") -- cgit