月度归档: 2020年12月

1 篇文章

powell法c/c++程序
以下代码的vs2019工程文件打包点此下载去掉运行部分的注释即可 /*powell.cpp*/ #include "stdafx.h" #include <stdio.h> #include <math.h> #include "Powell.h" #include <iostream> #define m 10 /*数组长度m >= 维数n */ float powell::powell_f(float x[]) { float result; //result = (x[0] - 2)*(x[0] - 2) + (x[1] - 3)*(x&…