Hi all,
I'm working with some formulas including summations and sage doesn't
always do what I was hoping. I program a function called BB(c)
including (factorials):
sage: var('i,mu,B')
sage: BB(c)=factorial(c-1)*(mu/(B*mu+1))^2*sum(((c-1/(B*mu+1))^i)/
factorial(i),i,0,c-1)
When I compute it I get the following output which sadly hasn't
evaluated the symbolic summation:
sage: BB(1)
mu^2*sum((B*mu + 1)^(-i)*(B*mu)^i/factorial(i), i, 0, 0)/(B*mu + 1)^2
However if I copy and past the previous output sage does indeed
compute everything I expect:
sage: mu^2*sum((B*mu + 1)^(-i)*(B*mu)^i/factorial(i), i, 0, 0)/(B*mu +
1)^2
mu^2/(B*mu + 1)^2
Am I missing something here? I'd obviously like BB(1) to directly
compute my result.
Thanks,
Vince
--
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-support
URL: http://www.sagemath.org