author Richard Kreckel Sun, 20 Dec 2015 03:36:42 +0000 (04:36 +0100) committer Richard Kreckel 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 patch | blob | history ginac/add.cpp patch | blob | history ginac/flags.h patch | blob | history ginac/inifcns.cpp patch | blob | history ginac/mul.cpp patch | blob | history ginac/numeric.cpp patch | blob | history ginac/power.cpp patch | blob | history

index fd5550fb60bcacbfa59b40fe32b7817f810efcfb..4f7e4b0f3dde87641348db9b2a460db293249573 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)})
@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

@end multitable
@end cartouche

index 62c02d2432aaeface643b1b4330ae564acf2a3fd..7f7818bc1c8f33dd86ce2970f1e38b8bc59c29a3 100644 (file)
@@ -247,15 +247,6 @@ bool add::info(unsigned inf) const
return true;
return overall_coeff.info(inf);
}
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);
}
}
return inherited::info(inf);
}
index 41965e5020e45fb0956aeb6d6ef2f9e993e52b2c..b200e3141cbbde124d204908d141a0c1299e71de 100644 (file)
@@ -250,7 +250,6 @@ public:
rational_polynomial,
crational_polynomial,
rational_function,
rational_polynomial,
crational_polynomial,
rational_function,
-               algebraic,

indexed,      // class can carry indices

indexed,      // class can carry indices
index 89a3bcbffc61f7f50023efc8df885d79acdf79d5..6ac1b471abaa4b3d3c39b811054a214d0c312bec 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::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:
case info_flags::positive:
case info_flags::negative:
case info_flags::nonnegative:
@@ -292,13 +292,6 @@ bool mul::info(unsigned inf) const
return true;
return overall_coeff.info(inf);
}
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))
case info_flags::positive:
case info_flags::negative: {
if ((inf==info_flags::positive) && (flags & status_flags::is_positive))
index 9b23214b05e4b0a0e8e9b6dd28fb819349d8f4b6..e3eec9326036f727c6575bc34cbe4d63ed6d962e 100644 (file)
@@ -714,8 +714,6 @@ bool numeric::info(unsigned inf) const
return is_odd();
case info_flags::prime:
return is_prime();
return is_odd();
case info_flags::prime:
return is_prime();
-               case info_flags::algebraic:
-                       return !is_real();
}
return false;
}
}
return false;
}
index 3baa3c6f9125f8e65a26d460d15cb46b6f7d1ac0..8e62af8b5e4f98c6b5e59f786f8ddb05efc0bd36 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::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:
case info_flags::expanded:
return (flags & status_flags::expanded);
case info_flags::positive: