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