Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added inverse matrix notation in Octave to MX3 #530

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions source/linear-algebra/source/04-MX/03.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<title>Warm Up</title>
<activity>
<introduction>
<p>
<task><p>
Which of the following matrices is invertible? Find the inverse for the one that is invertible.
<ol marker="A.">
<li>
Expand All @@ -32,8 +32,42 @@
</li>
</ol>
</p>
</introduction>
</activity>
</task>

<task>
<p>
Check your work using technology. Read the examples carefully, and
run them in the Octave cell below.
</p>
<p>
Recall the syntax for entering and multiplying matrices.
</p>
<cd>
A = [1 -1 0 ; -1 1 0 ; 1 0 1]
B = [1 -1 3 ; -1 1 -1 ; 1 0 2]
A*B
</cd>

<p>
To invert a matrix <m>A</m>, the syntax is
<cd>
inv(A)
</cd>
When you run this code, does it match your work from part (a)?
</p>
</task>
</introduction>
</activity>
<sage language="octave">
<input>
A = [1 -1 0 ; -1 1 0 ; 1 0 1]
B = [1 -1 3 ; -1 1 -1 ; 1 0 2]
A*B
inv(A)
inv(B)
</input>
</sage>

</subsection>

<subsection><title>Class Activities</title>
Expand Down
Loading