#include "symbol.h"
#include "utils.h"
-#ifndef NO_NAMESPACE_GINAC
namespace GiNaC {
-#endif // ndef NO_NAMESPACE_GINAC
//////////
// Riemann's Zeta-function
TYPECHECK(x,numeric)
END_TYPECHECK(zeta(x))
- return zeta(ex_to_numeric(x));
+ return zeta(ex_to<numeric>(x));
}
static ex zeta1_eval(const ex & x)
{
if (x.info(info_flags::numeric)) {
- numeric y = ex_to_numeric(x);
+ numeric y = ex_to<numeric>(x);
// trap integer arguments:
if (y.is_integer()) {
if (y.is_zero())
eval_func(zeta1_eval).
evalf_func(zeta1_evalf).
derivative_func(zeta1_deriv).
+ latex_name("\\zeta").
overloaded(2));
//////////
function::register_new(function_options("zeta").
eval_func(zeta2_eval).
derivative_func(zeta2_deriv).
+ latex_name("\\zeta").
overloaded(2));
-#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC
-#endif // ndef NO_NAMESPACE_GINAC