3 * Interface to GiNaC's initially known functions. */
6 * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
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.
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.
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
23 #ifndef __GINAC_INIFCNS_H__
24 #define __GINAC_INIFCNS_H__
26 #include <ginac/function.h>
30 DECLARE_FUNCTION_1P(sin)
33 DECLARE_FUNCTION_1P(cos)
36 DECLARE_FUNCTION_1P(tan)
38 /** Exponential function. */
39 DECLARE_FUNCTION_1P(exp)
41 /** Natural logarithm. */
42 DECLARE_FUNCTION_1P(log)
44 /** Inverse sine (arc sine). */
45 DECLARE_FUNCTION_1P(asin)
47 /** Inverse cosine (arc cosine). */
48 DECLARE_FUNCTION_1P(acos)
50 /** Inverse tangent (arc tangent). */
51 DECLARE_FUNCTION_1P(atan)
53 /** Inverse tangent with two arguments. */
54 DECLARE_FUNCTION_2P(atan2)
56 /** Hyperbolic Sine. */
57 DECLARE_FUNCTION_1P(sinh)
59 /** Hyperbolic Cosine. */
60 DECLARE_FUNCTION_1P(cosh)
62 /** Hyperbolic Tangent. */
63 DECLARE_FUNCTION_1P(tanh)
65 /** Inverse hyperbolic Sine (area hyperbolic sine). */
66 DECLARE_FUNCTION_1P(asinh)
68 /** Inverse hyperbolic Cosine (area hyperbolic cosine). */
69 DECLARE_FUNCTION_1P(acosh)
71 /** Inverse hyperbolic Tangent (area hyperbolic tangent). */
72 DECLARE_FUNCTION_1P(atanh)
75 DECLARE_FUNCTION_1P(Li2)
78 DECLARE_FUNCTION_1P(Li3)
80 /** Gamma function. */
81 DECLARE_FUNCTION_1P(gamma)
83 /** Factorial function. */
84 DECLARE_FUNCTION_1P(factorial)
86 /** Binomial function. */
87 DECLARE_FUNCTION_2P(binomial)
89 /** Order term function (for truncated power series). */
90 DECLARE_FUNCTION_1P(Order)
92 ex lsolve(ex const &eqns, ex const &symbols);
94 ex ncpower(ex const &basis, unsigned exponent);
96 inline bool is_order_function(ex const & e)
98 return is_ex_the_function(e, Order);
101 #endif // ndef __GINAC_INIFCNS_H__