C++中的norm函数的用法
来源:互联网 发布:电脑打碟机软件下载 编辑:程序博客网 时间:2024/06/06 00:58
function template
std::norm
<complex>
template<class T> T norm (const complex<T>& x);
Return norm of complex number
Returns the norm value of the complex number x.The norm value of a complex number is the squared magnitude, defined as the addition of the square of both the real part and the imaginary part (without the imaginary unit). This is the square ofabs (x).
Parameters
x Complex value.
Return value
Norm value of x.T is x's complex template type (i.e., its value type).
Example
12345678910111213
// norm example#include <iostream>#include <complex>using namespace std;int main (){ complex<double> mycomplex (3.0,4.0); cout << "The norm of " << mycomplex << " is " << norm(mycomplex) << endl; return 0;}
Output:
The norm of (3,4) is 25
测试结果:
- C++中的norm函数的用法
- matlab 中norm函数的用法
- matlab中norm函数的用法
- norm和find函数用法
- matlab中norm函数的用法(转)
- MATLAB中norm()的用法
- c中的memset函数的用法?
- C语言中的strstr函数的用法
- MATLAB中norm()函数的应用
- Matlab norm 用法小记
- norm(范数)、bsxfun()用法
- matlab 之 norm函数
- matlab norm函数
- matlab之norm函数
- matlab norm函数
- MATLAB norm函数
- norm函数-matlab
- 关于C语言中的malloc和free函数的用法
- 前端开发之事件
- C语言中auto,register,static,const,volatile,extern的区别
- IE6的一个很老的漏洞
- 第五章
- SQLPLUS小技巧带行号SQL的粘贴
- C++中的norm函数的用法
- PowerDesigner15.1 逆向工程图解
- 《vi和vim》 学习手记(1)
- Dos功能调用
- 2.9 虚拟机搭建RAC 2.9.1 虚拟机Xen简介
- 2.9.2 启动主机Xen内核
- Flex和JavaScript之间通信
- 2.9.3 Xen虚拟机创建网络环境
- 获取其他 layout 中的组件