* some related stuff. */
/*
- * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include <stdexcept>
#include "inifcns.h"
-#include "ex.h"
#include "constant.h"
#include "pseries.h"
#include "numeric.h"
#include "symbol.h"
#include "utils.h"
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
//////////
// Logarithm of Gamma function
if (x.info(info_flags::integer)) {
// lgamma(n) -> log((n-1)!) for postitive n
if (x.info(info_flags::posint))
- return log(factorial(x.exadd(_ex_1())));
+ return log(factorial(x + _ex_1()));
else
throw (pole_error("lgamma_eval(): logarithmic pole",0));
}
REGISTER_FUNCTION(lgamma, eval_func(lgamma_eval).
evalf_func(lgamma_evalf).
derivative_func(lgamma_deriv).
- series_func(lgamma_series));
+ series_func(lgamma_series).
+ latex_name("\\log \\Gamma"));
//////////
REGISTER_FUNCTION(tgamma, eval_func(tgamma_eval).
evalf_func(tgamma_evalf).
derivative_func(tgamma_deriv).
- series_func(tgamma_series));
+ series_func(tgamma_series).
+ latex_name("\\Gamma"));
//////////
REGISTER_FUNCTION(beta, eval_func(beta_eval).
evalf_func(beta_evalf).
derivative_func(beta_deriv).
- series_func(beta_series));
+ series_func(beta_series).
+ latex_name("\\mbox{B}"));
//////////
evalf_func(psi2_evalf).
derivative_func(psi2_deriv).
series_func(psi2_series).
+ latex_name("\\psi").
overloaded(2));
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC