Binomial coefficient calculation error in Maple

2 replies · 3K views · last reply
opus
Gold Member
Messages
717
Reaction score
131
TL;DR
Help with writing Maple program to calculate Binomial Coefficients,
Maple worksheet showing a procedure MyBi(B) with local variables n, k, i, j, k and a body computing a binomial coefficient, followed by the error message 'Error, reserved word `end` unexpected', then B := (1+x)^7 and the call MyBi(B).


Please see attached image. I'm not sure why I'm getting this error because this is the format I have used to write programs in Maple before. Any ideas? I'm new to this so not sure how to independently trouble shoot or problem solve this,
Thanks!