Manoj ended up implementing a `.is_algebraic_expr()` method to accomplish this task. It may be a good idea to replace the `is_algebraic()` method with `.is_algebraic_expr()`, since `is_algebraic()` only has doctests and is only used twice, one other time in sqrtdenest.py and once where it is imported but not used in simplify.py.
Sean On Mon, Jun 24, 2013 at 11:37 AM, mario <[email protected]> wrote: > > I was referring to this, http://en.wikipedia.org/wiki/** > Algebraic_expression <http://en.wikipedia.org/wiki/Algebraic_expression>, > is_Polynomial wouldn't work if I want to identify cases like sqrt(1 - > x**2/1 + x**2) , so thats where I thought a function might come in handy. > > This might help > > ``` > >>> from sympy.simplify.sqrtdenest import is_algebraic > >>> is_algebraic(sqrt(1 - x**2/1 + x**2)) > True > ``` > > > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
