CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 其他小程序

文件名称:Poly

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2016-08-01
  • 文件大小:
    55.98kb
  • 已下载:
    1次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

1、可通过 Poly P 声明一个多项式 P;

2、可通过 P.read(string P_str) 直接从 手写习惯的多项式字符串 读入多项式;

3、可通过 P.newTerm(double Coef, int Exp) 增添多项式的项,如果含有同类项,则合并;

4、可直接通过 P Q 给多项式 P 赋值;

5、可直接通过 cout << P 以手写习惯输出多项式;

6、可通过 P.clear() 清除一个多项式;

7、可直接通过 +、-、*、/、 进行多项式间的运算;

8、可通过 gcd(Poly P, Poly Q)、lcm(Poly P, Poly Q) 求两个多项式的最大公因式、最小公倍式;

9、可以获取多项式的各种信息:

  9.1、可通过 P.deg() 获取多项式的次数;

  9.2、可通过 P.mainCoef() 获取多项式的主系数;

  9.3、可通过 P.coef(int n) 获取多项式 P 的 n 次项系数;

  9.4、可通过 P. (double x)、P. (Complex x) 获取多项式 P 在给定值 x 处的取值;

  (其中 Complex 类已经构造好,可直接使用)

  9.5、可通过 P.com(Q) 计算多项式 P 与 Q 的复合;

  9.6、可通过 P.diff() 计算多项式 P 的导多项式;

10、可通过 P.roots() 求任意次多项式的所有根(包括复根),其返回值类型为 vector<Complex>-This code constructs a complete C++ polynomial class whose main function is as follows:

1, You can declare a polynomial P by using Poly P 

2, A polynomial P can be directly read the handwriting habits polynomial string by using P.read (string P_str) 

3, You can add a new term of poly P by using P.newTerm (double Coef, int Exp) . If it contains similar items, merge it

4, You can assign the polynomial P directly by using P  Q 

5, You can output polynomial directly through cout << P with handwriting habits 

6, A polynomial can be cleared by using P.clear () 

7, You can make calculating between polynomials directly by the using operators:+,-,*, /, 

8, You can use gcd (Poly P, Poly Q) , lcm (Poly P, Poly Q) to calculate the greatest common divisor of two polynomials and least common multiple

9, You can calculate all kinds of information polynomial:

    9.1, You can get the degree of P by using P.deg () 

    9.2, You can get the main coeffic
(系统自动生成,下载前可以参看下载内容)

下载文件列表

example/
example/test.cpp
example/PolyRoots.cpp
include/
include/matrix.h
include/complex.h
include/linklist.h
include/poly.h
lib/
lib/libpoly.so
complex.cpp
matrix.cpp
poly.cpp
README.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com