#16721: implement gcd(a,b,hold=True)
-------------------------------+------------------------
Reporter: rws | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.3
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps: todo
-------------------------------+------------------------
Comment (by rws):
Replying to [comment:14 nbruin]:
> How do you control when `hold=True` is triggered to be expanded? In
particular, in
> {{{
> sum( gcd( x^2+n,x,hold=True),n,-2,2,hold=True )
> }}}
> what do you do to clear to "unhold" the expression and how do you
control the order in which that happens? In particular, for your
application, you'd need the values of `n` to be substituted ''before'' the
hold on `gcd` is cleared.
I do not understand. In what way is this different from
{{{
sum(sin(n*pi,hold=True),n,1,5,hold=True)
...
TypeError: symbolic_sum() got an unexpected keyword argument 'hold'
}}}
which simply does not work, and from which one usually comes to this:
{{{
sage: sum(sin(n*pi,hold=True) for n in range(1,6))
sin(pi) + sin(5*pi) + sin(4*pi) + sin(3*pi) + sin(2*pi)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16721#comment:18>
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 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.