Annotation of loncom/homework/CAPA-converter/capaFunction.h, revision 1.2

1.2     ! albertel    1: /* The LearningOnline Network with CAPA
        !             2:  * Function call defines
        !             3:  * $Id: gplheader.js,v 1.1 2001/11/29 19:06:47 www Exp $
        !             4:  *
        !             5:  * Copyright Michigan State University Board of Trustees
        !             6:  *
        !             7:  * This file is part of the LearningOnline Network with CAPA (LON-CAPA).
        !             8:  *
        !             9:  * LON-CAPA is free software; you can redistribute it and/or modify
        !            10:  * it under the terms of the GNU General Public License as published by
        !            11:  * the Free Software Foundation; either version 2 of the License, or
        !            12:  * (at your option) any later version.
        !            13:  *
        !            14:  * LON-CAPA is distributed in the hope that it will be useful,
        !            15:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            16:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            17:  * GNU General Public License for more details.
        !            18:  *
        !            19:  * You should have received a copy of the GNU General Public License
        !            20:  * along with LON-CAPA; if not, write to the Free Software
        !            21:  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
        !            22:  *
        !            23:  * /home/httpd/html/adm/gpl.txt
        !            24:  *
        !            25:  * http://www.lon-capa.org/
        !            26:  */
        !            27: 
1.1       albertel   28: /* =||>>================================================================<<||= */
                     29: /* 45678901234567890123456789012345678901234567890123456789012345678901234567 */
                     30: /* =||>>================================================================<<||= */
                     31: 
                     32: #ifndef   CAPA_FUNCTION_H
                     33: #define   CAPA_FUNCTION_H
                     34: 
                     35: #define  RANDOM_F       1
                     36: #define  CHOOSE_F       2
                     37: #define  TEX_F          3
                     38: #define  VAR_IN_TEX_F   4
                     39: #define  PIN_F          5
                     40: #define  CLASS_F        6
                     41: #define  SECTION_F      7
                     42: #define  PROBLEM_F      8
                     43: #define  SET_F          9
                     44: #define  NAME_F         10
                     45: #define  SNUMBER_F      11
                     46: #define  DUE_DATE_F     12
                     47: #define  DUE_DAY_F      13
                     48: #define  OPEN_DATE_F    14
                     49: #define  ANSWER_DATE_F  15
                     50: #define  TO_STRING_F    16
                     51: #define  FORMAT_F       17
                     52: #define  PICK_F         18
                     53: #define  HTML_F         19
                     54: #define  WEB_F          20
                     55: #define  LINK_F         21
                     56: #define  SUB_STRING_F   22
                     57: #define  GET_SEED_F     23
                     58: #define  SET_SEED_F     24
                     59: #define  ARRAY_INDEX_F  25
                     60: #define  ARRAY_SORTED_INDEX_F  26
                     61: #define  DURATION       27
                     62: #define  STRLEN_F       28
                     63: #define  STRCHR_F       29
                     64: #define  WEB_SERVER_F   30
                     65: 
                     66: 
                     67: /* ------------------------ Trigonometry Functions */
                     68: 
                     69: #define  SIN_F          31
                     70: #define  COS_F          32
                     71: #define  TAN_F          33
                     72: #define  ASIN_F         34
                     73: #define  ACOS_F         35
                     74: #define  ATAN_F         36
                     75: #define  SINH_F         37
                     76: #define  COSH_F         38
                     77: #define  TANH_F         39
                     78: #define  ASINH_F        40
                     79: #define  ACOSH_F        41
                     80: #define  ATANH_F        42
                     81: #define  J_ZERO_F       43
                     82: #define  J_ONE_F        44
                     83: #define  J_N_F          45
                     84: #define  Y_ZERO_F       46
                     85: #define  Y_ONE_F        47
                     86: #define  Y_N_F          48
                     87: #define  ATANTWO_F      49
                     88: #define  LOG_F          50
                     89: #define  LOG_TEN_F      51
                     90: #define  EXP_F          52
                     91: #define  POW_F          53
                     92: #define  ERF_F          54
                     93: #define  ERFC_F         55
                     94: #define  SQRT_F         56
                     95: #define  FACTORIAL_F    57
                     96: 
                     97: #define  ARRAY_MIN_F    58
                     98: #define  ARRAY_MAX_F    59
                     99: 
                    100: 
                    101: #define  MIN_F          60
                    102: #define  MAX_F          61
                    103: #define  ABS_F          62
                    104: #define  FLOOR_F        63
                    105: #define  CEIL_F         64
                    106: #define  SGN_F          65
                    107: #define  MOD_F          66
                    108: #define  REMAINDER_F    67
                    109: #define  SIGNIFICANT_F  68
                    110: 
                    111: 
                    112: #define  TO_INT_F           70
                    113: #define  ROUNDTO_F          71
                    114: #define  EVALUATE_F         72
                    115: #define  ARRAY_MOMENTS_F    73
                    116: #define  ARRAY_MEDIUM_F     74
                    117: #define  ARRAY_VARIANCE_F   76
                    118: #define  ARRAY_STD_DEV_F    77
                    119: #define  ARRAY_SKEWNESS_F   78
                    120: #define  ARRAY_INDEX_CNT_F  79
                    121: 
                    122: #define  CAPAID_PLUS    80
                    123: #define  SEAT_NUMBER    81
                    124: #define  IS_OPEN_F      82
                    125: #define  IS_DUE_F       83
                    126: #define  IS_ANSWER_F    84
                    127: #define  FIRSTNAME_F    85
                    128: #define  LASTNAME_F     86
                    129: #define  CLASSPATH_F    87
                    130: #define  CLASSNAME_F    88
                    131: #define  MANAGERMODE_F  89
                    132: 
                    133: #define  CORRECT_F      100
                    134: #define  TRIES_F        101
                    135: #define  GRADE_F        102
                    136: 
                    137: #define  RANDOM_NORMAL_F        103
                    138: #define  RANDOM_BETA_F          104
                    139: #define  RANDOM_GAMMA_F         105
                    140: #define  RANDOM_EXPONENTIAL_F   106
                    141: #define  RANDOM_POISSON_F       107
                    142: #define  RANDOM_CHI_F             108
                    143: #define  RANDOM_NONCENTRAL_CHI_F  109
                    144: 
                    145: 
                    146: #define  INIT_ARRAY_F         110
                    147: 
                    148: #define  MIS_ARG_COUNT  97
                    149: #define  MIS_ARG_TYPE   98
                    150: #define  UNKNOWN_F      99
                    151: 
                    152: /*************************************/
                    153: 
                    154: int     match_function( );
                    155: Symbol *do_function();
                    156: 
                    157: #endif  /* CAPA_FUNCTION_H */
                    158: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>