00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _ERRORS
00024 #define _ERRORS
00025
00026 enum error_type {
00027 NO_ERROR,
00028 ERR_OPERATOR,
00029 ERR_BRACKET,
00030 ERR_NO_TEXT,
00031 ERR_FUNCTION,
00032 ERR_DOM,
00033 ERR_RANGE,
00034 ERR_VARIABLES,
00035 ERR_DIV_ZERO,
00036 ERR_INEXACT,
00037 ERR_DIFF,
00038 ERR_NO_ROOT,
00039 ERR_GRAPH,
00040 ERR_SYMBOL,
00041 NUM_ERRS
00042 };
00043
00044 #ifdef ERROR_MSGS
00045
00046 const char *error_msgs[NUM_ERRS] = {
00047 "No error",
00048 "Illegal use of operator",
00049 "Incorrect use of brackets",
00050 "No equation entered",
00051 "Illegal use of function",
00052 "Function argument out of range",
00053 "Function value out of range",
00054 "Undefined variable",
00055 "Divide by zero error",
00056 "Loss of precision",
00057 "Unable to differentiate function",
00058 "Are you sure there is a root in the interval",
00059 "Unable to graph function",
00060 "Unknown symbol in equation"
00061 };
00062
00063 #endif
00064
00065 #endif