On Mon, 16 Aug 2010 06:11:00 -0400, Shmuel Metz (Seymour J.) wrote:
>
>Not honestly. If the code is intended to deal with a computation of
>gamma functions, then I would regard the *first* form as needlessly
>obscure. I might buy
>
>declare (pi  value(3.14159_26535_89793_23846),
>   sqrt_pi  value(sqrt(pi)) binary float(52)
>   gamma_1half value(sqrt_pi) binary float(52) ;
>
>although even then I would consider it clearer to simply write
>
>declare gamma_1half value(1.77245_38509_05516_02729)
>        binary float(53)
>        /* gamma(1/2) = pi^.5 */ ;
>
Maintainability?  Which requires the lesser code change if the
program is upgraded to even greater precision and values of
both pi and gamma_1half are needed?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to