* Interface to GiNaC's symbolic exponentiation (basis^exponent). */
/*
- * 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
// member functions
- // default constructor, destructor, copy constructor assignment operator and helpers
-public:
- power();
- ~power();
- power(const power & other);
- const power & operator=(const power & other);
-protected:
- void copy(const power & other);
- void destroy(bool call_parent);
-
// other constructors
public:
power(const ex & lh, const ex & rh);
// functions overriding virtual functions from bases classes
public:
- basic * duplicate() const;
void print(std::ostream & os, unsigned upper_precedence = 0) const;
void printraw(std::ostream & os) const;
void printtree(std::ostream & os, unsigned indent) const;
ex simplify_ncmul(const exvector & v) const;
protected:
ex derivative(const symbol & s) const;
- int compare_same_type(const basic & other) const;
unsigned return_type(void) const;
unsigned return_type_tinfo(void) const;
ex expand(unsigned options = 0) const;
static unsigned precedence;
};
-// global constants
-
-extern const power some_power;
-extern const std::type_info & typeid_power;
-
// utility functions
inline const power &ex_to_power(const ex &e)
{