Homework 1_parttwo

# Homework 1_parttwo - -2.0000 5. &amp;amp;gt;&amp;amp;gt; x...

This preview shows pages 1–4. Sign up to view the full content.

Roland Wang Homework #1a PART 2B >> x = [3; 1; 7;] x = 3 1 7 1. >> x' ans = 3 1 7 2. >> x'*x ans = 59 3. 4. >> a = [3 2; 1 0;] a =

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
3 2 1 0 >> b = [7 6 8; 9 5 4;] b = 7 6 8 9 5 4 a. >> c = a*b c = 39 28 32 7 6 8 b. >> d = b'*a d = 30 14 23 12 28 16 c. >> e = a^(-1)*b e =
9.0000 5.0000 4.0000 -10.0000 -4.5000

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -2.0000 5. &gt;&gt; x = sym('x') x = x &gt;&gt; a = [1 1; 2 -1;] a = 1 1 2 -1 &gt;&gt; y = sym('y') y = y &gt;&gt; solve ('y=a*x') ans = y/a 6. &gt;&gt; a = [ 1 0 0 2; 1 2 0 6; 1 3 1 8; 0 0 0 2;] a = 1 0 0 2 1 2 0 6 1 3 1 8 0 0 0 2 &gt;&gt; det(a) ans = 4...
View Full Document

## Homework 1_parttwo - -2.0000 5. &amp;amp;gt;&amp;amp;gt; x...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online