久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      javascript中求根的函數(shù)有哪些

      javascript中求根的函數(shù):1、sqrt()函數(shù),語(yǔ)法“Math.sqrt(x)”,可計(jì)算數(shù)x的平方根;2、pow()函數(shù),語(yǔ)法“Math.pow(x,(1/y))”,可計(jì)算數(shù)x的y次根。

      javascript中求根的函數(shù)有哪些

      本教程操作環(huán)境:windows7系統(tǒng)、javascript1.8.5版、Dell G3電腦。

      javascript求根

      1、使用sqrt()函數(shù)

      sqrt() 方法返回?cái)?shù)的平方根。

      語(yǔ)法:

      Math.sqrt(x)

      示例:

      var x=9; console.log(Math.sqrt(x));

      輸出結(jié)果:

      javascript中求根的函數(shù)有哪些

      2、使用pow()函數(shù)

      Math.pow(x,y)可 x 的 y 次冪。當(dāng)y為小數(shù)(1/y)時(shí),可用于開(kāi)根號(hào)計(jì)算。

      function f(x,y){ 	y=1/y; 	console.log(Math.pow(x,y)); } f(4,2); f(125,3); f(81,4);

      javascript中求根的函數(shù)有哪些

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)