Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add methods to query representation of symbolic expressions #7603

Closed
burcin opened this issue Dec 4, 2009 · 4 comments
Closed

add methods to query representation of symbolic expressions #7603

burcin opened this issue Dec 4, 2009 · 4 comments

Comments

@burcin
Copy link

burcin commented Dec 4, 2009

Attached patch adds _is_symbol(), _is_constant() and _is_numeric() methods to sage.symbolic.expression.Expression objects.

These methods are just a thin wrapper around the is_a<*>() methods from pynac. They should provide a straightforward interface to query the internal representation of a symbolic expression when .operator() returns None.

Some relevant discussion on sage-devel:

http://groups.google.com/group/sage-devel/msg/6323b473af195bc7

CC: @sagetrac-fmaltey

Component: symbolics

Author: Burcin Erocal

Reviewer: Mike Hansen

Merged: sage-4.3.rc0

Issue created by migration from https://trac.sagemath.org/ticket/7603

@burcin burcin added this to the sage-4.3 milestone Dec 4, 2009
@burcin burcin self-assigned this Dec 4, 2009
@burcin
Copy link
Author

burcin commented Dec 4, 2009

Attachment: trac_7603-is_symbol.patch.gz

@mwhansen
Copy link
Contributor

mwhansen commented Dec 6, 2009

comment:2

Looks good.

@mwhansen
Copy link
Contributor

mwhansen commented Dec 6, 2009

Merged: sage-4.3.rc0

@mwhansen
Copy link
Contributor

mwhansen commented Dec 6, 2009

Reviewer: Mike Hansen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants