Lines Matching refs:y
28 #define days_since_2000_Jan_0(y,m,d) \ argument
29 (367L*(y)-((7*((y)+(((m)+9)/12)))/4)+((275*(m))/9)+(d)-730530L)
47 #define atan2d(y,x) (RADEG*atan2(y,x)) argument
135 x, y, /* x, y coordinates in orbit */ in astro_sunpos() local
146 y = sqrt(1.0 - e*e) * sind(E); in astro_sunpos()
147 *r = sqrt(x*x + y*y); /* Solar distance */ in astro_sunpos()
148 v = atan2d(y, x); /* True anomaly */ in astro_sunpos()
157 double lon, obl_ecl, x, y, z; in astro_sun_RA_dec() local
164 y = *r * sind(lon); in astro_sun_RA_dec()
170 z = y * sind(obl_ecl); in astro_sun_RA_dec()
171 y = y * cosd(obl_ecl); in astro_sun_RA_dec()
174 *RA = atan2d(y, x); in astro_sun_RA_dec()
175 *dec = atan2d(z, sqrt(x*x + y*y)); in astro_sun_RA_dec()
230 t_utc->y = t_loc->y; in timelib_astro_rise_set_altitude()