X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpower.cpp;h=36b5c8b46f634547f04ebade72e72f1d17e9c7a9;hp=afb34e68ccf42aec27ce0d847a5a2693d494688b;hb=9eab44408b9213d8909b7a9e525f404ad06064dd;hpb=66c0f31c678e6c1938d637636b230ea376c157c1 diff --git a/ginac/power.cpp b/ginac/power.cpp index afb34e68..36b5c8b4 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -1,7 +1,8 @@ /** @file power.cpp * - * Implementation of GiNaC's symbolic exponentiation (basis^exponent). - * + * Implementation of GiNaC's symbolic exponentiation (basis^exponent). */ + +/* * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify @@ -30,6 +31,9 @@ #include "numeric.h" #include "relational.h" #include "symbol.h" +#include "debugmsg.h" + +namespace GiNaC { typedef vector intvector; @@ -509,7 +513,7 @@ ex power::expand_add(add const & a, int const n) const cout << "end term" << endl; */ - // TODO: optimize!!!!!!!! + // TODO: optimize this sum.push_back((new mul(term))->setflag(status_flags::dynallocated)); // increment k[] @@ -716,3 +720,5 @@ unsigned power::precedence=60; const power some_power; type_info const & typeid_power=typeid(some_power); + +} // namespace GiNaC