美文网首页
方程组的几何解释

方程组的几何解释

作者: 一百万个不确定 | 来源:发表于2019-11-06 17:20 被阅读0次

线性代数

方程组的几何解释

线性组合

把向量相加得到 v+w, 随后乘以各自的常量c和d,得到cv和dw,将他们相加得到线性组合 cv+df

形如:
cv + dw = c \left\{ \begin{matrix} 1 \\ 1 \\ \end{matrix} \right\} + d \left\{ \begin{matrix} 2 \\ 3 \\ \end{matrix} \right\} = \left\{ \begin{matrix} c+2d \\ c+3d \\ \end{matrix} \right\} \\

点乘

\left\{ \begin{matrix} 2 \\ 3 \\ \end{matrix} \right\}*\left\{ \begin{matrix} 2 \\ 3 \\ \end{matrix} \right\} = 2*2+3*3=14

向量的长度

\sqrt{\left\{ \begin{matrix} 2 \\ 3 \\ \end{matrix} \right\}*\left\{ \begin{matrix} 2 \\ 3 \\ \end{matrix} \right\}} = \sqrt{14}

内积

\left\{ \begin{matrix} 2 & -1 \\ -1 & 2 \\ \end{matrix} \right\} \left\{ \begin{matrix} x \\ y \\ \end{matrix} \right\} = \left\{\begin{matrix} 2x - y \\ -x + y \\ \end{matrix}\right\}

方程
2x +y = 3 \\ x - 2y = -1

矩阵模式

写成矩阵模式就是:
\left\{ \begin{matrix} 2 & 1 \\ 1 & -2 \\ \end{matrix} \right\} \left\{ \begin{matrix} x \\ y \\ \end{matrix} \right\} = \left\{ \begin{matrix} 3 \\ -1 \\ \end{matrix} \right\}\\ A X =B

逆矩阵

aX=b \\ then \\ x = a^{-1}b

逆矩阵的特性
A^{-1}A=\left\{ \begin{matrix} 1 & 0 \\ 0 & 1 \\ \end{matrix} \right\}

Row picture 行图像

把属于方程的图像画出来,交点就是解

import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-5, 5, 50)
y = 3-2*x
y2 = (x+1)/2

plt.figure(num=3, figsize=(8, 5),)
plt.xlim((-5, 5))
plt.ylim((-5, 5))

ax = plt.gca()
ax.spines['bottom'].set_position(('data', 0))
ax.spines['left'].set_position(('data',0))

plt.plot(x, y)
plt.plot(x, y2)

plt.show()
1573030360210.png

Column Picture 列图像

import numpy as np
import matplotlib.pyplot as plt

soa = np.array([[0, 0, 2, 1], [0, 0, 1, -2], [2, 1, 1, -2]])
X, Y, U, V = zip(*soa)

plt.figure(num=3, figsize=(8, 5),)
plt.xlim((-5, 5))
plt.ylim((-5, 5))

ax = plt.gca()
ax.spines['bottom'].set_position(('data', 0))
ax.spines['left'].set_position(('data',0))

ax.quiver(X, Y, U, V, angles='xy', scale_units='xy', scale=1)
plt.annotate(r'3, -1', xy=(3, -1), xycoords='data', xytext=(+30, -30),
             textcoords='offset points', fontsize=16,
             arrowprops=dict(arrowstyle='->', connectionstyle="arc3,rad=.2"))
plt.show()
1573031004392.png

相关文章

  • 方程组的几何解释

    从一个例子讲起:2个方程,2个未知数的方程组写成矩阵形式为第一个矩阵称为系数矩阵A,第二个矩阵称为x,第三个矩阵称...

  • 方程组的几何解释

    线性代数 方程组的几何解释 线性组合 把向量相加得到 v+w, 随后乘以各自的常量c和d,得到cv和dw,将他们相...

  • MIT-18.06-线性代数(第一讲)

    第一讲 —— 方程组的几何解释 本讲将讨论线性代数的基础,求解线性方程组,方程组有n个方程,n个未知数 行图像(R...

  • 1.1、方程组的几何解释

    html与pdf笔记更新链接(Google云盘) 绪论 为了复习线性代数,顺便练习markdown写作,我准备用寒...

  • 线性代数之——行图像和列图像

    1. 线性方程组的几何解释 线性代数的中心问题就是解决一个方程组,这些方程都是线性的,也就是未知数都是乘以一个数字...

  • lesson 01 方程组的几何解释

    课程视频地址: http://open.163.com/movie/2010/11/7/3/M6V0BQC4M_M...

  • 线性代数——(2)线性方程组

    线性方程组 方程组的几何意义 二元线性方程组 三元线性方程组 线性方程组和矩阵

  • 【MIT】01-方程组的几何解释

    内容 第一课主要内容是关于线性方程组的几何解释,如何从行、列的角度去理解一个线性方程组所代表的含义。 Row Pi...

  • 第1课 方程组的几何解释

    行图像:一个方程显示一个图像 列图像:同一自变量的系数为一个向量 矩阵:行与列组合成矩阵 例:方程组: 行形式:​...

  • MIT 线性代数 1.方程组的几何解释

    假设两个方程:行图像表示两条直线的交点列图像表示两个列向量的线性组合得到右侧向量 思考:左侧的线性组合可以得到任意...

网友评论

      本文标题:方程组的几何解释

      本文链接:https://www.haomeiwen.com/subject/imtpbctx.html