If we then plug in the desired time, 16:34, behold we get 67 deg. computeSmallAngle ( ) def computeAngle (self ) : return self. factor - angle ) ) def computeLargeAngle (self ) : return self. computeMinuteAngle ( )Īngle = abs (hourAngle - minuteAngle ) return min (angle, abs (self. This online calculator converts angle given in degrees to time units (i.e. SimpleTimeHour = simpleTimeHour - maxHour validateTime ( ) def validateTime (self ) : if self. The full list of cross over times are: Time(HH:MM)Īlas, I didn’t get the job in the end, but for anybody who has this question, or is simply curious next time they are staring at the clock, the vanilla Python script (version 3 compatible) below should help.Ĭlass Clock ( ) : def _init_ (self, hour, minute, radians ) : We can see from printing out the times at which the angle is a minimum gives us 17:27 (to the nearest minute). The obvious follow up question was then - What is the time when the hands next cross? Well to answer this I have plotted the angle as a function of time (in minutes). Thus, we have (taking the small angle) a difference of 67 degrees, or 1.17 radians if you prefer. Well knowing this we can then simply do 34 X 6 degrees = 204 degrees for the minute hand and (4 X 30 degrees) + (34 X 0.5 degrees) = 137 degrees for the hour hand. However, the hour hand also moves 0.5 degrees for every minute, since the hour hand covers 30 degrees in 60 minutes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |