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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dms.c

?? c源碼
?? C
字號:
/*  Utility programs for unit conversions and calendar *//*double PI = 3.14159265358979323846;*/#include "kep.h"#if __STDC__double caltoj (long, int, double);#elsedouble caltoj();#endifchar *intfmt = "%d";char *lngfmt = "%ld";char *dblfmt = "%lf";char *strfmt = "%s";/* Display Right Ascension and Declination * from input equatorial rectangular unit vector. * Output vector pol[] contains R.A., Dec., and radius. */int showrd( msg, p, pol )char *msg;double p[], pol[];{double x, y, r;int i;r = 0.0;for( i=0; i<3; i++ )	{	x = p[i];	r += x * x;	}r = sqrt(r);x = zatan2( p[0], p[1] );pol[0] = x;y = asin( p[2]/r );pol[1] = y;pol[2] = r;if (prtflg != 0)  {    printf( "%s  R.A. ", msg );    hms( x );    printf( "Dec. " );    dms( y );    printf( "\n" );  }return(0);}/* Display magnitude of correction vector * in arc seconds */int showcor( strng, p, dp )char *strng;double p[], dp[];{double p1[3], dr, dd;int i;if( prtflg == 0 )	return(0);for( i=0; i<3; i++ )	p1[i] = p[i] + dp[i];deltap( p, p1, &dr, &dd );printf( "%s dRA %.3fs dDec %.2f\"\n", strng, RTS*dr/15.0, RTS*dd );return(0);}/* Radians to degrees, minutes, seconds */int dms( x )double x;{double s;int d, m;if(ephprint)  fprintf( ephfile, " %.10e", x );s = x * RTD;if( s < 0.0 )	{	printf( " -" );	s = -s;	}else	{	printf( "  " );	}d = (int) s;s -= d;s *= 60;m = (int) s;s -= m;s *= 60;printf( "%3dd %02d\' %05.2f\"  ", d, m, s );return(0);}/* Radians to hours, minutes, seconds */#define RTOH (12.0/PI)int hms( x )double x;{int h, m;long sint, sfrac;double s;if(ephprint)  fprintf( ephfile, " %.10e", x );s = x * RTOH;if( s < 0.0 )	s += 24.0;h = (int) s;s -= h;s *= 60;m = (int) s;s -= m;s *= 60;/* Handle shillings and pence roundoff. */sfrac = (long) (1000.0 * s + 0.5);if( sfrac >= 60000L )  {    sfrac -= 60000L;    m += 1;    if( m >= 60 )      {	m -= 60;	h += 1;      }  }sint = sfrac / 1000;sfrac -= sint * 1000;printf( "%3dh %02dm %02ld.%03lds  ", h, m, sint, sfrac );return(0);}/*		julian.c * * This program calculates Julian day number from calendar * date, and the date and day of the week from Julian day. * The Julian date is double precision floating point * with the origin used by astronomers.  The calendar output * converts fractions of a day into hours, minutes, and seconds. * There is no year 0.  Enter B.C. years as negative; i.e., * 2 B.C. = -2. * * The approximate range of dates handled is 4713 B.C. to * 54,078 A.D.  This should be adequate for most applications. * * B.C. dates are calculated by extending the Gregorian sequence * of leap years and century years into the past.  This seems * the only sensible definition, but I don't know if it is * the official one. * * Note that the astronomical Julian day starts at noon on * the previous calendar day.  Thus at midnight in the morning * of the present calendar day the Julian date ends in .5; * it rolls over to tomorrow at noon today. * * The month finding algorithm is attributed to Meeus. * * - Steve Moshier */char *months[12] = {"January","February","March","April","May","June","July","August","September","October","November","December"};char *days[7] = {"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};long cyear = 1986L;extern long cyear;static int month = 1;static double day = 1.0;short yerend = 0;extern short yerend;double zgetdate(){double J;/* Get operator to type in a date. */getnum( "Calendar date: Year", &cyear, lngfmt );if( (cyear > 53994L) || (cyear < -4713L) )	{	printf( "Year out of range.\n" );	goto err;	}if( cyear == 0 )	{	printf( "There is no year 0.\n" );err:	J = 0.0;	goto pdate;	}getnum( "Month (1-12)", &month, intfmt);getnum( "Day.fraction", &day, dblfmt );/* Find the Julian day. */J = caltoj(cyear,month,day);/*printf( "Julian day %.1f\n", J );*/pdate:/* Convert back to calendar date. *//* jtocal( J ); */return(J);}/*     Calculate Julian day from Gregorian calendar date */double caltoj( year, month, day )long year;int month;double day;{long y, a, b, c, e, m;double J;/* The origin should be chosen to be a century year * that is also a leap year.  We pick 4801 B.C. */y = year + 4800;if( year < 0 )	{	y += 1;	}/* The following magic arithmetic calculates a sequence * whose successive terms differ by the correct number of * days per calendar month.  It starts at 122 = March; January * and February come after December. */m = month;if( m <= 2 )	{	m += 12;	y -= 1;	}e = (306 * (m+1))/10;a = y/100;	/* number of centuries */if( year <= 1582L )	{	if( year == 1582L )		{		if( month < 10 )			goto julius;		if( month > 10)			goto gregor;		if( day >= 15 )			goto gregor;		}julius:	printf( " Julian Calendar assumed.\n" );	b = -38;	}else	{ /* -number of century years that are not leap years */gregor:	b = (a/4) - a;	}c = (36525L * y)/100; /* Julian calendar years and leap years *//* Add up these terms, plus offset from J 0 to 1 Jan 4801 B.C. * Also fudge for the 122 days from the month algorithm. */J = b + c + e + day - 32167.5;return( J );}/* Calculate month, day, and year from Julian date */int jtocal( J )double J;{int month, day;long year, a, c, d, x, y, jd;int BC;double dd;if( J < 1721425.5 ) /* January 1.0, 1 A.D. */	BC = 1;else	BC = 0;jd = (long) (J + 0.5); /* round Julian date up to integer *//* Find the number of Gregorian centuries * since March 1, 4801 B.C. */a = (100*jd + 3204500L)/3652425L;/* Transform to Julian calendar by adding in Gregorian century years * that are not leap years. * Subtract 97 days to shift origin of JD to March 1. * Add 122 days for magic arithmetic algorithm. * Add four years to ensure the first leap year is detected. */c = jd + 1486;if( jd >= 2299160.5 )	c += a - a/4;else	c += 38;/* Offset 122 days, which is where the magic arithmetic * month formula sequence starts (March 1 = 4 * 30.6 = 122.4). */d = (100*c - 12210L)/36525L;/* Days in that many whole Julian years */x = (36525L * d)/100L;/* Find month and day. */y = ((c-x)*100L)/3061L;day = (int) (c - x - ((306L*y)/10L));month = (int) (y - 1);if( y > 13 )	month -= 12;/* Get the year right. */year = d - 4715;if( month > 2 )	year -= 1;/* Day of the week. */a = (jd + 1) % 7;/* Fractional part of day. */dd = day + J - jd + 0.5;/* post the year. */cyear = year;if( BC )	{	year = -year + 1;	cyear = -year;	if( prtflg )		printf( "%ld B.C. ", year );	}else	{	if( prtflg )		printf( "%ld ", year );	}day = (int) dd;if( prtflg )	printf( "%s %d %s", months[month-1], day, days[(int) a] );/* Flag last or first day of year */if( ((month == 1) && (day == 1))	|| ((month == 12) && (day == 31)) )	yerend = 1;else	yerend = 0;/* Display fraction of calendar day * as clock time. */a = (long) dd;dd = dd - a;if( prtflg )	{	hms( 2.0*PI*dd );	if( J == TDT )		printf( "TDT\n" ); /* Indicate Terrestrial Dynamical Time */	else if( J == UT )		printf( "UT\n" ); /* Universal Time */	else		printf( "\n" );	}return(0);}/* Reduce x modulo 360 degrees */double mod360(x)double x;{long k;double y;k = (long) (x/360.0);y = x  -  k * 360.0;while( y < 0.0 )	y += 360.0;while( y > 360.0 )	y -= 360.0;return(y);}/* Reduce x modulo 2 pi */#define TPI (2.0*PI)double modtp(x)double x;{double y;y = floor( x/TPI );y = x - y * TPI;while( y < 0.0 )	y += TPI;while( y >= TPI )	y -= TPI;return(y);}/* Get operator to type in hours, minutes, and seconds */static int hours = 0;static int minutes = 0;static double seconds = 0.0;double gethms(){double t;getnum( "Time: Hours", &hours, intfmt );getnum( "Minutes", &minutes, intfmt );getnum( "Seconds", &seconds, dblfmt );t = (3600.0*hours + 60.0*minutes + seconds)/86400.0;return(t);}int getnum( msg, num, format )char *msg;void *num;char *format;{char s[40];printf( "%s (", msg );if( format == strfmt )	printf( format, (char *) num );else if( format == dblfmt )	printf( format, *(double *)num );else if( format == intfmt )	printf( format, *(int *)num );else if( format == lngfmt )	printf( format, *(long *)num );else	printf( "Illegal input format\n"  );printf( ") ? ");gets(s);if( s[0] != '\0' )	sscanf( s, format, num );return(0);}/* * Convert change in rectangular coordinatates to change * in right ascension and declination. * For changes greater than about 0.1 degree, the * coordinates are converted directly to R.A. and Dec. * and the results subtracted.  For small changes, * the change is calculated to first order by differentiating *   tan(R.A.) = y/x * to obtain *    dR.A./cos**2(R.A.) = dy/x  -  y dx/x**2 * where *    cos**2(R.A.)  =  1/(1 + (y/x)**2). * * The change in declination arcsin(z/R) is *   d asin(u) = du/sqrt(1-u**2) *   where u = z/R. * * p0 is the initial object - earth vector and * p1 is the vector after motion or aberration. * */int deltap( p0, p1, dr, dd )double p0[], p1[];double *dr, *dd;{double dp[3], A, B, P, Q, x, y, z;int i;P = 0.0;Q = 0.0;z = 0.0;for( i=0; i<3; i++ )	{	x = p0[i];	y = p1[i];	P += x * x;	Q += y * y;	y = y - x;	dp[i] = y;	z += y*y;	}A = sqrt(P);B = sqrt(Q);if( (A < 1.e-7) || (B < 1.e-7) || (z/(P+Q)) > 5.e-7 )	{	P = zatan2( p0[0], p0[1] );	Q = zatan2( p1[0], p1[1] );	Q = Q - P;	while( Q < -PI )		Q += 2.0*PI;	while( Q > PI )		Q -= 2.0*PI;	*dr = Q;	P = asin( p0[2]/A );	Q = asin( p1[2]/B );	*dd = Q - P;	return(0);	}x = p0[0];y = p0[1];if( x == 0.0 )	{	*dr = 1.0e38;	}else	{	Q = y/x;	Q = (dp[1]  -  dp[0]*y/x)/(x * (1.0 + Q*Q));	*dr = Q;	}x = p0[2]/A;P = sqrt( 1.0 - x*x );*dd = (p1[2]/B - x)/P;return(0);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国偷自产一区二区三区成为亚洲经典| 奇米色777欧美一区二区| 日本一区二区三区dvd视频在线| 51久久夜色精品国产麻豆| 精品污污网站免费看| 欧美日韩中文一区| 91麻豆精品国产91久久久久久 | 欧美三级午夜理伦三级中视频| 国产精品一区二区久久精品爱涩| 国产精品亚洲一区二区三区妖精| 国产精品一线二线三线精华| 国产99久久久久久免费看农村| 成人午夜视频在线观看| 在线亚洲+欧美+日本专区| 欧美一区二区在线免费播放| 国产人久久人人人人爽| 亚洲欧美一区二区三区孕妇| 日韩av网站在线观看| 成人免费高清视频在线观看| 欧美在线一二三| www一区二区| 一区二区三区欧美| 国产一区二区三区精品视频| 在线观看视频一区二区欧美日韩| 4438x亚洲最大成人网| 亚洲欧洲日韩女同| 国产毛片精品视频| 欧美久久高跟鞋激| 日韩毛片视频在线看| 另类调教123区| 欧美裸体bbwbbwbbw| 亚洲精品成人精品456| 国产精品综合网| 久久亚洲精品小早川怜子| 图片区日韩欧美亚洲| 91黄色免费网站| 亚洲综合色区另类av| 91在线精品秘密一区二区| 国产精品免费视频一区| 国产成人精品免费网站| 国产无一区二区| 粉嫩欧美一区二区三区高清影视| 欧美岛国在线观看| 激情综合色播激情啊| 精品美女一区二区三区| 黄色小说综合网站| 国产精品久久久久一区| 9色porny自拍视频一区二区| 亚洲最大的成人av| 欧美丰满一区二区免费视频| 久久精工是国产品牌吗| 久久久久国产精品厨房| av资源站一区| 午夜国产精品影院在线观看| 精品国产成人系列| aaa国产一区| 麻豆精品国产传媒mv男同| 久久久久青草大香线综合精品| 国产精品 日产精品 欧美精品| 国产精品国产a| 欧美浪妇xxxx高跟鞋交| 国产一区二区按摩在线观看| 亚洲美女视频在线观看| 日韩视频在线你懂得| 成人毛片老司机大片| 视频一区二区三区中文字幕| 欧美激情在线一区二区三区| 91精品久久久久久久久99蜜臂| 国产传媒久久文化传媒| 蜜臂av日日欢夜夜爽一区| 国产精品不卡视频| 日韩美女视频在线| 在线综合亚洲欧美在线视频| aaa欧美大片| 国产凹凸在线观看一区二区| 日日夜夜精品视频天天综合网| 亚洲男人电影天堂| 亚洲天堂精品在线观看| 国产精品免费看片| 国产精品情趣视频| 久久精品人人做人人爽人人| 久久综合色播五月| 精品久久久久久久久久久久包黑料 | 亚洲6080在线| 亚洲国产日韩一级| 石原莉奈在线亚洲二区| 亚洲成人av电影在线| 伊人夜夜躁av伊人久久| 亚洲激情图片小说视频| 亚洲激情五月婷婷| 秋霞午夜av一区二区三区| 日韩精品电影一区亚洲| 免费成人在线观看视频| 国产麻豆精品95视频| 国产在线一区观看| www.日韩av| 在线观看免费成人| 91精品国产入口在线| 亚洲精品一区二区三区在线观看| 精品国产乱码久久久久久图片| 亚洲精品一区二区三区影院| 中文字幕在线观看一区二区| 亚洲国产精品久久人人爱| 日韩电影在线观看网站| 国产91在线观看丝袜| 国产成人精品网址| 欧美日韩精品欧美日韩精品| 日韩三级免费观看| 亚洲激情成人在线| 亚洲主播在线观看| 成人精品视频一区二区三区| 欧美网站大全在线观看| 精品入口麻豆88视频| 亚洲精品成人a在线观看| 国产一区不卡精品| 制服丝袜日韩国产| 亚洲欧美一区二区不卡| 国产精品夜夜嗨| 日韩三级.com| 亚洲影视在线播放| 成人激情黄色小说| 91精品国产入口在线| 亚洲欧美另类在线| 夫妻av一区二区| 精品福利一区二区三区免费视频| 亚洲最大的成人av| 91色porny| 一区二区三区欧美激情| 成人午夜激情视频| 中日韩免费视频中文字幕| 国产自产高清不卡| 欧美变态口味重另类| 男女性色大片免费观看一区二区 | 欧美精品一区二区三| 石原莉奈在线亚洲二区| 日韩精品一区二区三区视频播放 | 99精品视频一区二区| 亚洲国产精品传媒在线观看| 国产成a人亚洲| 国产精品久久久久四虎| 91原创在线视频| 亚洲一级二级三级在线免费观看| 在线欧美一区二区| 欧美96一区二区免费视频| 精品卡一卡二卡三卡四在线| 国产久卡久卡久卡久卡视频精品| 国产欧美精品区一区二区三区| 国产在线精品一区二区| 国产精品欧美精品| 欧美性受xxxx黑人xyx| 精品一区二区免费视频| 国产精品对白交换视频 | 亚洲成av人在线观看| www精品美女久久久tv| 日本韩国精品在线| 另类人妖一区二区av| 有坂深雪av一区二区精品| 欧美不卡一区二区| 欧美日韩精品是欧美日韩精品| 国产制服丝袜一区| 亚洲电影在线播放| 国产精品三级av| 欧美大片国产精品| 在线看国产一区| 国产成人免费在线观看| 免费在线观看一区| 亚洲高清在线视频| 国产精品每日更新在线播放网址| 欧美一区二区三区免费在线看| 色综合天天性综合| 成人丝袜18视频在线观看| 国产精品中文字幕欧美| 国产伦理精品不卡| 另类的小说在线视频另类成人小视频在线| 亚洲精品国产无天堂网2021| 久久精品一二三| 国产精品福利一区二区三区| 国产精品高清亚洲| 国产精品视频看| 中文字幕一区二区三区不卡| 国产精品人人做人人爽人人添| 国产清纯在线一区二区www| 久久综合五月天婷婷伊人| 久久久久久久久一| 亚洲国产高清在线| **网站欧美大片在线观看| 亚洲综合一区二区三区| 午夜伦欧美伦电影理论片| 精品亚洲国产成人av制服丝袜 | 日韩免费高清视频| 久久精品亚洲一区二区三区浴池| 国产午夜精品一区二区三区视频 | 久久99国产精品免费网站| 国产在线看一区| 91欧美一区二区| 日韩天堂在线观看| 亚洲欧美二区三区| 免费黄网站欧美| 91网站在线播放| 欧美人妖巨大在线|