Mercurial > hg > octave-nkf
view liboctave/cruft/slatec-fn/gamr.f @ 19624:3c038da18218 gui-release
cleanup of focus function in gui editor
* file-editor-interface.h: remove function set_focus
* file-editor.cc (focus): call common function and extra code for the editor;
(set_focus): removed, all code now in focus ();
(request_new_file, request_open_file): replaced set_focus by focus
* file-editor.h: removed set_focus
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 25 Dec 2014 08:31:31 +0100 |
parents | 648dabbb4c6b |
children |
line wrap: on
line source
*DECK GAMR FUNCTION GAMR (X) C***BEGIN PROLOGUE GAMR C***PURPOSE Compute the reciprocal of the Gamma function. C***LIBRARY SLATEC (FNLIB) C***CATEGORY C7A C***TYPE SINGLE PRECISION (GAMR-S, DGAMR-D, CGAMR-C) C***KEYWORDS FNLIB, RECIPROCAL GAMMA FUNCTION, SPECIAL FUNCTIONS C***AUTHOR Fullerton, W., (LANL) C***DESCRIPTION C C GAMR is a single precision function that evaluates the reciprocal C of the gamma function for single precision argument X. C C***REFERENCES (NONE) C***ROUTINES CALLED ALGAMS, GAMMA, XERCLR, XGETF, XSETF C***REVISION HISTORY (YYMMDD) C 770701 DATE WRITTEN C 861211 REVISION DATE from Version 3.2 C 891214 Prologue converted to Version 4.0 format. (BAB) C 900727 Added EXTERNAL statement. (WRB) C***END PROLOGUE GAMR EXTERNAL GAMMA C***FIRST EXECUTABLE STATEMENT GAMR GAMR = 0.0 IF (X.LE.0.0 .AND. AINT(X).EQ.X) RETURN C CALL XGETF (IROLD) CALL XSETF (1) IF (ABS(X).GT.10.0) GO TO 10 GAMR = 1.0/GAMMA(X) CALL XERCLR CALL XSETF (IROLD) RETURN C 10 CALL ALGAMS (X, ALNGX, SGNGX) CALL XERCLR CALL XSETF (IROLD) GAMR = SGNGX * EXP(-ALNGX) RETURN C END