![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
lixiu1023
123
展开
-
曲线拟合多项式
void gauss_solve(int n,double A[],double x[],double b[]) { int i,j,k,r; double max; for (k=0;k<n-1;k++) { max=fabs(A[k*n+k]); /*find maxmum*/ r=k; for (i=k+1...原创 2020-03-30 16:10:43 · 213 阅读 · 0 评论 -
求解线性方程组
#define OEDER 8//order 秩 u8 SolvingLinearEquations(void)//u16 dat,u8 oeder { int i, j, m, n=OEDER, r=OEDER, t; //i,j,m,k,t 作为循环计数变量;n表示有n个未知数,即n元;r表示有r个方程组成方程组。 // scanf("%d %d", &n,...原创 2020-03-30 13:52:56 · 216 阅读 · 0 评论 -
lcd画圆算法
#include "math.h" #define PI 3.14159265 #define LCDWIDTH 800 #define LCDHEIGHT 480 //x,y:坐标 //color:颜色 //angle:角度 //radius:半径 void LCD_DrawPoint_Rotate(u16 x,u16 y,u16 color, int angle,int radius) ...原创 2019-03-14 00:17:07 · 2532 阅读 · 0 评论 -
strstr函数如果给返回的地址里写内容再ucosIII下有可能会导致stm32死机
strstr函数如果给返回的地址里写内容再ucosIII下有可能会导致stm32死机。 sum2 = strstr((const char *)sum, "\r\n"); sum2[0] = '\0';原创 2019-07-28 16:51:36 · 249 阅读 · 0 评论 -
cjosn在stm32上移植应用
下载地址:https://sourceforge.net/projects/cjson/ 1,添加到工程中就可直接使用了 2,把堆和栈弄大一点; 3应用 typedef struct { char firstName[32]; char lastName[32]; char email[64]; int age; float height...原创 2019-08-21 16:23:24 · 204 阅读 · 0 评论