
Square root - Wikipedia
In mathematics, a square root of a number x is a number y such that =; in other words, a number y whose square (the result of multiplying the number by itself, or ) is x. [1] For example, 4 and −4 are square roots of 16 because = =.
Python math.sqrt() 方法 - 菜鸟教程
Python math.sqrt (x) 方法返回 x 的平方根。 数字必须大于等于 0。 x -- 必需,数字。 如果 x 不是一个数字,返回 TypeError。 如果数字小于 0,则返回 ValueError。 返回一个浮点数,表示一个数的平方根。 Copyright © 2013-2025 菜鸟教程 runoob.com All Rights Reserved. 备案号: 闽ICP备15012807号-1. Python math.sqrt () 方法 Python math 模块 Python math.sqrt (x) 方法返回 x 的平方根。 数字必须大于等于 0。 语法 math.sqrt () 方法语法如下: math.sqrt (x) 参数说明: x -- …
Math.sqrt() - JavaScript | MDN - MDN Web Docs
2025年2月11日 · The Math.sqrt() static method returns the square root of a number. That is. A number greater than or equal to 0. The square root of x, a nonnegative number. If x < 0, returns NaN. Because sqrt() is a static method of Math, you always use it as Math.sqrt(), rather than as a method of a Math object you created (Math is not a constructor).
Python sqrt() 函数 - 菜鸟教程
sqrt () 方法返回数字x的平方根。 注意: sqrt ()是不能直接访问的,需要导入 math 模块,通过静态对象调用该方法。 x -- 数值表达式。 返回数字x的平方根。 Python sqrt () 函数 Python 数字 描述 sqrt () 方法返回数字x的平方根。 语法 以下是 sqrt () 方法的语法: import math math.sqrt ( x ) 注意:sqrt ()是不能直接访问的,需要导入 math 模块,通过静态对象调用该方法。 参数 x -- 数值表达式。 返回值 返回数字x的平方根。 实例 以下展示了使用 sqrt () 方法的实例: #!/us..
The "Square Root (√)" Symbol in Mathematics
The √ symbol, universally recognized as the "Square Root", is one of the fundamental symbols in mathematics, representing the operation to find a number that, when multiplied by itself, yields the given number. The square root of a number x x is written as √x. For instance, the square root of 9 is 3 because 3 × 3 = 9 3 × 3 = 9.
JavaScript sqrt() 方法 - 菜鸟教程
JavaScript sqrt () 方法 JavaScript Math 对象 实例 返回一个数的平方根: Math.sqrt (9); 输出结果: 3 尝试一下 » 定义和用法 sqrt () 方法可返回一个数的平方根。 浏览器支持 所有主要浏览器都支持 sqrt () 方法 语法 Math.sqrt (x) 参数值 参数 描述 x 必需。 必须是大于等于 0 的数。 返回值 类 …
Python的math.sqrt() 函数 - CSDN博客
2024年6月6日 · Python的math.sqrt()函数是一个数学函数,它用于计算给定数字的平方根。它需要一个数字作为参数,并返回该数字的平方根。该函数属于Python标准库,因此不需要额外安装。要使用该函数,需要在代码中引入math库,例如...
JavaScript Math.sqrt() 方法 - 菜鸟教程
Math.sqrt()方法返回一个数的平方根。 如果传递的参数为负,则Math.sqrt()返回NaN。 因为sqrt()是Math的静态方法,所以您始终将其用作 Math.sqrt() ,而不是将其用作创建的Math对象的方法。
深入理解sqr函数:使用方法与技巧 (sqr函数使用方法) - 函数助手
2024年11月9日 · 本文详细介绍Python中`sqr`函数的使用方法,包括基本使用、处理复数以及注意事项,适用于需要进行平方根计算的编程场景。 函数助手 函数使用
C# Math.Sqrt()用法及代码示例 - 纯净天空
在C#中,Math.Sqrt ()是Math类方法,用于计算指定数字的平方根。 Sqrt是较慢的计算。 可以将其缓存以提高性能。 d:要计算其平方根的数字,此参数的类型为System.Double。 返回类型: 此方法返回d的平方根。 如果d等于NaN,NegativeInfinity或PositiveInfinity,则返回该值。 此方法的返回类型为System.Double。 Input : Math. Sqrt (81) . Input : Math. Sqrt (-81) . Input : Math. Sqrt (0.09) . Input : Math. Sqrt (0) Input : Math. Sqrt (-0)