/*-------------------------------------------------------------------- * * gmtmath_def.h [Generated by make_math.sh] * * Copyright (c) 1991-2002 by P. Wessel and W. H. F. Smith * See COPYING file for copying and redistribution conditions. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * Contact info: gmt.soest.hawaii.edu *--------------------------------------------------------------------*/ /* gmtmath_def.h is automatically generated by make_math.sh; * Do NOT edit manually! * * For backward compatibility: */ #define ADD 3 #define DIV 20 #define MUL 62 #define RAISE 69 /* (POW) */ #define SUB 82 /* Declare all functions to return int */ void table_ABS(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 00 */ void table_ACOS(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 01 */ void table_ACOSH(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 02 */ void table_ADD(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 03 */ void table_AND(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 04 */ void table_ASIN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 05 */ void table_ASINH(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 06 */ void table_ATAN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 07 */ void table_ATAN2(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 08 */ void table_ATANH(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 09 */ void table_BEI(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 10 */ void table_BER(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 11 */ void table_CEIL(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 12 */ void table_CHIDIST(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 13 */ void table_COS(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 14 */ void table_COSD(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 15 */ void table_COSH(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 16 */ void table_D2DT2(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 17 */ void table_D2R(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 18 */ void table_DILOG(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 19 */ void table_DIV(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 20 */ void table_DDT(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 21 */ void table_DUP(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 22 */ void table_ERF(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 23 */ void table_ERFC(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 24 */ void table_ERFINV(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 25 */ void table_EQ(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 26 */ void table_EXCH(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 27 */ void table_EXP(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 28 */ void table_FDIST(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 29 */ void table_FLOOR(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 30 */ void table_FMOD(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 31 */ void table_GE(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 32 */ void table_GT(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 33 */ void table_HYPOT(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 34 */ void table_I0(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 35 */ void table_I1(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 36 */ void table_IN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 37 */ void table_INT(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 38 */ void table_INV(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 39 */ void table_ISNAN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 40 */ void table_J0(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 41 */ void table_J1(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 42 */ void table_JN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 43 */ void table_K0(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 44 */ void table_K1(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 45 */ void table_KN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 46 */ void table_KEI(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 47 */ void table_KER(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 48 */ void table_LE(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 49 */ void table_LMSSCL(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 50 */ void table_LOG(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 51 */ void table_LOG10(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 52 */ void table_LOG1P(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 53 */ void table_LOWER(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 54 */ void table_LT(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 55 */ void table_MAD(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 56 */ void table_MAX(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 57 */ void table_MEAN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 58 */ void table_MED(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 59 */ void table_MIN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 60 */ void table_MODE(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 61 */ void table_MUL(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 62 */ void table_NAN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 63 */ void table_NEG(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 64 */ void table_NRAND(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 65 */ void table_OR(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 66 */ void table_PLM(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 67 */ void table_POP(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 68 */ void table_POW(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 69 */ void table_R2(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 70 */ void table_R2D(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 71 */ void table_RAND(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 72 */ void table_RINT(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 73 */ void table_SIGN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 74 */ void table_SIN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 75 */ void table_SIND(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 76 */ void table_SINH(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 77 */ void table_SQRT(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 78 */ void table_STD(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 79 */ void table_STEP(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 80 */ void table_STEPT(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 81 */ void table_SUB(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 82 */ void table_SUM(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 83 */ void table_TAN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 84 */ void table_TAND(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 85 */ void table_TANH(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 86 */ void table_TDIST(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 87 */ void table_UPPER(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 88 */ void table_XOR(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 89 */ void table_Y0(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 90 */ void table_Y1(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 91 */ void table_YN(double **stack[], BOOLEAN *constant, double *factor, int last, int start, int n); /* id = 92 */ /* Declare operator array */ char *operator[N_OPERATORS] = { "ABS", /* id = 00 */ "ACOS", /* id = 01 */ "ACOSH", /* id = 02 */ "ADD", /* id = 03 */ "AND", /* id = 04 */ "ASIN", /* id = 05 */ "ASINH", /* id = 06 */ "ATAN", /* id = 07 */ "ATAN2", /* id = 08 */ "ATANH", /* id = 09 */ "BEI", /* id = 10 */ "BER", /* id = 11 */ "CEIL", /* id = 12 */ "CHIDIST", /* id = 13 */ "COS", /* id = 14 */ "COSD", /* id = 15 */ "COSH", /* id = 16 */ "D2DT2", /* id = 17 */ "D2R", /* id = 18 */ "DILOG", /* id = 19 */ "DIV", /* id = 20 */ "DDT", /* id = 21 */ "DUP", /* id = 22 */ "ERF", /* id = 23 */ "ERFC", /* id = 24 */ "ERFINV", /* id = 25 */ "EQ", /* id = 26 */ "EXCH", /* id = 27 */ "EXP", /* id = 28 */ "FDIST", /* id = 29 */ "FLOOR", /* id = 30 */ "FMOD", /* id = 31 */ "GE", /* id = 32 */ "GT", /* id = 33 */ "HYPOT", /* id = 34 */ "I0", /* id = 35 */ "I1", /* id = 36 */ "IN", /* id = 37 */ "INT", /* id = 38 */ "INV", /* id = 39 */ "ISNAN", /* id = 40 */ "J0", /* id = 41 */ "J1", /* id = 42 */ "JN", /* id = 43 */ "K0", /* id = 44 */ "K1", /* id = 45 */ "KN", /* id = 46 */ "KEI", /* id = 47 */ "KER", /* id = 48 */ "LE", /* id = 49 */ "LMSSCL", /* id = 50 */ "LOG", /* id = 51 */ "LOG10", /* id = 52 */ "LOG1P", /* id = 53 */ "LOWER", /* id = 54 */ "LT", /* id = 55 */ "MAD", /* id = 56 */ "MAX", /* id = 57 */ "MEAN", /* id = 58 */ "MED", /* id = 59 */ "MIN", /* id = 60 */ "MODE", /* id = 61 */ "MUL", /* id = 62 */ "NAN", /* id = 63 */ "NEG", /* id = 64 */ "NRAND", /* id = 65 */ "OR", /* id = 66 */ "PLM", /* id = 67 */ "POP", /* id = 68 */ "POW", /* id = 69 */ "R2", /* id = 70 */ "R2D", /* id = 71 */ "RAND", /* id = 72 */ "RINT", /* id = 73 */ "SIGN", /* id = 74 */ "SIN", /* id = 75 */ "SIND", /* id = 76 */ "SINH", /* id = 77 */ "SQRT", /* id = 78 */ "STD", /* id = 79 */ "STEP", /* id = 80 */ "STEPT", /* id = 81 */ "SUB", /* id = 82 */ "SUM", /* id = 83 */ "TAN", /* id = 84 */ "TAND", /* id = 85 */ "TANH", /* id = 86 */ "TDIST", /* id = 87 */ "UPPER", /* id = 88 */ "XOR", /* id = 89 */ "Y0", /* id = 90 */ "Y1", /* id = 91 */ "YN" /* id = 92 */ };