1.功能
利用广义逆求解无约束条件下的优化问题(C语言)
2.参数说明
int m : 非线性方程组中方程个数
int n : 非线性方程组中未知数个数
double eps1 : 控制最小二乘解的精度要求
double eps2 : 用于奇异值分解中的控制精度要求
double x[n] : 存放非线性方程组解的初始近似值X(0),要求各分量不全为0
int ka : Ka=max{m,n}+ ...
http://www.bc-cn.net/Article/kfyy/cyy/jc/200409/5_4.html
float aver(float a[5])
{
int i
float av,s=a[0]
for(i=1 i<5 i++)
s=s+a[i]
av=s/5
return av
}
void main()
{
float sco[5],av
int i
UC Library Extensions
UnderC comes with a pocket implementation of the standard C++ libraries, which is a reasonably faithful subset. This documentation describes those UnderC functions and classes which are not part of the C++ standard.
UC Library
Builtin functions:
Most of these are standard C ...