算法
耀刀
这个作者很懒,什么都没留下…
展开
-
powell法c/c++程序
#include <stdio.h>#include <math.h>#define m 10 /*数组长度m >= 维数n */float f(float x[]);void mjtf(int n,float x0[],float h,float s[],float a[],float b[]);void mhjfgf(int n,float a[],float b[],float flag,float x[]);void mb原创 2020-12-10 17:05:57 · 1387 阅读 · 4 评论 -
区间消去法+二次插值法求极小值,并调用matlab绘制图像(c/c++程序)
/*example.cpp*/#include<stdio.h>#include<string.h>#include<math.h>#include<engine.h>#define dataNum 100//忽略4096错误#pragma warning(disable:4996)int mat_plot(Engine* eg, double* x, double* y, int N, char* LineStyle, double Li原创 2021-02-21 11:54:32 · 1676 阅读 · 0 评论