摘要: 利萨茹曲线 参数方程定义: Key_Function np.sin函数, 生成sin正弦函数 Code import numpy as np import matplotlib.pyplot as plt a = 8 b = 9 t = np.linspace(-np.pi, np.pi, 201) 阅读全文
posted @ 2019-08-23 22:57 draven123 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 斐波那契数列的两种方法 Key_Function np.matrix函数, 创建矩阵 rint函数, 对浮点数取整, 但不改变浮点数类型 Code 斐波那契数列的通项公式 通项公式 斐波那契数列与黄金分割率 斐波那契数列,这样一个完全是自然数的数列,通项公式却是用无理数来表达的。而且当n趋向于无穷大 阅读全文
posted @ 2019-08-23 00:22 draven123 阅读(695) 评论(0) 推荐(0) 编辑
摘要: 除法 Key_Function np.divide方法, 返回带小数位的结果 np.true_divide方法, 返回带小数位的结果 np.floor_divide方法, 返回只有整数位的结果 / 运算符, 返回带小数位的结果 // 运算符, 返回只有整数位的结果 模运算 模运算就是取余数 Key_ 阅读全文
posted @ 2019-08-23 00:01 draven123 阅读(337) 评论(0) 推荐(0) 编辑