symbolic4
symbolic4.h
Go to the documentation of this file.
1 
2 /*
3 
4  Copyright (c) 2019 Hannes Eberhard
5 
6  Permission is hereby granted, free of charge, to any person obtaining a copy
7  of this software and associated documentation files (the "Software"), to deal
8  in the Software without restriction, including without limitation the rights
9  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  copies of the Software, and to permit persons to whom the Software is
11  furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in all
14  copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22  SOFTWARE.
23 
24  */
25 
26 #ifndef symbolic4_h
27 #define symbolic4_h
28 
29 #define VERSION "1.0.0"
30 #define ALLOCATED_POINTERS_LENGTH 2000
31 //#define DEBUG_MODE
32 
33 #ifdef _WIN32
34 #elif defined(__APPLE__)
35 #elif defined(__linux__)
36 #define uint8_t u_int8_t
37 #define uint16_t u_int16_t
38 #define uint32_t u_int32_t
39 #define uint64_t u_int32_t
40 #define uintmax_t u_int32_t
41 #elif defined(__unix__)
42 #elif defined(__DOXYGEN__)
43 #elif defined(_EZ80)
44 #define uint64_t uint32_t
45 #define uintmax_t uint32_t
46 #endif
47 
48 #include <stdlib.h>
49 #include <stdio.h>
50 #include <stdarg.h>
51 #include <stdbool.h>
52 #include <string.h>
53 #include <ctype.h>
54 #include <math.h>
55 
56 #include "foundation.h"
57 #include "expression.h"
58 #include "polynomial.h"
59 #include "math_foundation.h"
60 #include "parser.h"
61 #include "simplify.h"
62 #include "solve.h"
63 #include "derivative.h"
64 #include "integral.h"
65 #include "matrix.h"
66 #include "vector.h"
67 
68 extern bool use_abbrevations; ///< Determines if abbrevations should be used in the result string (such as "Deriv" instead of "Derivative")
69 extern bool use_spaces; ///< Determines if spaces should be used in the result string (such as "x + y * z" instead of "x+y*z")
70 extern char* default_priorities;
71 
72 uint8_t symbolic4(char* buffer, const char* query);
73 uint8_t process(expression* source, bool recursive);
74 
75 #endif /* symbolic4_h */
expression.h
expression
Definition: expression.h:112
polynomial.h
default_priorities
char * default_priorities
Definition: symbolic4.c:30
process
uint8_t process(expression *source, bool recursive)
Definition: symbolic4.c:79
simplify.h
solve.h
symbolic4
uint8_t symbolic4(char *buffer, const char *query)
Definition: symbolic4.c:50
matrix.h
math_foundation.h
use_abbrevations
bool use_abbrevations
Determines if abbrevations should be used in the result string (such as "Deriv" instead of "Derivativ...
Definition: symbolic4.c:28
integral.h
foundation.h
parser.h
vector.h
derivative.h
use_spaces
bool use_spaces
Determines if spaces should be used in the result string (such as "x + y * z" instead of "x+y*z")
Definition: symbolic4.c:29