[sage-support] Re: Evaluation of sum function in callable expression

2017-12-17 Thread Ralf Stephan
BTW instead of unhold() you can also use n() to get the value of an unevaluated definite sum. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsub

[sage-support] Re: Evaluation of sum function in callable expression

2017-12-17 Thread Ralf Stephan
This looks like a bug, you get the sum unevaluated. You can as a workaround evaluate it manually. I get: print(h3(3,h3n=5).unhold()) 20 Thanks for the report. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and

[sage-support] Evaluation of sum function in callable expression

2017-12-17 Thread BDesco
Hello, i'm running Sagemath 8.0 in Jupyter Notebook on Windows 10. I'm fairly new to Sagemath. running this: rrun=2 h2(h2rrunrest)= binomial(h2n-rrun-h2rrunrest-1,h2rrest-h2rrunrest)+h2n h3(h3rrest)=sum(h2(h3rrunrest,h2rrest=h3rrest,h2n=h3n),h3rrunrest,0,h3rrest) print(h3(3,h3n=5)) works fine:

[sage-support] Evaluation os sum function in callable expression.

2017-12-17 Thread BDesco
Hello, i'm running Sagemath 8.0 in Jupyter Notebook. I'm fairly new to Sagemath. running this: rrun=2 h2(h2rrunrest)= binomial(h2n-rrun-h2rrunrest-1,h2rrest-h2rrunrest)+h2n h3(h3rrest)=sum(h2(h3rrunrest,h2rrest=h3rrest,h2n=h3n),h3rrunrest,0,h3rrest) print(h3(3,h3n=5)) works fine: result: 21 but