]> www.ginac.de Git - ginac.git/blob - ginac/inifcns.h
- account for new GNU-automake built-scheme
[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 #include <ginac/function.h>
26 #include <ginac/ex.h>
27
28 /** Sine. */
29 DECLARE_FUNCTION_1P(sin)
30
31 /** Cosine. */
32 DECLARE_FUNCTION_1P(cos)
33
34 /** Tangent. */
35 DECLARE_FUNCTION_1P(tan)
36
37 /** Exponential function. */
38 DECLARE_FUNCTION_1P(exp)
39
40 /** Natural logarithm. */
41 DECLARE_FUNCTION_1P(log)
42
43 /** Inverse sine (arc sine). */
44 DECLARE_FUNCTION_1P(asin)
45
46 /** Inverse cosine (arc cosine). */
47 DECLARE_FUNCTION_1P(acos)
48
49 /** Inverse tangent (arc tangent). */
50 DECLARE_FUNCTION_1P(atan)
51
52 /** Inverse tangent with two arguments. */
53 DECLARE_FUNCTION_2P(atan2)
54
55 /** Hyperbolic Sine. */
56 DECLARE_FUNCTION_1P(sinh)
57
58 /** Hyperbolic Cosine. */
59 DECLARE_FUNCTION_1P(cosh)
60
61 /** Hyperbolic Tangent. */
62 DECLARE_FUNCTION_1P(tanh)
63
64 /** Inverse hyperbolic Sine (area hyperbolic sine). */
65 DECLARE_FUNCTION_1P(asinh)
66
67 /** Inverse hyperbolic Cosine (area hyperbolic cosine). */
68 DECLARE_FUNCTION_1P(acosh)
69
70 /** Inverse hyperbolic Tangent (area hyperbolic tangent). */
71 DECLARE_FUNCTION_1P(atanh)
72
73 /** Dilogarithm. */
74 DECLARE_FUNCTION_1P(Li2)
75
76 /** Trilogarithm. */
77 DECLARE_FUNCTION_1P(Li3)
78
79 /** Gamma function. */
80 DECLARE_FUNCTION_1P(gamma)
81
82 /** Factorial function. */
83 DECLARE_FUNCTION_1P(factorial)
84
85 /** Binomial function. */
86 DECLARE_FUNCTION_2P(binomial)
87
88 /** Order term function (for truncated power series). */
89 DECLARE_FUNCTION_1P(Order)
90
91 ex lsolve(ex const &eqns, ex const &symbols);
92
93 ex ncpower(ex const &basis, unsigned exponent);
94
95 inline bool is_order_function(ex const & e)
96 {
97         return is_ex_the_function(e, Order);
98 }
99
100 #endif // ndef __GINAC_INIFCNS_H__