*
* 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
*
* 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
constant(const std::string & initname, evalffunctype efun = 0, const std::string & texname = std::string());
constant(const std::string & initname, const numeric & initnumber, const std::string & texname = std::string());
constant(const std::string & initname, evalffunctype efun = 0, const std::string & texname = std::string());
constant(const std::string & initname, const numeric & initnumber, const std::string & texname = std::string());
-/** Return the constant object handled by an ex.
- * This is unsafe: you need to check the type first. */
-inline const constant &ex_to_constant(const ex &e)
-{
- return static_cast<const constant &>(*e.bp);
-}
-
/** Specialization of is_exactly_a<constant>(obj) for constant objects. */
template<> inline bool is_exactly_a<constant>(const basic & obj)
{
/** Specialization of is_exactly_a<constant>(obj) for constant objects. */
template<> inline bool is_exactly_a<constant>(const basic & obj)
{