欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          C語言sqrt函數(shù)的用法

          C語言sqrt函數(shù)的用法

          c語言sqrt函數(shù)的用法

          sqrt函數(shù)用于計算一個非負實數(shù)的平方根。

          sqrt的函數(shù)原型: 在VC6.0中的math.h頭文件的函數(shù)原型為double sqrt(double);

          說明:sqrt即Square Root Calculations(平方根計算),通過這種運算可以考驗CPU的浮點能力。

          頭文件:math.h

          程序示例:

          #include <math.h> #include <stdio.h> int main(void) {     double x = 4.0, result;     result = sqrt(x); //result*result = x     printf("The square root of % is %n", x, result);     return 0; }

          推薦學習:c語言視頻教程

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