Lines Matching refs:y
33 #define days_since_2000_Jan_0(y,m,d) \ argument
34 (367L*(y)-((7*((y)+(((m)+9)/12)))/4)+((275*(m))/9)+(d)-730530L)
52 #define atan2d(y,x) (RADEG*atan2(y,x)) argument
140 x, y, /* x, y coordinates in orbit */ in astro_sunpos() local
151 y = sqrt(1.0 - e*e) * sind(E); in astro_sunpos()
152 *r = sqrt(x*x + y*y); /* Solar distance */ in astro_sunpos()
153 v = atan2d(y, x); /* True anomaly */ in astro_sunpos()
162 double lon, obl_ecl, x, y, z; in astro_sun_RA_dec() local
169 y = *r * sind(lon); in astro_sun_RA_dec()
175 z = y * sind(obl_ecl); in astro_sun_RA_dec()
176 y = y * cosd(obl_ecl); in astro_sun_RA_dec()
179 *RA = atan2d(y, x); in astro_sun_RA_dec()
180 *dec = atan2d(z, sqrt(x*x + y*y)); in astro_sun_RA_dec()
236 t_utc->y = t_loc->y; in timelib_astro_rise_set_altitude()