summaryrefslogtreecommitdiff
path: root/1670/CH9/EX9.14/9_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1670/CH9/EX9.14/9_14.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1670/CH9/EX9.14/9_14.sce')
-rwxr-xr-x1670/CH9/EX9.14/9_14.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1670/CH9/EX9.14/9_14.sce b/1670/CH9/EX9.14/9_14.sce
new file mode 100755
index 000000000..04e943a09
--- /dev/null
+++ b/1670/CH9/EX9.14/9_14.sce
@@ -0,0 +1,20 @@
+//Example 9.14
+//Particular Solution
+//Page no. 296
+clc;clear;close;
+
+x=poly(0,'x')
+n=2;
+f=x^(n)+5*x^(n-1)+4*x^(n-2);
+z=roots(f)
+disp(z,f)
+printf('\n\n')
+printf(' n n\nC.F. = ')
+for i=1:n
+ printf('c%i(%g)',i,z(i))
+ if i~=n then
+ printf(' + ')
+ end
+end
+C=18;
+printf('\n\n\t n\t \nP.I = %g(3)',C) \ No newline at end of file