HI!, I dont think you will have a problem too much doing trig, which is mostly is what is in your algebra , and can be done by including math.h using MPLAB anyway, cant help too much with that since iv never used it b4, but there should be lots of examples out there,
Jdate = Julian date
lw = West Longitude (75W = 75, 45E = -45)
ln = North Latitude (35N = 35, 25S = -25)
all those equations there are all derived from these 3 values, now im not too sure about a Jdate, or where you get that value, but the LONG & LAT suggests you will need a gps device , which you can get online that uses serial data communication,