next up previous contents
Next: Programming DQFs Up: Standard Derived Quantity Functions Previous: Arithmetic DQFs   Contents

Logical DQFs

Logical DQFs return either 1.0 (true) or 0.0 (false). In those cases where logical values are required on input the C convention is followed i.e. 0. is taken as false and all other values as true.

Figure 6.3: Logical Derived Quantity Functions
\begin{figure}\par
\begin{center}
\begin{tabular}{\vert l \vert c \vert}
\hline
...
...arIn the table above $P_i$\ denotes the $i^{th}$\ parameter.
\par
\end{figure}

Table 6.3 lists all available Logical DQFs. Some additional details are given in the following notes:-

  1. IN_LIST returns 1.0 if the value $P_1$ is contained in a list pointed to by $P_2$, or 0.0 otherwise. If just these two parameters are given then $P_2$ should be a link to a user titles bank, for example:-
        '  pmt_sel    in_list    PMT+$KPMT_PIN, USER.1;     '
    
    where no offset to the titles bank should be given. You are free to invent any new titles bank to contain a list. You just need to create a titles file containing the bank (including database header) and load it in with the titles command. The length of the list is inferred from the bank size. The value $P_1$ and the values in the list should be of the same type (integer/float).

    The usage with three parameters is more general. The second parameter now points to the first word in the list (which need not be in a titles bank), and the third gives the list length (in floating point). For example:-

        '  ev_sel     in_list    EV+$KEV_GTR_ID, USER.2+1, 10.0; '
    

  2. DMM gives access to DAMN and DARN data masks. $P_1$ is always the mask number and uses the following convention:-
      mask number = 0       => DAMN mask 0
      mask number = i > 0   => DARN mask i
      mask number = j < 0   => DAMN mask -j
    
    One two or three parameters can be used:-


next up previous contents
Next: Programming DQFs Up: Standard Derived Quantity Functions Previous: Arithmetic DQFs   Contents
sno Guest Acct 2009-09-09