代码搜索:Sign
找到约 10,000 项符合「Sign」的源代码
代码结果 10,000
www.eeworm.com/read/261326/11654515
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/347388/11669163
cpp pointstrs.cpp
#include "stdafx.h"
#include "PointStrs.h"
#include "chList.h"
#include "Define.h"
PointStrs::PointStrs()
{
int i=0;
chesstype=NOSTONE;
for(i = 0; i < 1000; i++)
numberofline[i] = 0;
www.eeworm.com/read/157454/11702645
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/157453/11704443
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/157270/11723057
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/260177/11740904
cpp 1576.cpp
#include
#include
#define max 10001
short int sign[max],s[max];
int d(int i)
{
int temp=i;
while (i>0)
{
temp+=i%10;
i=i/10;
}
return temp;
}
void calc()
{
www.eeworm.com/read/260175/11741270
cpp 1003.cpp
#include
#include
#include
int sum=1,length,k;
char a[60],b[20],c[20],a1[60],temp;
int sign[20];
void go(int t)
{
int i;
if (b[t]==temp) {sign[temp]--;return;
www.eeworm.com/read/156874/11758017
txt 10-04.txt
%例10-4 判断某一年是否为闰年。。
%该函数用于判断某一年是否为闰年
%使用格式为isleapea(y),其中y是用户所要计算的年份
function isleapyear(year)
sign=0;
if rem(year,4)==0
sign=sign+1;
end
if rem(year,100)==0
sign=sign-1;
end
i
www.eeworm.com/read/259886/11759906
m nndrwlin.m
function h = nndrwlin(x,y,w,c)
%NNDRWLIN Neural Network Design utility function.
% NNDRWLIN(X,Y,W,C)
% X - Vector of horizontal coordinates.
% Y - Vector of vertical coordinates.
% W
www.eeworm.com/read/345906/11783120
m givens.m
function [c,s,p] = givens(x)
% 本程序的功能是将二元列向量x的坐标平面旋转,使x(2)=0,即:
% [c s][x(1)] [r]
% [-s c][x(2)]=[0], r = (x(1)^2 + x(2)^2)^0.5
%
% Data: 2/4/2008
% Version 1.0
% Copyright (C) 2008