代码搜索:查表法
找到约 10,000 项符合「查表法」的源代码
代码结果 10,000
www.eeworm.com/read/460348/7252973
c dic_seqlist_binsearch.c
/* 本程序提供了用顺序表实现字典的情况下
的二分法检索算法*/
#include
#define TRUE 1
#define FALSE 0
#define MAXNUM 100
typedef int KeyType ;
typedef struct {
KeyType key; /* 字典元素的关键码字
www.eeworm.com/read/457454/7325318
m entropy_max_2d.m
%2-d 最大熵法(递推方法)
close all
clear all;
clc;
tic
a=imread('Im.tif');
subplot(1,2,1);
imshow(a);
a0=double(a);
[m,n]=size(a);
h=1;
a1=zeros(m,n);
% 计算平均领域灰度的一维灰度直方图
for i=1:m
www.eeworm.com/read/456386/7350059
c thrice.c
/* 用弦截法求解方程的根 */
# include
# include
float f(float x)
{
float y;
y = ((x-8.0)*x+12.0)*x - 30.0;
return y;
}
float xpoint(float x1, float x2) /* 定义函数xpoint,求出弦
www.eeworm.com/read/452964/7428582
txt 例4.9.txt
例4.9 用弦截法求方程f(x)=x3次方-5x2次方+16x-80=0的根。
#include
#include
#include
using namespace std;
double f(double); //函数声明
double xpoint(double, double);
www.eeworm.com/read/451691/7458132
m bisecmethod.m
function bisecMethod(f_name,a,b)
fprintf('二分法求非线性方程得根\n\n');
tolerance=1e-6; it_limit=30;
fprintf(' It. a c b fa=f(a) ');
fprintf(' fb=f(b) abs(fb-fa)\n');
it=0;
Y_a=f
www.eeworm.com/read/449755/7497013
txt b.txt
函数名: bar
功 能: 画一个二维条形图
用 法: void far bar(int left, int top, int right, int bottom);
程序例:
#include
#include
#include
#include
int main(void)
www.eeworm.com/read/449755/7497016
txt e.txt
函数名: ecvt
功 能: 把一个浮点数转换为字符串
用 法: char ecvt(double value, int ndigit, int *decpt, int *sign);
程序例:
#include
#include
#include
int main(void)
{
char *st
www.eeworm.com/read/449755/7497018
txt u.txt
返回>>C语言函数大全
函数名: ultoa
功 能: 转换一个无符号长整型数为字符串
用 法: char *ultoa(unsigned long value, char *string, int radix);
程序例:
#include
#include
int main( void )
{
unsig
www.eeworm.com/read/447730/7546090
c pse.c
/*********************************************************************
PSE.C - 用FFT实现功率谱估计
程序输入一个加入噪声的正弦信号, 采用周期图法来实现功率谱分析
参数如下:
slice = 每次FFT的长度,缺省为256;
numav = FFT取平均的组数,缺省为16;
ovlap
www.eeworm.com/read/435844/7782900
m exm033_1.m
%exm033_1.m
%直接对域赋值法产生"单构架"。
green_house.name='一号房'; %构架域由(构架名).(域名)标识。
green_house.volume='2000立方米'; %
green_house.parameter.temperature=[31.2 30.4 31.6 28.7