Source Code

These source-code files were from the printout at the MIT Museum, with many thanks to Deborah Douglas, the Museum's Curator of Science and Technology, for releasing it to us. The printout was digitally photographed by Paul Fjeld. A team of volunteers transcribed the source code manually from these images or, where appropriate, modified already-transcribed but similar source Luminary 131 (Apollo 13) source code to agree with the images from the printout. Note that the page images presented online are of reduced quality, and that higher-quality images are available. Report any conversion errors or legibility problems in page images to info@sandroid.org. Notations on the program listing read, in part:

	GAP:  ASSEMBLE REVISION 001 OF AGC PROGRAM LMY99 BY NASA 2021112-061
	20'35 OCT. 28,1968
Note that the date is the date of the printout, not the date of the program revision.

054259,000002:                                                                                                  ## Copyright:   Public domain.
054260,000003:                                                                                                  ## Filename:    TIME_OF_FREE_FALL.agc
054261,000004:                                                                                                  ## Purpose:     Part of the source code for Luminary 1A build 099.
054262,000005:                                                                                                  ##              It is part of the source code for the Lunar Module's (LM)
054263,000006:                                                                                                  ##              Apollo Guidance Computer (AGC), for Apollo 11.
054264,000007:                                                                                                  ## Assembler:   yaYUL
054265,000008:                                                                                                  ## Contact:     Ron Burkey <info@sandroid.org>.
054266,000009:                                                                                                  ## Website:     www.ibiblio.org/apollo.
054267,000010:                                                                                                  ## Pages:       1268-1283
054268,000011:                                                                                                  ## Mod history: 2009-05-26 RSB  Adapted from the corresponding 
054269,000012:                                                                                                  ##                              Luminary131 file, using page 
054270,000013:                                                                                                  ##                              images from Luminary 1A.
054271,000014:                                                                                                  ##              2011-01-06 JL   Fixed pseudo-label indentation.
054272,000015:                                                                                                  ##              2016-12-17 RSB  Proofed text comments with octopus/ProoferComments
054273,000016:                                                                                                  ##                              and corrected the errors found.
054274,000017:                                                                                                  ##              2017-03-14 RSB  Comment-text fixes noted in proofing Luminary 116.
054275,000018:                                                                                                  ##              2017-03-16 RSB  Comment-text fixes identified in 5-way
054276,000019:                                                                                                  ##                              side-by-side diff of Luminary 69/99/116/131/210.
054277,000020: 
054278,000021:                                                                                                  ## This source code has been transcribed or otherwise adapted from
054279,000022:                                                                                                  ## digitized images of a hardcopy from the MIT Museum.  The digitization
054280,000023:                                                                                                  ## was performed by Paul Fjeld, and arranged for by Deborah Douglas of
054281,000024:                                                                                                  ## the Museum.  Many thanks to both.  The images (with suitable reduction
054282,000025:                                                                                                  ## in storage size and consequent reduction in image quality as well) are
054283,000026:                                                                                                  ## available online at www.ibiblio.org/apollo.  If for some reason you
054284,000027:                                                                                                  ## find that the images are illegible, contact me at info@sandroid.org
054285,000028:                                                                                                  ## about getting access to the (much) higher-quality images which Paul
054286,000029:                                                                                                  ## actually created.
054287,000030:                                                                                                  ##
054288,000031:                                                                                                  ## Notations on the hardcopy document read, in part:
054289,000032:                                                                                                  ##
054290,000033:                                                                                                  ##      Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
054291,000034:                                                                                                  ##      16:27 JULY 14, 1969 
054292,000035: 

Page 1268

054294,000037:                                                                                                  #  THE TFF SUBROUTINES MAY BE USED IN EITHER EARTH OR MOON CENTERED COORDINATES.  THE TFF ROUTINES NEVER
054295,000038:                                                                                                  #  KNOW WHICH ORIGIN APPLIES.  IT IS THE USER WHO KNOWS, AND WHO SUPPLIES RONE, VONE AND 1/SQRT(MU) AT THE
054296,000039:                                                                                                  #  APPROPRIATE SCALE LEVEL FOR THE PROPER PRIMARY BODY.
054297,000040: 
054298,000041:                                                                                                  #        EARTH ORIGIN    POSITION        -29     METERS
054299,000042:                                                                                                  #                        VELOCITY        -7      METERS/CENTISECOND
054300,000043:                                                                                                  #                        1/SQRT(MU)      +17     SQRT(CS SQ/METERS CUBED)
054301,000044: 
054302,000045:                                                                                                  #        MOON ORIGIN     POSITION        -27     METERS
054303,000046:                                                                                                  #                        VELOCITY        -5      METERS/CENTISECONDS
054304,000047:                                                                                                  #                        1/SQRT(MU)      +14     SQRT(CS SQ/METERS CUBED)
054305,000048: 
054306,000049:                                                                                                  #  ALL DATA PROVIDED TO AND RECEIVED FROM ANY TFF SUBROUTINE WILL BE AT ONE OF THE LEVELS ABOVE.  IN ALL CASES,
054307,000050:                                                                                                  #  THE FREE FALL TIME IS RETURNED IN CENTISECONDS AT (-28).  PROGRAM TFF/CONIC WILL GENERATE VONE/RTMU AND
054308,000051:                                                                                                  #  LEAVE IT IN VONE' AT (+10) IF EARTH ORIGIN AND (+9) IF MOON ORIGIN.
054309,000052: 
054310,000053:                                                                                                  #  THE USER MUST STORE THE STATE VECTOR IN RONE, VONE  AND MU IN THE FORM 1/SQRT(MU) IN TFF/RTMU
054311,000054:                                                                                                  #  AT THE PROPER SCALE BEFORE CALLING TFF/CONIC.  SINCE RONE, VONE ARE IN THE EXTENDED VERB STORAGE AREA,
054312,000055:                                                                                                  #  THE USER MUST ALSO LOCK OUT THE EXTENDED VERBS, AND RELEASE THEM WHEN FINISHED.
054313,000056: 
054314,000057:                                                                                                  #  PROGRAMS CALC/TFF AND CALC/TPER ASSUME THAT THE TERMINAL RADIUS IS LESS THAN THE PRESENT
054315,000058:                                                                                                  #  RADIUS.  THIS RESTRICTION CAN BE REMOVED BY A 15 W CODING CHANGE, BUT AT PRESENT IT IS NOT DEEMED NECESSARY.
054316,000059: 
054317,000060:                                                                                                  #  THE FOLLOWING ERASABLE QUANTITIES ARE USED BY THE TFF ROUTINES, AND ARE LOCATED IN THE PUSH LIST.
054318,000061: 
054319,000062:                                                                                                  #                                        BELOW   E:  IS USED FOR EARTH ORIGIN SCALE
054320,000063:                                                                                                  #                                                M:  IS USED FOR MOON  ORIGIN SCALE
054321,000064: 
054322,000065:                                                                                                  # TFFSW          =       119D    BIT1    0 = CALCTFF             1 = CALCTPER
054323,000066: 10,2213                        TFFDELQ            =        10D                                   #        Q2-Q1                   E: (-16)  M: (-15)
054324,000067: 10,2213                        RMAG1              =        12D                                   #        ABVAL(RN)  M            E: (-29)  M: (-27)
054325,000068:                                                                                                  # RPER           =       14D             PERIGEE RADIUS  M       E: (-29)  M: (-27)
054326,000069: 10,2213                        TFFQ1              =        14D                                   #        R.V / SQRT(MUE)         E: (-16)  M: (-15)
054327,000070:                                                                                                  # SDELF/2                                SIN(THETA) /2
054328,000071: 10,2213                        CDELF/2            =        14D                                   #        COS(THETA) /2
054329,000072:                                                                                                  # RAPO           =       16D             APOGEE RADIUS  M        E: (-29)  M: (-27)
054330,000073: 10,2213                        NRTERM             =        16D                                   #        TERMINAL RADIUS  M      E: (-29+NR)
054331,000074:                                                                                                  #                                          M: (-27+NR)
054332,000075: 10,2213                        RTERM              =        18D                                   #        TERMINAL RADIUS  M      E: (-29)  M: (-27)
054333,000076: 10,2213                        TFFVSQ             =        20D                                   #        -(V SQUARED/MU)  1/M    E: (20)   M: (18)
054334,000077: 10,2213                        TFF1/ALF           =        22D                                   #        SEMI MAJ AXIS  M        E: (-22-2 NA)
054335,000078:                                                                                                  #                                          M: (-20-2 NA)
054336,000079: 10,2213                        TFFRTALF           =        24D                                   #        SQRT(ALFA)              E:(10+NA) M: (9+NA)
054337,000080: 10,2213                        TFFALFA            =        26D                                   #        ALFA  1/M               E:(26-NR) M: (24-NR)
054338,000081: 10,2213                        TFFNP              =        28D                                   #        SEMI LATUS RECTUM  M    E: (-38+2 NR)
054339,000082:                                                                                                  #                                          M: (-36+2 NR)
054340,000083: 10,2213                        TFF/RTMU           =        30D                                   #        1/SQRT(MU)              E: (17)   M: (14)
054341,000084: 10,2213                        NRMAG              =        32D                                   #        PRESENT RADIUS  M       E: (-29+NR)
054342,000085:                                                                                                  #                                          M: (-27+NR)
054343,000086: 10,2213                        TFFX               =        34D                                   
054344,000087: 10,2213                        TFFTEM             =        36D                                   #        TEMPORARY

Page 1269

054346,000089:                                                                                                  #                REGISTERS S1, S2 ARE UNTOUCHED BY ANY TFF SUBROUTINE
054347,000090:                                                                                                  #                INDEX REGISTERS X1, X2 ARE USED BY ALL TFF SUBROUTINES.  THEY ARE ESTAB-
054348,000091:                                                                                                  #                LISHED IN TFF/CONIC AND MUST BE PRESERVED BETWEEN CALLS TO SUBSEQUENT
054349,000092:                                                                                                  #                SUBROUTINES.
054350,000093:                                                                                                  #                -NR                             C(X1) = NORM COUNT OF RMAG
054351,000094:                                                                                                  #                -NA                             C(X2) = NORM COUNT OF SQRT(ABS(ALFA))
054352,000095: 

Page 1270

054354,000097:                                                                                                  #  SUBROUTINE NAME:  TFFCONIC                                            DATE:  01.29.67
054355,000098:                                                                                                  #  MOD NO:  0                                                            LOG SECTION:  TIME OF FREE FALL
054356,000099:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
054357,000100:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67
054358,000101:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 21 NOV 67         ADD MOON MU.
054359,000102:                                                                                                  #  MOD NO:  3    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
054360,000103: 
054361,000104:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THIS SUBROUTINE IS CALLED TO COMPUTE THOSE CONIC PARAMETERS REQUIRED BY THE TFF
054362,000105:                                                                                                  #        SUBROUTINES AND TO ESTABLISH THEM IN THE PUSH LIST AREA.  THE PARAMETERS ARE LISTED UNDER OUTPUT.
054363,000106:                                                                                                  #        THE EQUATIONS ARE
054364,000107:                                                                                                  #                -   -  -
054365,000108:                                                                                                  #                H = RN*VN                       ANGULAR MOMENTUM
054366,000109:                                                                                                  #                      - -
054367,000110:                                                                                                  #                LCP = H.H / MU                  SEMI LATUS RECTUM
054368,000111:                                                                                                  #                              -  - 
054369,000112:                                                                                                  #                ALFA = 2/RN - VN.VN / MU        RECIPROCAL SEMI MAJ AXIS, SIGNED
054370,000113: 
054371,000114:                                                                                                  #        AND ALFA IS POS FOR ELLIPTIC ORBITS
054372,000115:                                                                                                  #                      0 FOR PARABOLIC ORBITS
054373,000116:                                                                                                  #                    NEG FOR HYPERBOLIC ORBITS.
054374,000117:                                                                                                  #        SUBROUTINE ALSO COMPUTES AND SAVES RMAG.
054375,000118: 
054376,000119:                                                                                                  #  CALLING SEQUENCE:
054377,000120:                                                                                                  #        TFFCONIC EXPECTS CALLER TO ENTER WITH CORRECT GRAVITATIONAL CONSTANT IN MPAC, IN THE FORM
054378,000121:                                                                                                  #        1/SQRT(MU).  PROGRAM WILL SAVE IN TFF/RTMU.  THE SCALE IS DETERMINED BY WHETHER EARTH OR MOON
054379,000122:                                                                                                  #        ORIGIN IS USED.  THE CALLER MUST LOCK OUT THE EXTENDED VERBS BEFORE PROVIDING STATE VECTOR IN RONE,
054380,000123:                                                                                                  #        VONE AT PROPER SCALE.  THE EXTENDED VERBS MUST BE RESTORED WHEN THE CALLER IS FINISHED USING THE
054381,000124:                                                                                                  #        TFF ROUTINES.
054382,000125: 
054383,000126:                                                                                                  #        ENTRY POINT TFFCONMU EXPECTS THAT TFF/RTMU IS ALREADY LOADED.
054384,000127: 
054385,000128:                                                                                                  #        TO SPECIFY MU:  DLOAD   CALL                            IF MU ALREADY STORED:   CALL
054386,000129:                                                                                                  #                                YOURMU  1/RTMU E:(17) M:(14)                                    TFFCONMU
054387,000130:                                                                                                  #                                TFFCONIC
054388,000131:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY IF LEQ 18D
054389,000132: 
054390,000133:                                                                                                  #  SUBROUTINES CALLED:  NONE
054391,000134: 
054392,000135:                                                                                                  #  NORMAL EXIT MODES:  RVQ
054393,000136: 
054394,000137:                                                                                                  #  ALARMS:  NONE
054395,000138: 
054396,000139:                                                                                                  #  OUTPUT:       THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
054397,000140:                                                                                                  #                RMAG1           E:(-29) M:(-27) M  RN, PRESENT RADIUS LENGTH.
054398,000141:                                                                                                  #                NRMAG           E:(-29+NR)      M  RMAG, NORMALIZED
054399,000142:                                                                                                  #                                M:(-27+NR)
054400,000143:                                                                                                  #                X1                              -NR, NORM COUNT
054401,000144:                                                                                                  #                TFFNP           E:(-38+2NR)     M  LCP, SEMI LATUS RECTUM, WEIGHTED BY NR.      FOR VGAMCALC
054402,000145:                                                                                                  #                                M:(-36+2NR)
054403,000146:                                                                                                  #                TFF/RTMU        E:(17) M:(14)   1/SQRT(MU)
054404,000147:                                                                                                  #                TFFVSQ          E:(20) M:(18)   1/M  -(V SQ/MU):  PRESENT VELOCITY,NORMLIZED.   FOR VGAMCALC
054405,000148:                                                                                                  #                TFFALFA         E:(26-NR)       1/M  ALFA, WEIGHTED BY NR
054406,000149:                                                                                                  #                                M:(24-NR)
054407,000150:                                                                                                  #                TFFRTALF        E:(10+NA)       SQRT(ALFA), NORMALIZED
054408,000151:                                                                                                  #                                M:(9+NA)

Page 1271

054410,000153:                                                                                                  #                X2                              -NA, NORMCOUNT
054411,000154:                                                                                                  #                TFF1/ALF        E:(-22-2NA)     SIGNED SEMI MAJ AXIS, WEIGHTED BY NA
054412,000155:                                                                                                  #                                M:(-20-2NA)
054413,000156:                                                                                                  #                PUSHLOC AT PDL+0
054414,000157: 
054415,000158:                                                                                                  #        THE FOLLOWING IS STORED IN GENERAL ERASABLE
054416,000159:                                                                                                  #                VONE'           E:(10) M:(9)    V/RT(MU), NORMALIZED VELOCITY
054417,000160: 
054418,000161:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
054419,000162:                                                                                                  #                RONE            E:(-29) M:(-27) M  STATE VECTOR         LEFT BY CALLER
054420,000163:                                                                                                  #                VONE            E:(-7) M:(-5)   M/CS  STATE VECTOR      LEFT BY CALLER
054421,000164:                                                                                                  #                TFF/RTMU        E:(17) M:(14)   1/RT(CS SQ/M CUBE)      IF ENTER VIA TFFCONMU.
054422,000165: 
054423,000166:                                                                                                  #  DEBRIS:       QPRET,          PDL+0 ... PDL+3
054424,000167: 
054425,000168: 33,3777                                           BANK     33                                    
054426,000169: 27,2000                                           SETLOC   TOF-FF                                
054427,000170: 27,2000                                           BANK                                           
054428,000171: 
054429,000172: 27,3360                                           COUNT*   $$/TFF                                
054430,000173: 
054431,000174: 27,3360           00037        TFFCONIC           STORE    TFF/RTMU                              #  1/SQRT(MU)    E:(17) M:(14)
054432,000175: 
054433,000176: 27,3361           53575        TFFCONMU           VLOAD    UNIT                                  #  COME HERE WITH TFFRTMU LOADED.
054434,000177: 27,3362           02207                                    RONE                                  #  SAVED RN.  M  E:(-29) M:(-27)
054435,000178: 27,3363           77725                           PDDL                                           #  UR/2 TO PDL+0, +5
054436,000179: 27,3364           00045                                    36D                                   #  MAGNITUDE
054437,000180: 27,3365           00015                           STORE    RMAG1                                 #  M  E:(-29) M:(-27)
054438,000181: 
054439,000182: 27,3366           77701                           NORM                                           
054440,000183: 27,3367           00047                                    X1                                    #  -NR
054441,000184: 27,3370           24041                           STOVL    NRMAG                                 #  RMAG  M  E:(-29+NR) M:(-27+NR)
054442,000185: 27,3371           02215                                    VONE                                  #  SAVED VN.  M/CS  E:(-7) M:(-5)
054443,000186: 27,3372           77761                           VXSC                                           
054444,000187: 27,3373           00037                                    TFF/RTMU                              #  E:(17) M:(14)
054445,000188: 27,3374           02170                           STORE    VONE'                                 #  VN/SQRT(MU)  E:(10) M:(9)
054446,000189: 
054447,000190: 27,3375           47361                           VXSC     VXV                                   
054448,000191: 27,3376           00041                                    NRMAG                                 #  E:(-29+NR) M:(-27+NR)
054449,000192:                                                                                                  #  UR/2 FROM PDL
054450,000193: 27,3377           47572                           VSL1     VSQ                                   #  BEFORE:  E:(-19+NR) M:(-18+NR)
054451,000194: 27,3400           14035                           STODL    TFFNP                                 #  LC P  M  E:(-38+2NR) M:(-36+2NR)
054452,000195:                                                                                                  #  SAVE ALSO FOR VGAMCALC
054453,000196: 27,3401           06512                                    TFF1/4                                
054454,000197: 27,3402           63271                           DDV      PDVL                                  #  (2/RMAG)  1/M  E:(26-NR) M:(24-NR)
054455,000198: 27,3403           00041                                    NRMAG                                 #  RMAG  M  E:(-29+NR) M:(-27+NR)
054456,000199: 27,3404           02170                                    VONE'                                 #  SAVED VN.  E:(10) M:(9)
054457,000200: 27,3405           57436                           VSQ      DCOMP                                 #  KEEP MPAC+2 HONEST FOR SQRT.
054458,000201: 27,3406           00025                           STORE    TFFVSQ                                #  -(V SQ/MU)  E:(20) M:(18)
054459,000202:                                                                                                  #  SAVE FOR VGAMCALC
054460,000203: 27,3407           43257                           SR*      DAD                                   

Page 1272

054462,000205: 27,3410           20573                                    0          -6,1                       #  GET -VSQ/MU  E:(26-NR) M:(24-NR)
054463,000206: 27,3411           77626                           STADR                                          
054464,000207:                                                                                                  #  2/RMAG  FROM PDL+2
054465,000208: 27,3412           77744                           STORE    TFFALFA                               #  ALFA  1/M  E:(26-NR) M:(24-NR)
054466,000209: 27,3413           41457                           SL*      PUSH                                  #  TEMP SAVE ALFA  E:(20) M:(18)
054467,000210: 27,3414           20173                                    0          -6,1                       
054468,000211: 27,3415           75446                           ABS      SQRT                                  #  E:(10) M:(9)
054469,000212: 27,3416           77701                           NORM                                           
054470,000213: 27,3417           00050                                    X2                                    #  X2 = -NA
054471,000214: 27,3420           00031                           STORE    TFFRTALF                              #  SQRT( ABS(ALFA) )  E:(10+NA) M:(9+NA)
054472,000215: 27,3421           75316                           DSQ      SIGN                                  #  NOT SO ACCURATE, BUT OK
054473,000216:                                                                                                  #  ALFA FROM PDL+2  E:(20) M:(18)
054474,000217: 27,3422           55254                           BZE      BDDV                                  #  SET 1/ALFA =0, TO SHOW SMALL ALFA
054475,000218: 27,3423           57425                                    +2                                    
054476,000219: 27,3424           06512                                    TFF1/4                                
054477,000220: 27,3425           00027                 +2        STORE    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
054478,000221: 27,3426           77616        DUMPCNIC           RVQ                                            
054479,000222: 
054480,000223:                                                                                                  #                                                              39 W

Page 1273

054482,000225:                                                                                                  #  SUBROUTINE NAME:  TFFRP/RA                                            DATE: 01.17.67
054483,000226:                                                                                                  #  MOD NO:  0                                                            LOG SECTION:  TIME OF FREE FALL
054484,000227:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
054485,000228:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 11 APR 67
054486,000229:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
054487,000230:                                                                                                  #                                                                        ALSO IMPROVE ACCURACY OF RAPO.
054488,000231: 
054489,000232:                                                                                                  #  FUNCTIONAL DESCRIPTION:  USED BY CALCTPER AND TFF DISPLAYS TO CALCULATE PERIGEE RADIUS AND ALSO
054490,000233:                                                                                                  #        APOGEE RADIUS FOR A GENERAL CONIC.
054491,000234:                                                                                                  #        PROGRAM GIVES PERIGEE RADIUS AS         APOGEE RADIUS IS GIVEN BY
054492,000235:                                                                                                  #                RP = P/(1+E)                            RA = (1+E) / ALFA
054493,000236:                                                                                                  #        WHERE    2
054494,000237:                                                                                                  #                E  = 1 - P ALFA
054495,000238:                                                                                                  #        IF RA IS NEGATIVE OR SHOWS DIVIDE OVERFLOW, THEN RA = POSMAX BECAUSE
054496,000239:                                                                                                  #                1. APOGEE RADIUS IS NOT MEANINGFUL FOR HYPERBOLA
054497,000240:                                                                                                  #                2. APOGEE RADIUS IS NOT DEFINED FOR PARABOLA
054498,000241:                                                                                                  #                3. APOGEE RADIUS EXCEEDS THE SCALING FOR ELLIPSE.
054499,000242: 
054500,000243:                                                                                                  #        THIS SUBROUTINE REQUIRES THE SIGNED RECIPROCAL SEMI MAJ AXIS, ALFA, AND SEMI LATUS RECTUM AS DATA.
054501,000244: 
054502,000245:                                                                                                  #  CALLING SEQUENCE:     CALL
054503,000246:                                                                                                  #                                TFFRP/RA
054504,000247:                                                                                                  #        PUSHLOC = PDL+0, ARBITRARY IF LEQ 10D
054505,000248:                                                                                                  #        C(MPAC) UNSPECIFIED
054506,000249: 
054507,000250:                                                                                                  #  SUBROUTINES CALLED:   NONE
054508,000251: 
054509,000252:                                                                                                  #  NORMAL EXIT MODE:     RVQ
054510,000253:                                                                                                  #        IF ELLIPSE, WITHIN NORMAL SCALING, RAPO IS CORRECT.
054511,000254:                                                                                                  #        OTHERWISE, RAPO = POSMAX.
054512,000255: 
054513,000256:                                                                                                  #  ALARMS:       NONE
054514,000257: 
054515,000258:                                                                                                  #  OUTPUT:       STORED IN PUSH LIST AREA.  SCALE OF OUTPUT AGREES WITH DATA SUPPLIED TO TFF/CONIC.
054516,000259:                                                                                                  #        RPER    E:(-29) M:(-27)         M       PERIGEE RADIUS          DESTROYED BY CALCTFF/CALCTPER, TFFTRIG.
054517,000260:                                                                                                  #        RAPO    E:(-29) M:(-27)         M       APOGEE RADIUS           WILL BE DESTROYED BY CALCTFF/CALCTPER
054518,000261:                                                                                                  #        PUSHLOC AT PDL+0
054519,000262: 
054520,000263:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
054521,000264:                                                                                                  #        TFFALFA E:(26-NR)               M       1/SEMI MAJ AXIS         LEFT BY TFFCONIC
054522,000265:                                                                                                  #                M:(24-NR)
054523,000266:                                                                                                  #        TFFNP   E:(-38+2NR)             M       LC P, SEMI LATUS RECTUM LEFT BY TFFCONIC
054524,000267:                                                                                                  #                M:(-36+2NR)
054525,000268:                                                                                                  #        X1                              -NR, NORM COUNT OF RMAG         LEFT BY TFFCONIC
054526,000269:                                                                                                  #        X2                              -NA, NORM COUNT OF ALFA         LEFT BY TFFCONIC
054527,000270: 
054528,000271:                                                                                                  #  DEBRIS:       QPRET, PDL+0 ... PDL+1
054529,000272: 

Page 1274

054531,000274: 27,3427                        RAPO               =        16D                                   #  APOGEE RADIUS  M  E:(-29) M:(-27)
054532,000275: 27,3427                        RPER               =        14D                                   #  PERIGEE RADIUS  M  E:(-29) M:(-27)
054533,000276: 
054534,000277: 27,3427           41345        TFFRP/RA           DLOAD    DMP                                   
054535,000278: 27,3430           00033                                    TFFALFA                               #  ALFA  1/M  E:(26-NR) M:(24-NR)
054536,000279: 27,3431           00035                                    TFFNP                                 #  LC P  M E:(-38+2NR) M:(-36+2NR)
054537,000280: 27,3432           57457                           SR*      DCOMP                                 #  ALFA P (-12+NR)
054538,000281: 27,3433           20571                                    0          -8D,1                      #  ALFA P (-4)
054539,000282: 27,3434           51415                           DAD      ABS                                   #  (DCOMP GIVES VALID TP RESULT FOR SQRT)
054540,000283:                                                                                                  #  (ABS PROTECTS SQRT IF E IS VERY NEAR 0)
054541,000284: 27,3435           17765                                    DP2(-4)                               
054542,000285: 27,3436           43366                           SQRT     DAD                                   #  E SQ = (1- P ALFA) (-4)
054543,000286: 27,3437           06512                                    TFF1/4                                
054544,000287: 27,3440           55206                           PUSH     BDDV                                  #  (1+E)  (-2)  TO PDL+0
054545,000288: 27,3441           00035                                    TFFNP                                 #  LCP  M  E:(-38+2NR) M:(-36+2NR)
054546,000289: 27,3442           53657                           SR*      SR*                                   #  (DOES SR THEN SL TO AVOID OVFL)
054547,000290: 27,3443           20601                                    0,1                                   #  X1=-NR
054548,000291: 27,3444           20572                                    0          -7,1                       #  (EFFECTIVE SL)
054549,000292: 27,3445           14017                           STODL    RPER                                  #  PERIGEE RADIUS  M  E:(-29) M:(-27)
054550,000293:                                                                                                  #  (1+E)  (-2)  FROM PDL+0
054551,000294: 27,3446           41005                           DMP      BOVB                                  
054552,000295: 27,3447           00027                                    TFF1/ALF                              #  E:(-22-2NA) M:(-20-2NA)
054553,000296: 27,3450           57753                                    TCDANZIG                              #  CLEAR OVFIND, IF ON.
054554,000297: 27,3451           53654                           BZE      SL*                                   
054555,000298: 27,3452           57461                                    MAXRA                                 #  SET POSMAX, IF ALFA=0
054556,000299: 27,3453           57603                                    0          -5,2                       #  -5+NA
054557,000300: 27,3454           40057                           SL*      BOV                                   
054558,000301: 27,3455           57576                                    0,2                                   
054559,000302: 27,3456           57461                                    MAXRA                                 #  SET POSMAX IF OVFL.
054560,000303: 27,3457           77644                           BPL                                            #  CONTINUE WITH VALID RAPO.
054561,000304: 27,3460           57463                                    +3                                    
054562,000305: 27,3461           77745        MAXRA              DLOAD                                          #  RAPO CALC IS NOT VALID.  SET RAPO =
054563,000306: 27,3462           17771                                    NEARONE                               #  POSMAX AS A TAG.
054564,000307: 27,3463           00021                 +3        STORE    RAPO                                  #  APOGEE RADIUS  M  E:(-29) M:(-27)
054565,000308: 27,3464           77616        DUMPRPRA           RVQ                                            
054566,000309: 
054567,000310:                                                                                                  #                                                                30 W

Page 1275

054569,000312:                                                                                                  #  SUBROUTINE NAME:  CALCTPER / CALCTFF                                  DATE:  01.29.67
054570,000313:                                                                                                  #  MOD NO:  0                                                            LOG SECTION:  TIME OF FREE FALL
054571,000314:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
054572,000315:                                                                                                  #  MOD NO:  1    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 67
054573,000316:                                                                                                  #  MOD NO:  2    MOD BY:  RR BAIRNSFATHER        DATE: 14 APR 67
054574,000317:                                                                                                  #  MOD NO:  3    MOD BY:  RR BAIRNSFATHER        DATE: 8 JUL 67          NEAR EARTH MUE AND NEG TFF (GONEPAST)
054575,000318:                                                                                                  #  MOD NO:  4    MOD BY:  RR BAIRNSFATHER        DATE: 21 NOV 67         ADD VARIABLE MU.
054576,000319:                                                                                                  #  MOD NO:  5    MOD BY:  RR BAIRNSFATHER        DATE: 21 MAR 68         ACCEPT DIFFERENT EARTH/MOON SCALES
054577,000320: 
054578,000321:                                                                                                  #  FUNCTIONAL DESCRIPTION:  PROGRAM CALCULATES THE FREE-FALL TIME OF FLIGHT FROM PRESENT POSITION RN AND
054579,000322:                                                                                                  #        VELOCITY VN TO A RADIUS LENGTH SPECIFIED BY RTERM, SUPPLIED BY THE USER.  THE POSITION VECTOR
054580,000323:                                                                                                  #        RN MAY BE ON EITHER SIDE OF THE CONIC, BUT RTERM IS CONSIDERED ON THE INBOUND SIDE.
054581,000324:                                                                                                  #        THE EQUATIONS ARE
054582,000325: 
054583,000326:                                                                                                  #                Q2 = -SQRT(RTERM (2-RTERM ALFA) - LCP)  (INBOUND SIDE)) LEQ +- LCE/SQRT(ALFA)
054584,000327:                                                                                                  #                     -  -
054585,000328:                                                                                                  #                Q1 = RN.VN / SQRT(MU)                                   LEQ +- LCE/SQRT(ALFA)
054586,000329: 
054587,000330:                                                                                                  #                Z = NUM / DEN                                           LEQ +- 1/SQRT(ALFA)
054588,000331: 
054589,000332:                                                                                                  #        WHERE, IF INBOUND
054590,000333:                                                                                                  #                NUM = RTERM -RN                                         LEQ +- 2 LCE/ALFA
054591,000334:                                                                                                  #                DEN = Q2+Q1                                             LEQ +- 2 LCE/SQRT(ALFA)
054592,000335: 
054593,000336:                                                                                                  #        AND, IF OUTBOUND
054594,000337:                                                                                                  #                NUM = Q2-Q1                                             LEQ +- 2 LCE/SQRT(ALFA)
054595,000338:                                                                                                  #                DEN = 2 - ALFA (RTERM + RN).                            LEQ +- 2 LCE
054596,000339: 
054597,000340:                                                                                                  #        IF      ALFA ZZ < 1.0           (FOR ALL CONICS EXCEPT ELLIPSES HAVING ABS(DEL ECC ANOM) G 90 DEG)
054598,000341:                                                                                                  #        THEN    X = ALFA Z Z
054599,000342:                                                                                                  #        AND     TFF = (RTERM +RN -2 ZZ T(X) ) Z/SQRT(MU)
054600,000343:                                                                                                  #                EXCEPT  IF ALFA PNZ, AND IF TFF NEG,
054601,000344:                                                                                                  #                THEN    TFF = 2 PI /(ALFA SQRT(ALFA)) + TFF
054602,000345:                                                                                                  #        OR      IF ALFA ZZ GEQ 1.0      (FOR ELLIPSES HAVING ABS(DEL ECC ANOM) GEQ 90 DEG)
054603,000346:                                                                                                  #        THEN    X = 1/ALFA Z Z
054604,000347:                                                                                                  #        AND     TFF = (PI/SQRT(ALFA) -Q2 +Q1 +2(X T(X) -1) /ALFA Z) /ALFA SQRT(MU)
054605,000348:                                                                                                  #        WHERE   T(X) IS A POLYNOMIAL APPROXIMATION TO THE SERIES
054606,000349:                                                                                                  #                             2      3             2
054607,000350:                                                                                                  #                1/3 - X/5 + X /7 - X /9 ...     (X  < 1.0)
054608,000351: 
054609,000352:                                                                                                  #  CALLING SEQUENCE:     TIME TO RTERM                   TIME TO PERIGEE
054610,000353:                                                                                                  #                        CALL                            CALL
054611,000354:                                                                                                  #                                CALCTFF                         CALCTPER
054612,000355:                                                                                                  #                        C(MPAC) = TERMNL RAD M          C(MPAC) = PERIGEE RAD M
054613,000356:                                                                                                  #        FOR EITHER, E:(-29) M:(-27)
054614,000357:                                                                                                  #        FOR EITHER, PUSHLOC = PDL+0, ARBITRARY IF LEQ 8D.

Page 1276

054616,000359: 
054617,000360:                                                                                                  #  SUBROUTINES CALLED:   T(X), VIA RTB
054618,000361: 
054619,000362:                                                                                                  #  NORMAL EXIT MODE:     RVQ
054620,000363:                                                                                                  #        HOWEVER, PROGRAM EXITS WITH ONE OF THE FOLLOWING VALUES FOR TFF (-28) CS IN MPAC.  USER MUST STORE.
054621,000364:                                                                                                  #                A. TFF = FLIGHT TIME.  NORMAL CASE FOR POSITIVE FLIGHT TIME LESS THAN ONE ORBITAL PERIOD.
054622,000365:                                                                                                  #                B. (THIS OPTION IS NO LONGER USED.)
054623,000366:                                                                                                  #                C. TFF = POSMAX.  THIS INDICATES THAT THE CONIC FROM THE PRESENT POSITION WILL NOT RETURN TO
054624,000367:                                                                                                  #                   THE SPECIFIED ALTITUDE.  ALSO INDICATES OUTBOUND PARABOLA OR HYPERBOLA.
054625,000368: 
054626,000369:                                                                                                  #  OUTPUT:       C(MPAC)         (-28) CS        TIME OF FLIGHT, OR TIME TO PERIGEE
054627,000370:                                                                                                  #                TFFX            (0)             X,                                      LEFT FOR ENTRY DISPLAY TFF ROUTINES
054628,000371:                                                                                                  #                NRTERM          E:(-29+NR) M    RTERM, WEIGHTED BY NR                   LEFT FOR ENTRY DISPLAY TFF ROUTINES
054629,000372:                                                                                                  #                                M:(-27+NR)
054630,000373:                                                                                                  #                TFFTEM          E:(-59+2NR)     LCP Z Z SGN(SDELF)                      LEFT FOR ENTRY DISPLAY TFF ROUTINES
054631,000374:                                                                                                  #                                M:(-55+2NR)     LCP /ALFA SGN(SDELF)                    LEFT FOR ENTRY DISPLAY TFF ROUTINES
054632,000375:                                                                                                  #                NOTE:   TFFTEM = PDL 36D AND WILL BE DESTROYED BY .:UNIT:.
054633,000376:                                                                                                  #                RMAG1           E:(-29) M:(-27) PDL 12 NOT TOUCHED.
054634,000377:                                                                                                  #                TFFQ1           E:(-16) M:(-15) PDL 14D
054635,000378:                                                                                                  #                TFFDELQ         E:(-16) M:(-15) PDL 10D
054636,000379:                                                                                                  #                PUSHLOC AT PDL+0
054637,000380: 
054638,000381:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
054639,000382:                                                                                                  #                RONE            E:(-29) M:(-27) M  STATE VECTOR                         LEFT BY USER
054640,000383:                                                                                                  #                VONE'           E:(+10) M:(+9)  VN/SQRT(MU)                             LEFT BY TFF/CONIC
054641,000384:                                                                                                  #                RMAG1           E:(-29) M:(-27) PRESENT RADIUS, M                       LEFT BY TFFCONIC
054642,000385:                                                                                                  #                C(MPAC)         E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH, M        LEFT BY USER
054643,000386: 
054644,000387:                                                                                                  #                THE FOLLOWING ARE STORED IN THE PUSH LIST AREA.
054645,000388:                                                                                                  #                TFF/RTMU        E:(17) M:(14)   1/SQRT(MU)                              LEFT BY TFFCONIC.
054646,000389:                                                                                                  #                NRMAG           E:(-29+NR)      M  RMAG, NORMALIZED                     LEFT BY TFFCONIC
054647,000390:                                                                                                  #                                M:(-27+NR)
054648,000391:                                                                                                  #                X1                              -NR, NORM COUNT                         LEFT BY TFFCONIC
054649,000392:                                                                                                  #                TFFNP           E:(-38+2NR)     M  LCP, SEMI LATUS RECTUM, WEIGHT NR    LEFT BY TFFCONIC
054650,000393:                                                                                                  #                                M:(-36+2NR)
054651,000394:                                                                                                  #                TFFALFA         E:(26-NR)       1/M  ALFA, WEIGHT NR                    LEFT BY TFFCONIC
054652,000395:                                                                                                  #                                M:(24-NR)
054653,000396:                                                                                                  #                TFFRTALF        E:(10+NA)       SQRT(ALFA), NORMALIZED                  LEFT BY TFFCONIC
054654,000397:                                                                                                  #                                M:(9+NA)
054655,000398:                                                                                                  #                X2                              -NA, NORMCOUNT                          LEFT BY TFFCONIC
054656,000399:                                                                                                  #                TFF1/ALF        E:(-22-2NA)     SIGNED SEMIMAJ AXIS, WEIGHTED BY NA     LEFT BY TFFCONIC
054657,000400:                                                                                                  #                                M:(-20-2NA)
054658,000401: 
054659,000402:                                                                                                  #  DEBRIS:       QPRET, PDL+0 ... PDL+3
054660,000403:                                                                                                  #                RTERM           E:(-29) M:(-27) RTERM, TERMINAL RADIUS LENGTH
054661,000404:                                                                                                  #                RAPO            E:(-29) M:(-27) PDL 16D (=NRTERM)
054662,000405:                                                                                                  #                RPER            E:(-29) M:(-27) PDL 14D (=TFFQ1)
054663,000406: 

Page 1277

054665,000408: 27,3465           77614        CALCTPER           SETGO                                          #  ENTER WITH RPER IN MPAC
054666,000409: 27,3466           03436                                    TFFSW                                 
054667,000410: 27,3467           57472                                    +3                                    
054668,000411: 27,3470           77614        CALCTFF            CLEAR                                          #  ENTER WITH RTERM IN MPAC
054669,000412: 27,3471           03676                                    TFFSW                                 
054670,000413: 27,3472           00023                 +3        STORE    RTERM                                 #  E:(-29) M:(-27)
054671,000414: 27,3473           77657                           SL*                                            
054672,000415: 27,3474           20201                                    0,1                                   #  X1=-NR
054673,000416: 27,3475           00021                           STORE    NRTERM                                #  RTERM  E:(-29+NR) M:(-27+NR)
054674,000417: 27,3476           44205                           DMP      BDSU                                  
054675,000418: 27,3477           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
054676,000419: 27,3500           06512                                    TFF1/4                                
054677,000420: 27,3501           41206                           PUSH     DMP                                   #  (2-ALFA RTERM)  (-3)  TO PDL+0
054678,000421: 27,3502           00021                                    NRTERM                                #  E:(-29+NR) M:(-27+NR)
054679,000422: 27,3503           53725                           PDDL     SR*                                   #  RTERM(2-ALFA RTERM) TO PDL+2
054680,000423:                                                                                                  #  E:(-32+NR) M:(-30+NR)
054681,000424: 27,3504           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
054682,000425: 27,3505           20573                                    0          -6,1                       #  X1 = -NR
054683,000426: 27,3506           43276                           DCOMP    DAD                                   #  DUE TO SHIFTS, KEEP PRECISION FOR SQRT
054684,000427:                                                                                                  #  RTERM(2-ALFA RTERM) FROM PDL +2
054685,000428:                                                                                                  #  E:(-32+NR) M:(-30+NR)
054686,000429: 27,3507           77657                           SR*                                            #  LEAVE  E:(-32) M:(-30)
054687,000430: 27,3510           20601                                    0,1                                   #  X1 = -NR
054688,000431: 27,3511           71214                           BOFF     DLOAD                                 #  CHECK TFF /TPER SWITCH
054689,000432: 27,3512           03756                                    TFFSW                                 
054690,000433: 27,3513           57515                                    +2                                    #  IF TFF, CONTINUE
054691,000434: 27,3514           06522                                    TFFZEROS                              #  IF TPER, SET Q2 = 0
054692,000435: 27,3515           75440                 +2        BMN      SQRT                                  #  E:(-16) M:(-15)
054693,000436: 
054694,000437: 27,3516           57650                                    MAXTFF1                               #  NO FREE FALL CONIC TO RTERM FROM HERE
054695,000438:                                                                                                  #  RESET PDL, SET TFF=POSMAX, AND EXIT.
054696,000439: 
054697,000440: 27,3517           41076                           DCOMP    BOVB                                  #  RT IS ON INBOUND SIDE.  ASSURE OVFIND=0
054698,000441: 27,3520           57753                                    TCDANZIG                              #  ANY PORT IN A STORM.
054699,000442: 27,3521           24045                           STOVL    TFFTEM                                #  Q2  E:(-16) M:(-15)
054700,000443: 27,3522           02170                                    VONE'                                 #  VN/SQRT(MU)  E:(10) M:(9)
054701,000444: 27,3523           52441                           DOT      SL3                                   
054702,000445: 27,3524           02207                                    RONE                                  #  SAVED RN.  E:(-29) M:(-27)
054703,000446: 27,3525           00017                           STORE    TFFQ1                                 #  Q1, SAVE FOR GONEPAST TEST.
054704,000447:                                                                                                  #  E:(-16) M:(-15)
054705,000448: 27,3526           44240                           BMN      BDSU                                  
054706,000449: 27,3527           57550                                    INBOUND                               #  USE ALTERNATE Z
054707,000450: 27,3530           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
054708,000451: 
054709,000452:                                                                                                  #  OUTBOUND Z CALC CONTINUES HERE
054710,000453: 
054711,000454: 27,3531           14043                           STODL    TFFX                                  #  NUM=Q2-Q1  E:(-16) M:(-15)
054712,000455: 27,3532           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
054713,000456: 27,3533           44205                           DMP      BDSU                                  

Page 1278

054715,000458: 27,3534           00041                                    NRMAG                                 #  RMAG  E:(-29+NR) M:(-27+NR)
054716,000459:                                                                                                  #  (2-RTERM ALFA)  (-3) FROM PDL+0
054717,000460: 27,3535           51406        SAVEDEN            PUSH     ABS                                   #  DEN TO PDL+0  E:(-3) OR (-16)
054718,000461:                                                                                                  #                M:(-3) OR (-15)
054719,000462: 27,3536           40015                           DAD      BOV                                   #  INDETERMINANCY TEST
054720,000463: 27,3537           17757                                    LIM(-22)                              #  =1.0-B(-22)
054721,000464: 27,3540           57561                                    TFFXTEST                              #  GO IF DEN >/= B(-22)
054722,000465: 27,3541           65345                           DLOAD    PDDL                                  #  SET DEN=0 OTHERWISE
054723,000466: 27,3542           06522                                    TFFZEROS                              
054724,000467:                                                                                                  #  XCH ZERO WITH PDL+0
054725,000468: 27,3543           57545                           DLOAD    DCOMP                                 
054726,000469: 27,3544           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
054727,000470: 27,3545           71240                           BMN      DLOAD                                 #  FOR TPER:  Z INDET AT DELE/2=0 AND 90.
054728,000471: 27,3546           57655                                    TFFEL1                                #  ASSUME 90, AND LEAVE 0 IN PDL: 1/Z=D/N
054729,000472: 
054730,000473:                                                                                                  #  Z INDET. AT PERIGEE FOR PARAB OR HYPERB.
054731,000474: 27,3547           77616        DUMPTFF1           RVQ                                            #  RETURN TFF =0
054732,000475: 
054733,000476:                                                                                                  #  INBOUND Z CALC CONTINUES HERE
054734,000477: 
054735,000478: 27,3550           77745        INBOUND            DLOAD                                          #  RESET PDL+0
054736,000479: 27,3551           45345                           DLOAD    DSU                                   #  ALTERNATE Z CALC
054737,000480: 27,3552           00023                                    RTERM                                 #  E:(-29) M:(-27)
054738,000481: 27,3553           00015                                    RMAG1                                 #  E:(-29) M:(-27)
054739,000482: 27,3554           14043                           STODL    TFFX                                  #  NUM=RTERM-RN  E:(-29) M:(-27)
054740,000483: 27,3555           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
054741,000484: 27,3556           52015                           DAD      GOTO                                  
054742,000485: 27,3557           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
054743,000486: 27,3560           57535                                    SAVEDEN                               #  DEN = Q2+Q1  E:(-16) M:(-15)
054744,000487: 
054745,000488: 27,3561           65215        TFFXTEST           DAD      PDDL                                  #  (ABS(DEN) TO PDL+2))  E:(-3) OR (-16)
054746,000489:                                                                                                  #                        M:(-3) OR (-15)
054747,000490: 27,3562           17761                                    DP(-22)                               #  RESTORE ABS(DEN) TO MPAC
054748,000491: 27,3563           00043                                    TFFX                                  #  NUM  E:(-16) OR (-29)  M:(-15) OR (-27)
054749,000492: 27,3564           53605                           DMP      SR*                                   
054750,000493: 27,3565           00031                                    TFFRTALF                              #  SQRT(ALFA)  E:(10+NA) M:(9+NA)
054751,000494: 27,3566           57201                                    0          -3,2                       #  X2=-NA
054752,000495: 27,3567           77671                           DDV                                            #  C(MPAC) =NUM SQRT(ALFA)       E:(-3) OR (-16)
054753,000496:                                                                                                  #                                M:(-3) OR (-15)
054754,000497:                                                                                                  #  ABS(DEN) FROM PDL+2   E:(-3) OR (-16)
054755,000498:                                                                                                  #                        M:(-3) OR (-15)
054756,000499: 27,3570           40145                           DLOAD    BOV                                   #  (THE DLOAD IS SHARED WITH TFFELL)
054757,000500: 27,3571           00043                                    TFFX                                  #  NUM  E:(-16) OR (-29)  M:(-15) OR (-27)
054758,000501: 27,3572           57653                                    TFFELL                                #  USE EQN FOR DELE GEQ 90, LEQ -90
054759,000502: 
054760,000503:                                                                                                  #  OTHERWISE, CONTINUE FOR GENERAL CONIC FOR TFF EQN
054761,000504: 
054762,000505: 27,3573           45471                           DDV      STADR                                 
054763,000506:                                                                                                  #  DEN FROM PDL+0        E:(-3) OR (-16)
054764,000507:                                                                                                  #                        M:(-3) OR (-15)
054765,000508: 27,3574           77732                           STORE    TFFTEM                                #  Z SAVE FOR SIGN OF SDELF.

Page 1279

054767,000510:                                                                                                  #  E:(-13) M:(-12)
054768,000511: 27,3575           63406                           PUSH     DSQ                                   #  Z TO PDL+0
054769,000512: 27,3576           41206                           PUSH     DMP                                   #  Z SQ TO PDL+2  E:(-26) M:(-24)
054770,000513: 27,3577           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
054771,000514: 27,3600           75261                           SL       SIGN                                  
054772,000515: 27,3601           20206                                    5                                     
054773,000516: 27,3602           00045                                    TFFTEM                                #  AFFIX SIGN FOR SDELF (ENTRY DISPLAY)
054774,000517: 27,3603           14045                           STODL    TFFTEM                                #  P ZSQ  E:(-59+2NR) M:(-55+2NR)
054775,000518:                                                                                                  #  (ARG IS USED IN TFF/TRIG)
054776,000519:                                                                                                  #  ZSQ FROM PDL+2  E:(-26) M:(-24)
054777,000520: 27,3604           41206                           PUSH     DMP                                   #  RESTORE PUSH LOC
054778,000521: 27,3605           00033                                    TFFALFA                               #  ALFA  E:(26-NR) M:(24-NR)
054779,000522: 27,3606           77657                           SL*                                            
054780,000523: 27,3607           20201                                    0,1                                   #  X1=-NR
054781,000524: 27,3610           00043                           STORE    TFFX                                  #  X
054782,000525: 27,3611           41234                           RTB      DMP                                   
054783,000526: 27,3612           57735                                    T(X)                                  #  POLY
054784,000527:                                                                                                  #  ZSQ FROM PDL+2  E:(-26) M:(-24)
054785,000528: 27,3613           44302                           SR2      BDSU                                  #  2 ZSQ T(X)  E:(-29) M:(-27)
054786,000529: 27,3614           00023                                    RTERM                                 #  RTERM  E:(-29) M:(-27)
054787,000530: 27,3615           41215                           DAD      DMP                                   
054788,000531: 27,3616           00015                                    RMAG1                                 #  E:(-29) M:(-27)
054789,000532:                                                                                                  #  Z FROM PDL+0  E:(-13) M:(-12)
054790,000533: 27,3617           51042                           SR3      BPL                                   #  TFF SQRT(MU)  E:(-45) M:(-42)
054791,000534: 27,3620           57641                                    ENDTFF                                #  (NO PUSH UP)
054792,000535: 27,3621           75206                           PUSH     SIGN                                  #  TFF SQRT(MU) TO PDL+0
054793,000536: 27,3622           00017                                    TFFQ1                                 #  Q1 FOR GONEPAST TEST
054794,000537: 27,3623           71244                           BPL      DLOAD                                 #  GONE PAST ?
054795,000538: 27,3624           57645                                    NEGTFF                                #  YES. TFF < 0.
054796,000539: 27,3625           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
054797,000540: 27,3626           51076                           DCOMP    BPL                                   #  ALFA > 0 ?
054798,000541: 27,3627           57645                                    NEGTFF                                #  NO. TFF IS NEGATIVE.
054799,000542: 
054800,000543:                                                                                                  #  CORRECT FOR ORBITAL PERIOD.
054801,000544: 
054802,000545: 27,3630           77676                           DCOMP                                          #  YES.  CORRECT FOR ORB PERIOD.
054803,000546: 27,3631           56205                           DMP      DDV                                   
054804,000547: 27,3632           17755                                    PI/16                                 #  2 PI (-5)
054805,000548: 27,3633           00031                                    TFFRTALF                              #  SQRT(ALFA)  E:(10+NA) M:(9+NA)
054806,000549: 27,3634           53657                           SL*      SL*                                   
054807,000550: 27,3635           57602                                    0          -4,2                       #  X2=-NA
054808,000551: 27,3636           57602                                    0          -4,2                       
054809,000552: 27,3637           43257                           SL*      DAD                                   
054810,000553: 27,3640           57576                                    0,2                                   
054811,000554:                                                                                                  #  TFF SQRT(MU) FROM PDL+0       E:(-45) M:(-42)
054812,000555: 27,3641           40005        ENDTFF             DMP      BOV                                   #  TFF SQRT(MU) IN MPAC          E:(-45) M:(-42)
054813,000556: 27,3642           00037                                    TFF/RTMU                              #  E:(17) M:(14)
054814,000557: 27,3643           57651                                    MAXTFF                                #  SET POSMAX IF OVFL.
054815,000558: 
054816,000559: 27,3644           77616        DUMPTFF2           RVQ                                            #  RETURN TFF (-28) CS IN MPAC.
054817,000560: 

Page 1280

054819,000562: 27,3645           77745        NEGTFF             DLOAD                                          
054820,000563:                                                                                                  #  TFF SQRT(MU) FROM PDL+0, NEGATIVE.
054821,000564: 27,3646           77650                           GOTO                                           
054822,000565: 27,3647           57641                                    ENDTFF                                
054823,000566: 
054824,000567: 27,3650           77745        MAXTFF1            DLOAD                                          #  RESET PDL
054825,000568: 27,3651           43545        MAXTFF             DLOAD    RVQ                                   
054826,000569: 27,3652           17771                                    NEARONE                               
054827,000570: 
054828,000571:                                                                                                  #  TIME OF FLIGHT ELLIPSE WHEN DEL (ECCENTRIC ANOM) GEQ 90 AND LEQ -90.
054829,000572: 
054830,000573:                                                                                                  #  NUM FROM TFFX.        E:(-16) OR (-29)
054831,000574:                                                                                                  #                        M:(-15) OR (-27)
054832,000575: 27,3653           77712        TFFELL             SL2                                            #  NUM  E:(-14) OR (-27)  M:(-13) OR (-25)
054833,000576: 27,3654           41465                           BDDV     PUSH                                  #  TEMP SAVE D/N IN PDL+0
054834,000577:                                                                                                  #  DEN FROM PDL+0  E:(-3)/( 16) M:(-3)/(-15)
054835,000578:                                                                                                  #  N/D TO PDL+0  E:(11) M:(10)
054836,000579: 27,3655           45345        TFFEL1             DLOAD    DSU                                   #  (ENTER WITH D/N=0 IN PDL+0)
054837,000580: 27,3656           00045                                    TFFTEM                                #  Q2  E:(-16) M:(-15)
054838,000581: 27,3657           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
054839,000582: 27,3660           14013                           STODL    TFFDELQ                               #  Q2-Q1  E:(-16) M:(-15)
054840,000583:                                                                                                  #  D/N FROM PDL+0
054841,000584: 27,3661           77626                           STADR                                          
054842,000585: 27,3662           77732                           STORE    TFFTEM                                #  D/N  E:(11) M:(10)
054843,000586: 27,3663           53605                           DMP      SL*                                   
054844,000587: 27,3664           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
054845,000588: 27,3665           57576                                    0,2                                   #  1/ALFA Z  E:(-11-NA) M:(-10-NA)
054846,000589: 27,3666           41206                           PUSH     DMP                                   #  TO PDL+0
054847,000590: 27,3667           00045                                    TFFTEM                                #  1/Z  E:(11) M:(10)
054848,000591: 27,3670           41057                           SL*      BOVB                                  
054849,000592: 27,3671           57576                                    0,2                                   #  X2= -NA
054850,000593: 27,3672           21712                                    SIGNMPAC                              #  IN CASE X= 1.0, CONTINUE
054851,000594: 27,3673           00043                           STORE    TFFX                                  #  X=1/ALFA ZSQ
054852,000595: 27,3674           41234                           RTB      DMP                                   
054853,000596: 27,3675           57735                                    T(X)                                  #  POLY
054854,000597: 27,3676           00043                                    TFFX                                  
054855,000598: 27,3677           45242                           SR3      DSU                                   
054856,000599: 27,3700           17763                                    DP2(-3)                               
054857,000600: 27,3701           41405                           DMP      PUSH                                  #  2(X T(X)-1) /Z ALFA   E:(-15-NA)
054858,000601:                                                                                                  #                        M:(-14-NA)
054859,000602:                                                                                                  #  1/ALFA Z FROM PDL+0   E:(-11-NA)
054860,000603:                                                                                                  #                        M:(-10-NA)
054861,000604: 27,3702           41345                           DLOAD    DMP                                   #  GET SIGN FOR SDELF
054862,000605: 27,3703           00045                                    TFFTEM                                #  1/Z  E:(11) M:(10)
054863,000606: 27,3704           00015                                    RMAG1                                 #  E:(-29) M:(-27)
054864,000607: 27,3705           43312                           SL2      DAD                                   
054865,000608: 27,3706           00017                                    TFFQ1                                 #  Q1  E:(-16) M:(-15)
054866,000609: 27,3707           14045                           STODL    TFFTEM                                #  (Q1+R 1/Z) =SGN OF SDELF  E:(-16) M:(-15
054867,000610: 27,3710           00035                                    TFFNP                                 #  LC P  E:(-38+2NR) M:(-36+2NR)
054868,000611: 27,3711           53605                           DMP      SL*                                   #  CALC FOR ARG FOR TFF/TRIG.

Page 1281

054870,000613: 27,3712           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
054871,000614: 27,3713           57575                                    1,2                                   #  X2=-NA
054872,000615: 27,3714           53765                           SIGN     SL*                                   
054873,000616: 27,3715           00045                                    TFFTEM                                #  AFFIX SIGN FOR SDELF
054874,000617: 27,3716           57576                                    0,2                                   
054875,000618: 27,3717           14045                           STODL    TFFTEM                                #  P/ALFA  E:(-59+2NR) M:(-55+2NR)
054876,000619:                                                                                                  #  (ARG FOR USE IN TFF/TRIG)
054877,000620: 27,3720           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
054878,000621: 27,3721           41366                           SQRT     DMP                                   
054879,000622: 27,3722           17755                                    PI/16                                 #  PI (-4)
054880,000623: 27,3723           77615                           DAD                                            
054881,000624:                                                                                                  #  2(XT(X)-1)/Z ALFA FROM PDL    E:(-15-NA)
054882,000625:                                                                                                  #                                M:(-14-NA)
054883,000626: 27,3724           45257                           SL*      DSU                                   
054884,000627: 27,3725           57577                                    0          -1,2                       
054885,000628: 27,3726           00013                                    TFFDELQ                               #  Q2-Q1  E:(-16) M:(-15)
054886,000629: 27,3727           53605                           DMP      SL*                                   
054887,000630: 27,3730           00027                                    TFF1/ALF                              #  1/ALFA  E:(-22-2NA) M:(-20-2NA)
054888,000631: 27,3731           57601                                    0          -3,2                       
054889,000632: 27,3732           52057                           SL*      GOTO                                  
054890,000633: 27,3733           57602                                    0          -4,2                       
054891,000634: 27,3734           57641                                    ENDTFF                                #  TFF SQRT(MU) IN MPAC E:(-45) M:(-42)
054892,000635: 

Page 1282

054894,000637:                                                                                                  #  PROGRAM NAME:  T(X)                           DATE:  01.17.67
054895,000638:                                                                                                  #  MOD NO:  0                                    LOG SECTION:  TIME OF FREE FALL
054896,000639:                                                                                                  #  MOD BY:  RR BAIRNSFATHER
054897,000640: 
054898,000641:                                                                                                  #  FUNCTIONAL DESCRIPTION:  THE POLYNOMIAL T(X) IS USED BY TIME OF FLIGHT SUBROUTINES CALCTFF AND
054899,000642:                                                                                                  #        CALCTPER TO APPROXIMATE THE SERIES
054900,000643:                                                                                                  #                           2     3
054901,000644:                                                                                                  #                1/3 -X/5 +X /7 -X /9 ...
054902,000645: 
054903,000646:                                                                                                  #        WHERE   X = ALFA Z Z            IF ALFA Z Z LEQ 1
054904,000647:                                                                                                  #                X = 1/(ALFA Z Z)        IF ALFA Z Z G 1
054905,000648: 
054906,000649:                                                                                                  #        ALSO    X IS NEG FOR HYPERBOLIC ORBITS
054907,000650:                                                                                                  #                X = 0 FOR PARABOLIC ORBITS
054908,000651:                                                                                                  #                X IS POSITIVE FOR ELLIPTIC ORBITS
054909,000652: 
054910,000653:                                                                                                  #        FOR FLIGHT 278, THE POLYNOMIAL T(X) IS FITTED OVER THE RANGE (0,+1) AND HAS A MAXIMUM
054911,000654:                                                                                                  #        DEVIATION FROM THE SERIES OF 2 E-5   (T(X) IS A CHEBYCHEV TYPE FIT AND WAS OBTAINED USING
054912,000655:                                                                                                  #        MAC PROGRAM AUTCURFIT294RRB AND IS VALID TO THE SAME TOLERANCE OVER THE RANGE (-.08,+1).)
054913,000656: 
054914,000657:                                                                                                  #  CALLING SEQUENCE:     RTB
054915,000658:                                                                                                  #                                T(X)
054916,000659:                                                                                                  #        C(MPAC) = X
054917,000660: 
054918,000661:                                                                                                  #  SUBROUTINES CALLED:  NONE
054919,000662: 
054920,000663:                                                                                                  #  NORMAL EXIT MODE:  TC   DANZIG
054921,000664: 
054922,000665:                                                                                                  #  ALARMS:  NONE
054923,000666: 
054924,000667:                                                                                                  #  OUTPUT:  C(MPAC) = T(X)
054925,000668: 
054926,000669:                                                                                                  #  ERASABLE INITIALIZATION REQUIRED:
054927,000670:                                                                                                  #        C(MPAC) = X
054928,000671: 
054929,000672:                                                                                                  #  DEBRIS:  NONE
054930,000673: 
054931,000674: 27,3735           07222        T(X)               TC       POLY                                  
054932,000675: 27,3736           00004                           DEC      4          B-14                       #  N-1
054933,000676: 27,3737           12525 12525                     2DEC     3.333333333 E-1                        
054934,000677: 
054935,000678: 27,3741           71463 57703                     2DEC*    -1.999819135 E-1*                       
054936,000679: 
054937,000680: 27,3743           04423 17645                     2DEC*    1.418148467 E-1*                       
054938,000681: 
054939,000682: 27,3745           74604 43667                     2DEC*    -1.01310997 E-1*                       
054940,000683: 
054941,000684: 27,3747           01626 37256                     2DEC*    5.609004986 E-2*                       
054942,000685: 
054943,000686: 27,3751           77404 52071                     2DEC*    -1.536156925 E-2*                       
054944,000687: 
054945,000688: 27,3753           06061        ENDT(X)            TC       DANZIG                                
054946,000689: 
054947,000690: 27,3754  27,3753               TCDANZIG           =        ENDT(X)                               
054948,000691: 

Page 1283

054950,000693:                                                                                                  #  TFF CONSTANTS
054951,000694: 
054952,000695: 32,3773                                           BANK     32                                    
054953,000696: 
054954,000697: 27,2000                                           SETLOC   TOF-FF1                               
054955,000698: 27,2000                                           BANK                                           
054956,000699: 
054957,000700:                                                                                                  #                                                NOTE _  NOTE _  ADJUSTED MUE FOR NEAR EARTH TRAJ.
054958,000701:                                                                                                  # MUE            =       3.990815471 E10         M CUBE/CS SQ
054959,000702:                                                                                                  # RTMUE          =       1.997702549 E5 B-18*    MODIFIED EARTH MU
054960,000703: 
054961,000704:                                                                                                  #                                                NOTE _  NOTE _  ADJUSTED MUE FOR NEAR EARTH TRAJ.
054962,000705:                                                                                                  # MUM            =       4.902778 E8             M CUBE/CS SQ
054963,000706:                                                                                                  # RTMUM          2DEC*   2.21422176 E4 B-18*
054964,000707: 
054965,000708: 27,3754           06220 37553  PI/16              2DEC     3.141592653 B-4                        
054966,000709: 
054967,000710: 27,3756           37777 37700  LIM(-22)           2OCT     3777737700                            #  1.0 -B(-22)
054968,000711: 
054969,000712: 27,3760           00000 00100  DP(-22)            2OCT     0000000100                            #  B(-22)
054970,000713: 
054971,000714: 27,3762           04000 00000  DP2(-3)            2DEC     1          B-3                        
054972,000715: 
054973,000716: 27,3764           02000 00000  DP2(-4)            2DEC     1          B-4                        #  1/16
054974,000717: 
054975,000718:                                                                                                  #  RPAD1         2DEC    6373338 B-29            M (-29) = 20909901.57 FT
054976,000719: 
054977,000720: 27,3766  23,2314               RPAD1              =        RPAD                                  
054978,000721: 
054979,000722: 27,3766           00305 11205  R300K              2DEC     6464778    B-29                       #  (-29) M
054980,000723: 
054981,000724: 27,3770           37777 37777  NEARONE            2DEC     .999999999                            
054982,000725: 
054983,000726: 27,3772  23,2521               TFFZEROS           EQUALS   HI6ZEROS                              
054984,000727: 27,3772  23,2511               TFF1/4             EQUALS   HIDP1/4                               
054985,000728: 

End of include-file TIME_OF_FREE_FALL.agc.  Parent file is MAIN.agc