Opened 13 years ago

Closed 13 years ago

#7603 closed enhancement (fixed)

add methods to query representation of symbolic expressions

Reported by: burcin Owned by: burcin
Priority: minor Milestone: sage-4.3
Component: symbolics Keywords:
Cc: fmaltey@… Merged in: sage-4.3.rc0
Authors: Burcin Erocal Reviewers: Mike Hansen
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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

Attachments (1)

trac_7603-is_symbol.patch (2.5 KB) - added by burcin 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by burcin

comment:1 Changed 13 years ago by burcin

  • Cc fmaltey@… added
  • Status changed from new to needs_review

comment:2 Changed 13 years ago by mhansen

  • Merged in set to sage-4.3.rc0
  • Resolution set to fixed
  • Reviewers set to Mike Hansen
  • Status changed from needs_review to closed

Looks good.

Note: See TracTickets for help on using tickets.