- 博客(3)
- 收藏
- 关注
原创 第13周作业 #高级编程技术
matplotlibExercise 10.1: Least squares Generate matrix A ∈ Rm×n with m > n. Also generate some vector b ∈ Rm. Now find x = argmin x ||Ax−b||2. Print the norm of the residual.import nump...
2018-05-30 22:47:05 274
原创 第12周作业 #高级编程技术
matplotlibExercise 11.1: Plotting a function Plot the function f(x) = sin2(x−2)e−x2 over the interval [0,2]. Add proper axis labels, a title, etc.import matplotlib.pyplot as pltimport ...
2018-05-29 23:35:37 196
原创 第11周作业 #高级编程技术
numpy Generate matrices A, with random Gaussian entries, B, a Toeplitz matrix, where A ∈Rn×m and B ∈Rm×m, for n = 200, m = 500.import numpy as npfrom scipy.linalg import toeplitzA = np.ra...
2018-05-17 20:10:31 225
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人