亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mathsoftlib.c

?? vxworks的源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
    if (dblParam < 0.0)	return (result + PI);		/* [pi/2 .. pi] */    else	return (result);		/* [0 .. pi/2) */    }/******************************************************************************** mathSoftAtan2 - software floating point arc tangent of two arguments** This routine takes two input double-precision floating point* parameters, <dblY> and <dblX>, and returns the double precision* arc tangent of <dblY> / <dblX>.** RETURNS: double-precision arc tangent of <dblY> / <dblX>.*/LOCAL double mathSoftAtan2     (    double	dblY,    double	dblX     )    {    double	result;    result = atan (dblY/dblX);    if (dblX >= 0.0)	return (result);		/* [-pi/2 .. pi/2) */    else if (result < 0.0)	return (result + PI);		/* [pi/2 .. pi) */    else	return (result - PI);		/* [-pi .. -pi/2) */    }/******************************************************************************** mathSoftHypot - software floating point Euclidean distance** This routine takes two input double-precision floating point* parameters and returns length of the corresponding Euclidean distance* (hypotenuse).** RETURNS: double-precision hypotenuse.*/LOCAL double mathSoftHypot     (    double	dblX,    double	dblY     )    {    return (sqrt (dblX * dblX  +  dblY * dblY));    }/******************************************************************************** mathSoftCbrt - software floating point cube root** This routine takes the input double-precision floating point* parameter and returns the cube root.** kahan's cube root (53 bits IEEE double precision)* for IEEE machines only* coded in C by K.C. Ng, 4/30/85** Accuracy:*	better than 0.667 ulps according to an error analysis. Maximum* error observed was 0.666 ulps in an 1,000,000 random arguments test.** Warning: this code is semi machine dependent; the ordering of words in* a floating point number must be known in advance. I assume that the* long interger at the address of a floating point number will be the* leading 32 bits of that floating point number (i.e., sign, exponent,* and the 20 most significant bits).* On a National machine, it has different ordering; therefore, this code* must be compiled with flag -DNATIONAL.** RETURNS: double-precision cube root.** AUTHOR:  Kahan's cube root, coded in C by K.C. Ng, UC Berkeley, 4/30/85.*	   Copyright (c) 1985 Regents of the University of California.*	   Adapted by Scott Huddleston, Computer Research Lab, Tektronix.** Use and reproduction of this software are granted  in  accordance  with* the terms and conditions specified in  the  Berkeley  Software  License* Agreement (in particular, this entails acknowledgement of the programs'* source, and inclusion of this notice) with the additional understanding* that  all  recipients  should regard themselves as participants  in  an* ongoing  research  project and hence should  feel  obligated  to report* their  experiences (good or bad) with these elementary function  codes,* using "sendbug 4bsd-bugs@BERKELEY", to the authors.*/LOCAL double mathSoftCbrt     (    double	x     )    {	double r,s,t=0.0,w;	unsigned long *px = (unsigned long *) &x,	              *pt = (unsigned long *) &t,		      mexp,sign;static long B0 = 0x43500000;	/* (double) 2**54 */static long B1 = 0x2a9f7893,			B2 = 0x297f7893;	/* B1 / (double) 2**18 */static double	    C= 19./35.,	    D= -864./1225.,	    E= 99./70.,	    F= 45./28.,	    G= 5./14.;#ifdef NATIONAL /* ordering of words in a floating points number */	int n0=1,n1=0;#else	int n0=0,n1=1;#endif	mexp = px[n0]&0x7ff00000;	if(isINFNaN(x)) return(x); /* cbrt(NaN,INF) is itself */	if(x==0.0) return(x);	/* cbrt(0) is itself */	sign=px[n0]&0x80000000; /* sign= sign(x) */	px[n0] ^= sign;		/* x=|x| */    /* rough cbrt to 5 bits */	if(mexp==0) 		/* subnormal number */	  {pt[n0]=B0;		/* scale t to be normal, 2^54 or 2^18 */	   t*=x; pt[n0]=pt[n0]/3+B2;	  }	else	  pt[n0]=px[n0]/3+B1;    /* new cbrt to 23 bits, may be implemented in single precision */	r=t*t/x;	s=C+r*t;	t*=G+F/(s+E+D/s);    /* chopped to 20 bits and make it larger than cbrt(x) */	pt[n1]=0; pt[n0]+=0x00000001;    /* one step newton iteration to 53 bits with error less than 0.667 ulps */	s=t*t;		/* t*t is exact */	r=x/s;	w=t+t;	r=(r-t)/(w+r);	/* r-s is exact */	t=t+t*r;    /* restore the sign bit */	pt[n0] |= sign;	return(t);    }/********************************************************************************* mathSoftCosh - software emulation for floating point hyperbolic cosine***	Computes hyperbolic cosine from:**		cosh(X) = 0.5 * (exp(X) + exp(-X))**	Returns double precision hyperbolic cosine of double precision*	floating point number.**	Inputs greater than log(DBL_MAX) result in overflow.*	Inputs less than log(DBL_MIN) result in underflow.**	For precision information refer to documentation of the*	floating point library routines called.** RETURNS: double-precision hyperbolic cosine** AUTHOR: Fred Fish**				N O T I C E**			Copyright Abandoned, 1987, Fred Fish**	This previously copyrighted work has been placed into the*	public domain by the author (Fred Fish) and may be freely used*	for any purpose, private or commercial.  I would appreciate*	it, as a courtesy, if this notice is left in all copies and*	derivative works.  Thank you, and enjoy...**/LOCAL double mathSoftCosh     (    double	dblParam     )    {    double	retValue;    if (dblParam > LOGE_MAXDOUBLE)	{	retValue = HUGE_VAL;        }    else if (dblParam < LOGE_MINDOUBLE)	{	retValue = -HUGE_VAL;    	}    else	{	dblParam = exp (dblParam);	retValue = 0.5 * (dblParam + 1.0/dblParam);    	}    return (retValue);    }/********************************************************************************* mathSoftSinh - software emulation for floating point hyperbolic sine**	Computes hyperbolic sine from:**		sinh(x) = 0.5 * (exp(x) - 1.0/exp(x))***	Returns double precision hyperbolic sine of double precision*	floating point number.**	Inputs greater than ln(DBL_MAX) result in overflow.*	Inputs less than ln(DBL_MIN) result in underflow.** RETURNS: double-precision hyperbolic sine** AUTHOR: Fred Fish**				N O T I C E**			Copyright Abandoned, 1987, Fred Fish**	This previously copyrighted work has been placed into the*	public domain by the author (Fred Fish) and may be freely used*	for any purpose, private or commercial.  I would appreciate*	it, as a courtesy, if this notice is left in all copies and*	derivative works.  Thank you, and enjoy...**/LOCAL double mathSoftSinh     (    double	dblParam     )    {    double	retValue;    if (dblParam > LOGE_MAXDOUBLE)	{	retValue = HUGE_VAL;    	}    else if (dblParam < LOGE_MINDOUBLE)	{	retValue = -HUGE_VAL;    	}    else	{	dblParam = exp (dblParam);	retValue = 0.5 * (dblParam - (1.0 / dblParam));    	}    return (retValue);    }/********************************************************************************* mathSoftTanh - software emulation for floating point hyperbolic tangent***	Computes hyperbolic tangent from:**		tanh(x) = 1.0 for x > TANH_MAXARG*			= -1.0 for x < -TANH_MAXARG*			=  sinh(x) / cosh(x) otherwise**	Returns double precision hyperbolic tangent of double precision*	floating point number.** RETURNS: double-precision hyperbolic tangent** AUTHOR: Fred Fish**				N O T I C E**			Copyright Abandoned, 1987, Fred Fish**	This previously copyrighted work has been placed into the*	public domain by the author (Fred Fish) and may be freely used*	for any purpose, private or commercial.  I would appreciate*	it, as a courtesy, if this notice is left in all copies and*	derivative works.  Thank you, and enjoy...*/LOCAL double mathSoftTanh     (    double	dblParam     )    {    double	retValue;    if (dblParam > TANH_MAXARG || dblParam < -TANH_MAXARG)	{	if (dblParam > 0.0)	    retValue = 1.0;	else	    retValue = -1.0;    	}    else	{	retValue = sinh (dblParam) / cosh (dblParam);    	}    return (retValue);    }/********************************************************************************* mathSoftLog2 - software emulation for floating point log base 2** This routine returns a double-precision log base 2 of a double-precision* floating point number.**	Computes log2(x) from:**		log2(x) = log2(e) * log(x)*** RETURNS: double-precision log base 2**/LOCAL double mathSoftLog2     (    double	dblParam     )    {    return (LOG2E * log (dblParam));    }/********************************************************************************* mathSoftSincos - software emulation for simultaneous sine and cosine** This routine obtains both the sine and cosine for the specified* floating point value and returns both.** NOMANUAL*/void mathSoftSincos     (    double	dblParam,		/* angle in radians */    double	*pSinResult,		/* sine result buffer */    double	*pCosResult 		/* cosine result buffer */    )    {    *pSinResult = sin (dblParam);    *pCosResult = cos (dblParam);    }/******************************************************************************** mathSoftFabsf - single-precision software floating point absolute value** This routine takes the input single-precision floating point* parameter and returns the absolute value.** RETURNS: single-precision absolute value.*/LOCAL float mathSoftFabsf     (    float	fltParam     )    {    return ((fltParam < 0.0) ? -fltParam : fltParam);    }/******************************************************************************** mathSoftCeilf - single-precision software floating point ceiling** This routine takes the input single-precision floating point* parameter and returns (in single-precision floating point format)* the integer immediately greater than the input parameter.** RETURNS: single-precision representation of next largest integer.*/LOCAL float mathSoftCeilf     (    float	fltParam     )    {    return (-floorf (-fltParam));    }/******************************************************************************** mathSoftPowf - single-precision software floating point power function** This routine takes two input single-precision floating point* parameters, <fltX> and <fltY>, and returns the single-precision* value of <fltX> to the <fltY> power.** INTERNAL* The US Software emulation library has a special function for taking* a floating point number to an integer power.  This routine therefore* checks to see if the <fltY> parameter is an integer, and uses the* US Software function (XTOI) if it is.** RETURNS: single-precision value of <fltX> to <fltY> power.*/LOCAL float mathSoftPowf     (    float	fltX,    float	fltY     )    {    if (isNaN_SINGLE (fltY))	return (fltY);			/* fltY = NaN --> NaN */    if (fltX == 1.0)	return (1.0);			/* fltX = 1 --> 1 */    if (fltY == floorf (fltY))		/* int fltY --> XTOI(fltX,fltY) */	return (mathSoftRealtointf (fltX, (long int) fltY));    return (expf (fltY * logf (fltX)));    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人中文在线| 亚洲精品一线二线三线| 亚洲一级二级在线| 欧美精品vⅰdeose4hd| 日韩国产欧美在线视频| 精品99久久久久久| 国产精品一区不卡| 亚洲日本在线观看| 欧美系列日韩一区| 久久丁香综合五月国产三级网站| 久久久久久久久一| jlzzjlzz亚洲女人18| 亚洲精品乱码久久久久久| 在线精品亚洲一区二区不卡| 日本一不卡视频| 欧美国产丝袜视频| 欧美亚洲国产一区二区三区va| 日韩av网站免费在线| 久久久久久久性| 91丨porny丨蝌蚪视频| 视频一区二区国产| 久久日韩粉嫩一区二区三区| 99国产一区二区三精品乱码| 亚洲大片精品永久免费| 国产亚洲污的网站| 欧美日韩小视频| 国产不卡视频一区二区三区| 亚洲综合另类小说| 国产女主播一区| 欧美一卡二卡在线| 色综合天天综合| 极品美女销魂一区二区三区免费| 亚洲婷婷在线视频| 久久影院视频免费| 欧美老女人在线| 99视频精品在线| 黄色日韩网站视频| 亚洲va在线va天堂| 亚洲欧美在线视频| 26uuuu精品一区二区| 欧美日韩一区二区在线观看| 成人av在线看| 国产伦精一区二区三区| 日产精品久久久久久久性色| 亚洲人成小说网站色在线 | 久久久久久久久久久99999| 色综合天天综合色综合av | 91在线视频网址| 久久精品国产亚洲5555| 亚洲一区二区三区美女| 国产精品福利影院| 国产日韩影视精品| 精品国产一区二区亚洲人成毛片 | 99这里都是精品| 韩国成人精品a∨在线观看| 污片在线观看一区二区| 亚洲综合一区在线| 亚洲欧美日韩在线播放| 国产精品天美传媒| 国产欧美日韩精品a在线观看| 欧美大胆人体bbbb| 91精品国产综合久久精品图片| 一本一道波多野结衣一区二区| 国产91精品精华液一区二区三区| 精品一区二区三区免费毛片爱 | 欧美日韩国产a| 日本黄色一区二区| 色狠狠综合天天综合综合| jvid福利写真一区二区三区| 成人免费毛片aaaaa**| 国产99久久久久久免费看农村| 久久电影网站中文字幕| 久久国产夜色精品鲁鲁99| 美女脱光内衣内裤视频久久网站 | 亚洲黄色片在线观看| 亚洲欧洲精品一区二区三区| 国产精品嫩草影院av蜜臀| 久久精品欧美日韩精品 | 欧洲精品一区二区| 欧美亚洲精品一区| 欧美色综合网站| 欧美精品一二三四| 欧美一级精品在线| 精品美女一区二区| 久久久电影一区二区三区| 日本一区二区免费在线观看视频| 国产偷国产偷亚洲高清人白洁 | 精品国产麻豆免费人成网站| 久久婷婷久久一区二区三区| 久久精品综合网| 国产精品久久久久久亚洲伦| 亚洲人成网站色在线观看| 亚洲一二三区不卡| 全部av―极品视觉盛宴亚洲| 国内精品在线播放| www.亚洲免费av| 欧美日韩中文国产| 精品乱人伦一区二区三区| 国产精品免费aⅴ片在线观看| 中文字幕在线一区免费| 亚洲与欧洲av电影| 久久精品国内一区二区三区| 国产高清精品在线| 欧美最新大片在线看| 日韩精品一区二| 综合在线观看色| 日本在线不卡视频| caoporen国产精品视频| 在线观看免费亚洲| 精品国产凹凸成av人导航| 中文字幕不卡在线观看| 亚洲aaa精品| 成熟亚洲日本毛茸茸凸凹| 欧美专区日韩专区| 久久久国产精品麻豆 | 精品一区在线看| 97精品久久久午夜一区二区三区| 欧美日韩高清不卡| 亚洲国产精品精华液2区45| 亚洲国产精品麻豆| 国产成人免费视频精品含羞草妖精| 在线观看91精品国产入口| 久久欧美中文字幕| 一区二区三区日韩精品视频| 精品一区二区在线视频| 91美女视频网站| wwwwxxxxx欧美| 亚洲成人www| 99re热视频精品| 久久―日本道色综合久久| 亚洲视频在线一区观看| 国产一区二区不卡在线| 7777精品伊人久久久大香线蕉经典版下载 | 另类小说图片综合网| 色视频成人在线观看免| 国产欧美一区二区精品忘忧草| 亚洲成人一区二区在线观看| 波多野结衣视频一区| 精品国产亚洲在线| 午夜久久久影院| 色哟哟欧美精品| 国产精品美女久久久久久久久| 麻豆国产精品视频| 欧美精品乱码久久久久久| 成人免费小视频| 国产高清无密码一区二区三区| 欧美一区二区精品久久911| 亚洲黄色小视频| 97久久超碰国产精品电影| 亚洲国产精品av| 国产91丝袜在线观看| 日韩免费电影一区| 秋霞电影一区二区| 91精品国产丝袜白色高跟鞋| 亚洲r级在线视频| 欧洲中文字幕精品| 一区二区三区欧美| 91欧美激情一区二区三区成人| 亚洲国产精品成人综合| 国产成人自拍网| 国产欧美日产一区| 成人性色生活片| 中文字幕中文字幕一区二区| 春色校园综合激情亚洲| 国产精品区一区二区三| 成人动漫av在线| 国产精品麻豆久久久| 播五月开心婷婷综合| 国产精品妹子av| 99re在线视频这里只有精品| 亚洲男同1069视频| 欧美影院一区二区三区| 亚洲一级二级在线| 91精品国产欧美一区二区成人| 日本不卡不码高清免费观看| 日韩亚洲欧美综合| 国内国产精品久久| 国产欧美一区二区三区鸳鸯浴 | 国产精品12区| 国产精品久久久久一区| 99久久99久久精品免费看蜜桃| 亚洲人成小说网站色在线| 欧美三级视频在线| 日韩激情视频在线观看| 精品国产凹凸成av人导航| 成人在线综合网| 亚洲狠狠丁香婷婷综合久久久| 欧美日产在线观看| 久草中文综合在线| 国产精品视频看| 欧美三区在线观看| 激情伊人五月天久久综合| 欧美国产综合一区二区| 欧美亚洲高清一区| 久久99精品国产.久久久久久| 国产拍揄自揄精品视频麻豆| 日本精品免费观看高清观看| 免费在线观看日韩欧美| 国产精品你懂的在线欣赏| 欧美亚洲一区二区三区四区|