• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            像大海一樣

            sea!!!

            常用鏈接

            統(tǒng)計(jì)

            最新評(píng)論

            C常用數(shù)學(xué)庫

             #include <stdlib.h>
              int abs( int num );
              double fabs( double arg );
              long labs( long num );
                函數(shù)返回num的絕對(duì)值

              #include <math.h>
              double acos( double arg );
                函數(shù)返回arg的反余弦值,arg的值應(yīng)該在-1到1之間

              #include <math.h>
              double asin( double arg );
                函數(shù)返回arg的反正弦值,arg的值應(yīng)該在-1到1之間

              #include <math.h>
              double atan( double arg );
                函數(shù)返回arg的反正切值

              #include <math.h>
              double atan2( double y, double x );
                函數(shù)返回y/x的反正切值,并且它可以通過x,y的符號(hào)判斷
                (x,y)所表示的象限,其返回的也是對(duì)應(yīng)象限的角度值

              #include <math.h>
              double ceil( double num );
              double floor( double arg );
                ceil函數(shù)返回不小于num的最小整數(shù),如num = 6.04, 則返回7.0
                floor函數(shù)返回不大于num的最大的數(shù),如num = 6.04, 則返回6.0

              #include <math.h>
              double cos( double arg );
              double sin( double arg );
              double tan( double arg );
                函數(shù)分別返回arg的余弦,正弦,正切值,arg都是用弧度表示

              #include <math.h>
              double cosh( double arg );
              double sinh( double arg );
              double tanh( double arg );
                函數(shù)分別返回arg的雙曲余弦,雙曲正弦,雙曲正切,arg都是用弧度表示的

              #include <math.h>
              double fmod( double x, double y );
                函數(shù)返回x/y的余數(shù)

              #include <stdlib.h>
              div_t div( int numerator, int denominator );
              ldiv_t ldiv( long numerator, long denominator );
                函數(shù)返回numerator/demominator操作的,返回一個(gè)結(jié)構(gòu)體div_t(ldiv_t)
                div_t(ldiv_t)結(jié)構(gòu)體中定義了quot(商),rem(余數(shù))

              #include <math.h>
              double exp( double arg );
                函數(shù)返回e(自然底數(shù))的arg次

              #include <math.h>
              double log( double num );
                函數(shù)返回num的自然對(duì)數(shù)值num應(yīng)為大于0的數(shù)

              #include <math.h>
              double log10( double num );
                函數(shù)返回num以10為底的對(duì)數(shù)值,num也應(yīng)該為大于0的數(shù)

              #include <math.h>
              double pow( double base, double exp );
                函數(shù)返回以base為底的exp次,不允許的取值范圍:
                當(dāng)base 為 0 且exp 小于或等于 0
                當(dāng)base 為 負(fù)數(shù) 且 exp 不為整數(shù)

              #include <math.h>
              double sqrt( double num );
                函數(shù)返回num的開方值,num應(yīng)該為不小于0的值

              #include <math.h>
              double frexp( double num, int* exp );
                函數(shù)可以獲取科學(xué)計(jì)數(shù)法的參數(shù)
                函數(shù)返回在0.5到1.0之間的值, 傳入exp的參數(shù)用于返回num的指數(shù)
                (以2為底數(shù)計(jì)算,即:num = mantissa * (2 ^ exp))

              #include <math.h>
              double ldexp( double num, int exp );
                函數(shù)返回num*(2^exp)的值,如果結(jié)果溢出,返回HUGE_VAL

              #include <math.h>
              double modf( double num, double *i );
                函數(shù)分割num,將整數(shù)部分填入i的值,小數(shù)部分返回

            文章出處:http://www.diybl.com/course/3_program/c/c_js/2007925/73590.html

            posted on 2008-12-12 21:39 abcd2007 閱讀(619) 評(píng)論(0)  編輯 收藏 引用 所屬分類: c++/clinux

            国产精品国色综合久久| 中文字幕精品无码久久久久久3D日动漫| 久久精品无码一区二区app| 91久久精品电影| 一97日本道伊人久久综合影院| 精品久久久久久中文字幕大豆网| 国色天香久久久久久久小说 | 久久美女人爽女人爽| 久久精品国产一区二区三区不卡| 亚洲中文字幕伊人久久无码| 久久精品国产99久久无毒不卡 | 久久99精品久久久久久不卡| 伊人久久综合精品无码AV专区| 97久久久久人妻精品专区| 伊人精品久久久久7777| 久久久久人妻精品一区| 色老头网站久久网| 品成人欧美大片久久国产欧美| 久久99精品久久久久久hb无码 | 国产精品免费久久久久电影网| 亚洲国产精品无码久久久秋霞2| 久久亚洲av无码精品浪潮| 久久国产色AV免费看| 国产精品久久久久久久久软件| 久久精品女人天堂AV麻| 久久国产精品一区二区| 久久97精品久久久久久久不卡| 超级97碰碰碰碰久久久久最新| 久久精品国产一区二区三区| 久久99精品国产99久久| 精品久久久噜噜噜久久久| 一本久久知道综合久久| 久久人做人爽一区二区三区| 亚洲国产成人精品久久久国产成人一区二区三区综 | 久久婷婷五月综合成人D啪| 久久免费大片| 日本久久中文字幕| 欧美久久久久久精选9999| 亚洲欧美日韩久久精品| 久久婷婷五月综合成人D啪| 中文国产成人精品久久不卡|