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>
32 DECLARE_FUNCTION_1P(sin)
35 DECLARE_FUNCTION_1P(cos)
38 DECLARE_FUNCTION_1P(tan)
40 /** Exponential function. */
41 DECLARE_FUNCTION_1P(exp)
43 /** Natural logarithm. */
44 DECLARE_FUNCTION_1P(log)
46 /** Inverse sine (arc sine). */
47 DECLARE_FUNCTION_1P(asin)
49 /** Inverse cosine (arc cosine). */
50 DECLARE_FUNCTION_1P(acos)
52 /** Inverse tangent (arc tangent). */
53 DECLARE_FUNCTION_1P(atan)
55 /** Inverse tangent with two arguments. */
56 DECLARE_FUNCTION_2P(atan2)
58 /** Hyperbolic Sine. */
59 DECLARE_FUNCTION_1P(sinh)
61 /** Hyperbolic Cosine. */
62 DECLARE_FUNCTION_1P(cosh)
64 /** Hyperbolic Tangent. */
65 DECLARE_FUNCTION_1P(tanh)
67 /** Inverse hyperbolic Sine (area hyperbolic sine). */
68 DECLARE_FUNCTION_1P(asinh)
70 /** Inverse hyperbolic Cosine (area hyperbolic cosine). */
71 DECLARE_FUNCTION_1P(acosh)
73 /** Inverse hyperbolic Tangent (area hyperbolic tangent). */
74 DECLARE_FUNCTION_1P(atanh)
77 DECLARE_FUNCTION_1P(Li2)
80 DECLARE_FUNCTION_1P(Li3)
82 /** Gamma function. */
83 DECLARE_FUNCTION_1P(gamma)
85 /** Psi function (aka polygamma-function) */
86 DECLARE_FUNCTION_2P(psi)
88 /** Factorial function. */
89 DECLARE_FUNCTION_1P(factorial)
91 /** Binomial function. */
92 DECLARE_FUNCTION_2P(binomial)
94 /** Order term function (for truncated power series). */
95 DECLARE_FUNCTION_1P(Order)
97 ex lsolve(ex const &eqns, ex const &symbols);
99 ex ncpower(ex const &basis, unsigned exponent);
101 inline bool is_order_function(ex const & e)
103 return is_ex_the_function(e, Order);
108 #endif // ndef __GINAC_INIFCNS_H__