java中cbrt

JavaScript | Math.cbrt()方法 (JavaScript | Math.cbrt() Method)

Math.cbrt() is a function in math library of JavaScript that is used to find the cube root of a number. The method will return the numeric value which is the cube root of the given number.

Math.cbrt()是JavaScript数学库中的函数,用于查找数字的立方根。 该方法将返回数字值,该数字值是给定数字的立方根。

Syntax:

句法:

    Math.cbrt(val);

Parameter(s):

参数:

  • val – represents a value whose cube root to be found.

    val –表示要找到其立方根的值。

Return value:

返回值:

The return type of this method is number, returns the cube root of the number.

该方法的返回类型为number ,返回数字的立方根。

Technical Insights:

技术见解:

  • JavaScript version: ECMAScript 6

    JavaScript版本:ECMAScript 6

  • Browser support: Chrome v38, Internet Explorer v12, Mozilla v25, Safari v8, Opera mini v25.

    浏览器支持:Chrome v38,Internet Explorer v12,Mozilla v25,Safari v8,Opera mini v25。

Values accepted: Integer, floating-point, numeric string.

接受的值:整数,浮点数,数字字符串。

Invalid Values: empty variable, empty array all will return NaN (Not a Number).

无效值:空变量,空数组都将返回NaN (不是数字)。

Example 1: Valid values for the method

示例1:方法的有效值

console.log(Math.cbrt(8));
console.log(Math.cbrt(65.4));
console.log(Math.cbrt(-32.32));
console.log(Math.cbrt(0));
console.log(Math.cbrt("27.08"));

Output

输出量

2
4.0289565405335
-3.185349696715697
0
3.0029600413873867

Example 2: Invalid values for the method.

示例2:方法的无效值。

console.log(Math.cbrt("Hello"));
// Output: NaN
console.log(Math.cbrt(1 + 5i));
// Output: Uncaught SyntaxError: Invalid or unexpected token

翻译自: https://www.includehelp.com/code-snippets/math-cbrt-method-with-example-in-javascript.aspx

java中cbrt

java中cbrt_JavaScript中带有示例的Math.cbrt()方法相关推荐

  1. java中立方根方法,Java Math.cbrt() 方法

    Java Math.cbrt() 方法 java.lang.Math.cbrt() 用于返回一个数的立方根. 1 语法 public static double cbrt(double x) 2 参数 ...

  2. math.ceil带小数点_JavaScript中带有示例的Math.ceil()方法

    math.ceil带小数点 JavaScript | Math.ceil()方法 (JavaScript | Math.ceil() Method) Math.ceil() is a function ...

  3. math.sqrt 有问题_JavaScript中带有示例的Math.sqrt()方法

    math.sqrt 有问题 JavaScript | Math.sqrt()方法 (JavaScript | Math.sqrt() Method) The Math.sqrt() method is ...

  4. asinh函数_JavaScript中带有示例的Math.asinh()方法

    asinh函数 JavaScript | Math.asinh()方法 (JavaScript | Math.asinh() Method) Math.asinh() is a function in ...

  5. math.trunc_JavaScript中带有示例的Math.trunc()方法

    math.trunc JavaScript | Math.trunc()方法 (JavaScript | Math.trunc() Method) Math.trunc() is a function ...

  6. JavaScript中带有示例的Math.log10()方法

    JavaScript | Math.log10()方法 (JavaScript | Math.log10() Method) Math operations in JavaScript are han ...

  7. JavaScript中带有示例的Math.abs()方法

    JavaScript | Math.abs()方法 (JavaScript | Math.abs() Method) Math operations in JavaScript are handled ...

  8. JavaScript中带有示例的Math.max()方法

    JavaScript | Math.max()方法 (JavaScript | Math.max() Method) Math.max() is a function in math library ...

  9. JavaScript中带有示例的Math.log()方法

    JavaScript | Math.log()方法 (JavaScript | Math.log() Method) Math.log() is a function in math library ...

最新文章

  1. 使用Bot Service创建Bot Framework
  2. SQL Server中的GAM页和SGAM页
  3. 权限管理系统之模块管理
  4. mysql 如何将一个库的一个表的数据复制到另一个库中的一个表
  5. laravel 同数据表字段比较查询和状态不正规排序
  6. 四面体的表面积_为了解释南北两极海陆的分布,科学家提出了一个“四面体”的观点...
  7. 【Java】《Java编程的逻辑》第4章 类的继承 笔记+感悟分享
  8. 1288:三角形最佳路径问题-2019-07-04
  9. layUI表单验证不生效的问题
  10. idea 内嵌浏览器 翻译
  11. 飞行管理计算机在ATA章节,民航ATA章节中英文对照.docx
  12. ActiveMQ反序列化漏洞CVE-2015-5254复现
  13. ASA防火墙配置清除
  14. 大数据小项目之电视收视率企业项目01
  15. 第七章第八章思维导图
  16. 单商户商城系统功能拆解36—分销应用—分销商
  17. [DFS/递推/DP] 2327 [SCOI2005] 扫雷 ( 普及+/提高
  18. 飞利浦dicom_如何在飞利浦色相系统中添加第三方智能灯泡
  19. 展锐Android11安兔兔显示的光圈值修正
  20. TFTLCD 液晶界面设计

热门文章

  1. 【解密】PDF文档忘记编辑密码 照样编辑
  2. 计算机ms高级应用科目一 科目二考什么,驾考提前知 | 科目一、科目二、科目三、科目四都考什么?...
  3. Android 获取定位权限,获取位置信息(国家、地区、经纬)
  4. man手册中文版设置
  5. 电脑连WIFI网速慢,手机却很快
  6. 苹果手机微信声音小怎么调大声_【泽云广场|好声音KTV】19.9元畅享门市价198元下午场欢唱+茶水!79.9元尊享全天场欢唱+酒水小吃附带纸巾!越夜越时尚!...
  7. powder-puff 花拳绣腿
  8. 最优化问题——线性规划模型
  9. 口碑营销:如何让传统行业的电商引发口碑效应并营销
  10. 你知道PaaS平台的P有多少种写法?