From MdsWiki
(Difference between revisions)
Revision as of 03:39, 24 January 2007 (edit) WikiSysop (Talk | contribs) ← Previous diff |
Revision as of 03:49, 24 January 2007 (edit) WikiSysop (Talk | contribs) Next diff → |
||
Line 3: | Line 3: | ||
| | | | ||
__NOTOC__ | __NOTOC__ | ||
- | <span id=““></span> | + | <span id=“tan“></span> |
==TAN (X)== | ==TAN (X)== | ||
F90 Mathematical Elemental. Tangent. <br /><br /> Argument. X must be real. Complex numbers are an error. <br /><br /> Signals. Same as X. <br /> Units... None, bad if X has units. <br /> Form.... Same as X. <br /><br /> Result.. Processor approximation to tan(X), with X in radians. <br /><br /> Example. TAN(1.0) is 1.5574077, approximately. <br /><br /> | F90 Mathematical Elemental. Tangent. <br /><br /> Argument. X must be real. Complex numbers are an error. <br /><br /> Signals. Same as X. <br /> Units... None, bad if X has units. <br /> Form.... Same as X. <br /><br /> Result.. Processor approximation to tan(X), with X in radians. <br /><br /> Example. TAN(1.0) is 1.5574077, approximately. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“tand“></span> |
==TAND (X)== | ==TAND (X)== | ||
F90 Mathematical Elemental. Tangent in degrees. <br /><br /> Argument. X must be real. Complex numbers are an error. <br /><br /> Signals. Same as X. <br /> Units... None, bad if X has units. <br /> Form.... Same as X. <br /><br /> Result.. Processor approximation to tan(X), with X in degrees. <br /> Example. TAN(45.0) is 1.0, approximately. <br /><br /> | F90 Mathematical Elemental. Tangent in degrees. <br /><br /> Argument. X must be real. Complex numbers are an error. <br /><br /> Signals. Same as X. <br /> Units... None, bad if X has units. <br /> Form.... Same as X. <br /><br /> Result.. Processor approximation to tan(X), with X in degrees. <br /> Example. TAN(45.0) is 1.0, approximately. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“tanh“></span> |
==TANH (X)== | ==TANH (X)== | ||
F90 Mathematical Elemental. Hyperbolic tangent. <br /><br /> Argument. X must be real. Complex numbers are an error. <br /><br /> Signals. Same as X. <br /> Units... None, bad if X has units. <br /> Form.... Same as X. <br /><br /> Result.. Processor approximation to tanh(X). <br /> Example. TANH(1.0) is 0.76159416, approximately. <br /><br /> | F90 Mathematical Elemental. Hyperbolic tangent. <br /><br /> Argument. X must be real. Complex numbers are an error. <br /><br /> Signals. Same as X. <br /> Units... None, bad if X has units. <br /> Form.... Same as X. <br /><br /> Result.. Processor approximation to tanh(X). <br /> Example. TANH(1.0) is 0.76159416, approximately. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“task_of“></span> |
==TASK_OF (A)== | ==TASK_OF (A)== | ||
MDS Operation. Get the task field. <br /><br /> Argument. Descriptor as below. <br /><br /> Result.. A is searched for these: <br /> DSC$K_DTYPE_ACTION, the task field. <br /> DSC$K_DTYPE_PROCEDURE, unchanged.. <br /> DSC$K_DTYPE_PROGRAM, unchanged.. <br /> DSC$K_DTYPE_ROUTINE, unchanged.. <br /> DSC$K_DTYPE_METHOD, unchanged.. <br /> Otherwise, an error. <br /><br /> | MDS Operation. Get the task field. <br /><br /> Argument. Descriptor as below. <br /><br /> Result.. A is searched for these: <br /> DSC$K_DTYPE_ACTION, the task field. <br /> DSC$K_DTYPE_PROCEDURE, unchanged.. <br /> DSC$K_DTYPE_PROGRAM, unchanged.. <br /> DSC$K_DTYPE_ROUTINE, unchanged.. <br /> DSC$K_DTYPE_METHOD, unchanged.. <br /> Otherwise, an error. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“text“></span> |
==TEXT (X,[LENGTH])== | ==TEXT (X,[LENGTH])== | ||
Conversion Elemental. Convert to text of given length. <br /><br /> Arguments Optional: LENGTH. <br /> X numeric or character. <br /> LENGTH integer scalar. <br /><br /> Signals. Same as X. <br /> Units... Same as X. <br /> Form.... Character of given length or length associated with the <br /> type of X. These are used B/BU 4, W/WU 8, L/LU 12, <br /> Q/QU 20, O/OU 36, F 16, D/G 24, H 40, FC 32, DC/GC 48, <br /> and HC 80. <br /><br /> Result.. A character string that represent the number. <br /> (As of now, quadword and octaword are converted to hex.) <br /> >>>>>>>>>WARNING, truncation does not cause an error. <br /><br /> Example. TEXT(1.2) is " 0.1200000E+02". <br /><br /> | Conversion Elemental. Convert to text of given length. <br /><br /> Arguments Optional: LENGTH. <br /> X numeric or character. <br /> LENGTH integer scalar. <br /><br /> Signals. Same as X. <br /> Units... Same as X. <br /> Form.... Character of given length or length associated with the <br /> type of X. These are used B/BU 4, W/WU 8, L/LU 12, <br /> Q/QU 20, O/OU 36, F 16, D/G 24, H 40, FC 32, DC/GC 48, <br /> and HC 80. <br /><br /> Result.. A character string that represent the number. <br /> (As of now, quadword and octaword are converted to hex.) <br /> >>>>>>>>>WARNING, truncation does not cause an error. <br /><br /> Example. TEXT(1.2) is " 0.1200000E+02". <br /><br /> | ||
- | <span id=““></span> | + | <span id=“time_out_of“></span> |
==TIME_OUT_OF (A)== | ==TIME_OUT_OF (A)== | ||
MDS Operation. Get the time_out field. <br /><br /> Argument. Descriptor as below. <br /><br /> Result.. A is searched for these: <br /> DSC$K_DTYPE_METHOD, time_out field. <br /> DSC$K_DTYPE_PROCEDURE, time_out field. <br /> DSC$K_DTYPE_PROGRAM, time_out field. <br /> DSC$K_DTYPE_ROUTINE, time_out field. <br /> Otherwise, an error. <br /><br /> | MDS Operation. Get the time_out field. <br /><br /> Argument. Descriptor as below. <br /><br /> Result.. A is searched for these: <br /> DSC$K_DTYPE_METHOD, time_out field. <br /> DSC$K_DTYPE_PROCEDURE, time_out field. <br /> DSC$K_DTYPE_PROGRAM, time_out field. <br /> DSC$K_DTYPE_ROUTINE, time_out field. <br /> Otherwise, an error. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“tiny“></span> |
==TINY (X)== | ==TINY (X)== | ||
F90 Inquiry. The smallest positive number in the model representing <br /> numbers of the type of the argument. <br /><br /> Argument. X must be real or complex. <br /><br /> Signals. Same as X. <br /> Units... Same as X. <br /> Form.... Scalar of same type as real part of X. <br /><br /> Result.. The result is 1 if X is integer and b^(emin-1) if X is <br /> real, where b is the real base and emin is the minimum <br /> exponent in model numbers like X. <br /><br /> Example. TINY(1.0) is 2^-128 on the VAX. <br /><br /> | F90 Inquiry. The smallest positive number in the model representing <br /> numbers of the type of the argument. <br /><br /> Argument. X must be real or complex. <br /><br /> Signals. Same as X. <br /> Units... Same as X. <br /> Form.... Scalar of same type as real part of X. <br /><br /> Result.. The result is 1 if X is integer and b^(emin-1) if X is <br /> real, where b is the real base and emin is the minimum <br /> exponent in model numbers like X. <br /><br /> Example. TINY(1.0) is 2^-128 on the VAX. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“transfer“></span> |
==transfer (SOURCE,MOLD,[SIZE])== | ==transfer (SOURCE,MOLD,[SIZE])== | ||
F90 Transformation. A result with a physical representation identical <br /> to that of SOURCE but interpreted with the type of MOLD. <br /><br /> Arguments Optional: SIZE. <br /> SOURCE any type, scalar or array. <br /> MOLD any type, scalar or array. <br /> SIZE integer scalar. <br /><br /> Signals. Same as SOURCE. <br /> Units... Single or common units of SOURCE and MOLD, else bad. <br /> Form.... The type of MOLD, scalar if MOLD is scalar and SIZE is <br /> absent. If MOLD is an array and SIZE is absent, the <br /> result is a vector and the size is as small as possible <br /> such that its physical representation is not shorter <br /> than that of source. If SIZE present, the result is a <br /> vector and the size is SIZE. <br /><br /> Result.. If the physical representation of the result is as long <br /> as length as that of SOURCE, the physical representation <br /> of the result is that of SOURCE and the remainder is <br /> undefined; otherwise, the result is the leading part of <br /> SOURCE. <br /><br /> Examples. TRANSFER(0x4180,0.0) is 4.0 on the VAX. <br /> TRANSFER([1.1,2.2,3.3],[CMPLX(0.0,0.0)]) is a complex <br /> vector of length 2 whose first element is CMPLX(1.1,2.2) <br /> and whose second element has real part 3.3. <br /> TRANSFER([1.1,2.2,3.3],[CMPLX(0.0,0.0)],1) is <br /> [CMPLX(1.1,2.2)]. <br /><br /> | F90 Transformation. A result with a physical representation identical <br /> to that of SOURCE but interpreted with the type of MOLD. <br /><br /> Arguments Optional: SIZE. <br /> SOURCE any type, scalar or array. <br /> MOLD any type, scalar or array. <br /> SIZE integer scalar. <br /><br /> Signals. Same as SOURCE. <br /> Units... Single or common units of SOURCE and MOLD, else bad. <br /> Form.... The type of MOLD, scalar if MOLD is scalar and SIZE is <br /> absent. If MOLD is an array and SIZE is absent, the <br /> result is a vector and the size is as small as possible <br /> such that its physical representation is not shorter <br /> than that of source. If SIZE present, the result is a <br /> vector and the size is SIZE. <br /><br /> Result.. If the physical representation of the result is as long <br /> as length as that of SOURCE, the physical representation <br /> of the result is that of SOURCE and the remainder is <br /> undefined; otherwise, the result is the leading part of <br /> SOURCE. <br /><br /> Examples. TRANSFER(0x4180,0.0) is 4.0 on the VAX. <br /> TRANSFER([1.1,2.2,3.3],[CMPLX(0.0,0.0)]) is a complex <br /> vector of length 2 whose first element is CMPLX(1.1,2.2) <br /> and whose second element has real part 3.3. <br /> TRANSFER([1.1,2.2,3.3],[CMPLX(0.0,0.0)],1) is <br /> [CMPLX(1.1,2.2)]. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“translate“></span> |
==TRANSLATE (STRING,TRANSLATION,MATCH)== | ==TRANSLATE (STRING,TRANSLATION,MATCH)== | ||
Character Elemental. Replace matching characters with others. <br /><br /> Arguments <br /> STRING character. <br /> TRANSLATION character. <br /> MATCH character. <br /><br /> Signals. That of dominant shape. <br /> Units... Same as STRING. <br /> Form.... Character of compatible shape. <br /><br /> Result.. For each character of STRING found in MATCH the <br /> corresponding character in TRANSLATION replaces it. <br /><br /> Example. TRANSLATE('ABCDEF','135','ACE') is "1B3D5F". <br /><br /> | Character Elemental. Replace matching characters with others. <br /><br /> Arguments <br /> STRING character. <br /> TRANSLATION character. <br /> MATCH character. <br /><br /> Signals. That of dominant shape. <br /> Units... Same as STRING. <br /> Form.... Character of compatible shape. <br /><br /> Result.. For each character of STRING found in MATCH the <br /> corresponding character in TRANSLATION replaces it. <br /><br /> Example. TRANSLATE('ABCDEF','135','ACE') is "1B3D5F". <br /><br /> | ||
- | <span id=““></span> | + | <span id=“transpose“></span> |
==transpose (MATRIX)== | ==transpose (MATRIX)== | ||
F90 Transformation. Transpose an array of rank two. <br /><br /> Argument. MATRIX is any type, rank-2 array. <br /><br /> Signals. Same as MATRIX with dimensions exchanged. <br /> Units... Same as MATRIX. <br /> Form.... Same type as MATRIX with the indices interchanged. <br /><br /> Result.. Element [i,j] of the result is MATRIX[j,i] for all <br /> i and j in the extent of the dimensions. <br /><br /> Example. TRANSPOSE([1 2 3]) is [1 4 7]. <br /> [4 5 6] [2 5 8] <br /> [7 8 9] [3 6 9] <br /><br /> | F90 Transformation. Transpose an array of rank two. <br /><br /> Argument. MATRIX is any type, rank-2 array. <br /><br /> Signals. Same as MATRIX with dimensions exchanged. <br /> Units... Same as MATRIX. <br /> Form.... Same type as MATRIX with the indices interchanged. <br /><br /> Result.. Element [i,j] of the result is MATRIX[j,i] for all <br /> i and j in the extent of the dimensions. <br /><br /> Example. TRANSPOSE([1 2 3]) is [1 4 7]. <br /> [4 5 6] [2 5 8] <br /> [7 8 9] [3 6 9] <br /><br /> | ||
- | <span id=““></span> | + | <span id=“transpose_mul“></span> |
==transpose_mul (MATRIX_A,MATRIX_B)== | ==transpose_mul (MATRIX_A,MATRIX_B)== | ||
Transformation. Performs matrix multiplication of numeric matrices, <br /> transposing the first. <br /><br /> Arguments <br /> MATRIX_A numeric array of rank one or two. <br /> MATRIX_B numeric array of rank one or two. The size of the first <br /> dimension of MATRIX_B must be the same as the size of <br /> the last dimension of MATRIX_A. <br /><br /> Signals. Single signal or smaller data. <br /> Units... Same as for MATRIX_A * MATRIX_B. <br /> Form.... If MATRIX_A has shape [m,n] and MATRIX_B has shape <br /> [m,k], the result has shape [n,k]. For rank-one cases, <br /> the n or k is omitted. <br /><br /> Result.. Result element [i,j] is <br /> SUM(MATRIX_A[:,i] * MATRIX_B[:,j]). <br /><br /> Examples. TRANSPOSE_MUL(_A=[1 2],_B=[1 2]) is [14 20]. <br /> [2 3] [2 3] [20 29] <br /> [3 4] [3 4] <br /> TRANSPOSE_MUL([1,2],_A) is vector-matrix product <br /> [5,8,11]. <br /> TRANSPOSE_MUL(_A,[1,2,3]) is matrix-vector product <br /> [14,20]. <br /><br /> | Transformation. Performs matrix multiplication of numeric matrices, <br /> transposing the first. <br /><br /> Arguments <br /> MATRIX_A numeric array of rank one or two. <br /> MATRIX_B numeric array of rank one or two. The size of the first <br /> dimension of MATRIX_B must be the same as the size of <br /> the last dimension of MATRIX_A. <br /><br /> Signals. Single signal or smaller data. <br /> Units... Same as for MATRIX_A * MATRIX_B. <br /> Form.... If MATRIX_A has shape [m,n] and MATRIX_B has shape <br /> [m,k], the result has shape [n,k]. For rank-one cases, <br /> the n or k is omitted. <br /><br /> Result.. Result element [i,j] is <br /> SUM(MATRIX_A[:,i] * MATRIX_B[:,j]). <br /><br /> Examples. TRANSPOSE_MUL(_A=[1 2],_B=[1 2]) is [14 20]. <br /> [2 3] [2 3] [20 29] <br /> [3 4] [3 4] <br /> TRANSPOSE_MUL([1,2],_A) is vector-matrix product <br /> [5,8,11]. <br /> TRANSPOSE_MUL(_A,[1,2,3]) is matrix-vector product <br /> [14,20]. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“trim“></span> |
==TRIM (STRING)== | ==TRIM (STRING)== | ||
F90 Transformation. The argument with trailing blank characters <br /> removed, including tabs. <br /><br /> Argument. STRING is character scalar. <br /><br /> Signals. Same as STRING. <br /> Units... Same as STRING. <br /> Form.... Character with a length that is the length less the <br /> number of trailing blanks (and tabs) in STRING. <br /><br /> Result.. Same as STRING except any trailing blanks are removed. <br /> If STRING contains no nonblank characters, the result <br /> has zero length. <br /><br /> Example. TRIM(' A B ') is " A B". <br /><br /> See also. ADJUSTL and ADJUSTR to justify strings. <br /><br /> | F90 Transformation. The argument with trailing blank characters <br /> removed, including tabs. <br /><br /> Argument. STRING is character scalar. <br /><br /> Signals. Same as STRING. <br /> Units... Same as STRING. <br /> Form.... Character with a length that is the length less the <br /> number of trailing blanks (and tabs) in STRING. <br /><br /> Result.. Same as STRING except any trailing blanks are removed. <br /> If STRING contains no nonblank characters, the result <br /> has zero length. <br /><br /> Example. TRIM(' A B ') is " A B". <br /><br /> See also. ADJUSTL and ADJUSTR to justify strings. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“ubound“></span> |
==UBOUND (ARRAY,[DIM])== | ==UBOUND (ARRAY,[DIM])== | ||
F90 Inquiry. All the lower bounds of an array or a specified <br /> lower bound. <br /><br /> Arguments Optional: DIM. <br /> ARRAY any type array. <br /> DIM integer scalar from 0 to n-1, where n is rank of ARRAY. <br /><br /> Signals. None. <br /> Units... None. <br /> Form.... Integer scalar if DIM present, <br /> otherwise, vector of size n. <br /> Result.. UBOUND(ARRAY,DIM) is equal to the declared lower bound <br /> for subscript DIM of ARRAY. If no bounds were declared <br /> it is one less than the multiplier for subscript DIM of <br /> ARRAY. UBOUND(ARRAY) has value whose j-th component is <br /> equal to UBOUND(ARRAY,j) for each j, 0 to n-1. <br /><br /> Example. UBOUND(_A=SET_RANGE(2:3,7:10,0)) is [3,10] and <br /> UBOUND(_A,1) is 10. <br /><br /> See also LBOUND for lower bound, SHAPE for number of elements, <br /> SIZE for total elements, and E... for signals. <br /><br /> | F90 Inquiry. All the lower bounds of an array or a specified <br /> lower bound. <br /><br /> Arguments Optional: DIM. <br /> ARRAY any type array. <br /> DIM integer scalar from 0 to n-1, where n is rank of ARRAY. <br /><br /> Signals. None. <br /> Units... None. <br /> Form.... Integer scalar if DIM present, <br /> otherwise, vector of size n. <br /> Result.. UBOUND(ARRAY,DIM) is equal to the declared lower bound <br /> for subscript DIM of ARRAY. If no bounds were declared <br /> it is one less than the multiplier for subscript DIM of <br /> ARRAY. UBOUND(ARRAY) has value whose j-th component is <br /> equal to UBOUND(ARRAY,j) for each j, 0 to n-1. <br /><br /> Example. UBOUND(_A=SET_RANGE(2:3,7:10,0)) is [3,10] and <br /> UBOUND(_A,1) is 10. <br /><br /> See also LBOUND for lower bound, SHAPE for number of elements, <br /> SIZE for total elements, and E... for signals. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“union“></span> |
==UNION (A,...)== | ==UNION (A,...)== | ||
Transformation. The union of sets, keeping only unique values. <br /><br /> Arguments Any sortable data types--character, integer, or real. <br /><br /> Signals. None. <br /> Units... The combined type of all arguments. <br /> Form.... The compatible type of all arguments. <br /><br /> Result.. The A's are combined by VECTOR and sorted. Duplicates <br /> are removed. <br /><br /> Example. UNION([4,5],[2,3,5]) is [2,3,4,5]. <br /><br /> | Transformation. The union of sets, keeping only unique values. <br /><br /> Arguments Any sortable data types--character, integer, or real. <br /><br /> Signals. None. <br /> Units... The combined type of all arguments. <br /> Form.... The compatible type of all arguments. <br /><br /> Result.. The A's are combined by VECTOR and sorted. Duplicates <br /> are removed. <br /><br /> Example. UNION([4,5],[2,3,5]) is [2,3,4,5]. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“units“></span> |
==UNITS (A)== | ==UNITS (A)== | ||
Line 83: | Line 83: | ||
MDS Operation. Get the units field. <br /><br /> Argument. Descriptor as below. <br /><br /> Result.. A is searched for this: <br /> DSC$K_DTYPE_WITH_UNITS, the units field. <br /> Otherwise, a single blank is returned. <br /><br /> Examples. UNITS_OF(BUILD_WITH_UNITS(42.,"V")) is "V". <br /> UNITS_OF(42) is " ". <br /><br /> | MDS Operation. Get the units field. <br /><br /> Argument. Descriptor as below. <br /><br /> Result.. A is searched for this: <br /> DSC$K_DTYPE_WITH_UNITS, the units field. <br /> Otherwise, a single blank is returned. <br /><br /> Examples. UNITS_OF(BUILD_WITH_UNITS(42.,"V")) is "V". <br /> UNITS_OF(42) is " ". <br /><br /> | ||
- | <span id=““></span> | + | <span id=“unpack“></span> |
==unpack (VECTOR,MASK,FIELD)== | ==unpack (VECTOR,MASK,FIELD)== | ||
F90 Transformation. Unpack an array into an array under control of a <br /> mask. <br /><br /> Arguments <br /> VECTOR any type. Its size must be at least equal to the number <br /> of $TRUE elements of MASK. <br /> MASK logical array. <br /> FIELD same type as VECTOR and conformable with MASK. <br /> Signals. Single signal or smaller data. <br /> Units... Single or common units of VECTOR and FIELD, else bad. <br /> Form.... The type of VECTOR and the shape of MASK. <br /><br /> Result.. That corresponding to j-th true element of MASK in array <br /> element order, is VECTOR(j-1). Other elements have value <br /> equal to the corresponding element of FIELD. <br /><br /> Examples. Specific values may be scattered to specific positions. <br /> UNPACK(_v=[1,2,3],_q=[0 1 0],[0 0 0],[0 1 0]) is [1 2 0]) <br /> [1 0 0] [0 0 0] [1 0 0] [1 1 0] <br /> [0 0 1] [0 0 0] [0 0 1] [0 0 3] <br /> and UNPACK(_v,_q,0) is [0 2 0]. <br /> [1 0 0] <br /> [0 0 3] <br /><br /> | F90 Transformation. Unpack an array into an array under control of a <br /> mask. <br /><br /> Arguments <br /> VECTOR any type. Its size must be at least equal to the number <br /> of $TRUE elements of MASK. <br /> MASK logical array. <br /> FIELD same type as VECTOR and conformable with MASK. <br /> Signals. Single signal or smaller data. <br /> Units... Single or common units of VECTOR and FIELD, else bad. <br /> Form.... The type of VECTOR and the shape of MASK. <br /><br /> Result.. That corresponding to j-th true element of MASK in array <br /> element order, is VECTOR(j-1). Other elements have value <br /> equal to the corresponding element of FIELD. <br /><br /> Examples. Specific values may be scattered to specific positions. <br /> UNPACK(_v=[1,2,3],_q=[0 1 0],[0 0 0],[0 1 0]) is [1 2 0]) <br /> [1 0 0] [0 0 0] [1 0 0] [1 1 0] <br /> [0 0 1] [0 0 0] [0 0 1] [0 0 3] <br /> and UNPACK(_v,_q,0) is [0 2 0]. <br /> [1 0 0] <br /> [0 0 3] <br /><br /> | ||
- | <span id=““></span> | + | <span id=“unary_minus“></span> |
==UNARY_MINUS (X)== | ==UNARY_MINUS (X)== | ||
Numeric Elemental. Negate a number. <br /> Usual Form - X. <br /><br /> Argument. X must be numeric. <br /><br /> Signals. Same as X. <br /> Units... Same as X. <br /> Form.... Same as X except unsigned become signed. <br /><br /> Result.. Negate each element. <br /> (Two's complement for integers on VAX.) <br /> Immediate at compilation. <br /><br /> Example. -2LU is -2. <br /><br /> | Numeric Elemental. Negate a number. <br /> Usual Form - X. <br /><br /> Argument. X must be numeric. <br /><br /> Signals. Same as X. <br /> Units... Same as X. <br /> Form.... Same as X except unsigned become signed. <br /><br /> Result.. Negate each element. <br /> (Two's complement for integers on VAX.) <br /> Immediate at compilation. <br /><br /> Example. -2LU is -2. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“unary_plus“></span> |
==UNARY_PLUS (X)== | ==UNARY_PLUS (X)== | ||
Numeric Elemental. Make a signed number. (Generally unneeded.) <br /> Usual Form + X. <br /><br /> Argument. X must be numeric. <br /><br /> Signals. Same as X. <br /> Units... Same as X. <br /> Form.... Same as X except unsigned become signed. <br /><br /> Result.. Make number of each element. <br /> Immediate at compilation. <br /><br /> Example. +2LU is 2. <br /><br /> | Numeric Elemental. Make a signed number. (Generally unneeded.) <br /> Usual Form + X. <br /><br /> Argument. X must be numeric. <br /><br /> Signals. Same as X. <br /> Units... Same as X. <br /> Form.... Same as X except unsigned become signed. <br /><br /> Result.. Make number of each element. <br /> Immediate at compilation. <br /><br /> Example. +2LU is 2. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“unsigned“></span> |
==UNSIGNED (A)== | ==UNSIGNED (A)== | ||
Conversion Elemental. Convert to unsigned integer. <br /><br /> Argument. A must be numeric. <br /><br /> Signals. Same as A. <br /> Units... Same as A. <br /> Form.... Unsigned integer of same length as real part of A. <br /> Result.. The truncated integer. <br /> Immediate at compilation. <br /> >>>>>>>>>WARNING, truncation does not cause an error. <br /><br /> Example. UNSIGNED(2.783) is 2LU. <br /><br /> | Conversion Elemental. Convert to unsigned integer. <br /><br /> Argument. A must be numeric. <br /><br /> Signals. Same as A. <br /> Units... Same as A. <br /> Form.... Unsigned integer of same length as real part of A. <br /> Result.. The truncated integer. <br /> Immediate at compilation. <br /> >>>>>>>>>WARNING, truncation does not cause an error. <br /><br /> Example. UNSIGNED(2.783) is 2LU. <br /><br /> | ||
- | <span id=““></span> | + | <span id=“upcase“></span> |
==UPCASE (STRING)== | ==UPCASE (STRING)== | ||
Character Elemental. Change all alphabetics to uppercase. <br /> Argument. STRING must be character. <br /><br /> Signals. Same as STRING. <br /> Units... Same as STRING. <br /> Form.... Same as STRING. <br /><br /> Result.. The same as STRING with all lower case alphabetics <br /> replaced by the corresponding uppercase character. <br /><br /> Example. UPCASE('Name') is "NAME". <br /><br /> | Character Elemental. Change all alphabetics to uppercase. <br /> Argument. STRING must be character. <br /><br /> Signals. Same as STRING. <br /> Units... Same as STRING. <br /> Form.... Same as STRING. <br /><br /> Result.. The same as STRING with all lower case alphabetics <br /> replaced by the corresponding uppercase character. <br /><br /> Example. UPCASE('Name') is "NAME". <br /><br /> | ||
- | <span id=““></span> | + | <span id=“using“></span> |
==USING (A,[DEFAULT],[SHOTID],[EXPT])== | ==USING (A,[DEFAULT],[SHOTID],[EXPT])== | ||
MDS Operation. Evaluate expression from a different tree location. <br /><br /> Arguments Optional: DEFAULT, SHOTID, EXPT. <br /> A an expression. <br /> >>>>>>>>>WARNING, pathnames in the expression A will be relative to the <br /> temporary tree location and may not be related to the <br /> old tree. <br /> DEFAULT character, NID, long, or PATH scalar. The new tree path. <br /> >>>>>>>>>WARNING, relative paths are like the full name in the old tree. <br /> SHOTID integer scalar. The shot number. <br /> EXPT character scalar. The experiment name. <br /><br /> Result.. Depends on the expression at the node in the new tree. <br /> The old node, shot, and experiment are used to evaluate <br /> the expressions for DEFAULT, SHOTID, and EXPT. If SHOTID <br /> or EXPT present, a new tree is opened for reading. The <br /> temporary path is set from DEFAULT. If omitted, the <br /> values used are those of the current tree and path. <br /> There will be an error if the old tree is not open or <br /> the old path is bad. <br /><br /> Example. Say shot 1234 is a "vacuum" subtraction shot for the <br /> current shot and we are positioned at \TOP.XRAY:CHAN_01, <br /> which has data, then the subtracted data might be <br /> :DATA - USING(:DATA,,1234) <br /> | MDS Operation. Evaluate expression from a different tree location. <br /><br /> Arguments Optional: DEFAULT, SHOTID, EXPT. <br /> A an expression. <br /> >>>>>>>>>WARNING, pathnames in the expression A will be relative to the <br /> temporary tree location and may not be related to the <br /> old tree. <br /> DEFAULT character, NID, long, or PATH scalar. The new tree path. <br /> >>>>>>>>>WARNING, relative paths are like the full name in the old tree. <br /> SHOTID integer scalar. The shot number. <br /> EXPT character scalar. The experiment name. <br /><br /> Result.. Depends on the expression at the node in the new tree. <br /> The old node, shot, and experiment are used to evaluate <br /> the expressions for DEFAULT, SHOTID, and EXPT. If SHOTID <br /> or EXPT present, a new tree is opened for reading. The <br /> temporary path is set from DEFAULT. If omitted, the <br /> values used are those of the current tree and path. <br /> There will be an error if the old tree is not open or <br /> the old path is bad. <br /><br /> Example. Say shot 1234 is a "vacuum" subtraction shot for the <br /> current shot and we are positioned at \TOP.XRAY:CHAN_01, <br /> which has data, then the subtracted data might be <br /> :DATA - USING(:DATA,,1234) <br /> |