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