首页| 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次
  • 浏览次数:1次
  • 资源积分: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
0.197105s