3 * Interface to GiNaC's initially known functions.
5 * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
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.
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.
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
22 #ifndef __GINAC_INIFCNS_H__
23 #define __GINAC_INIFCNS_H__
25 #include <ginac/function.h>
29 DECLARE_FUNCTION_1P(sin)
32 DECLARE_FUNCTION_1P(cos)
35 DECLARE_FUNCTION_1P(tan)
37 /** Exponential function. */
38 DECLARE_FUNCTION_1P(exp)
40 /** Natural logarithm. */
41 DECLARE_FUNCTION_1P(log)
43 /** Inverse sine (arc sine). */
44 DECLARE_FUNCTION_1P(asin)
46 /** Inverse cosine (arc cosine). */
47 DECLARE_FUNCTION_1P(acos)
49 /** Inverse tangent (arc tangent). */
50 DECLARE_FUNCTION_1P(atan)
52 /** Inverse tangent with two arguments. */
53 DECLARE_FUNCTION_2P(atan2)
55 /** Hyperbolic Sine. */
56 DECLARE_FUNCTION_1P(sinh)
58 /** Hyperbolic Cosine. */
59 DECLARE_FUNCTION_1P(cosh)
61 /** Hyperbolic Tangent. */
62 DECLARE_FUNCTION_1P(tanh)
64 /** Inverse hyperbolic Sine (area hyperbolic sine). */
65 DECLARE_FUNCTION_1P(asinh)
67 /** Inverse hyperbolic Cosine (area hyperbolic cosine). */
68 DECLARE_FUNCTION_1P(acosh)
70 /** Inverse hyperbolic Tangent (area hyperbolic tangent). */
71 DECLARE_FUNCTION_1P(atanh)
74 DECLARE_FUNCTION_1P(Li2)
77 DECLARE_FUNCTION_1P(Li3)
79 /** Gamma function. */
80 DECLARE_FUNCTION_1P(gamma)
82 /** Factorial function. */
83 DECLARE_FUNCTION_1P(factorial)
85 /** Binomial function. */
86 DECLARE_FUNCTION_2P(binomial)
88 /** Order term function (for truncated power series). */
89 DECLARE_FUNCTION_1P(Order)
91 ex lsolve(ex const &eqns, ex const &symbols);
93 ex ncpower(ex const &basis, unsigned exponent);
95 inline bool is_order_function(ex const & e)
97 return is_ex_the_function(e, Order);
100 #endif // ndef __GINAC_INIFCNS_H__