diff options
Diffstat (limited to '587/CH1/EX1.14/example1_14.sce')
-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)
|