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/CH21/EX21.5/21_5.sce | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 964/CH21/EX21.5/21_5.sce (limited to '964/CH21/EX21.5') diff --git a/964/CH21/EX21.5/21_5.sce b/964/CH21/EX21.5/21_5.sce new file mode 100755 index 000000000..e5de4a916 --- /dev/null +++ b/964/CH21/EX21.5/21_5.sce @@ -0,0 +1,41 @@ +clc; +clear; +function y=f(x) + y=(0.2+25*x-200*x^2+675*x^3-900*x^4+400*x^5) +endfunction +a=0; +b=0.8; +tval=1.640533; +n=4; +h=(b-a)/n; +fa=f(a); +fb=f(b); +j=a+h; +s=0; +count=1; +while j