📄 f2.c
字号:
/************************************************ file f2.c ****/
double eval(str, length, vect, genes)
char str[]; /* string representation */
int length; /* length of bit string */
double vect[]; /* floating point representation */
int genes; /* number of elements in vect */
{
double ans;
ans = (vect[0]*vect[0] - vect[1]);
ans *= ans;
ans = 100.0*ans + (1.0 - vect[0])*(1.0 - vect[0]);
return (ans);
}
/** end of file **/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -