Add mul::info() and add::info() support for numeric info_flags.
[ginac.git] / ginac / power.cpp
index 999d9b147284f894f1e18298f6bd9a5465c2e9e8..7ae0f04d69e4de2760d8eab81c3e17de90b989b0 100644 (file)
@@ -240,6 +240,8 @@ bool power::info(unsigned inf) const
                               basis.info(inf);
                case info_flags::expanded:
                        return (flags & status_flags::expanded);
                               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;
                case info_flags::has_indices: {
                        if (flags & status_flags::has_indices)
                                return true;