]> www.ginac.de Git - ginac.git/blob - ginac/inifcns.h
- enforced GiNaC coding standards :-)
[ginac.git] / ginac / inifcns.h
1 /** @file inifcns.h
2  *
3  *  Interface to GiNaC's initially known functions.
4  *
5  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 2 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 #ifndef __GINAC_INIFCNS_H__
23 #define __GINAC_INIFCNS_H__
24
25 /** Sine. */
26 DECLARE_FUNCTION_1P(sin)
27
28 /** Cosine. */
29 DECLARE_FUNCTION_1P(cos)
30
31 /** Tangent. */
32 DECLARE_FUNCTION_1P(tan)
33
34 /** Exponential function. */
35 DECLARE_FUNCTION_1P(exp)
36
37 /** Natural logarithm. */
38 DECLARE_FUNCTION_1P(log)
39
40 /** Inverse sine (arc sine). */
41 DECLARE_FUNCTION_1P(asin)
42
43 /** Inverse cosine (arc cosine). */
44 DECLARE_FUNCTION_1P(acos)
45
46 /** Inverse tangent (arc tangent). */
47 DECLARE_FUNCTION_1P(atan)
48
49 /** Inverse tangent with two arguments. */
50 DECLARE_FUNCTION_2P(atan2)
51
52 /** Hyperbolic Sine. */
53 DECLARE_FUNCTION_1P(sinh)
54
55 /** Hyperbolic Cosine. */
56 DECLARE_FUNCTION_1P(cosh)
57
58 /** Hyperbolic Tangent. */
59 DECLARE_FUNCTION_1P(tanh)
60
61 /** Inverse hyperbolic Sine (area hyperbolic sine). */
62 DECLARE_FUNCTION_1P(asinh)
63
64 /** Inverse hyperbolic Cosine (area hyperbolic cosine). */
65 DECLARE_FUNCTION_1P(acosh)
66
67 /** Inverse hyperbolic Tangent (area hyperbolic tangent). */
68 DECLARE_FUNCTION_1P(atanh)
69
70 /** Dilogarithm. */
71 DECLARE_FUNCTION_1P(Li2)
72
73 /** Trilogarithm. */
74 DECLARE_FUNCTION_1P(Li3)
75
76 /** Gamma function. */
77 DECLARE_FUNCTION_1P(gamma)
78
79 /** Factorial function. */
80 DECLARE_FUNCTION_1P(factorial)
81
82 /** Binomial function. */
83 DECLARE_FUNCTION_2P(binomial)
84
85 /** Order term function (for truncated power series). */
86 DECLARE_FUNCTION_1P(Order)
87
88 ex lsolve(ex eqns,ex symbols);
89
90 ex ncpower(ex basis, unsigned exponent);
91
92 inline bool is_order_function(ex const & e)
93 {
94         return is_ex_the_function(e, Order);
95 }
96
97 #endif // ndef __GINAC_INIFCNS_H__