代码搜索:Sign
找到约 10,000 项符合「Sign」的源代码
代码结果 10,000
www.eeworm.com/read/486654/6524154
cpp 2429.cpp
/* This Code is Submitted by wywcgs for Problem 2429 on 2007-01-01 at 17:33:55 */
#include
#include
#include
#include
using namespace std;
const int DN
www.eeworm.com/read/486654/6524599
cpp 1985.cpp
/* This Code is Submitted by wywcgs for Problem 1985 on 2006-11-12 at 19:43:08 */
#include
#include
#include
#include
using namespace std;
const int DN
www.eeworm.com/read/486797/6529358
m parabola.m
function root=Parabola(f,a,b,x,eps)
if(nargin==4)
eps=1.0e-4;
end
f1=subs(sym(f),findsym(sym(f)),a);
f2=subs(sym(f),findsym(sym(f)),b);
if(f1==0)
root=a;
end
if(f2==0)
root=b;
www.eeworm.com/read/486205/6538154
m 7-15.m
%例程7-15 PCM编码
%首先,A律13折线量化的Matlab程序实现如下:
function y=pcmA13(x)
%A律13折线压缩特性
x=x/max(x); % x归一化
z=sign(x); %语音信号是双极性信号,负方向对称
x=abs(x);
for
www.eeworm.com/read/486104/6543550
m parabola.m
function root=Parabola(f,a,b,x,eps)
if(nargin==4)
eps=1.0e-4;
end
f1=subs(sym(f),findsym(sym(f)),a);
f2=subs(sym(f),findsym(sym(f)),b);
if(f1==0)
root=a;
end
if(f2==0)
root=b;
www.eeworm.com/read/485392/6561217
m 7-15.m
%例程7-15 PCM编码
%首先,A律13折线量化的Matlab程序实现如下:
function y=pcmA13(x)
%A律13折线压缩特性
x=x/max(x); % x归一化
z=sign(x); %语音信号是双极性信号,负方向对称
x=abs(x);
for
www.eeworm.com/read/484949/6569290
c fft.c
#include"math.h"
void fft(x,y,n,sign)
/* x,y 长度为n的双精度实型一维数组。x: 开始放变换数据实部,最后放变换结果实部;
y: 开始放变换数据虚部,最后方变换结果虚部;
n: 数据长度,必须为2^m; sign=1时fft()为DFT;sign=-1时fft()为IDFT; */
int n,sign;
double x[],y[];
www.eeworm.com/read/484949/6569295
c dft.c
#include"math.h"
void dft(x,y,a,b,n,sign)
/* x,y,a,b为双精度实型一维数组,x 数据实部,y 数据虚部,a 变换结果实部,b变换结果虚部,
n 数据长度, sign =1时dft()为DFT,sign=-1时dft()为IDFT*/
int n,sign;
double x[],y[],a[],b[];
{ int i,k;
www.eeworm.com/read/483183/6611048
m erfenfa.m
function [x,n,w]=Erfenfa(f,a,b,eps)
% x为根,n为迭代次数,w为先验绝对误差界
if sign(f(a))*sign(f(b))>0
disp('不满足二分法条件!')
return;
end
if nargin==3
eps=1e-5;
end
a1=a;
b1=b;
n=1;
while abs((a-b)/
www.eeworm.com/read/481966/6633385
cpp 1477.cpp
/* This Code is Submitted by wywcgs for Problem 1477 on 2005-03-18 at 16:26:26 */
#include
int main()
{
char s[100000], t;
int sign, isSubStr, lengthS, lengthT;
while