首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 一个完全的SL兼容的复数的C++类

一个完全的SL兼容的复数的C++类

  • 资源大小:330.38 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: SL 兼容 一个 完全 复数

资 源 简 介

The C++ standard library contains a class and a set of functions to handle complex numbers. The std::complex<> class allows to do computation in many fields of science but can be improved in two ways. The first improvement is the addition of an imaginary number class. In many applications, multiplications of complex numbers with pure imaginary numbers (i.e. a multiple of the imaginary unit sqrt(-1)) occur. Using only the SL class, one has to define these imaginary numbers as a complex number with a 0-valued real pars. The complex multiplication requires 4 real multiplications and 2 real additions whereas the knowledge that the real part of one of the numbers is 0 could reduce this to 2 real multiplications and one negation. The same is true for division and for many other operations. The purpose of this proposal is to implement pure imaginary numbers. THe second improvement concerns the complex<> class itself. According to the C++ standard, the effect of

文 件 列 表

LICENSE_1_0.txt
Makefile
README
boost
.svn
complex
libs
.svn
doc
example
perf
test
VIP VIP
  • 大智若愚 6分钟前 成为了本站会员

  • Mason 2小时前 成为了本站会员

  • 2小时前 成为了本站会员

  • Half_Punch 1天前 成为了本站会员

  • liqing71718 1天前 成为了本站会员

  • 伟国 1天前 成为了本站会员

  • songy 1天前 成为了本站会员

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

  • 52JOY... 1天前 成为了本站会员

0.204399s