代码搜索:预置数
找到约 10,000 项符合「预置数」的源代码
代码结果 10,000
www.eeworm.com/read/372033/9524427
m yj2.m
%定义遗传算法参数
NIND=40; %个体数目(Numbe of individuals)
MAXGEN=500; %最大遗传代数(Maximum number of generations)
NVAR=20; %变量的维数
PRECI=20; %变量的二进制位数(Precision
www.eeworm.com/read/371508/9551029
m yj8.m
%定义遗传算法参数
Dim=20; %变量维数
NIND=20; %个体数目(Number of individuals)
Preci=20; %变量的二进制位数(Precision of variables)
MAXGEN=100; %最大遗传代数(Maximum number of ge
www.eeworm.com/read/371508/9551033
m yj2.m
%定义遗传算法参数
NIND=40; %个体数目(Numbe of individuals)
MAXGEN=500; %最大遗传代数(Maximum number of generations)
NVAR=20; %变量的维数
PRECI=20; %变量的二进制位数(Precision
www.eeworm.com/read/371169/9563812
c 三 hill.c
/********************************************************************/
#define N 4 /*[注]:修改4为你所要的矩阵阶数*/
#include "stdio.h"
#include "conio.h"
/*js()函数用于计算行列式,通过递归算法实现*/
int js(s,n)
int
www.eeworm.com/read/174605/9580067
cpp p4-197.cpp
#include
#include
#include
using namespace std;
//返回一个Fibonacci数,其由generate_n()算法调用
int Fibonacci1(void)
{
static int r;
static int f1 = 0;
sta
www.eeworm.com/read/169818/9836463
m mutation.m
function [newpop]=mutation(pop,pm)
global popsize N length;
for i=1:popsize
if(rand
www.eeworm.com/read/365698/9850772
m atken.m
function f = Atken(x,y,x0)
syms t;
if(length(x) == length(y))
n = length(x);
else
disp('x和y的维数不相等!');
return;
end %检错
y1(1:n) = t;
www.eeworm.com/read/365527/9858681
m exa2_43.m
A=[1 2 2; -1 2 1;3 5 2];
B=[3 4 6;5 8 9;4 5 3];
a=A>3 %求A中比3大的数
b=(A
www.eeworm.com/read/168645/9903597
bas nlmivmainmodule.bas
Attribute VB_Name = "MainModule"
Sub Main()
Dim n As Integer, m As Integer
Dim s As String
' 3个未知数
m = 3
' 2次方程
n = 2
' 分配初值和解的内存
ReDim x(n) As Dou
www.eeworm.com/read/167621/9958626
pas shuru.pas
unit shuru;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls, Buttons;
const long=251;//定义常量控制数组长度
const MM=10000;//定义一个比已知数都