X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpower.cpp;h=7ae0f04d69e4de2760d8eab81c3e17de90b989b0;hp=999d9b147284f894f1e18298f6bd9a5465c2e9e8;hb=c7299e51d5ecf61b5d85bdfeb9a2db536abf18bb;hpb=e710763e51b6fe11020bac880c44f426544471c2 diff --git a/ginac/power.cpp b/ginac/power.cpp index 999d9b14..7ae0f04d 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -240,6 +240,8 @@ bool power::info(unsigned inf) const basis.info(inf); case info_flags::expanded: return (flags & status_flags::expanded); + case info_flags::positive: + return basis.info(info_flags::positive) && exponent.info(info_flags::real); case info_flags::has_indices: { if (flags & status_flags::has_indices) return true;