久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      一個(gè)非常小眾的php方法:hypot

      本篇文章帶大家介紹一個(gè)小眾的php方法:hypot。有一定的參考價(jià)值,有需要的朋友可以參考一下,希望對(duì)大家有所幫助。

      一個(gè)小眾的php方法:hypot

      我們一般怎么計(jì)算一個(gè)直角三角形的斜邊長(zhǎng)度呢?

      $a = 3; $b = 4; echo sqrt($a * $a + $b * $b); //或者 echo sqrt(pow($a,2) + pow($b,2));

      不不不,

      php給我們提供了原生方法:hypot()

      echo hypot(3,4);//5 echo hypot(6,8);//10

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