polyxy.h
来自「大数运算库miracl。有了miracl这样的函数库」· C头文件 代码 · 共 50 行
H
50 行
/*
* C++ class to implement a bivariate polynomial type and to allow
* arithmetic on polynomials whose coefficients are from
* the finite field mod p
*
* WARNING: This class has been cobbled together for a specific use with
* the MIRACL library. It is not complete, and may not work in other
* applications
*
* See Knuth The Art of Computer Programming Vol.2, Chapter 4.6
*/
#ifndef POLYXY_H
#define POLYXY_H
#include <monty.h>
#include "poly.h"
class termXY
{
public:
ZZn an;
int nx;
int ny;
termXY *next;
};
class PolyXY
{
public:
termXY *start;
PolyXY() {start=NULL;}
PolyXY(const PolyXY&);
void clear();
termXY *addterm(const ZZn&,int,int,termXY *pos=NULL);
ZZn F(const ZZn&,const ZZn&);
Poly F(const ZZn&);
ZZn coeff(int,int);
PolyXY& operator=(const PolyXY&);
friend PolyXY diff_dx(const PolyXY&);
friend PolyXY diff_dy(const PolyXY&);
friend ostream& operator<<(ostream&,const PolyXY&);
~PolyXY();
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?