亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? zzx.txt

?? 一個(gè)比較通用的大數(shù)運(yùn)算庫
?? TXT
?? 第 1 頁 / 共 2 頁
字號(hào):
\**************************************************************************/


void GCD(ZZX& d, const ZZX& a, const ZZX& b);
ZZX GCD(const ZZX& a, const ZZX& b); 
// d = gcd(a, b), LeadCoeff(d) >= 0.  Uses a modular algorithm.


void XGCD(ZZ& r, ZZX& s, ZZX& t, const ZZX& a, const ZZX& b, 
          long deterministic=0);
// r = resultant of a and b; if r != 0, then computes s and t such
// that: a*s + b*t = r; otherwise s and t not affected.  if
// !deterministic, then resultant computation may use a randomized
// strategy that errs with probability no more than 2^{-80}.



/**************************************************************************\

                               Input/Output

I/O format:

   [a_0 a_1 ... a_n],

represents the polynomial a_0 + a_1*X + ... + a_n*X^n.


\**************************************************************************/


istream& operator>>(istream& s, ZZX& x);
ostream& operator<<(ostream& s, const ZZX& a);


/**************************************************************************\

                             Some utility routines

\**************************************************************************/


long deg(const ZZX& a);  returns degree of a; deg(0) == -1

const ZZ& coeff(const ZZX& a, long i);
// returns a read-only reference to a.rep[i], or zero if i not in
// range

const ZZ& LeadCoeff(const ZZX& a);
// read-only reference to leading term of a, or zero if a == 0

const ZZ& ConstTerm(const ZZX& a);
// read-only reference to constant term of a, or zero if a == 0

void SetCoeff(ZZX& x, long i, const ZZ& a);
void SetCoeff(ZZX& x, long i, long a);
// makes coefficient of X^i equal to a; error is raised if i < 0

void SetCoeff(ZZX& x, long i);
// makes coefficient of X^i equal to 1; error is raised if i < 0

void SetX(ZZX& x); // x is set to the monomial X

long IsX(const ZZX& a); // test if x = X

void diff(ZZX& x, const ZZX& a); // x = derivative of a
ZZX diff(const ZZX& a); 

long MaxBits(const ZZX& f);
// returns max NumBits of coefficients of f

void reverse(ZZX& x, const ZZX& a, long hi);
ZZX reverse(const ZZX& a, long hi);

void reverse(ZZX& x, const ZZX& a);
ZZX reverse(const ZZX& a);

// x = reverse of a[0]..a[hi] (hi >= -1);
// hi defaults to deg(a) in second version


void VectorCopy(vec_ZZ& x, const ZZX& a, long n);
vec_ZZ VectorCopy(const ZZX& a, long n);
// x = copy of coefficient vector of a of length exactly n.
// input is truncated or padded with zeroes as appropriate.



/**************************************************************************\

                       Arithmetic mod X^n

All routines require n >= 0, otherwise an error is raised.

\**************************************************************************/


void trunc(ZZX& x, const ZZX& a, long m); // x = a % X^m
ZZX trunc(const ZZX& a, long m);

void MulTrunc(ZZX& x, const ZZX& a, const ZZX& b, long n);
ZZX MulTrunc(const ZZX& a, const ZZX& b, long n);
// x = a * b % X^n

void SqrTrunc(ZZX& x, const ZZX& a, long n);
ZZX SqrTrunc(const ZZX& a, long n);
// x = a^2 % X^n

void InvTrunc(ZZX& x, const ZZX& a, long n);
ZZX InvTrunc(const ZZX& a, long n);
// computes x = a^{-1} % X^m.  Must have ConstTerm(a) invertible.




/**************************************************************************\

                               Modular Arithmetic

The modulus f must be monic with deg(f) > 0, 
and other arguments must have smaller degree.

\**************************************************************************/

void MulMod(ZZX& x, const ZZX& a, const ZZX& b, const ZZX& f);
ZZX MulMod(const ZZX& a, const ZZX& b, const ZZX& f);
// x = a * b mod f

void SqrMod(ZZX& x, const ZZX& a, const ZZX& f);
ZZX SqrMod(const ZZX& a, const ZZX& f);
// x = a^2 mod f

void MulByXMod(ZZX& x, const ZZX& a, const ZZX& f);
ZZX MulByXMod(const ZZX& a, const ZZX& f);
// x = a*X mod f


/**************************************************************************\

                  traces, norms, resultants, discriminants,
                   minimal and characteristic polynomials

\**************************************************************************/


void TraceMod(ZZ& res, const ZZX& a, const ZZX& f);
ZZ TraceMod(const ZZX& a, const ZZX& f);
// res = trace of (a mod f).  f must be monic, 0 < deg(f), deg(a) <
// deg(f)

void TraceVec(vec_ZZ& S, const ZZX& f);
vec_ZZ TraceVec(const ZZX& f);
// S[i] = Trace(X^i mod f), for i = 0..deg(f)-1.
// f must be a monic polynomial.


// The following routines use a modular approach.

void resultant(ZZ& res, const ZZX& a, const ZZX& b, long deterministic=0);
ZZ resultant(const ZZX& a, const ZZX& b, long deterministic=0);
// res = resultant of a and b. If !deterministic, then it may use a
// randomized strategy that errs with probability no more than
// 2^{-80}.



void NormMod(ZZ& res, const ZZX& a, const ZZX& f, long deterministic=0);
ZZ NormMod(const ZZX& a, const ZZX& f, long deterministic=0);
// res = norm of (a mod f).  f must be monic, 0 < deg(f), deg(a) <
// deg(f). If !deterministic, then it may use a randomized strategy
// that errs with probability no more than 2^{-80}.



void discriminant(ZZ& d, const ZZX& a, long deterministic=0);
ZZ discriminant(const ZZX& a, long deterministic=0);
// d = discriminant of a = (-1)^{m(m-1)/2} resultant(a, a')/lc(a),
// where m = deg(a). If !deterministic, then it may use a randomized
// strategy that errs with probability no more than 2^{-80}.


void CharPolyMod(ZZX& g, const ZZX& a, const ZZX& f, long deterministic=0);
ZZX CharPolyMod(const ZZX& a, const ZZX& f, long deterministic=0);
// g = char poly of (a mod f).  f must be monic.  If !deterministic,
// then it may use a randomized strategy that errs with probability no
// more than 2^{-80}.


void MinPolyMod(ZZX& g, const ZZX& a, const ZZX& f);
ZZX MinPolyMod(const ZZX& a, const ZZX& f);
// g = min poly of (a mod f).  f must be monic, 0 < deg(f), deg(a) <
// deg(f).  May use a probabilistic strategy that errs with
// probability no more than 2^{-80}.




/**************************************************************************\

                  Incremental Chinese Remaindering

\**************************************************************************/

long CRT(ZZX& a, ZZ& prod, const zz_pX& A);
long CRT(ZZX& a, ZZ& prod, const ZZ_pX& A);
// Incremental Chinese Remaindering: If p is the current zz_p/ZZ_p modulus with
// (p, prod) = 1; Computes a' such that a' = a mod prod and a' = A mod p,
// with coefficients in the interval (-p*prod/2, p*prod/2]; 
// Sets a := a', prod := p*prod, and returns 1 if a's value changed.





/**************************************************************************\

                                vectors of ZZX's

\**************************************************************************/

NTL_vector_decl(ZZX,vec_ZZX)
// vec_ZZX

NTL_eq_vector_decl(ZZX,vec_ZZX)
// == and !=

NTL_io_vector_decl(ZZX,vec_ZZX)
// I/O operators


/**************************************************************************\

                                Miscellany


A ZZX f is represented as a vec_ZZ, which can be accessed as
f.rep.  The constant term is f.rep[0] and the leading coefficient is
f.rep[f.rep.length()-1], except if f is zero, in which case
f.rep.length() == 0.  Note that the leading coefficient is always
nonzero (unless f is zero).  One can freely access and modify f.rep,
but one should always ensure that the leading coefficient is nonzero,
which can be done by invoking f.normalize().



\**************************************************************************/


void clear(ZZX& x); // x = 0
void set(ZZX& x); // x = 1

void ZZX::normalize();
// f.normalize() strips leading zeros from f.rep.

void ZZX::SetMaxLength(long n);
// f.SetMaxLength(n) pre-allocate spaces for n coefficients.  The
// polynomial that f represents is unchanged.

void ZZX::kill();
// f.kill() sets f to 0 and frees all memory held by f.  Equivalent to
// f.rep.kill().

ZZX::ZZX(INIT_SIZE_TYPE, long n);
// ZZX(INIT_SIZE, n) initializes to zero, but space is pre-allocated
// for n coefficients

static const ZZX& zero();
// ZZX::zero() is a read-only reference to 0

void swap(ZZX& x, ZZX& y); 
// swap x & y (by swapping pointers)

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日韩在线视频| 欧美丰满美乳xxx高潮www| 久久日一线二线三线suv| 久久99精品久久久久久动态图| 欧美久久婷婷综合色| 日韩精品国产精品| 久久免费看少妇高潮| 成人高清免费在线播放| 亚洲欧美激情视频在线观看一区二区三区| aaa国产一区| 亚洲国产精品久久久久秋霞影院| 欧美图区在线视频| 久久99在线观看| 日本一区二区三区国色天香 | 一区二区在线观看视频在线观看| 99久久国产免费看| 亚洲成人高清在线| 久久理论电影网| 91香蕉国产在线观看软件| 亚洲精品国产品国语在线app| 欧美日韩国产三级| 国产精品一二三在| 一区二区三区中文在线观看| 欧美一级免费大片| 成人黄色av电影| 亚洲高清久久久| 国产视频一区二区三区在线观看| 日本丶国产丶欧美色综合| 蜜臀a∨国产成人精品| 国产欧美一区二区在线观看| 欧美丝袜第三区| 国产在线精品一区在线观看麻豆| 亚洲黄色尤物视频| 欧美成人精品福利| 91久久精品网| 福利视频网站一区二区三区| 亚洲成人自拍网| 国产精品美女久久久久久2018| 欧美丰满美乳xxx高潮www| 国产·精品毛片| 免费视频一区二区| 综合色天天鬼久久鬼色| 欧美xxx久久| 欧美日韩久久一区| av亚洲产国偷v产偷v自拍| 久久精品国产精品亚洲红杏 | 一区二区三区电影在线播| 久久伊人中文字幕| 日韩一区二区三区四区五区六区 | 国产精品18久久久久久久久| 亚洲综合一区二区| 一色屋精品亚洲香蕉网站| 日韩欧美一级二级三级| 欧美日韩在线三区| 色综合天天做天天爱| 国产99久久久精品| 国产在线不卡一卡二卡三卡四卡| 亚洲国产成人av网| 亚洲美女电影在线| 国产精品福利影院| 国产日韩欧美精品一区| 欧美成人高清电影在线| 欧美日韩色一区| 欧美自拍偷拍一区| 在线亚洲一区二区| 91丨porny丨国产入口| 粉嫩欧美一区二区三区高清影视| 久久超碰97中文字幕| 婷婷夜色潮精品综合在线| 夜色激情一区二区| 一区二区三区在线视频免费| 亚洲免费伊人电影| 亚洲欧美国产三级| 亚洲靠逼com| 亚洲国产三级在线| 亚洲国产欧美在线人成| 一区二区欧美在线观看| 亚洲人成网站精品片在线观看| 国产精品免费免费| 国产精品九色蝌蚪自拍| 中文字幕人成不卡一区| 亚洲欧洲日韩女同| 亚洲精品美腿丝袜| 亚洲国产综合人成综合网站| 亚洲成人激情自拍| 麻豆一区二区三| 国产一二三精品| 高清不卡在线观看av| 99久久精品免费看国产免费软件| thepron国产精品| 色偷偷88欧美精品久久久| 久久久www免费人成精品| 精品福利一区二区三区免费视频| 日韩欧美亚洲另类制服综合在线| 日韩欧美的一区二区| 久久久亚洲国产美女国产盗摄| 日本一区二区三区在线不卡| 国产精品福利影院| 午夜视频一区二区| 国产麻豆9l精品三级站| 波波电影院一区二区三区| 一本大道综合伊人精品热热| 欧美天天综合网| 精品精品欲导航| 综合色中文字幕| 日韩电影在线一区二区| 国产一区二区三区免费播放| 成人av免费在线播放| 欧美日韩高清一区| 国产人伦精品一区二区| 尤物视频一区二区| 精品一区二区三区视频| 97久久人人超碰| 日韩三级av在线播放| 中文在线一区二区| 香蕉av福利精品导航| 大尺度一区二区| 欧美日韩国产一区| 国产精品久久看| 蜜臀国产一区二区三区在线播放| 国产999精品久久| 欧美肥妇free| 亚洲欧美视频在线观看| 男女男精品网站| 91亚洲男人天堂| 精品精品国产高清a毛片牛牛| 中文字幕一区二区三区四区不卡| 日韩国产高清在线| 99精品视频在线观看| 亚洲精品一区二区三区99| 亚洲综合区在线| 国产不卡在线一区| 欧美不卡一二三| 亚洲福利视频导航| 91亚洲国产成人精品一区二三| 欧美videossexotv100| 一区二区三区资源| 成人app软件下载大全免费| 欧美一区二视频| 亚洲永久精品国产| 99精品黄色片免费大全| 久久久激情视频| 久久国产夜色精品鲁鲁99| 欧美色图在线观看| 日韩一区在线看| 成人av免费观看| 日本一区二区三区高清不卡| 男女性色大片免费观看一区二区 | 欧美乱妇15p| 亚洲精品视频在线观看网站| 国产suv一区二区三区88区| 精品国产制服丝袜高跟| 蜜桃一区二区三区四区| 欧美三级三级三级爽爽爽| 自拍偷拍欧美精品| 成人国产亚洲欧美成人综合网| 久久综合久久综合亚洲| 美国一区二区三区在线播放| 5月丁香婷婷综合| 亚洲国产另类av| 欧美三级资源在线| 亚洲国产一区二区a毛片| 在线观看日产精品| 一区二区三区在线视频观看| aaa国产一区| 亚洲精品高清视频在线观看| 99re热视频精品| 一区二区三区日韩在线观看| 91免费在线播放| 亚洲精品免费视频| 欧美日韩一区三区| 午夜精品福利一区二区三区av| 欧美视频一区二| 蜜臀va亚洲va欧美va天堂| 欧美一区二区三区思思人| 免费精品99久久国产综合精品| 7777精品伊人久久久大香线蕉完整版| 天天影视涩香欲综合网| 日韩欧美一二区| 国产成人自拍网| 亚洲女人小视频在线观看| 欧美性猛交xxxxxx富婆| 日韩激情视频网站| 久久久不卡网国产精品一区| 成人一区二区三区| 亚洲在线观看免费| 欧美一卡2卡三卡4卡5免费| 国产乱码精品一品二品| 国产精品美日韩| 欧美三级电影网站| 日本不卡123| 国产精品久久看| 欧美久久久久久久久| 国产中文字幕一区| 国产精品成人一区二区艾草 | 国产一区二区在线观看免费| 国产精品妹子av| 欧美放荡的少妇| 国产成人免费在线观看| 亚洲激情在线激情|