|
| |
| | Subroutine - Wikipedia, the free encyclopedia |
 | | Subroutines are often given parameters to refine their behavior or to perform a certain computation with given [variable] values. |  | | In computer science, a subroutine (function, method, procedure, or subprogram) is a portion of code within a larger program, which performs a specific task and is relatively independent of the remaining code. |  | | On these computers, subroutines needed to be called by a sequence of lower level instructions, possibly implemented as a macro. |
|
http://en.wikipedia.org/wiki/Subroutine
(1993 words)
|
|
| |
| | Subroutine Steps Pane |
 | | Subroutines can be very useful for modularizing the code in your project. |  | | Project subroutines will always be searched first for a matching subroutine name, and if not found, the global subroutine steps will be searched (this allows global subroutines to be overridden by a project subroutine of the same name). |  | | The Subroutine Steps pane is where project subroutines are defined. |
|
http://www.kinook.com/VisBuildPro/Manual/subroutinestepstab.htm
(288 words)
|
|
| |
| | [Chapter 4] Subroutine References and Closures |
 | | A closure is a subroutine that, when created, packages its containing subroutine's environment (all the variables it requires and that are not local to itself). |  | | subroutine here, in the same way that we don't evaluate the value of a scalar when we take a reference to it. |  | | As with ordinary variables, subroutines can be named or anonymous, and Perl has a syntax for taking a reference to either type. |
|
http://www.unix.org.ua/orelly/perl/advprog/ch04_01.htm
(576 words)
|
|
| |
| | Perl Subroutine Primer (1/2) |
 | | While some subroutines may be helpful as static code blocks (that simply repeat the exact same action as needed without any variation) most subroutines become more useful by passing parameters--sending variable values to the subroutine that it should act on, and possibly receiving unique values back from the subroutine in response. |  | | is not the actual subroutine, but instead is the return value from the subroutine. |  | | In computer programming parlance, this is called pass-by-value, i.e., only the values of the passed parameters are used without changing the underlying parameter in the main program chunk, but in some cases you want to adjust the underlying parameter, the actual parameter in the program that you are passing to the subroutine. |
|
http://www.webreference.com/programming/perl/subroutines
(2349 words)
|
|
| |
| | Subroutine (Javaflow 1.0-SNAPSHOT API) |
 | | Note that an instruction is part of exactly one subroutine (the top-level code is considered to be a special subroutine) - else it is not reachable at all (dead code). |  | | Returns if the given InstructionHandle refers to an instruction that is part of this subroutine. |  | | This interface defines properties of JVM bytecode subroutines. |
|
http://jakarta.apache.org/commons/sandbox/javaflow/apidocs/org/apache/commons/javaflow/bytecode/transformation/bcel/analyser/Subroutine.html
(338 words)
|
|
| |
| | Java Programming: Section 4.3 |
 | | , is computed inside a subroutine and is used in the |  | | When a subroutine is called, the actual parameters in the subroutine call statement are evaluated and the values are assigned to the formal parameters in the subroutine's definition. |  | | A common mistake is to assign values to the formal parameters at the beginning of the subroutine, or to ask the user to input their values. |
|
http://math.hws.edu/javanotes/c4/s3.html
(2368 words)
|
|
| |
| | Subroutine References (may 96) |
 | | Within the andnon_blank subroutine, the first parameter is then a reference to a subroutine that will ``fetch the next value''. |  | | Here, the subroutine referenced by $scanner is invoked repeatedly until its return value (stuffed into $return) has a non-blank value in it. |  | | Here, the subroutine andwilma is defined, and then a reference to that subroutine is created and stored into $ref_to_wilma. |
|
http://www.stonehenge.com/merlyn/UnixReview/col08.html
(1738 words)
|
|
| |
| | Chapter 16 -- Subroutine Definition |
 | | Special subroutines act as constructors and destructors, creating objects that are members of the class and deleting the objects when the last reference to the object is gone. |  | | When you want to use subroutines that were originally developed in one program in another program, you can do so in two ways in Perl. |  | | This concept also enables the use of recursive subroutines, which is a powerful mechanism for solving certain problems. |
|
http://docs.rinet.ru/Using_Perl5_in_Web/ch16.htm
(3115 words)
|
|
| |
| | Structure of subroutine subprograms |
 | | The best way to contrast the difference between a function and a subroutine is to rewrite the function for the calculation of the average of three numbers as a subroutine. |  | | This serves as a variable in which the subroutine returns the computed average of the three numbers |  | | that causes an immediate end of a running subroutine and return to the program which originally called it. |
|
http://www.lrsm.upenn.edu/~vitek/courses/f77intro/node27.html
(388 words)
|
|
| |
| | Multiple Dispatch and Subroutine Overloading in Perl |
 | | That means the subroutine that's invoked is the one defined in the class that the invoking object belongs to. |  | | The important point is that, whichever subroutine the method dispatcher eventually selects, it was all determined by the class of the original invoking object (i.e. |  | | The Class::Multimethods module enables variants of a multimethod to be declared and used, either as object methods or as independent, overloaded subroutines. |
|
http://www.csse.monash.edu.au/~damian/TPC/1999/MultipleDispatch/Paper.html
(2713 words)
|
|
| |
| | Technical Reference: Communications, Volume 2 - t_snd Subroutine for Transport Layer Interface |
 | | In this case, the t_snd subroutine sets the T_MORE flag for the data that was sent and returns a value less than the value of the nbytes parameter. |  | | On successful completion, the t_snd subroutine returns the number of bytes accepted by the transport provider. |  | | If the call to the t_snd subroutine is issued from any state other than T_DATAXFER, T_INREL, or T_IDLE, the provider generates a TSYSERR error with system error EPROTO (which can be reported in the manner described above). |
|
http://www.ncsa.uiuc.edu/UserInfo/Resources/Hardware/IBMp690/IBM/usr/share/man/info/en_US/a_doc_lib/libs/commtrf2/t_snd_Transport.htm
(759 words)
|
|
| |
| | Subroutine Documentation |
 | | Seven or more parameters for a subroutine is probably too many - having this many parameters is a good indication that you have structured your program in the wrong way, or that you need to reconsider the global flow of information within your program. |  | | The subroutines of a program (or module) define the structure of that program. |  | | Below is an example of a subroutine comment header block. |
|
http://ei.cs.vt.edu/~cs2604/spring99/Standards/node4.html
(776 words)
|
|
| |
| | Technical Reference: Base Operating System and Extensions , Volume 2 - system Subroutine |
 | | The system subroutine passes the String parameter to the sh command as input. |  | | If the String parameter is a null pointer and a command processor is available, the system subroutine returns a nonzero value. |  | | The execl subroutine, exit subroutine, fork subroutine, pipe subroutine, wait (wait, waitpid, wait3, or wait364 Subroutine) subroutine, waitpid (wait, waitpid, wait3, or wait364 Subroutine) subroutine. |
|
http://publibn.boulder.ibm.com/doc_link/Ja_JP/a_doc_lib/libs/basetrf2/system.htm
(501 words)
|
|
| |
| | Charlie Reeve Subroutines |
 | | However, most of the subroutines contain usage instructions in the comments in the source code. |  | | Although there is no formal documentation for these subroutines, Charlie Reeve wrote a number of SED Notes that document some of the algorithms coded in this library. |  | | SUBROUTINE REJ1 - Compute mean and standard deviaiton of normal data that may be "contaminated" |
|
http://www.itl.nist.gov/div898/software/reeves/homepage.htm
(1117 words)
|
|
| |
| | perlsub - Perl subroutines |
 | | The value will be available to the subroutine either as a simple scalar, or (in the latter two cases) as a reference to the typeglob. |  | | The return value of a subroutine is the value of the last expression evaluated. |  | | Sometimes you don't want to pass the value of an array to a subroutine but rather the name of it, so that the subroutine can modify the global copy of it rather than working with a local copy. |
|
http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlsub.html
(6618 words)
|
|
| |
| | Subroutine |
 | | Lines 58 to 69 of this program are taken directly from lines 26 to 35 of that example, where we copied an array using a counter. |  | | This might be called subroutine, functions, procedures or methods. |  | | Control is transferred to the first statement in the subroutine, just like a branch. |
|
http://www.wiu.edu/users/mflll/310/done/ch03s10.html
(1521 words)
|
|
| |
| | open, openx, open64, creat, or creat64 Subroutine |
 | | On return from a subroutine that performs a synchronous update (any of the preceding subroutines, when the O_SYNC flag is set), the program is assured that all data for the file has been written to permanent storage, even if the file is also open for deferred update. |  | | The open, openx, and creat subroutines establish a connection between the file named by the Path parameter and a file descriptor. |  | | These flags mean the process does not block on the state of an object, but does block on input or output to a regular file or block device. |
|
http://www.nersc.gov/vendor_docs/ibm/libs/basetrf1/open.htm
(2993 words)
|
|
| |
| | PGPLOT Subroutine Descriptions |
 | | SUBROUTINE PGSCRL (DX, DY) REAL DX, DY This routine moves the window in world-coordinate space while leaving the viewport unchanged. |  | | This routine draws an error bar only; to mark the data point at the start of the error bar, an additional call to PGPT is required. |  | | SUBROUTINE PGGRAY (A, IDIM, JDIM, I1, I2, J1, J2, 1 FG, BG, TR) INTEGER IDIM, JDIM, I1, I2, J1, J2 REAL A(IDIM,JDIM), FG, BG, TR(6) Draw gray-scale map of an array in current window. |
|
http://www.physics.rutgers.edu/computers/unix/pgplot_routines.html
(18252 words)
|
|
| |
| | getsockopt Subroutine |
 | | The getsockopt subroutine allows an application program to query socket options. |  | | A non-zero OptionValue returned by the getsockopt subroutine indicates the RFC is enabled. |  | | Returns a value of -1 to the calling program. |
|
http://www.ualberta.ca/dept/chemeng/AIX-43/share/man/info/C/a_doc_lib/libs/commtrf2/getsockopt.htm
(1327 words)
|
|
| |
| | CONREC - A Contouring Subroutine |
 | | The input parameters to the CONREC subroutine are as follows : |  | | CONREC satisfies the above description, it is relatively simple to implement, very reliable, and does not require sophisticated programming techniques or a high level of mathematics to understand how it works. |  | | Note that for large arrays the whole data array need not be stored in memory. |
|
http://astronomy.swin.edu.au/~pbourke/projection/conrec
(1214 words)
|
|
| |
| | Information about Harvest Subroutine calls |
 | | NOTE: for all other subroutine calls if a character string is passed as " " only then no data item is output that corresponds to that string variable. |  | | This subroutine writes to the deposit file all the requested data items. |  | | INTEGER RowLimit Default 80, may be 80 or 132, is the number of characters per line in the output harvest file LOGICAL Private If.true. |
|
http://msdlocal.ebi.ac.uk/docs/Harvest/harvestlib.htm
(2930 words)
|
|
| |
| | Subroutine references (Feb 00) |
 | | As long as the subroutine being passed has the right ``signature'' (combination of inputs and outputs), we can plug anything we want into there. |  | | For example, suppose I wanted to write a filter that removed all words that started with ``z'', moving them to the end. |  | | Note that each input line goes into a local |
|
http://www.stonehenge.com/merlyn/LinuxMag/col09.html
(1803 words)
|
|
| |
| | Subroutine cpu_second |
 | | Several versions of this subroutine are included with the StopWatch package. |  | | If none of these versions work on your system, you will have to write your own version. |  | | One of these may work on your system. |
|
http://www.icfrnet.unp.ac.za/~kunz/stopwatch/node12.html
(347 words)
|
|
| |
| | putwc, putwchar, or fputwc Subroutine |
 | | Understanding Wide Character Input/Output Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs. |  | | The wide character is written as a multibyte character at the associated file position indicator for the stream, if defined. |  | | If the file cannot support positioning requests, or if the stream was opened with append mode, the character is appended to the output stream. |
|
http://www.navo.hpc.mil/usersupport/IBM/libs/basetrf1/putwc.htm
(581 words)
|
|
| |
| | [No title] |
 | | The structured programming paradigm evolved from the mathematically proven concept that all problems can be solved using only three types of control structures: Sequence Decision (or Selection) Iterative (or looping). |  | | The SFC program is designed to aid the programmer in designing and presenting structured flow charts. |  | | The definition of structured flow charts used in this document and software further defines: 3 types of sequential structures: Process, Input/Output, and Subroutine Call 3 types of decision structures Single Branch, Double Branch, and Case 4 types of iterative structures Test at the Top, Test at the Bottom, Counting, and User Controlled Exit. |
|
http://zippy.sonoma.edu/~tiawatts/SFC/SFC-v2.doc
(3996 words)
|
|
| |
| | GL/Subroutine library |
 | | Also, you may return to the Table of PVT subroutines. |  | | See the MULTWS CMOD subroutine, immediately below, and also the INITPH CMOD program which writes the file. |  | | See the INITGL CMOD subroutine, immediately above, and also the INITPH CMOD program which writes the file. |
|
http://zing.ncsl.nist.gov/~cugini/pvt/hy-sublib.html
(7182 words)
|
|
| |
| | socket Subroutine |
 | | Returns a value of -1 to the calling program. |  | | The socket subroutine is unsuccessful if any of the following errors occurs: |  | | The following program fragment illustrates the use of the socket subroutine to create a datagram socket for on-machine use: |
|
http://www-aix.informatik.uni-tuebingen.de/doc_link/en_US/a_doc_lib/libs/commtrf2/socket.htm
(433 words)
|
|
| |
| | Dictionary of Computers - subroutine |
 | | Subroutines provide a method of performing the same task at more than one point in the program, and also of separating the details of a program from its main logic. |  | | In some computer languages, subroutines are similar to |  | | A small section of a program that is executed ('called') from another part of the program. |
|
http://www.tiscali.co.uk/reference/dictionaries/computers/data/m0025645.html
(208 words)
|
|
| |
| | popattributes Subroutine |
 | | This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature. |  | | Hardware Used by GL in GL3.2 Version 4 for AIX: Programming Concepts. |  | | Specifying the target framebuffer of the drawing subroutines with the drawmode subroutine. |
|
http://linux.math.tifr.res.in/programming-doc/Ygl/popattributes.htm
(265 words)
|
|
| |
| | putp, tputs Subroutine |
 | | The output of the putp subroutine always goes to stdout, not to the fildes specified in the setupterm subroutine. |  | | List of Curses Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs. |  | | The tputs subroutine outputs str to the terminal. |
|
http://www.navo.hpc.mil/usersupport/IBM/libs/basetrf2/putp.htm
(292 words)
|
|
| |
| | Subroutine Call |
 | | Subroutines provide a way to modularize build projects. |  | | Enter a macro name and its value in the edit fields, and click Insert to add to the list. |  | | Parameter Value: Values of parameters to pass to the subroutine. |
|
http://www.kinook.com/VisBuildPro/Manual/subroutinecallaction.htm
(244 words)
|
|
| |
| | Passing arguments to a Perl subroutine |
 | | Even though the subroutine does not print any output, it does return a value, which can be caught and used by the main script. |  | | You can also write a subroutine that returns an array instead of a scalar value: |  | | Now, consider this variant on the convertCurrency subroutine from the previous example: |
|
http://builder.com.com/5100-6374-5259393-2.html
(390 words)
|
|
| |
| | Closure in a subroutine inside a subroutine - dBforums |
 | | 'moo' subroutine -- which '$x' will it actually reference, if not the |  | | > 'moo' subroutine -- which '$x' will it actually reference, if not the |  | | I modified my program and I can made the error message go away |
|
http://www.dbforums.com/t723813.html
(495 words)
|
|
| |
| | FORTRAN: Subroutine |
 | | deep inside the subroutine it gives me zero value |  | | You are here: Experts > Computing/Technology > Linux > FORTRAN > Subroutine |  | | The second thought is for you to write some error checking into your code. |
|
http://experts.about.com/q/FORTRAN-3112/Subroutine.htm
(297 words)
|
|
| |
| | DrawP3D Visualization Subroutine Library |
 | | DrawP3D is a subroutine library for doing scientific visualization. |  | | It was originally developed in connection with the P3D format for describing 3D models (hence the name), but it has since outgrown P3D to become a very versatile package in its own right. |
|
http://www.psc.edu/Packages/DrawP3D_Home
(311 words)
|
|
| |
| | Subroutine prototypes and parameters - |
 | | The subroutine could be called with positional parameters, as in Perl 5: |  | | Default values could also be provided in subroutine prototypes. |  | | We would need to special-case the interpretation of subroutine parameters to treat a bareword followed by '=' as a named parameter. |
|
http://dev.perl.org/rfc/57.html
(888 words)
|
|
| |
| | Subroutine |
 | | The last instruction of the subroutine must be RTS |  | | LDX #A ;X points to start of A |  | | You get to a subroutine by executing BSR or JSR. |
|
http://grapevine.abe.msstate.edu/~fto/classes/abe4423/note12.html
(332 words)
|
|
| |
| | SUBROUTINE Command |
 | | Subroutines are called from the main code with a command of the format "CALL name". |  | | There must be the same number of parameters in this list as there are in the subroutine call, and the data types of the parameters must match. |  | | A maximum of 255 subroutines may be defined within a script. |
|
http://www.opensta.org/docs/sclref10/imp3ln69.htm
(210 words)
|
|
| |
| | SUBROUTINE |
 | | The SUBROUTINE statement is the first statement of a subroutine subprogram. |  | | The subroutine invokes a procedure defined by an ENTRY statement in the same subprogram. |  | | An entry procedure in the same subprogram invokes the subprogram defined by the SUBROUTINE statement. |
|
http://www.ncsa.uiuc.edu/UserInfo/Resources/Hardware/IBMp690/IBM/usr/share/man/info/en_US/xlf/html/lr178.HTM
(264 words)
|
|
| |
| | [No title] |
 | | subroutine tql2(nm,n,d,e,z,ierr) c integer i,j,k,l,m,n,ii,l1,l2,nm,mml,ierr double precision d(n),e(n),z(nm,n) double precision c,c2,c3,dl1,el1,f,g,h,p,r,s,s2,tst1,tst2,pythag c c this subroutine is a translation of the algol procedure tql2, c num. |  | | c c this subroutine finds the eigenvalues and eigenvectors c of a symmetric tridiagonal matrix by the ql method. |
|
http://www.netlib.org/eispack/tql2.f
(600 words)
|
|
| |
| | Subroutine GDATA. |
 | | The user provides subroutine GDATA, which provides a definition of the region through an initial triangulation or a skeleton. |
|
http://www.ima.umn.edu/~bank/guide/node62.html
(243 words)
|
|
| |
| | Cost Subroutine Update |
 | | The Cost subroutine is updated to permit comparison with results produced at NASA Langley. |  | | Old versions of PASS use the ATA cost model. |  | | The modifications fall in three categories: new values for existing parameters, additional parameters, and additional calculations. |
|
http://aero.stanford.edu/bwbfiles/Cost/CostMods.html
(545 words)
|
|
|