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 --- 50/DEPENDENCIES/back.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 50/DEPENDENCIES/back.sce (limited to '50/DEPENDENCIES/back.sce') diff --git a/50/DEPENDENCIES/back.sce b/50/DEPENDENCIES/back.sce new file mode 100755 index 000000000..d92199af3 --- /dev/null +++ b/50/DEPENDENCIES/back.sce @@ -0,0 +1,16 @@ +function [x] = back(U,Z) + +x=zeros(1,n); +for i = n:-1:1 + sumk=0 + for j=i+1:n + sumk=sumk+U(i,j)*x(j); + end; + x(i)=(Z(i)-sumk)/U(i,i); +end; + + + + +endfunction + -- cgit