From: Eric S. Raymond Date: Mon, 5 Apr 2004 02:34:16 +0000 (+0000) Subject: added more pages. X-Git-Tag: 1.0~33 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=b1dfd4b51a1154baedbe2d937f4e82aa7f65d34d;p=mad.git added more pages. --- diff --git a/doc/mad-manual.xml b/doc/mad-manual.xml index 75d3e0c..b1c0c4d 100644 --- a/doc/mad-manual.xml +++ b/doc/mad-manual.xml @@ -40,6 +40,7 @@ N"> S"> V"> +l"> ]> Notes from the 21st century @@ -4273,10 +4274,27 @@ this function, a simple one-line formula for this function is: where AGROSY is assumed to already contain GROSSW, i.e., to have been updated already. We shall also apply this function in the case of the withholding tax to guarantee that we do not make a negative -deduction. - - - +deduction. Thus + +W = .18*EXCESS. (GROSSW, 13*EXEMPT) + +Note 3: To check the order of input cards (normally in order of +increasing employee number with a large employee number greater than +the last employee number on the master tape) the program uses the +subroutine SETEOF.(LABEL), where LABEL is the statement label of a +statement to be executed if an end of file condition is detected +during reading. + +Since the last input card has a large employee number the first +end of file condition is normally detected at the end of processing, +but an illegal input card may also exist with a high employee number. +After the first end of file is detected the end of file return is +changed and the input tape checked for end of file. If no end of file +exists a + +comment is printed to change tapes and processing begins +again. + Flow diagram: @@ -4299,8 +4317,45 @@ deduction. Example 3<emphasis role='note'>: Mortgage Payment Processing</emphasis> - - + +Problem: Mortgage Payment. The type of mortgage we consider is +the fixed principle type for which each installment consists of an +interest payment, a fixed amount to be deducted from the outstanding +principal, and an additional amount to be placed in escrow--to be used +to make insurance and tax payments. + + +Assume that a master card file is available containing the +following information for each mortgage: (1) the mortgage number; (2) +amount of outstanding principal; (3) annual payment on principal; (4) +interest rate; (5) annual escrow payment; and (6) current escrow +balance. There is also a file of cards available containing the +current payment record consisting of mortgage number and amount of +payment received. The master file and current payment file are +assumed to be in order of increasing mortgage number. + + +The program is to read a card from the current payment record +and check to see if it is acceptable. A payment is deemed acceptable +if it consists of a single normal payment (i.e., a payment consisting +of a single principal payment, a single escrow payment, and +an interest payment for a single period) or if it consists of exactly +two normal payments and any number (i=0, 1, 2, ...) of principal +payments. + +Note 1: Since the Michigan Algorithm Decoder uses the dollar +sign as the delimiter for characters it is not possible to print out +the dollar sign in a hollerith field. Using the - $=$ sets up the +proper bit configuration for the dollar sign in storage since single +characters appear in the left most position of the word. This +character constant can be named and put on the list of items to be +printed out. + +Note 2: The current payments are processed until the file is +exhausted. The detection of the end of file on reading tranfers +control to the section of the program which punches the new master +file. + Flow diagram: @@ -4329,6 +4384,24 @@ deduction. Example 4<emphasis role='note'>: Actuarial computation</emphasis> +Problem: Computation of actuarial commutation +columns based on an arbitrary set of mortality rates and an interest +rate, as an external function to be used by another program. + + +Analysis: Commutation columns, which are +very important tools in actuarial problems are generated very easily +by means of the formulas given below. The quantities +Mx, Nx, and +Dx in these formulas occur most often in +combination, as in the computation of Px. +Assuming a population of some initial size (at x = +b0) (here 1,000,000), &scriptl;x +is the number living a t age x (so that &scriptl;bo = +1,000,000), qx is the mortality +rate, and dx is the number +of deaths at age x. +