p1_mrg_matrix2

2892 days ago by LAC2011

plot((-4*x,3*x/4+19/8),(-1,0)) 
       
var('y') solve((4*x+y==0,6*x-8*y==-19),(x,y)) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left[\left[x = \left(-\frac{1}{2}\right), y = 2\right]\right]
\newcommand{\Bold}[1]{\mathbf{#1}}\left[\left[x = \left(-\frac{1}{2}\right), y = 2\right]\right]
solve(4*x+y==0,y) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left[y = -4 \, x\right]
\newcommand{\Bold}[1]{\mathbf{#1}}\left[y = -4 \, x\right]
solve(6*x-8*y==-19,y) 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left[y = \frac{3}{4} \, x + \frac{19}{8}\right]
\newcommand{\Bold}[1]{\mathbf{#1}}\left[y = \frac{3}{4} \, x + \frac{19}{8}\right]
a=matrix(2,2,(4,1,6,-8));a 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{rr}
4 & 1 \\
6 & -8
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{rr}
4 & 1 \\
6 & -8
\end{array}\right)
b=matrix(2,1,(0,-19));b 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
0 \\
-19
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
0 \\
-19
\end{array}\right)
a**(-1)*b 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
-\frac{1}{2} \\
2
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
-\frac{1}{2} \\
2
\end{array}\right)
a=matrix(3,3,(1,-1,0,2,0,-3,0,2,1));a 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{rrr}
1 & -1 & 0 \\
2 & 0 & -3 \\
0 & 2 & 1
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{rrr}
1 & -1 & 0 \\
2 & 0 & -3 \\
0 & 2 & 1
\end{array}\right)
b=matrix(3,1,(6,16,4));b 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
6 \\
16 \\
4
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
6 \\
16 \\
4
\end{array}\right)
a**(-1)*b 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
8 \\
2 \\
0
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
8 \\
2 \\
0
\end{array}\right)
a=matrix(2,2,(8,6,1,1));a 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{rr}
8 & 6 \\
1 & 1
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{rr}
8 & 6 \\
1 & 1
\end{array}\right)
b=matrix(2,1,(3580,525));b 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
3580 \\
525
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
3580 \\
525
\end{array}\right)
a**(-1)*b 
       
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
215 \\
310
\end{array}\right)
\newcommand{\Bold}[1]{\mathbf{#1}}\left(\begin{array}{r}
215 \\
310
\end{array}\right)