代码搜索:Sign
找到约 10,000 项符合「Sign」的源代码
代码结果 10,000
www.eeworm.com/read/175562/9541316
m jieyasuo.m
function y=jieyasuo(x) %function y=lianghua(x)
%要用 x=x/max(x);
z=sign(x);
x=abs(x);
for i=1:length(x);
if((x(i)>=0)&(x(i)=1/4&x(
www.eeworm.com/read/175562/9541317
m bianma.m
function f=bianma(y)
%编码
t=length(y);
f=zeros(t,8);
z=sign(y);
y=y*128;
y=fix(y);
y=abs(y);
for i=1:length(y)
for j=6:-1:0
f(i,8-j)=fix(y(i)/(2^j));
y(i)=mod(y(i),(2^j));
www.eeworm.com/read/175487/9544875
2 iso8859.2
#
# $Id: iso8859.2,v 1.1.1.1 2005/09/21 21:40:40 mleisher Exp $
#
# SAMPLE TTF2BDF MAPPING TABLE
#
# Mapping table from Unicode to ISO8859-2. Names are from the Unicode
# Character Database on
www.eeworm.com/read/366666/9805507
cpp usaco_4_4_1_shuttle.cpp
/*
PROB: shuttle
LANG: C++
*/
/*
这道题乍看之下是用搜索来解决,不过既要不超时不超空间,用能保证搜出来的是正确解,即按照字典序,需要很强大的搜索技巧,只少我是没搜出来。
参考了网上的方法,原来这道题主要是找规律来解决的。
看下面的三个数据的解:
3
(4) 3 5 6 4 2 1 3 5 7 6 4 2 3 5 4
(-1) 2 1 -2 - ...
www.eeworm.com/read/365698/9850745
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/364039/9923670
java fracknap.java
public class FracKnap {
int Allweight = 100;
int remainweight = Allweight;
public static int[] FacKnap(int number,int Allweight)
{
int remainweight = Allweight;
int[] value = {20
www.eeworm.com/read/168218/9932815
h curr2.h
#ifndef Currency_
#define Currency_
#include
#include
enum sign {plus, minus};
class Currency {
public:
// constructor
Currency(sign s = plus, un
www.eeworm.com/read/168218/9933402
h curr2.h
#ifndef Currency_
#define Currency_
#include
#include
enum sign {plus, minus};
class Currency {
public:
// constructor
Currency(sign s = plus, un
www.eeworm.com/read/363342/9958220
c 递归车厢.c
/**********递归题改为非递归题实例 车厢********/
#include
#define MAX 4
int stack[MAX],p=-1;
struct
{
int num;
int sign;
}train[MAX];
void sub()
{
int inc;
if(p==MAX-
www.eeworm.com/read/362596/9989462
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