Remove info_flags::algebraic.
authorRichard Kreckel <kreckel@ginac.de>
Sun, 20 Dec 2015 03:36:42 +0000 (04:36 +0100)
committerRichard Kreckel <kreckel@ginac.de>
Sun, 20 Dec 2015 03:36:42 +0000 (04:36 +0100)
It doesn't work, never has, and it is quire unclear how to fix it.

doc/tutorial/ginac.texi
ginac/add.cpp
ginac/flags.h
ginac/inifcns.cpp
ginac/mul.cpp
ginac/numeric.cpp
ginac/power.cpp

index fd5550f..4f7e4b0 100644 (file)
@@ -3969,8 +3969,6 @@ table:
 @tab @dots{}a polynomial with (possibly complex) rational coefficients (such as @math{2/3+7/2*I})
 @item @code{rational_function}
 @tab @dots{}a rational function (@math{x+y}, @math{z/(x+y)})
-@item @code{algebraic}
-@tab @dots{}an algebraic object (@math{sqrt(2)}, @math{sqrt(x)-1})
 @end multitable
 @end cartouche
 
index 62c02d2..7f7818b 100644 (file)
@@ -247,15 +247,6 @@ bool add::info(unsigned inf) const
                                return true;
                        return overall_coeff.info(inf);
                }
-               case info_flags::algebraic: {
-                       epvector::const_iterator i = seq.begin(), end = seq.end();
-                       while (i != end) {
-                               if ((recombine_pair_to_ex(*i).info(inf)))
-                                       return true;
-                               ++i;
-                       }
-                       return false;
-               }
        }
        return inherited::info(inf);
 }
index 41965e5..b200e31 100644 (file)
@@ -250,7 +250,6 @@ public:
                rational_polynomial,
                crational_polynomial,
                rational_function,
-               algebraic,
 
                // answered by class indexed
                indexed,      // class can carry indices
index 89a3bcb..6ac1b47 100644 (file)
@@ -109,7 +109,6 @@ static bool func_arg_info(const ex & arg, unsigned inf)
                case info_flags::prime:
                case info_flags::crational_polynomial:
                case info_flags::rational_function:
-               case info_flags::algebraic:
                case info_flags::positive:
                case info_flags::negative:
                case info_flags::nonnegative:
index 3f2d5cd..eef287c 100644 (file)
@@ -292,13 +292,6 @@ bool mul::info(unsigned inf) const
                                return true;
                        return overall_coeff.info(inf);
                }
-               case info_flags::algebraic: {
-                       for (auto & it : seq) {
-                               if (recombine_pair_to_ex(it).info(inf))
-                                       return true;
-                       }
-                       return false;
-               }
                case info_flags::positive:
                case info_flags::negative: {
                        if ((inf==info_flags::positive) && (flags & status_flags::is_positive))
index 9b23214..e3eec93 100644 (file)
@@ -714,8 +714,6 @@ bool numeric::info(unsigned inf) const
                        return is_odd();
                case info_flags::prime:
                        return is_prime();
-               case info_flags::algebraic:
-                       return !is_real();
        }
        return false;
 }
index 3baa3c6..8e62af8 100644 (file)
@@ -234,9 +234,6 @@ bool power::info(unsigned inf) const
                case info_flags::rational_function:
                        return exponent.info(info_flags::integer) &&
                               basis.info(inf);
-               case info_flags::algebraic:
-                       return !exponent.info(info_flags::integer) ||
-                              basis.info(inf);
                case info_flags::expanded:
                        return (flags & status_flags::expanded);
                case info_flags::positive: