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