Re: [Tutor] Angles

2006-11-29 Thread Carlos
Thanks Terry and Roel, I got it working now, the problem was a sign situation. I fixed it this way: from math import * def Az(Lat, Dec, H_Ang): lat_R = radians(Lat) decl_R = radians(Dec) hour_R = radians(H_Ang) x_azm = sin(hour_R) * cos(decl_R)

Re: [Tutor] Angles

2006-11-29 Thread Roel Schroeven
Carlos schreef: > I found a webpage that details the math behind this > (http://www.usc.edu/dept/architecture/mbs/tools/vrsolar/Help/solar_concepts.html) > > , it was fairly trivial to translate this to python until I got to the > azimuth equation. It looks like this: > > x_azm = sin(h

Re: [Tutor] Angles

2006-11-28 Thread Terry Carroll
On Tue, 28 Nov 2006, Carlos wrote: > I was never very good at trigonometry, but looks like my translation of > the equation is ok and the problem is some kind of python behavior, > because whenever the results exceed 100? (deg) Python returns the > complementary angle, it is possible to avoid t