Status: Accepted
Owner: ellisonbg
Labels: Type-Defect Priority-Medium
New issue 1901 by ellisonbg: Reorganizing action verbs in sympy
http://code.google.com/p/sympy/issues/detail?id=1901
The original discussion happened here:
http://groups.google.com/group/sympy/browse_thread/thread/59e5dfb987963204/eca6fd634
4bd3024?lnk=gst&q=action+verb#eca6fd6344bd3024
The conclusion is this:
Take the following global functions:
simplify
nsimplify
*simp = combsimp/hypersimp/powsimp/radsimp/ratsimp/trigsimp
refine
cancel
invert
apart
collect
separate
together
factor
And make them 3 line methods of sympy.core.expr.Expr. The implementation
of each of these
should follow the same pattern the Expr.integrate does (local import of the
global function and
call it).
For now, we are leaving N(), .evalf() and .n() alone.
Still don't know what we want to do with the following that are only
methods of Expr (not global
functions):
subs
doit
nseries
lseries
fdiff # Aaron said this shouldn't be a global function
extract_multiplicatively # Again, should not be a global function
Should subs/doit/nseries/lseries be global functions? Let's wait on that.
Also I don't think we can have the methods copy the docstrings of the
global functions because
that would require importing the global function at the top of
sympy.core.expr, which we DON'T
want to do.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.