描述:
       计算 x 与 y 平方和的平方根。

定义:

float       hypot ( float x, float y );
float       hypotf( float x, float y );
double      hypot ( double x, double y );
long double hypot ( long double x, long double y );
long double hypotl( long double x, long double y );
float       hypot ( float x, float y, float z );
double      hypot ( double x, double y, double z );
long double hypot ( long double x, long double y, long double z );

示例:

#include <iostream>int main(int argc, char **argv)
{//计算3与4平方和的平方根double dValue = std::hypot(3,4);std::cout << dValue << std::endl;//5return 0;
}

std::hypot 用法相关推荐

  1. C++/C++11中std::set用法汇总

    一个容器就是一些特定类型对象的集合.顺序容器(sequential container)为程序员提供了控制元素存储和访问顺序的能力.这种顺序不依赖于元素的值,而是与元素加入容器时的位置相对应.与之相对 ...

  2. boost::math::hypot用法的测试程序

    boost::math::hypot用法的测试程序 实现功能 C++实现代码 实现功能 boost::math::hypot用法的测试程序 C++实现代码 #include <pch_light ...

  3. boost::hana::ext::std::vector_tag用法的测试程序

    boost::hana::ext::std::vector_tag用法的测试程序 实现功能 C++实现代码 实现功能 boost::hana::ext::std::vector_tag用法的测试程序 ...

  4. std::map用法

    std::map用法 STL是标准C++系统的一组模板类,使用STL模板类最大的好处就是在各种C++编译器上都通用. 在STL模板类中,用于线性数据存储管理的类主要有vector, list, map ...

  5. Matlab中在哪hypot,c – 什么时候在`std :: sqrt(x * x y * y)’上使用`std :: hypot(x,y)“

    documentation of std::hypot说: Computes the square root of the sum of the squares of x and y, without ...

  6. 解决minGW32-make 编译opencv时 error: ‘std::_hypot‘ has not been declared using std::hypot;

    在编译过工程中  出现 " **/**/**/ (具体文件名)  error: 'std::_hypot' has not been declared  using std::hypot;  ...

  7. std::tuple、std::tie(可用于结构体大小比较)、std::pair用法

    1.tuple应用: 解释:是一个元组,可包含无限多不同类型变量,pair的升级版,但没有pair得成员变量first.second. 1.1.代码: // tuple example #includ ...

  8. 转: std::string用法详解

    原文地址为: 转: std::string用法详解  C++中的string 类 简单介绍 前言: string 的角色 1 string 使用 1.1 充分使用string 操作符 1.2 眼花缭乱 ...

  9. 【C++】浮点数的std::fixed、std::setprecision()、std::setw()用法

    [C++]50.浮点数的std::fixed.std::setprecision().std::setw()用法 C++中std::setw()的用法 1. std::fixed() #include ...

最新文章

  1. Pandas 中的 concat 函数
  2. 【引用】整理Sed与Awk学习笔记(一)
  3. python 类可以调用实例变量_python中的实例方法、静态方法、类方法、类变量和实例变量浅析...
  4. 8、mybatis之增删改查
  5. OpenCV级联分类器Cascade Classifier
  6. 批处理如何清除文本文档里面的重复行
  7. configure: error: Please fix the library issues listed above and try again.解决方案
  8. python生成器迭代器_python 生成器 迭代器
  9. raster | R语言中的空间栅格对象及其基本处理方法(Ⅱ):投影、属性提取
  10. Win7下的C盘重新划分为两个盘
  11. 程序员的自我修养(雾)
  12. Python中如何输入一个整数实例
  13. Tkinter模块GUI图形化编程实战(八)——中国象棋(含超详解及完整源码、完整程序免费下载链接)
  14. AABB和OBB包围盒简介
  15. 运用nginx和阿里云解析配置二级域名 设置不同端口号
  16. idea显示Multiple Spring Boot run configurations were detected. Services allows to manage multiple run
  17. 批量添加用户脚本--Linux bash
  18. 卡牌系统psv游戏推荐_PSV精品游戏推荐之一,让你的小V再次发挥余热吧!
  19. 回顾下自己的学习历程
  20. java异常重要吗_Java 异常处理的重要认识

热门文章

  1. 三星android平板,三星也不忘Android平板,或推带虹膜识别的Galaxy Tab S4
  2. 计算机系统软件最核心软件是,安徽电脑加密软件哪个好-防止泄密
  3. Graylog单机版安装,Graylog安装脚本一键实现在线离线安装
  4. MATLAB深度学习入门之旅
  5. 基于上下文的业务流建模法(三)
  6. 推荐几个可以免费使用的ChatGPT工具
  7. 电脑设置鼠标光标颜色或大小时,点击之后窗口闪退
  8. MySQL:环境搭建,初识数据库----Datawhale第一次打卡笔记
  9. 在网页上嵌入微博--微博秀
  10. What?模电比数电难学?