- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 Scipy
Scipy Exercises Exercise 10.1: Least squaresimport numpy as npimport scipy.optimize as optm = 10n = 5num = 20A = np.random.randint(-num, num, size = m * n).reshape(m, n)b = np.random....
2018-05-30 23:29:38 708
原创 Matplotlib
Matplotlib ExercisesExercise 11.1: Plotting a functionimport matplotlib.pyplot as pltimport numpy as npdef f(x): """Compute f(x)""" part1 = np.sin(x - 2) p
2018-05-25 20:24:43 642
原创 Numpy
Numpy ExercisesExercise 9.1: Matrix operationsimport numpy as npfrom scipy.linalg import toeplitzimport randomn = 200m = 500def MyPrint(ans): print (ans) print ("")def Calculate...
2018-05-17 18:48:11 481
原创 LeetCode 50
LeetCode 50. Pow(x, n)Implement pow(x, n), which calculates x raised to the power n (x^n).Example 1:Input: 2.00000, 10Output: 1024.00000Example 2:Input: 2.10000, 3Output: 9.26100Exam...
2018-05-02 19:37:47 584
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人