代码搜索:Sign
找到约 10,000 项符合「Sign」的源代码
代码结果 10,000
www.eeworm.com/read/134780/13973751
cpp ll1.cpp
//朱贺 民航学院
#include"iostream.h"
#include"string.h"
#include "iomanip.h"
#include "stdlib.h"
struct stack{
int top;
char s[10];
}*sign;
char *M[5][6]={{"TP","$","$","TP","$","$"},
{"$","+T
www.eeworm.com/read/134514/13985530
c 2-12.c
#include
#include
void main(void)
{
int c,sign,result;
printf("input a string [digits]:\n");
for(c=getchar();isspace(c);c=getchar());
sign=(c=='-')?-1:1;
if(c=='+'||c=
www.eeworm.com/read/236814/13997908
m chap5_6f.m
function [kx,BsJ]=pid_fm_gaf(kx,BsJ)
global rin yout timef F
a=50;b=400;
ts=0.001;
sys=tf(b,[1,a,0]);
dsys=c2d(sys,ts,'z');
[num,den]=tfdata(dsys,'v');
u_1=0;u_2=0;
y_1=0;y_2=0;
e_1=0;
www.eeworm.com/read/235848/14049357
c coder_frac.c
#define FIX_ERRORS
#define DO_LOG
#define MAX_SCALE_0
//#define MAX_SCALE_1
/** allowing scales hurts about 0.1 bpp,
* fixes and escapes are both reduce by about 200 (1400 -> 1200)
* b
www.eeworm.com/read/235848/14049445
c coder_vq.c
#define QUANTIZER 0
/*****
on checa 256 @ 0.50 bpp
z = 2 : psnr 36.89
z = 0 : psnr 37.16
so fixing is slightly better, but not much
on checa 256 @ 0.25 bpp
z = 10 : psnr 31.78
z
www.eeworm.com/read/132946/14065524
m chap5_4f.m
function [kx,BsJ]=pid_fm_gaf(kx,BsJ)
global rin yout timef F
a=50;b=400;
ts=0.001;
sys=tf(b,[1,a,0]);
dsys=c2d(sys,ts,'z');
[num,den]=tfdata(dsys,'v');
u_1=0;u_2=0;
y_1=0;y_2=0;
e_1=0;
www.eeworm.com/read/132413/14089887
c brent.c
#include
#define ITMAX 100
#define CGOLD 0.3819660
#define ZEPS 1.0e-10
#define SIGN(a,b) ((b) > 0.0 ? fabs(a) : -fabs(a))
#define SHFT(a,b,c,d) (a)=(b);(b)=(c);(c)=(d);
float brent
www.eeworm.com/read/204090/15344755
m rect.m
% rect.m
% 实现一个单相不控的全桥整流器
function[sys,xo]=rect(t,x,u,flag,R1,C,R)
% 由于不是离散系统,输出参数没有包括ts
% 此外需要用户输入3个新的参数
% 交流母线电阻R1,直流滤波电容C,负载电阻R
% 根据不控全桥整流电路的原理,列写微分方程
a1=-(1/R1+1/R)/C;
a2=-1/R/C;
b1=1
www.eeworm.com/read/202262/15387468
m riddling.m
%产生一个N(0,1)正态分布随机数
%采用筛选法,精度较高
%其他方法可参阅《现代应用数学手册--概率统计与随机过程卷》清华大学出版社马振华主编
%function y=riddling()
function y=riddling()
sign=0;
while 1
x=rand(1,2);
v1=2*x(1)-1;v2=2*x(2)-1;
s=v1^2
www.eeworm.com/read/201477/15407733
h curr2.h
#ifndef Currency_
#define Currency_
#include
#include
enum sign {plus, minus};
class Currency {
public:
// constructor
Currency(sign s = plus, un