COMPILATION LISTING OF SEGMENT dtanh_ Compiled by: Multics PL/I Compiler, Release 28d, of September 14, 1983 Compiled at: Honeywell LCPD Phoenix, System M Compiled on: 10/03/83 1402.1 mst Mon Options: optimize map 1 /* ****************************************************** 2* * * 3* * * 4* * Copyright (c) 1972 by Massachusetts Institute of * 5* * Technology and Honeywell Information Systems, Inc. * 6* * * 7* * * 8* ****************************************************** */ 9 10 dtanh_: procedure (number) returns (float binary (63)); 11 12 /* compute the hyperbolic tangent of a double-precision floating-point number */ 13 declare (number, f, n, p, q) float binary (63), 14 (abs, exp) builtin; 15 n = number; 16 f = abs (n); 17 if f >= 0.55e0 then if f >= 24.5e0 then f = 1.e0; else large: do; 18 f = f + f; 19 f = exp (f); 20 p = f + 1.e0; 21 f = (f - 1.e0) / p; 22 end large; else if f >= 1.e-10 then small: do; 23 p = f*f; 24 q = ((((((( 0.4779477332387385297e-13 * p + 0.1147074559772972471e-10) * p 25 + 0.2087675698786809898e-8) * p + 0.2755731922398589065e-6) * p + 0.2480158730158730159e-4) * p 26 + 0.1388888888888888889e-2) * p + 0.4166666666666666667e-1) * p + 0.5e0) * p + 1.e0; 27 f = ((((((((0.2811457254345520763e-14 * p + 0.7647163731819816476e-12) * p + 0.1605904383682161460e-9) * p 28 + 0.2505210838544171878e-7) * p + 0.2755731922398589065e-5) * p + 0.1984126984126984127e-3) * p 29 + 0.8333333333333333333e-2) * p + 0.1666666666666666667e0) * p + 1.e0) * f / q; 30 end small; 31 if n < 0.0e0 then f = -f; 32 return (f); 33 end dtanh_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 10/03/83 1005.0 dtanh_.pl1 >spec>on>pl128d>dtanh_.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. abs builtin function dcl 13 ref 16 exp builtin function dcl 13 ref 19 f 000100 automatic float bin(63) dcl 13 set ref 16* 17 17 17* 18* 18 18 19* 19 20 21* 21 22 23 23 27* 27 31* 31 32 n 000102 automatic float bin(63) dcl 13 set ref 15* 16 31 number parameter float bin(63) dcl 13 ref 10 15 p 000104 automatic float bin(63) dcl 13 set ref 20* 21 23* 24 24 24 24 24 24 24 24 27 27 27 27 27 27 27 27 q 000106 automatic float bin(63) dcl 13 set ref 24* 27 NAMES DECLARED BY EXPLICIT CONTEXT. dtanh_ 000050 constant entry external dcl 10 large 000074 constant label dcl 17 small 000114 constant label dcl 22 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 220 230 175 230 Length 366 175 10 122 23 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME dtanh_ 104 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME dtanh_ 000100 f dtanh_ 000102 n dtanh_ 000104 p dtanh_ 000106 q dtanh_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. return ext_entry dexp NO EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 10 000044 15 000055 16 000060 17 000063 18 000074 19 000077 20 000102 21 000104 22 000110 22 000111 23 000114 24 000117 27 000140 31 000164 32 000171 ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved