matlab assignment questions

Upload: arun-sankar

Post on 06-Jul-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/17/2019 Matlab Assignment Questions

    1/1

    Matlab Assignment Questions

    1. Given the system of equations

    − 3x2 + 7x3 = 2 ……………..(i)

     x1 + 2x2 − x3 = 3 …………...(ii)

    5x1 − 2x2 = 2………………..(iii)

     (a) Compute the ete!minant.

    (") #se C!ame!$s !u%e to so%ve fo! the x$s

    (&) #se Gauss e%imination 'ith pa!tia% pivotin to so%ve fo! the x$s.

    () u"stitute you! !esu%ts "a&* into the o!iina% equations to &he&* you! so%ution.

    2. Gene!ate a fou! iit num"e! that satisfies the fo%%o'in p!ope!ties

    • he sum of a%% the iits is 15

    • he thi! iit su"t!a&te f!om the fi!st iit is ,

    • he %ast iit is ha%f the se&on iit• um of fi!st an thi! iit ives the se&on iit

    a) Conve!t the a"ove info!mation into -x= fo!mat.

     ") /!ite a mat%a" &oe to so%ve the a"ove p!o"%em usin Gauss e%imination

    metho 'ith pa!tia% pivotin

    &) 0e!ify you! !esu%t "y so%vin usin "a&*'a! s%ash ope!ato!()