diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /587/CH1/EX1.14 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '587/CH1/EX1.14')
-rwxr-xr-x | 587/CH1/EX1.14/example1_14.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/587/CH1/EX1.14/example1_14.sce b/587/CH1/EX1.14/example1_14.sce new file mode 100755 index 000000000..80992ae1b --- /dev/null +++ b/587/CH1/EX1.14/example1_14.sce @@ -0,0 +1,10 @@ +clear;
+clc;
+
+//Example1.14[Non-linear equation in two variable]
+//x1=x, x2=y
+function[f]=f2(x)
+f(1)=x(1)-x(2)-4;
+f(2)=x(1)^2+x(2)^2-x(1)-x(2)-20;
+deff('[f]=f2(x)',['f_1=x(1)-x(2)-4','f_2=x(1)^2+x(2)^2-x(1)-x(2)-20'])
+//To get the desired output assign an initial value such as x0=[1,1], [xs,fxs,m]=fsolve(x0',f2)
|