-
贝塞尔曲线示例
#include < iostream >
#include < 矢量 >
#include < math.h >
#include"BezierPoint.h"
使用命名空间 std ;
BezierPoint 贝塞尔 (方法 < BezierPoint > & pts,双 t) ;
双选择 (双 a,双 b) ;
双 factorial(double num) ;
int main(void) {
方法 < < BezierPoint >> 方法警校 ;
char endPointCount = 0;
双 inx ;
双 iny ;
int ptCount = 0;
int 终结点 ;
双 deltaT ;
cin >> ptCount >> deltaT ;
为 (int 我 = 0 ; 我 < ptCount; i + +) {
cin >> inx >> iny >> 终结点 ;
BezierPoint p iny inx) ;
如果 (endPointCount = = 0 & & 终结点 = = 1) {
pts.push_back (方法 < BezierPoint > ()) ;
pts[pts.size()-1].push_back(p) ;
endPointCount + +;
继续 ;
}
pts[pts.size()-1].push_back(p) ;
如果 (endPointCount! = 0 & & 终结点 = = 1 & & 我! = ptCount-1) {
pts.push_back (方法 < BezierPoint > ()) ;
pts[pts.size()-1].push_back(p) ;
endPointCount + +;
}
}
为 (std::s
- 2022-03-13 19:08:01下载
- 积分:1
-
共轭梯度法求解有限元线性方程组,用列为20阶对称正定矩阵
共轭梯度法求解有限元线性方程组,用列为20阶对称正定矩阵-Conjugate gradient method for solving linear equations of finite element used as a 20-order symmetric positive definite matrix
- 2022-03-31 01:59:29下载
- 积分:1
-
BDF法解分数阶微分方程,分数阶导数定义系数通过fourier法计算
BDF法解分数阶微分方程,分数阶导数定义系数通过fourier法计算-BDF method of fractional differential equations, fractional derivative definition coefficient calculated by fourier
- 2023-07-24 19:50:03下载
- 积分:1
-
fortran程序,迭代常微分方程求解器,包括源代码、使用说明。...
fortran程序,迭代常微分方程求解器,包括源代码、使用说明。-fortran program, iterative solver of ordinary differential equations, including source code, use the instructions.
- 2022-01-25 14:54:41下载
- 积分:1
-
数据结构与算法练习
数据结构与算法练习,经典数据结构与算法的C语言实现,有高精度运算、排序、动态规划、海量数据处理、回溯、递归、搜索、图论
链表、操作系统相关等算法与数据机构实现。
- 2023-05-08 17:00:03下载
- 积分:1
-
输入三角形的三点坐标,计算三角形面积,周长
输入三角形的三点坐标,计算三角形面积,周长-Enter the three coordinates of the triangle to calculate the triangle area, perimeter
- 2022-08-25 19:47:59下载
- 积分:1
-
哈夫曼压缩文件解压缩
哈夫曼压缩解压缩文件。使用自适应哈夫曼,在 *.asv 文件中,这可以解压缩压缩保存的所有文件类型。包含的所有文件。
- 2022-07-16 08:40:07下载
- 积分:1
-
RS编码和译码的Verilog代码
里的所罗门RS编解码方案,建立工程后可直接编译调试,对于学习RS编码原理的人员可以作为一个例子学习,也可以应用于相应的系统中
- 2022-01-27 19:57:01下载
- 积分:1
-
高斯
gauss-seidel迭代法解Ax=b的解-Gauss- Seidel iterative method for Ax = b Solution
- 2022-05-21 18:58:32下载
- 积分:1
-
数据挖掘Apriori算法
资源描述从文件中读取每一行字符串存入向量中
统计一项备选集支持度
生成一项频繁集
生成二项频繁项备选集
生成高项频繁项备选集
统计备选集支持度
生成高项频繁集
生成所有项频繁集
输出一项频繁集到文件中
输出高项频繁集到文件中
- 2022-02-21 08:53:55下载
- 积分:1