summaryrefslogtreecommitdiff
path: root/70/CH6/EX6.1.1/6_1_1.sci
diff options
context:
space:
mode:
Diffstat (limited to '70/CH6/EX6.1.1/6_1_1.sci')
-rwxr-xr-x70/CH6/EX6.1.1/6_1_1.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/70/CH6/EX6.1.1/6_1_1.sci b/70/CH6/EX6.1.1/6_1_1.sci
new file mode 100755
index 000000000..d9fddf923
--- /dev/null
+++ b/70/CH6/EX6.1.1/6_1_1.sci
@@ -0,0 +1,11 @@
+//313
+clear;
+close;
+clc;
+disp('f(x,y)=x^2-10*x*y+y^2');
+a=1;
+c=1;
+deff('[f]=f(x,y)','f=x^2-10*x*y+y^2');
+disp(f(1,1),'f(1,1)=');
+disp('The conditions a>0 and c>0 ensure that f(x,y) is positive on the x and y axes. But this function is negative on the line x=y,because b=-10 overwhelms a and c. ');
+//end \ No newline at end of file