#8383: Make symbolic versions of moebius, sigma, and euler_phi functions
-------------------------------+--------------------------------------------
Reporter: zimmerma | Owner: burcin
Type: enhancement | Status: new
Priority: minor | Milestone: sage-5.6
Component: symbolics | Resolution:
Keywords: beginner | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-------------------------------+--------------------------------------------
Comment (by benjaminfjones):
Hi, thanks for working on this!
One solution (this is one I'm using on #4102), is to write a wrapper
function `sigma` that will take either one or two arguments and return the
general symbolic function of two arguments accordingly:
{{{
sage: sigma(5)
symbolic_sigma(5, 1)
sage: sigma(x, 2)
symbolic_sigma(x, 2)
}}}
The symbolic function `symbolic_sigma` would inherit from
`BuiltinFunction` and have two arguments. It's printed name could be just
`sigma` instead of `symbolic_sigma` to lessen confusion.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8383#comment:14>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac?hl=en.