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

您现在的位置是:虫虫源码 > C/C++/VC++ > C++实现的对称水平指数运算

C++实现的对称水平指数运算

  • 资源大小:10.87 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 运算 实现 对称 水平 指数

资 源 简 介

SLI (symmetric level-index) arithmetic essentially prevents overflow & underflow in computing. With this library, you may use "SLI" as a normal data type in C++. Replace "double" with "SLI" in you program, and over/underflow problem would be solved. It supports operations including +, -, *, /, ==, !=, <,>, <=, >=, +=, -=, *=, /=, exp, log(base e, 2 & 10), pow, sqrt, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, <<... Mixed operations with other data types also work. The above operations were optimized as far as I could. A systematic testing was performed to ensure their correctness. Some extended arithmetic operations were added later, such as the sum of N arguments, vector norm, and dot product. Here are a few simple examples: Example 1 -- 1.432e32 * 4.432e25 Code: SLI a, b, c;a = 1.432e32;b = 4.432e25;c = a * b;cout << c << endl;

文 件 列 表

SLI.cpp
SLI.h
readme.txt

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP