summaryrefslogtreecommitdiff
path: root/1299/CH10/EX10.3/example10_3.sce
blob: 0f7d63545ae5dec003186956be30b98ee5f146f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 10.3
//determination of quadratic form
clear;clc;
xdel(winsid());
//from the given euation we get the following 
A=[9 1 -2;1 4 -1;-2 -1 1]
det(A)
A1=[9 1;1 4]
det(A1)
//since determinant of A and A1 is positive
//therefore W is positive definite.
disp("W is positive definite")