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 just adding a multiplication:

rrun=2
h2(h2rrunrest)= *2**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))

I get: sum(5, h3rrunrest, 0, 3) instead of the result 22 (5+5+5+7).

Thanks!

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to