summaryrefslogtreecommitdiff
path: root/60/CH4/EX4.4/ex_4.sce
blob: 5d04187e4574de2651882d03d57b4c32de1b5fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

 //Example (pg no.136)
 
 // x1 + 2(x2) = 3
 //2(x1) + 4(x2) = 6
 
        A=[1 2;2 4]
            //coefficient matrix of above equations
        b=[3 6]'
        x=A\b
     //for corresponding homogenous system
             //  x1 + 2(x2) = 0
            //2(x1) + 4(x2) = 0
         A=[1 2;2 4]
             //coefficient matrix of above equations
        b=[0 0]'
        x=A\b