- 博客(7)
- 收藏
- 关注
原创 Python中的Matplotlib
MatplotlibMatplotlib由大量可视化库组成matplotlib.pyplot是绘制各类可视化图形的命令子库,相当于快捷方式。import matplotlib.pyplot as pltplot绘图函数:保存数据的维度秩(rank):轴的数量ndarray对象的属性属性说明.ndim秩,即轴的数量或维度的数量.shapendarray对象的尺度,对于矩阵,n行m列.sizendarray对象的元素个数,相当于.shape中的n*m的值.dty...
2019-01-11 21:50:11
493
原创 高精度运算
高精度运算所谓高精度算法,即用数组来储存整数,模拟手算的方法进行四则运算。小学生算术阶乘的准确性高精度运算类 bign小学生算术计算两个整数在相加时需要多少次进位。假设输入的数字都不超过9个数字。 Input example: 123 456 555 555 123 594 0 0 Output example: 0 3 1// int 的上限是2...
2018-08-15 17:58:27
433
原创 Matlab —— 基础绘图
基础绘图Basic plottingGraphical object propertiesBasic PlottingPlot from “Data”StratagiesGenerate the numeric values of function over a specific rangeDisplay the data “point” in a graph...
2018-08-10 17:30:31
1197
原创 搜索
搜索线性搜索二分搜索散列法线性搜索从数组开头顺次访问各元素,检查该元素是否与目标元素相等。 一旦相等则返回该元素的位置并结束搜索。如果检查到数组末尾仍未发现目标值,则返回一个特殊值来说明该情况。线性搜索的效率很低,但适用于任何算法。AOJ : ALDS1_4_A最容易想到的实现:linearSearch() for i 从 0 到 n ...
2018-08-05 16:43:20
5215
原创 Matlab —— 档案与变量存取
档案与变量存取Variables : string, structure, cellData accessVariable (Data) Type Conversion double() Convert to double precision single() Conver to single precision int8() Conve...
2018-08-04 23:43:02
602
原创 Matlab —— 结构化程式和自定函数
结构化程式和自定函数Script writing Structured programmingUser-defined functionScript writingFlow Control%%if, elseif, else // Execute statements if condition id truefor // ...
2018-08-02 18:00:02
771
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人