
上QQ阅读APP看书,第一时间看更新
02 Multiplication and Division乘除
从九九乘法到矩阵乘法
“大自然只使用最长的线来编织她的图景;因此,每根织线都能洞见整个大自然的锦绣图景。
Nature uses only the longest threads to weave her patterns, so that each small piece of her fabric reveals the organization of the entire tapestry.
——理查德·费曼(Richard P. Feynman)|美国理论物理学家|1918—1988”
◄ input() 函数接受一个标准输入数据,返回为字符串str类型 ◄ int() 将输入转化为整数 ◄ math.factorial() 计算阶乘 ◄ numpy.cumprod() 计算累计乘积 ◄ numpy.inner() 计算行向量的内积,函数输入为两个列向量时得到的结果为张量积 ◄ numpy.linalg.inv() 计算方阵的逆 ◄ numpy.linspace() 在指定的间隔内,返回固定步长的数组 ◄ numpy.math.factorial() 计算阶乘 ◄ numpy.random.seed() 固定随机数发生器种子 ◄ numpy.random.uniform() 产生满足连续均匀分布的随机数 ◄ numpy.sum() 求和 ◄ scipy.special.factorial() 计算阶乘 ◄ seaborn.heatmap() 绘制热图

