amath  1.8.5
Simple command line calculator
functionalias.h
Go to the documentation of this file.
1 /*-
2  * Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  *
25  * Project homepage:
26  * https://amath.innolan.net
27  *
28  */
29 
30 #ifndef AMATH_FUNCTIONALIAS_H
31 #define AMATH_FUNCTIONALIAS_H
32 
33 #include "amatht.h"
34 
35 static const identalias identaliases[] = {
36  {"squareroot", "sqrt"},
37  {"sqr", "sqrt"},
38  {"cuberoot", "cbrt"},
39  {"cbr", "cbrt"},
40  {"log2", "lb"},
41  {"log", "lg"},
42  {"log10", "lg"},
43  {"sine", "sin"},
44  {"cosine", "cos"},
45  {"tangent", "tan"},
46  {"secant", "sec"},
47  {"cosec", "csc"},
48  {"cosecant", "csc"},
49  {"ctg", "cot"},
50  {"ctn", "cot"},
51  {"cotangent", "cot"},
52  {"chord", "crd"},
53  {"arcsine", "asin"},
54  {"arccosine", "acos"},
55  {"arctangent", "atan"},
56  {"arccotangent", "acot"},
57  {"arcsecant", "asec"},
58  {"arccosecant", "acsc"},
59  {"arcchord", "acrd"},
60  {"arsin", "asin"},
61  {"arcos", "acos"},
62  {"artan", "atan"},
63  {"arcot", "acot"},
64  {"arsec", "asec"},
65  {"arcsc", "acsc"},
66  {"arcrd", "acrd"},
67  {"arcsin", "asin"},
68  {"arccos", "acos"},
69  {"arctan", "atan"},
70  {"arccot", "acot"},
71  {"arcsec", "asec"},
72  {"arccsc", "acsc"},
73  {"arccrd", "acrd"},
74  {"arsinh", "asinh"},
75  {"arcosh", "acosh"},
76  {"artanh", "atanh"},
77  {"arcoth", "acoth"},
78  {"arsech", "asech"},
79  {"arcsch", "acsch"},
80  {"arcsinh", "asinh"},
81  {"arccosh", "acosh"},
82  {"arctanh", "atanh"},
83  {"arccoth", "acoth"},
84  {"arcsech", "asech"},
85  {"arccsch", "acsch"},
86  // exsecant
87  {"exsecant", "exsec"},
88  {"exteriorsecant", "exsec"},
89  {"externalsecant", "exsec"},
90  {"outwardsecant", "exsec"},
91  {"outersecant", "exsec"},
92  {"exs", "exsec"},
93  // excosecant
94  {"excosecant", "excsc"},
95  {"exteriorcosecant", "excsc"},
96  {"externalcosecant", "excsc"},
97  {"outwardcosecant", "excsc"},
98  {"outercosecant", "excsc"},
99  {"excosec", "excsc"},
100  {"coexsec", "excsc"},
101  {"exc", "excsc"},
102  // inverse exsecant
103  {"arcexsecant", "aexsec"},
104  {"arcexsec", "aexsec"},
105  {"aexs", "aexsec"},
106  // inverse excosecant
107  {"arcexcosecant", "aexcsc"},
108  {"arcexcosec", "aexcsc"},
109  {"arcexcsc", "aexcsc"},
110  {"aexc", "aexcsc"},
111  // versed sine
112  {"versedsine", "ver"},
113  {"versine", "ver"},
114  {"siv", "ver"},
115  {"vers", "ver"},
116  {"sinver", "ver"},
117  {"versin", "ver"},
118  // versed cosine
119  {"versedcosine", "vcs"},
120  {"vercosine", "vcs"},
121  {"vercos", "vcs"},
122  {"vercosin", "vcs"},
123  // coversed sine
124  {"coversedsine", "cvs"},
125  {"coversine", "cvs"},
126  {"cosinusversus", "cvs"},
127  {"coversinus", "cvs"},
128  {"cosiv", "cvs"},
129  {"covers", "cvs"},
130  {"coversin", "cvs"},
131  // coversed cosine
132  {"coversedcosine", "cvc"},
133  {"covercosine", "cvc"},
134  {"covercos", "cvc"},
135  {"covercos", "cvc"},
136  {"covercosin", "cvc"},
137  // haversed sine
138  {"haversedsine", "hv"},
139  {"haversine", "hv"},
140  {"semiversus", "hv"},
141  {"haversin", "hv"},
142  {"semiversin", "hv"},
143  {"semiversinus", "hv"},
144  {"havers", "hv"},
145  {"hav", "hv"},
146  {"hvs", "hv"},
147  {"sem", "hv"},
148  // haversed cosine
149  {"haversedcosine", "hvc"},
150  {"havercosine", "hvc"},
151  {"havercosin", "hvc"},
152  {"havercos", "hvc"},
153  {"hac", "hvc"},
154  {"sem", "hvc"},
155  // hacoversed sine
156  {"hacoversedsine", "hcv"},
157  {"hacoversine", "hcv"},
158  {"cohaversine", "hcv"},
159  {"hacoversin", "hcv"},
160  {"semicoversin", "hcv"},
161  {"hacovers", "hcv"},
162  {"hacov", "hcv"},
163  // hacoversed cosine
164  {"hacoversedcosine", "hcc"},
165  {"hacovercosine", "hcc"},
166  {"cohavercosine", "hcc"},
167  {"hacovercosin", "hcc"},
168  {"hacovercos", "hcc"},
169  // inverse versed sine
170  {"avers", "aver"},
171  {"arcvers", "aver"},
172  {"arcversin", "aver"},
173  {"arcversine", "aver"},
174  // inverse versed cosine
175  {"avercos", "avcs"},
176  {"arcvercos", "avcs"},
177  {"arcvercosin", "avcs"},
178  {"arcvercosine", "avcs"},
179  // inverse coversed sine
180  {"acovers", "acvs"},
181  {"arccovers", "acvs"},
182  {"arccoversin", "acvs"},
183  {"arccoversine", "acvs"},
184  // inverse coversed cosine
185  {"acovercos", "acvc"},
186  {"arccovercos", "acvc"},
187  {"arccovercosin", "acvc"},
188  {"arccovercosine", "acvc"},
189  // inverse haversed sine
190  {"ahvs", "ahv"},
191  {"ahav", "ahv"},
192  {"invhav", "ahv"},
193  {"archav", "ahv"},
194  {"archaversin", "ahv"},
195  {"archaversine", "ahv"},
196  // inverse haversed cosine
197  {"archavercos", "ahvc"},
198  {"archavercosin", "ahvc"},
199  {"archavercosine", "ahvc"},
200  // inverse hacoversed sine
201  {"archacoversine", "ahcv"},
202  {"archacoversin", "ahcv"},
203  // inverse hacoversed cosine
204  {"archacovercos", "ahcc"},
205  {"archacovercosin", "ahcc"},
206  {"archacovercosine", "ahcc"},
207  // exsecant
208  {"exsecant", "exsec"},
209  {"outwardsecant", "exsec"},
210  {"outersecant", "exsec"},
211  {"exteriorsecant", "exsec"},
212  {"externalsecant", "exsec"},
213  {"exs", "exsec"},
214  // excosecant
215  {"excosecant", "excsc"},
216  {"coexsecant", "excsc"},
217  {"exteriorcosecant", "excsc"},
218  {"externalcosecant", "excsc"},
219  {"outwardcosecant", "excsc"},
220  {"outercosecant", "excsc"},
221  {"excosecant", "excsc"},
222  {"excosec", "excsc"},
223  {"coexsec", "excsc"},
224  {"exc", "excsc"},
225  // inverse exsecant
226  {"arcexsecant", "aexsec"},
227  {"arcexsec", "aexsec"},
228  {"aexsec", "aexsec"},
229  {"aexs", "aexsec"},
230  // inverse excosecant
231  {"arcexcosecant", "aexcsc"},
232  {"arcexcosec", "aexcsc"},
233  {"arcexcsc", "aexcsc"},
234  {"aexc", "aexcsc"}
235 };
236 
237 #endif
static const identalias identaliases[]
Definition: functionalias.h:35