summaryrefslogtreecommitdiff
path: root/260/CH10/EX10.8/10_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /260/CH10/EX10.8/10_8.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '260/CH10/EX10.8/10_8.sce')
-rw-r--r--260/CH10/EX10.8/10_8.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/260/CH10/EX10.8/10_8.sce b/260/CH10/EX10.8/10_8.sce
new file mode 100644
index 000000000..49a30eff0
--- /dev/null
+++ b/260/CH10/EX10.8/10_8.sce
@@ -0,0 +1,22 @@
+//Eg-10.8
+//pg-445
+
+clear
+clc
+
+T = [0 80 146.9 207.6 265 320.2 373.7 426.1 477.7 528.3 578.1 627.1 675.3];
+
+y = [0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6000];
+
+exec lagrange.sci
+
+p = lagrange(y,T,3)
+
+printf('The third order polynomial interpolating the given data points is \n')
+disp(p)
+
+D = [625 2143 3215 5785];
+k = horner(p,D)
+
+printf('\n\nThe values of temperature at given EMF values are \n')
+disp(k) \ No newline at end of file