代码搜索:相差法
找到约 10,000 项符合「相差法」的源代码
代码结果 10,000
www.eeworm.com/read/309828/3703733
m funfminu.m
options(6)=1;%拟牛顿法的DFP公式
options(7)=0;%混合的二次型和三次型插值
[x,options]=fminu('funrosen',[-1.2,2],options)
y=options(8) %输出在最后极值点的函数值
n=options(10)%给出函数计算次数
www.eeworm.com/read/309176/3706588
cs sample5_13.cs
/*
* 示例程序Sample5_13: NLEquations类的求非线性方程组一组实根的蒙特卡洛法
*/
using System;
using CSharpAlgorithm.Algorithm;
namespace CSharpAlgorithm.Sample
{
class Class1
{
// 建立NLEquation的子类,在其中重
www.eeworm.com/read/277819/4150537
h 10_4.h
#ifndef SEARCH_METHODS
#define SEARCH_METHODS
//用顺序查找法在数组list中查找值为key的元素
//若找到,返回该元素下标,否则返回-1
template
int SeqSearch(T list[], int n, T key)
{
for(int i=0;i < n;i++)
if (l
www.eeworm.com/read/277819/4150668
h 10-4.h
#ifndef SEARCH_METHODS
#define SEARCH_METHODS
//用顺序查找法在数组list中查找值为key的元素
//若找到,返回该元素下标,否则返回-1
template
int SeqSearch(T list[], int n, T key)
{
for(int i=0;i < n;i++)
if (l
www.eeworm.com/read/392094/2516121
cs sample5_13.cs
/*
* 示例程序Sample5_13: NLEquations类的求非线性方程组一组实根的蒙特卡洛法
*/
using System;
using CSharpAlgorithm.Algorithm;
namespace CSharpAlgorithm.Sample
{
class Class1
{
// 建立NLEquation的子类,在其中重
www.eeworm.com/read/359766/2972139
m gauss.m
%顺序gauss消去法,gauss函数
function [A,u]=gauss(a,n)
for k=1:n-1
%消去过程
for i=k+1:n
for j=k+1:n+1
%如果a(k,k)=0,则不能消去
if abs(a(k,k))>1e-6
%计算第k步的增广矩阵
www.eeworm.com/read/359766/2972162
m funfminu.m
options(6)=1;%拟牛顿法的DFP公式
options(7)=0;%混合的二次型和三次型插值
[x,options]=fminu('funrosen',[-1.2,2],options)
y=options(8) %输出在最后极值点的函数值
n=options(10)%给出函数计算次数
www.eeworm.com/read/254498/4381989
cs sample5_13.cs
/*
* 示例程序Sample5_13: NLEquations类的求非线性方程组一组实根的蒙特卡洛法
*/
using System;
using CSharpAlgorithm.Algorithm;
namespace CSharpAlgorithm.Sample
{
class Class1
{
// 建立NLEquation的子类,在其中重
www.eeworm.com/read/295104/8187181
cpp divi.cpp
#include
#include
#include
#define Maxint 31623
int prime[Maxint+1];
int n_prime,best;
int calc_prime(int n) //用筛法求出在n范围内的素数列表
{
int i,j;
bool isprime[Ma
www.eeworm.com/read/394257/8240244
asm 流水灯2.asm
;查表法广告流水灯
ORG 00H
MOV P2,#80H
START: MOV DPTR,#TABLE ; 将表的地址存入数据指针
LOOP: CLR A
MOVC A,@A+DPTR ;到数据指针所指的地址取码
CJNE A,#01,LOOP1 ; 取出的码是否01H